res                21 Documentation/usb/usbdevfs-drop-permissions.c 	int res;
res                23 Documentation/usb/usbdevfs-drop-permissions.c 	res = ioctl(fd, USBDEVFS_DROP_PRIVILEGES, &mask);
res                24 Documentation/usb/usbdevfs-drop-permissions.c 	if (res)
res                25 Documentation/usb/usbdevfs-drop-permissions.c 		printf("ERROR: USBDEVFS_DROP_PRIVILEGES returned %d\n", res);
res                32 Documentation/usb/usbdevfs-drop-permissions.c 	int res;
res                34 Documentation/usb/usbdevfs-drop-permissions.c 	res = ioctl(fd, USBDEVFS_RESET);
res                35 Documentation/usb/usbdevfs-drop-permissions.c 	if (!res)
res                39 Documentation/usb/usbdevfs-drop-permissions.c 		       -res, strerror(-res));
res                44 Documentation/usb/usbdevfs-drop-permissions.c 	int i, res;
res                47 Documentation/usb/usbdevfs-drop-permissions.c 		res = ioctl(fd, USBDEVFS_CLAIMINTERFACE, &i);
res                48 Documentation/usb/usbdevfs-drop-permissions.c 		if (!res)
res                52 Documentation/usb/usbdevfs-drop-permissions.c 			       i, -res, strerror(-res));
res               110 arch/alpha/include/asm/hwrpb.h 	unsigned long res;
res               101 arch/alpha/include/asm/thread_info.h 	__u32 res = 0;							\
res               103 arch/alpha/include/asm/thread_info.h 		res |= PR_UNALIGN_NOPRINT;				\
res               105 arch/alpha/include/asm/thread_info.h 		res |= PR_UNALIGN_SIGBUS;				\
res               107 arch/alpha/include/asm/thread_info.h 		res |= 4;						\
res               108 arch/alpha/include/asm/thread_info.h 	put_user(res, (int __user *)(value));				\
res                79 arch/alpha/include/asm/uaccess.h #define EXC(label,cont,res,err)				\
res                82 arch/alpha/include/asm/uaccess.h 	"	lda "#res","#cont"-"#label"("#err")\n"	\
res               738 arch/alpha/kernel/osf_sys.c 	const char *res;
res               750 arch/alpha/kernel/osf_sys.c 	res = sysinfo_table[offset];
res               751 arch/alpha/kernel/osf_sys.c 	len = strlen(res)+1;
res               754 arch/alpha/kernel/osf_sys.c 	memcpy(tmp, res, len);
res              1421 arch/alpha/kernel/osf_sys.c 	int res = do_pipe_flags(fd, 0);
res              1422 arch/alpha/kernel/osf_sys.c 	if (!res) {
res              1425 arch/alpha/kernel/osf_sys.c 		res = fd[0];
res              1427 arch/alpha/kernel/osf_sys.c 	return res;
res                69 arch/alpha/kernel/pci-sysfs.c 	struct resource *res = attr->private;
res                75 arch/alpha/kernel/pci-sysfs.c 		if (res == &pdev->resource[i])
res                80 arch/alpha/kernel/pci-sysfs.c 	if (res->flags & IORESOURCE_MEM && iomem_is_exclusive(res->start))
res                86 arch/alpha/kernel/pci-sysfs.c 	pcibios_resource_to_bus(pdev->bus, &bar, res);
res                88 arch/alpha/kernel/pci-sysfs.c 	mmap_type = res->flags & IORESOURCE_MEM ? pci_mmap_mem : pci_mmap_io;
res               127 arch/alpha/kernel/pci.c pcibios_align_resource(void *data, const struct resource *res,
res               133 arch/alpha/kernel/pci.c 	resource_size_t start = res->start;
res               135 arch/alpha/kernel/pci.c 	if (res->flags & IORESOURCE_IO) {
res               146 arch/alpha/kernel/pci.c 	else if	(res->flags & IORESOURCE_MEM) {
res               181 arch/alpha/kernel/ptrace.c 	int displ, i, res, reg_b, nsaved = 0;
res               186 arch/alpha/kernel/ptrace.c 	res = read_int(child, pc, (int *) &insn);
res               187 arch/alpha/kernel/ptrace.c 	if (res < 0)
res               188 arch/alpha/kernel/ptrace.c 		return res;
res               217 arch/alpha/kernel/ptrace.c 		res = read_int(child, task_thread_info(child)->bpt_addr[i],
res               219 arch/alpha/kernel/ptrace.c 		if (res < 0)
res               220 arch/alpha/kernel/ptrace.c 			return res;
res               224 arch/alpha/kernel/ptrace.c 		res = write_int(child, task_thread_info(child)->bpt_addr[i],
res               226 arch/alpha/kernel/ptrace.c 		if (res < 0)
res               227 arch/alpha/kernel/ptrace.c 			return res;
res                48 arch/alpha/kernel/signal.c 	unsigned long res;
res                51 arch/alpha/kernel/signal.c 	res = sigprocmask(how, &mask, &oldmask);
res                52 arch/alpha/kernel/signal.c 	if (!res) {
res                54 arch/alpha/kernel/signal.c 		res = oldmask.sig[0];
res                56 arch/alpha/kernel/signal.c 	return res;
res                92 arch/alpha/kernel/srm_env.c 	int res;
res               100 arch/alpha/kernel/srm_env.c 	res = -EINVAL;
res               104 arch/alpha/kernel/srm_env.c 	res = -EFAULT;
res               114 arch/alpha/kernel/srm_env.c 		res = (int) ret1;
res               119 arch/alpha/kernel/srm_env.c 	return res;
res               108 arch/alpha/math-emu/math.c 	unsigned long res, va, vb, vc, swcr, fpcr;
res               176 arch/alpha/math-emu/math.c 			FP_CMP_D(res, DA, DB, 3);
res               180 arch/alpha/math-emu/math.c 			if (res == 3
res               187 arch/alpha/math-emu/math.c 			case FOP_FNC_CMPxUN: if (res != 3) vc = 0; break;
res               188 arch/alpha/math-emu/math.c 			case FOP_FNC_CMPxEQ: if (res) vc = 0; break;
res               189 arch/alpha/math-emu/math.c 			case FOP_FNC_CMPxLT: if (res != -1) vc = 0; break;
res               190 arch/alpha/math-emu/math.c 			case FOP_FNC_CMPxLE: if ((long)res > 0) vc = 0; break;
res               186 arch/arc/include/asm/arcregs.h 	unsigned int res:21, sz:3, ver:8;
res               188 arch/arc/include/asm/arcregs.h 	unsigned int ver:8, sz:3, res:21;
res               265 arch/arc/include/asm/bitops.h 	unsigned int res;
res               271 arch/arc/include/asm/bitops.h 	: "=r"(res)
res               275 arch/arc/include/asm/bitops.h 	return res;
res               170 arch/arc/include/asm/uaccess.h 	long res = 0;
res               217 arch/arc/include/asm/uaccess.h 		res = orig_n;
res               246 arch/arc/include/asm/uaccess.h 			: "+r" (res), "+r"(to), "+r"(from),
res               270 arch/arc/include/asm/uaccess.h 			: "+r" (res), "+r"(to), "+r"(from),
res               291 arch/arc/include/asm/uaccess.h 			: "+r" (res), "+r"(to), "+r"(from), "=r"(tmp1)
res               311 arch/arc/include/asm/uaccess.h 			: "+r" (res), "+r"(to), "+r"(from), "=r"(tmp1)
res               329 arch/arc/include/asm/uaccess.h 			: "+r" (res), "+r"(to), "+r"(from), "=r"(tmp1)
res               385 arch/arc/include/asm/uaccess.h 		: "=r" (res), "+r"(to), "+r"(from), "+r"(n), "=r"(val),
res               391 arch/arc/include/asm/uaccess.h 	return res;
res               397 arch/arc/include/asm/uaccess.h 	long res = 0;
res               439 arch/arc/include/asm/uaccess.h 		res = orig_n;
res               468 arch/arc/include/asm/uaccess.h 			: "+r" (res), "+r"(to), "+r"(from),
res               492 arch/arc/include/asm/uaccess.h 			: "+r" (res), "+r"(to), "+r"(from),
res               513 arch/arc/include/asm/uaccess.h 			: "+r" (res), "+r"(to), "+r"(from), "=r"(tmp1)
res               533 arch/arc/include/asm/uaccess.h 			: "+r" (res), "+r"(to), "+r"(from), "=r"(tmp1)
res               551 arch/arc/include/asm/uaccess.h 			: "+r" (res), "+r"(to), "+r"(from), "=r"(tmp1)
res               607 arch/arc/include/asm/uaccess.h 		: "=r" (res), "+r"(to), "+r"(from), "+r"(n), "=r"(val),
res               613 arch/arc/include/asm/uaccess.h 	return res;
res               618 arch/arc/include/asm/uaccess.h 	long res = n;
res               651 arch/arc/include/asm/uaccess.h 	: "+r"(d_char), "+r"(res)
res               655 arch/arc/include/asm/uaccess.h 	return res;
res               661 arch/arc/include/asm/uaccess.h 	long res = 0;
res               684 arch/arc/include/asm/uaccess.h 	: "+r"(res), "+r"(dst), "+r"(src), "=r"(val)
res               688 arch/arc/include/asm/uaccess.h 	return res;
res               693 arch/arc/include/asm/uaccess.h 	long res, tmp1, cnt;
res               714 arch/arc/include/asm/uaccess.h 	: "=r"(res), "=r"(tmp1), "=r"(cnt), "=r"(val)
res               718 arch/arc/include/asm/uaccess.h 	return res;
res                38 arch/arc/kernel/intc-arcv2.c 			     res:4, save_nr_gpr_pairs:5;
res                40 arch/arc/kernel/intc-arcv2.c 		unsigned int save_nr_gpr_pairs:5, res:4,
res               740 arch/arc/mm/tlb.c 	unsigned int ver:8, ways:4, sets:4, res:3, sasid:1, pg_sz:4,
res               743 arch/arc/mm/tlb.c 	unsigned int u_dtlb:4, u_itlb:4, pg_sz:4, sasid:1, res:3, sets:4,
res               750 arch/arc/mm/tlb.c 	unsigned int ver:8, sasid:1, sz1:4, sz0:4, res:2, pae:1,
res               755 arch/arc/mm/tlb.c 		     pae:1, res:2, sz0:4, sz1:4, sasid:1, ver:8;
res                81 arch/arm/boot/compressed/string.c 	int res = 0;
res                84 arch/arm/boot/compressed/string.c 		res = *su1++ - *su2++;
res                85 arch/arm/boot/compressed/string.c 		if (res)
res                88 arch/arm/boot/compressed/string.c 	return res;
res                94 arch/arm/boot/compressed/string.c 	int res = 0;
res                99 arch/arm/boot/compressed/string.c 		res = c1 - c2;
res               100 arch/arm/boot/compressed/string.c 		if (res)
res               103 arch/arm/boot/compressed/string.c 	return res;
res               750 arch/arm/common/sa1111.c 	dev->res.start   = sachip->phys + info->offset;
res               751 arch/arm/common/sa1111.c 	dev->res.end     = dev->res.start + 511;
res               752 arch/arm/common/sa1111.c 	dev->res.name    = dev_name(&dev->dev);
res               753 arch/arm/common/sa1111.c 	dev->res.flags   = IORESOURCE_MEM;
res               770 arch/arm/common/sa1111.c 	ret = request_resource(parent, &dev->res);
res               773 arch/arm/common/sa1111.c 			dev->res.name);
res               783 arch/arm/common/sa1111.c 	release_resource(&dev->res);
res               935 arch/arm/common/sa1111.c 	release_resource(&sadev->res);
res                90 arch/arm/crypto/sha256_glue.c 	int res = crypto_register_shashes(algs, ARRAY_SIZE(algs));
res                92 arch/arm/crypto/sha256_glue.c 	if (res < 0)
res                93 arch/arm/crypto/sha256_glue.c 		return res;
res                96 arch/arm/crypto/sha256_glue.c 		res = crypto_register_shashes(sha256_neon_algs,
res                99 arch/arm/crypto/sha256_glue.c 		if (res < 0)
res               103 arch/arm/crypto/sha256_glue.c 	return res;
res               111 arch/arm/include/asm/atomic.h 	unsigned long res;
res               121 arch/arm/include/asm/atomic.h 		    : "=&r" (res), "=&r" (oldval), "+Qo" (ptr->counter)
res               124 arch/arm/include/asm/atomic.h 	} while (res);
res               409 arch/arm/include/asm/atomic.h 	unsigned long res;
res               420 arch/arm/include/asm/atomic.h 		: "=&r" (res), "=&r" (oldval), "+Qo" (ptr->counter)
res               423 arch/arm/include/asm/atomic.h 	} while (res);
res                76 arch/arm/include/asm/bitops.h 	unsigned int res;
res                82 arch/arm/include/asm/bitops.h 	res = *p;
res                83 arch/arm/include/asm/bitops.h 	*p = res | mask;
res                86 arch/arm/include/asm/bitops.h 	return (res & mask) != 0;
res                93 arch/arm/include/asm/bitops.h 	unsigned int res;
res                99 arch/arm/include/asm/bitops.h 	res = *p;
res               100 arch/arm/include/asm/bitops.h 	*p = res & ~mask;
res               103 arch/arm/include/asm/bitops.h 	return (res & mask) != 0;
res               110 arch/arm/include/asm/bitops.h 	unsigned int res;
res               116 arch/arm/include/asm/bitops.h 	res = *p;
res               117 arch/arm/include/asm/bitops.h 	*p = res ^ mask;
res               120 arch/arm/include/asm/bitops.h 	return (res & mask) != 0;
res               159 arch/arm/include/asm/cmpxchg.h 	unsigned long oldval, res;
res               172 arch/arm/include/asm/cmpxchg.h 				: "=&r" (res), "=&r" (oldval)
res               175 arch/arm/include/asm/cmpxchg.h 		} while (res);
res               184 arch/arm/include/asm/cmpxchg.h 				: "=&r" (res), "=&r" (oldval)
res               187 arch/arm/include/asm/cmpxchg.h 		} while (res);
res               197 arch/arm/include/asm/cmpxchg.h 				: "=&r" (res), "=&r" (oldval)
res               200 arch/arm/include/asm/cmpxchg.h 		} while (res);
res               249 arch/arm/include/asm/cmpxchg.h 	unsigned long res;
res               262 arch/arm/include/asm/cmpxchg.h 	: "=&r" (res), "=&r" (oldval), "+Qo" (*ptr)
res                77 arch/arm/include/asm/div64.h 	unsigned long long res;
res                83 arch/arm/include/asm/div64.h 			: "=&r" (res)
res                87 arch/arm/include/asm/div64.h 		res = m;
res                90 arch/arm/include/asm/div64.h 			: "+&r" (res)
res                98 arch/arm/include/asm/div64.h 			: "=&r" (res), "+&r" (tmp)
res               108 arch/arm/include/asm/div64.h 			: "+&r" (res)
res               118 arch/arm/include/asm/div64.h 			: "+&r" (res), "+&r" (tmp)
res               123 arch/arm/include/asm/div64.h 	return res;
res               194 arch/arm/include/asm/ecard.h void __iomem *ecardm_iomap(struct expansion_card *ec, unsigned int res,
res               390 arch/arm/include/asm/hardware/sa1111.h 	struct resource	res;
res                32 arch/arm/include/asm/mach/pci.h 					  const struct resource *res,
res                83 arch/arm/include/asm/spinlock.h 	unsigned long contended, res;
res                94 arch/arm/include/asm/spinlock.h 		: "=&r" (slock), "=&r" (contended), "=&r" (res)
res                97 arch/arm/include/asm/spinlock.h 	} while (res);
res               160 arch/arm/include/asm/spinlock.h 	unsigned long contended, res;
res               169 arch/arm/include/asm/spinlock.h 		: "=&r" (contended), "=&r" (res)
res               172 arch/arm/include/asm/spinlock.h 	} while (res);
res               250 arch/arm/include/asm/spinlock.h 	unsigned long contended, res;
res               259 arch/arm/include/asm/spinlock.h 		: "=&r" (contended), "=&r" (res)
res               262 arch/arm/include/asm/spinlock.h 	} while (res);
res               434 arch/arm/kernel/bios32.c 		if (resource_type(window->res) == IORESOURCE_IO)
res               592 arch/arm/kernel/bios32.c resource_size_t pcibios_align_resource(void *data, const struct resource *res,
res               596 arch/arm/kernel/bios32.c 	resource_size_t start = res->start;
res               599 arch/arm/kernel/bios32.c 	if (res->flags & IORESOURCE_IO && start & 0x300)
res               607 arch/arm/kernel/bios32.c 		return host_bridge->align_resource(dev, res,
res               847 arch/arm/kernel/setup.c 	struct resource *res;
res               866 arch/arm/kernel/setup.c 			res = memblock_alloc(sizeof(*res), SMP_CACHE_BYTES);
res               867 arch/arm/kernel/setup.c 			if (!res)
res               869 arch/arm/kernel/setup.c 				      __func__, sizeof(*res));
res               870 arch/arm/kernel/setup.c 			res->name = "System RAM (boot alias)";
res               871 arch/arm/kernel/setup.c 			res->start = boot_alias_start;
res               872 arch/arm/kernel/setup.c 			res->end = phys_to_idmap(end);
res               873 arch/arm/kernel/setup.c 			res->flags = IORESOURCE_MEM | IORESOURCE_BUSY;
res               874 arch/arm/kernel/setup.c 			request_resource(&iomem_resource, res);
res               877 arch/arm/kernel/setup.c 		res = memblock_alloc(sizeof(*res), SMP_CACHE_BYTES);
res               878 arch/arm/kernel/setup.c 		if (!res)
res               880 arch/arm/kernel/setup.c 			      sizeof(*res));
res               881 arch/arm/kernel/setup.c 		res->name  = "System RAM";
res               882 arch/arm/kernel/setup.c 		res->start = start;
res               883 arch/arm/kernel/setup.c 		res->end = end;
res               884 arch/arm/kernel/setup.c 		res->flags = IORESOURCE_SYSTEM_RAM | IORESOURCE_BUSY;
res               886 arch/arm/kernel/setup.c 		request_resource(&iomem_resource, res);
res               888 arch/arm/kernel/setup.c 		if (kernel_code.start >= res->start &&
res               889 arch/arm/kernel/setup.c 		    kernel_code.end <= res->end)
res               890 arch/arm/kernel/setup.c 			request_resource(res, &kernel_code);
res               891 arch/arm/kernel/setup.c 		if (kernel_data.start >= res->start &&
res               892 arch/arm/kernel/setup.c 		    kernel_data.end <= res->end)
res               893 arch/arm/kernel/setup.c 			request_resource(res, &kernel_data);
res              1194 arch/arm/kernel/setup.c 	struct proc_dir_entry *res;
res              1196 arch/arm/kernel/setup.c 	res = proc_mkdir("cpu", NULL);
res              1197 arch/arm/kernel/setup.c 	if (!res)
res                35 arch/arm/kernel/swp_emulate.c #define __user_swpX_asm(data, addr, res, temp, B)		\
res                53 arch/arm/kernel/swp_emulate.c 	: "=&r" (res), "+r" (data), "=&r" (temp)		\
res                57 arch/arm/kernel/swp_emulate.c #define __user_swp_asm(data, addr, res, temp) \
res                58 arch/arm/kernel/swp_emulate.c 	__user_swpX_asm(data, addr, res, temp, "")
res                59 arch/arm/kernel/swp_emulate.c #define __user_swpb_asm(data, addr, res, temp) \
res                60 arch/arm/kernel/swp_emulate.c 	__user_swpX_asm(data, addr, res, temp, "b")
res               119 arch/arm/kernel/swp_emulate.c 	unsigned int res = 0;
res               133 arch/arm/kernel/swp_emulate.c 			__user_swpb_asm(*data, address, res, temp);
res               135 arch/arm/kernel/swp_emulate.c 			__user_swp_asm(*data, address, res, temp);
res               138 arch/arm/kernel/swp_emulate.c 		if (likely(res != -EAGAIN) || signal_pending(current))
res               144 arch/arm/kernel/swp_emulate.c 	if (res == 0) {
res               151 arch/arm/kernel/swp_emulate.c 	return res;
res               162 arch/arm/kernel/swp_emulate.c 	unsigned int res = 0;
res               166 arch/arm/kernel/swp_emulate.c 	res = arm_check_condition(instr, regs->ARM_cpsr);
res               167 arch/arm/kernel/swp_emulate.c 	switch (res) {
res               201 arch/arm/kernel/swp_emulate.c 		res = -EFAULT;
res               203 arch/arm/kernel/swp_emulate.c 		res = emulate_swpX(address, &data, type);
res               206 arch/arm/kernel/swp_emulate.c 	if (res == 0) {
res               214 arch/arm/kernel/swp_emulate.c 	} else if (res == -EFAULT) {
res                68 arch/arm/lib/delay.c 	u64 res;
res                72 arch/arm/lib/delay.c 	res = cyc_to_ns(1ULL, new_mult, new_shift);
res                74 arch/arm/lib/delay.c 	if (res > 1000) {
res                76 arch/arm/lib/delay.c 			timer, res);
res                80 arch/arm/lib/delay.c 	if (!delay_calibrated && (!delay_res || (res < delay_res))) {
res                81 arch/arm/lib/delay.c 		pr_info("Switching to timer-based delay loop, resolution %lluns\n", res);
res                84 arch/arm/lib/delay.c 		delay_res			= res;
res                47 arch/arm/mach-artpec/board-artpec6.c 	struct arm_smccc_res res;
res                50 arch/arm/mach-artpec/board-artpec6.c 		      0, 0, 0, 0, &res);
res                52 arch/arm/mach-artpec/board-artpec6.c 	WARN_ON(res.a0);
res                61 arch/arm/mach-davinci/davinci.h int davinci_gpio_register(struct resource *res, int size, void *pdata);
res               211 arch/arm/mach-davinci/devices-da8xx.c 	.res		= da8xx_edma0_resources,
res               221 arch/arm/mach-davinci/devices-da8xx.c 	.res		= da850_edma1_resources,
res               299 arch/arm/mach-davinci/devices.c int davinci_gpio_register(struct resource *res, int size, void *pdata)
res               301 arch/arm/mach-davinci/devices.c 	davinci_gpio_device.resource = res;
res               294 arch/arm/mach-davinci/dm355.c 	.res		= edma_resources,
res               538 arch/arm/mach-davinci/dm365.c 	.res		= edma_resources,
res               281 arch/arm/mach-davinci/dm644x.c 	.res		= edma_resources,
res               294 arch/arm/mach-davinci/dm646x.c 	.res		= edma_resources,
res                31 arch/arm/mach-dove/pcie.c 	struct resource		res;
res                67 arch/arm/mach-dove/pcie.c 	pp->res.name = pp->mem_space_name;
res                69 arch/arm/mach-dove/pcie.c 		pp->res.start = DOVE_PCIE0_MEM_PHYS_BASE;
res                70 arch/arm/mach-dove/pcie.c 		pp->res.end = pp->res.start + DOVE_PCIE0_MEM_SIZE - 1;
res                72 arch/arm/mach-dove/pcie.c 		pp->res.start = DOVE_PCIE1_MEM_PHYS_BASE;
res                73 arch/arm/mach-dove/pcie.c 		pp->res.end = pp->res.start + DOVE_PCIE1_MEM_SIZE - 1;
res                75 arch/arm/mach-dove/pcie.c 	pp->res.flags = IORESOURCE_MEM;
res                76 arch/arm/mach-dove/pcie.c 	if (request_resource(&iomem_resource, &pp->res))
res                78 arch/arm/mach-dove/pcie.c 	pci_add_resource_offset(&sys->resources, &pp->res, sys->mem_offset);
res               206 arch/arm/mach-dove/pcie.c 		memset(&pp->res, 0, sizeof(pp->res));
res               235 arch/arm/mach-footbridge/common.c unsigned long __virt_to_bus(unsigned long res)
res               237 arch/arm/mach-footbridge/common.c 	WARN_ON(res < PAGE_OFFSET || res >= (unsigned long)high_memory);
res               239 arch/arm/mach-footbridge/common.c 	return res + (fb_bus_sdram_offset() - PAGE_OFFSET);
res               243 arch/arm/mach-footbridge/common.c unsigned long __bus_to_virt(unsigned long res)
res               245 arch/arm/mach-footbridge/common.c 	res = res - (fb_bus_sdram_offset() - PAGE_OFFSET);
res               247 arch/arm/mach-footbridge/common.c 	WARN_ON(res < PAGE_OFFSET || res >= (unsigned long)high_memory);
res               249 arch/arm/mach-footbridge/common.c 	return res;
res               247 arch/arm/mach-footbridge/dc21285.c 	struct resource *res;
res               252 arch/arm/mach-footbridge/dc21285.c 	res = kcalloc(2, sizeof(struct resource), GFP_KERNEL);
res               253 arch/arm/mach-footbridge/dc21285.c 	if (!res) {
res               258 arch/arm/mach-footbridge/dc21285.c 	res[0].flags = IORESOURCE_MEM;
res               259 arch/arm/mach-footbridge/dc21285.c 	res[0].name  = "Footbridge non-prefetch";
res               260 arch/arm/mach-footbridge/dc21285.c 	res[1].flags = IORESOURCE_MEM | IORESOURCE_PREFETCH;
res               261 arch/arm/mach-footbridge/dc21285.c 	res[1].name  = "Footbridge prefetch";
res               263 arch/arm/mach-footbridge/dc21285.c 	allocate_resource(&iomem_resource, &res[1], 0x20000000,
res               265 arch/arm/mach-footbridge/dc21285.c 	allocate_resource(&iomem_resource, &res[0], 0x40000000,
res               270 arch/arm/mach-footbridge/dc21285.c 	pci_add_resource_offset(&sys->resources, &res[0], sys->mem_offset);
res               271 arch/arm/mach-footbridge/dc21285.c 	pci_add_resource_offset(&sys->resources, &res[1], sys->mem_offset);
res                70 arch/arm/mach-highbank/highbank.c 	struct resource *res;
res                85 arch/arm/mach-highbank/highbank.c 		res = platform_get_resource(to_platform_device(dev),
res                87 arch/arm/mach-highbank/highbank.c 		if (res) {
res                88 arch/arm/mach-highbank/highbank.c 			if (res->start == 0xfff50000)
res                90 arch/arm/mach-highbank/highbank.c 			else if (res->start == 0xfff51000)
res                16 arch/arm/mach-imx/devices/devices-common.h 		const struct resource *res, unsigned int num_resources,
res                22 arch/arm/mach-imx/devices/devices-common.h 		.res = res,
res                33 arch/arm/mach-imx/devices/devices-common.h 		const struct resource *res, unsigned int num_resources,
res                37 arch/arm/mach-imx/devices/devices-common.h 			name, id, res, num_resources, data, size_data, 0);
res                34 arch/arm/mach-imx/devices/platform-fec.c 	struct resource res[] = {
res                47 arch/arm/mach-imx/devices/platform-fec.c 			res, ARRAY_SIZE(res),
res                31 arch/arm/mach-imx/devices/platform-flexcan.c 	struct resource res[] = {
res                44 arch/arm/mach-imx/devices/platform-flexcan.c 			res, ARRAY_SIZE(res), NULL, 0);
res                37 arch/arm/mach-imx/devices/platform-fsl-usb2-udc.c 	struct resource res[] = {
res                49 arch/arm/mach-imx/devices/platform-fsl-usb2-udc.c 			res, ARRAY_SIZE(res),
res                12 arch/arm/mach-imx/devices/platform-gpio-mxc.c 	struct resource res[] = {
res                29 arch/arm/mach-imx/devices/platform-gpio-mxc.c 			name, id, res, ARRAY_SIZE(res), NULL, 0);
res                11 arch/arm/mach-imx/devices/platform-imx-dma.c 	struct resource res[] = {
res                28 arch/arm/mach-imx/devices/platform-imx-dma.c 			name, -1, res, ARRAY_SIZE(res), NULL, 0);
res                34 arch/arm/mach-imx/devices/platform-imx-dma.c 	struct resource res[] = {
res                47 arch/arm/mach-imx/devices/platform-imx-dma.c 			-1, res, ARRAY_SIZE(res), pdata, sizeof(*pdata));
res                33 arch/arm/mach-imx/devices/platform-imx-fb.c 	struct resource res[] = {
res                45 arch/arm/mach-imx/devices/platform-imx-fb.c 			res, ARRAY_SIZE(res),
res                59 arch/arm/mach-imx/devices/platform-imx-i2c.c 	struct resource res[] = {
res                72 arch/arm/mach-imx/devices/platform-imx-i2c.c 			res, ARRAY_SIZE(res),
res                40 arch/arm/mach-imx/devices/platform-imx-keypad.c 	struct resource res[] = {
res                53 arch/arm/mach-imx/devices/platform-imx-keypad.c 			res, ARRAY_SIZE(res), pdata, sizeof(*pdata));
res                61 arch/arm/mach-imx/devices/platform-imx-ssi.c 	struct resource res[] = {
res                84 arch/arm/mach-imx/devices/platform-imx-ssi.c 			res, ARRAY_SIZE(res),
res                77 arch/arm/mach-imx/devices/platform-imx-uart.c 	struct resource res[] = {
res                91 arch/arm/mach-imx/devices/platform-imx-uart.c 			res, ARRAY_SIZE(res), pdata, sizeof(*pdata));
res                43 arch/arm/mach-imx/devices/platform-imx2-wdt.c 	struct resource res[] = {
res                51 arch/arm/mach-imx/devices/platform-imx2-wdt.c 			res, ARRAY_SIZE(res), NULL, 0);
res                24 arch/arm/mach-imx/devices/platform-imx21-hcd.c 	struct resource res[] = {
res                36 arch/arm/mach-imx/devices/platform-imx21-hcd.c 			res, ARRAY_SIZE(res),
res                21 arch/arm/mach-imx/devices/platform-imx27-coda.c 	struct resource res[] = {
res                32 arch/arm/mach-imx/devices/platform-imx27-coda.c 	return imx_add_platform_device_dmamask("coda-imx27", 0, res, 2, NULL,
res                34 arch/arm/mach-imx/devices/platform-ipu-core.c 	struct resource res[] = {
res                55 arch/arm/mach-imx/devices/platform-ipu-core.c 			res, ARRAY_SIZE(res), NULL, 0);
res                62 arch/arm/mach-imx/devices/platform-ipu-core.c 	struct resource res[] = {
res                86 arch/arm/mach-imx/devices/platform-ipu-core.c 	ret = platform_device_add_resources(pdev, res, ARRAY_SIZE(res));
res               111 arch/arm/mach-imx/devices/platform-ipu-core.c 	struct resource res[] = {
res               125 arch/arm/mach-imx/devices/platform-ipu-core.c 			res, ARRAY_SIZE(res), pdata, sizeof(*pdata),
res                36 arch/arm/mach-imx/devices/platform-mx2-camera.c 	struct resource res[] = {
res                56 arch/arm/mach-imx/devices/platform-mx2-camera.c 			res, data->iobaseemmaprp ? 4 : 2,
res                24 arch/arm/mach-imx/devices/platform-mx2-emma.c 	struct resource res[] = {
res                36 arch/arm/mach-imx/devices/platform-mx2-emma.c 			res, 2, NULL, 0, DMA_BIT_MASK(32));
res                47 arch/arm/mach-imx/devices/platform-mxc-ehci.c 	struct resource res[] = {
res                59 arch/arm/mach-imx/devices/platform-mxc-ehci.c 			res, ARRAY_SIZE(res),
res                54 arch/arm/mach-imx/devices/platform-mxc-mmc.c 	struct resource res[] = {
res                70 arch/arm/mach-imx/devices/platform-mxc-mmc.c 			res, ARRAY_SIZE(res),
res                54 arch/arm/mach-imx/devices/platform-mxc_nand.c 	struct resource res[] = {
res                70 arch/arm/mach-imx/devices/platform-mxc_nand.c 			res, ARRAY_SIZE(res) - !data->axibase,
res                29 arch/arm/mach-imx/devices/platform-mxc_rtc.c 	struct resource res[] = {
res                42 arch/arm/mach-imx/devices/platform-mxc_rtc.c 			res, ARRAY_SIZE(res), NULL, 0);
res                37 arch/arm/mach-imx/devices/platform-mxc_w1.c 	struct resource res[] = {
res                46 arch/arm/mach-imx/devices/platform-mxc_w1.c 			res, ARRAY_SIZE(res), NULL, 0);
res                30 arch/arm/mach-imx/devices/platform-pata_imx.c 	struct resource res[] = {
res                43 arch/arm/mach-imx/devices/platform-pata_imx.c 			res, ARRAY_SIZE(res), NULL, 0);
res                42 arch/arm/mach-imx/devices/platform-sdhci-esdhc-imx.c 	struct resource res[] = {
res                61 arch/arm/mach-imx/devices/platform-sdhci-esdhc-imx.c 	return imx_add_platform_device_dmamask(data->devid, data->id, res,
res                62 arch/arm/mach-imx/devices/platform-sdhci-esdhc-imx.c 			ARRAY_SIZE(res), pdata, sizeof(*pdata),
res                63 arch/arm/mach-imx/devices/platform-spi_imx.c 	struct resource res[] = {
res                76 arch/arm/mach-imx/devices/platform-spi_imx.c 			res, ARRAY_SIZE(res), pdata, sizeof(*pdata));
res               155 arch/arm/mach-imx/mach-mx21ads.c 	.res = mx21ads_cs8900_resources,
res               108 arch/arm/mach-imx/mach-mx31ads.c 	.res = mx31ads_cs8900_resources,
res               440 arch/arm/mach-imx/pm-imx6.c 	struct resource res;
res               447 arch/arm/mach-imx/pm-imx6.c 	ret = of_address_to_resource(node, 0, &res);
res               451 arch/arm/mach-imx/pm-imx6.c 	base->pbase = res.start;
res               452 arch/arm/mach-imx/pm-imx6.c 	base->vbase = ioremap(res.start, resource_size(&res));
res               207 arch/arm/mach-integrator/impd1.c 	unsigned long framebase = fb->dev->res.start + 0x01000000;
res               111 arch/arm/mach-integrator/integrator_ap.c 	u32 phybase = dev->res.start;
res               187 arch/arm/mach-iop32x/pci.c 	struct resource *res;
res               192 arch/arm/mach-iop32x/pci.c 	res = kzalloc(sizeof(struct resource), GFP_KERNEL);
res               193 arch/arm/mach-iop32x/pci.c 	if (!res)
res               196 arch/arm/mach-iop32x/pci.c 	res->start = IOP3XX_PCI_LOWER_MEM_PA;
res               197 arch/arm/mach-iop32x/pci.c 	res->end   = IOP3XX_PCI_LOWER_MEM_PA + IOP3XX_PCI_MEM_WINDOW_SIZE - 1;
res               198 arch/arm/mach-iop32x/pci.c 	res->name  = "IOP3XX PCI Memory Space";
res               199 arch/arm/mach-iop32x/pci.c 	res->flags = IORESOURCE_MEM;
res               200 arch/arm/mach-iop32x/pci.c 	request_resource(&iomem_resource, res);
res               207 arch/arm/mach-iop32x/pci.c 	pci_add_resource_offset(&sys->resources, res, sys->mem_offset);
res               415 arch/arm/mach-ixp4xx/common-pci.c 	struct resource *res;
res               420 arch/arm/mach-ixp4xx/common-pci.c 	res = kcalloc(2, sizeof(*res), GFP_KERNEL);
res               421 arch/arm/mach-ixp4xx/common-pci.c 	if (res == NULL) {
res               431 arch/arm/mach-ixp4xx/common-pci.c 	res[0].name = "PCI I/O Space";
res               432 arch/arm/mach-ixp4xx/common-pci.c 	res[0].start = 0x00000000;
res               433 arch/arm/mach-ixp4xx/common-pci.c 	res[0].end = 0x0000ffff;
res               434 arch/arm/mach-ixp4xx/common-pci.c 	res[0].flags = IORESOURCE_IO;
res               436 arch/arm/mach-ixp4xx/common-pci.c 	res[1].name = "PCI Memory Space";
res               437 arch/arm/mach-ixp4xx/common-pci.c 	res[1].start = PCIBIOS_MIN_MEM;
res               438 arch/arm/mach-ixp4xx/common-pci.c 	res[1].end = PCIBIOS_MAX_MEM;
res               439 arch/arm/mach-ixp4xx/common-pci.c 	res[1].flags = IORESOURCE_MEM;
res               441 arch/arm/mach-ixp4xx/common-pci.c 	request_resource(&ioport_resource, &res[0]);
res               442 arch/arm/mach-ixp4xx/common-pci.c 	request_resource(&iomem_resource, &res[1]);
res               444 arch/arm/mach-ixp4xx/common-pci.c 	pci_add_resource_offset(&sys->resources, &res[0], sys->io_offset);
res               445 arch/arm/mach-ixp4xx/common-pci.c 	pci_add_resource_offset(&sys->resources, &res[1], sys->mem_offset);
res                21 arch/arm/mach-mmp/devices.c 	struct resource res[2 + MAX_RESOURCE_DMA];
res                30 arch/arm/mach-mmp/devices.c 	memset(res, 0, sizeof(res));
res                33 arch/arm/mach-mmp/devices.c 		res[nres].start	= desc->start;
res                34 arch/arm/mach-mmp/devices.c 		res[nres].end	= desc->start + desc->size - 1;
res                35 arch/arm/mach-mmp/devices.c 		res[nres].flags	= IORESOURCE_MEM;
res                40 arch/arm/mach-mmp/devices.c 		res[nres].start	= desc->irq;
res                41 arch/arm/mach-mmp/devices.c 		res[nres].end	= desc->irq;
res                42 arch/arm/mach-mmp/devices.c 		res[nres].flags	= IORESOURCE_IRQ;
res                50 arch/arm/mach-mmp/devices.c 		res[nres].start	= desc->dma[i];
res                51 arch/arm/mach-mmp/devices.c 		res[nres].end	= desc->dma[i];
res                52 arch/arm/mach-mmp/devices.c 		res[nres].flags	= IORESOURCE_DMA;
res                55 arch/arm/mach-mmp/devices.c 	ret = platform_device_add_resources(pdev, res, nres);
res                65 arch/arm/mach-mmp/sram.c 	struct resource *res;
res                75 arch/arm/mach-mmp/sram.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                76 arch/arm/mach-mmp/sram.c 	if (res == NULL) {
res                82 arch/arm/mach-mmp/sram.c 	if (!resource_size(res))
res                85 arch/arm/mach-mmp/sram.c 	info->sram_phys   = (phys_addr_t)res->start;
res                86 arch/arm/mach-mmp/sram.c 	info->sram_size   = resource_size(res);
res                33 arch/arm/mach-mv78xx0/pcie.c 	struct resource		res;
res                83 arch/arm/mach-mv78xx0/pcie.c 		pp->res.name = pp->mem_space_name;
res                84 arch/arm/mach-mv78xx0/pcie.c 		pp->res.flags = IORESOURCE_MEM;
res                85 arch/arm/mach-mv78xx0/pcie.c 		pp->res.start = start;
res                86 arch/arm/mach-mv78xx0/pcie.c 		pp->res.end = start + size_each - 1;
res                89 arch/arm/mach-mv78xx0/pcie.c 		if (request_resource(&iomem_resource, &pp->res))
res                94 arch/arm/mach-mv78xx0/pcie.c 					    pp->res.start, resource_size(&pp->res));
res               120 arch/arm/mach-mv78xx0/pcie.c 	pci_add_resource_offset(&sys->resources, &pp->res, sys->mem_offset);
res               246 arch/arm/mach-mv78xx0/pcie.c 		memset(&pp->res, 0, sizeof(pp->res));
res               122 arch/arm/mach-mvebu/coherency.c 	struct resource res;
res               125 arch/arm/mach-mvebu/coherency.c 	of_address_to_resource(np, 0, &res);
res               126 arch/arm/mach-mvebu/coherency.c 	coherency_phys_base = res.start;
res                46 arch/arm/mach-mvebu/cpu-reset.c 	struct resource res;
res                48 arch/arm/mach-mvebu/cpu-reset.c 	if (of_address_to_resource(np, res_idx, &res)) {
res                53 arch/arm/mach-mvebu/cpu-reset.c 	if (!request_mem_region(res.start, resource_size(&res),
res                59 arch/arm/mach-mvebu/cpu-reset.c 	cpu_reset_base = ioremap(res.start, resource_size(&res));
res                62 arch/arm/mach-mvebu/cpu-reset.c 		release_mem_region(res.start, resource_size(&res));
res                66 arch/arm/mach-mvebu/cpu-reset.c 	cpu_reset_size = resource_size(&res);
res               118 arch/arm/mach-mvebu/platsmp.c 	struct resource res;
res               140 arch/arm/mach-mvebu/platsmp.c 	err = of_address_to_resource(node, 0, &res);
res               145 arch/arm/mach-mvebu/platsmp.c 	if (res.start != AXP_BOOTROM_BASE ||
res               146 arch/arm/mach-mvebu/platsmp.c 	    resource_size(&res) != AXP_BOOTROM_SIZE)
res               240 arch/arm/mach-mvebu/pm.c 	struct resource res;
res               247 arch/arm/mach-mvebu/pm.c 	if (of_address_to_resource(np, 0, &res)) {
res               252 arch/arm/mach-mvebu/pm.c 	if (!request_mem_region(res.start, resource_size(&res),
res               258 arch/arm/mach-mvebu/pm.c 	sdram_ctrl = ioremap(res.start, resource_size(&res));
res               260 arch/arm/mach-mvebu/pm.c 		release_mem_region(res.start, resource_size(&res));
res               164 arch/arm/mach-mvebu/pmsu.c 	struct resource res;
res               173 arch/arm/mach-mvebu/pmsu.c 	if (of_address_to_resource(np, 0, &res)) {
res               181 arch/arm/mach-mvebu/pmsu.c 		res.start = res.start - PMSU_BASE_OFFSET;
res               182 arch/arm/mach-mvebu/pmsu.c 		res.end = res.start + PMSU_REG_SIZE - 1;
res               185 arch/arm/mach-mvebu/pmsu.c 	if (!request_mem_region(res.start, resource_size(&res),
res               192 arch/arm/mach-mvebu/pmsu.c 	pmsu_mp_phys_base = res.start;
res               194 arch/arm/mach-mvebu/pmsu.c 	pmsu_mp_base = ioremap(res.start, resource_size(&res));
res               197 arch/arm/mach-mvebu/pmsu.c 		release_mem_region(res.start, resource_size(&res));
res               169 arch/arm/mach-mvebu/system-controller.c 		struct resource res;
res               171 arch/arm/mach-mvebu/system-controller.c 		of_address_to_resource(np, 0, &res);
res               172 arch/arm/mach-mvebu/system-controller.c 		system_controller_phys_base = res.start;
res               138 arch/arm/mach-omap1/devices.c 	struct resource res[OMAP_MMC_NR_RES];
res               145 arch/arm/mach-omap1/devices.c 	memset(res, 0, OMAP_MMC_NR_RES * sizeof(struct resource));
res               146 arch/arm/mach-omap1/devices.c 	res[0].start = base;
res               147 arch/arm/mach-omap1/devices.c 	res[0].end = base + size - 1;
res               148 arch/arm/mach-omap1/devices.c 	res[0].flags = IORESOURCE_MEM;
res               149 arch/arm/mach-omap1/devices.c 	res[1].start = res[1].end = irq;
res               150 arch/arm/mach-omap1/devices.c 	res[1].flags = IORESOURCE_IRQ;
res               151 arch/arm/mach-omap1/devices.c 	res[2].start = rx_req;
res               152 arch/arm/mach-omap1/devices.c 	res[2].name = "rx";
res               153 arch/arm/mach-omap1/devices.c 	res[2].flags = IORESOURCE_DMA;
res               154 arch/arm/mach-omap1/devices.c 	res[3].start = tx_req;
res               155 arch/arm/mach-omap1/devices.c 	res[3].name = "tx";
res               156 arch/arm/mach-omap1/devices.c 	res[3].flags = IORESOURCE_DMA;
res               165 arch/arm/mach-omap1/devices.c 	ret = platform_device_add_resources(pdev, res, ARRAY_SIZE(res));
res                79 arch/arm/mach-omap1/dma.c static struct resource res[] __initdata = {
res               260 arch/arm/mach-omap1/dma.c 	.res = res,
res               324 arch/arm/mach-omap1/dma.c 	dma_base = ioremap(res[0].start, resource_size(&res[0]));
res               331 arch/arm/mach-omap1/dma.c 	ret = platform_device_add_resources(pdev, res, ARRAY_SIZE(res));
res               145 arch/arm/mach-omap1/fpga.c 	int i, res;
res               179 arch/arm/mach-omap1/fpga.c 	res = gpio_request(13, "FPGA irq");
res               180 arch/arm/mach-omap1/fpga.c 	if (res) {
res               221 arch/arm/mach-omap1/gpio16xx.c 	struct resource *res;
res               239 arch/arm/mach-omap1/gpio16xx.c 		res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               240 arch/arm/mach-omap1/gpio16xx.c 		if (unlikely(!res)) {
res               245 arch/arm/mach-omap1/gpio16xx.c 		base = ioremap(res->start, resource_size(res));
res                39 arch/arm/mach-omap1/i2c.c 	struct resource *res;
res                50 arch/arm/mach-omap1/i2c.c 	res = i2c_resources;
res                51 arch/arm/mach-omap1/i2c.c 	res[0].start = OMAP1_I2C_BASE;
res                52 arch/arm/mach-omap1/i2c.c 	res[0].end = res[0].start + OMAP_I2C_SIZE;
res                53 arch/arm/mach-omap1/i2c.c 	res[0].flags = IORESOURCE_MEM;
res                54 arch/arm/mach-omap1/i2c.c 	res[1].start = INT_I2C;
res                55 arch/arm/mach-omap1/i2c.c 	res[1].flags = IORESOURCE_IRQ;
res                56 arch/arm/mach-omap1/i2c.c 	pdev->resource = res;
res               384 arch/arm/mach-omap1/mcbsp.c static void omap_mcbsp_register_board_cfg(struct resource *res, int res_count,
res               403 arch/arm/mach-omap1/mcbsp.c 		platform_device_add_resources(new_mcbsp, &res[i * res_count],
res                69 arch/arm/mach-omap1/timer.c 		struct resource res[2];
res               120 arch/arm/mach-omap1/timer.c 		memset(res, 0, 2 * sizeof(struct resource));
res               121 arch/arm/mach-omap1/timer.c 		res[0].start = base;
res               122 arch/arm/mach-omap1/timer.c 		res[0].end = base + 0x46;
res               123 arch/arm/mach-omap1/timer.c 		res[0].flags = IORESOURCE_MEM;
res               124 arch/arm/mach-omap1/timer.c 		res[1].start = irq;
res               125 arch/arm/mach-omap1/timer.c 		res[1].end = irq;
res               126 arch/arm/mach-omap1/timer.c 		res[1].flags = IORESOURCE_IRQ;
res               127 arch/arm/mach-omap1/timer.c 		ret = platform_device_add_resources(pdev, res,
res               128 arch/arm/mach-omap1/timer.c 				ARRAY_SIZE(res));
res               328 arch/arm/mach-omap2/cm_common.c 	struct resource res;
res               335 arch/arm/mach-omap2/cm_common.c 		ret = of_address_to_resource(np, 0, &res);
res               345 arch/arm/mach-omap2/cm_common.c 		data->mem = ioremap(res.start, resource_size(&res));
res               348 arch/arm/mach-omap2/cm_common.c 			mem->pa = res.start + data->offset;
res               255 arch/arm/mach-omap2/dma.c 	omap_dma_dev_info.res = pdev->resource;
res                58 arch/arm/mach-omap2/fb.c 	const struct resource *res;
res                62 arch/arm/mach-omap2/fb.c 		res = omap2_vrfb_resources;
res                65 arch/arm/mach-omap2/fb.c 		res = omap3_vrfb_resources;
res                72 arch/arm/mach-omap2/fb.c 			res, num_res, NULL, 0);
res                51 arch/arm/mach-omap2/hsmmc.c 	int res;
res                62 arch/arm/mach-omap2/hsmmc.c 		res = omap_device_register(pdev);
res                63 arch/arm/mach-omap2/hsmmc.c 		if (res)
res                81 arch/arm/mach-omap2/hsmmc.c 	int res;
res                87 arch/arm/mach-omap2/hsmmc.c 	res = omap_hsmmc_pdata_init(hsmmcinfo, mmc_data);
res                88 arch/arm/mach-omap2/hsmmc.c 	if (res < 0)
res                92 arch/arm/mach-omap2/hsmmc.c 	res = snprintf(oh_name, MAX_OMAP_MMC_HWMOD_NAME_LEN,
res                94 arch/arm/mach-omap2/hsmmc.c 	WARN(res >= MAX_OMAP_MMC_HWMOD_NAME_LEN,
res               121 arch/arm/mach-omap2/hsmmc.c 	res = platform_device_add_data(pdev, mmc_data,
res               123 arch/arm/mach-omap2/hsmmc.c 	if (res) {
res               130 arch/arm/mach-omap2/hsmmc.c 	res = omap_device_register(pdev);
res               131 arch/arm/mach-omap2/hsmmc.c 	if (res) {
res               138 arch/arm/mach-omap2/omap_device.c 	struct resource res;
res               157 arch/arm/mach-omap2/omap_device.c 	    !omap_hwmod_parse_module_range(NULL, node, &res))
res               398 arch/arm/mach-omap2/omap_device.c 	struct resource *res;
res               411 arch/arm/mach-omap2/omap_device.c 	res = kcalloc(2, sizeof(*res), GFP_KERNEL);
res               412 arch/arm/mach-omap2/omap_device.c 	if (!res)
res               416 arch/arm/mach-omap2/omap_device.c 	error = omap_hwmod_parse_module_range(oh, np, res);
res               420 arch/arm/mach-omap2/omap_device.c 		error = of_address_to_resource(np, 0, res);
res               425 arch/arm/mach-omap2/omap_device.c 	res[0].name = "mpu";
res               448 arch/arm/mach-omap2/omap_device.c 	res[1].start = irq;
res               449 arch/arm/mach-omap2/omap_device.c 	res[1].end = irq;
res               450 arch/arm/mach-omap2/omap_device.c 	res[1].flags = IORESOURCE_IRQ;
res               451 arch/arm/mach-omap2/omap_device.c 	res[1].name = "0";
res               453 arch/arm/mach-omap2/omap_device.c 	error = platform_device_add_resources(pdev, res, 2);
res               456 arch/arm/mach-omap2/omap_device.c 	kfree(res);
res              2132 arch/arm/mach-omap2/omap_hwmod.c 	int count, i, res;
res              2140 arch/arm/mach-omap2/omap_hwmod.c 		res = of_property_read_string_index(np, "ti,hwmods",
res              2142 arch/arm/mach-omap2/omap_hwmod.c 		if (res)
res              2171 arch/arm/mach-omap2/omap_hwmod.c 	int res;
res              2173 arch/arm/mach-omap2/omap_hwmod.c 	res = of_dev_find_hwmod(np, oh);
res              2174 arch/arm/mach-omap2/omap_hwmod.c 	if (res >= 0) {
res              2176 arch/arm/mach-omap2/omap_hwmod.c 		*index = res;
res              2184 arch/arm/mach-omap2/omap_hwmod.c 		res = of_dev_hwmod_lookup(np0, oh, &i, &fc);
res              2185 arch/arm/mach-omap2/omap_hwmod.c 		if (res == 0) {
res              2214 arch/arm/mach-omap2/omap_hwmod.c 				      struct resource *res)
res              2223 arch/arm/mach-omap2/omap_hwmod.c 	error = of_address_to_resource(child, oh->mpu_rt_idx, res);
res              2242 arch/arm/mach-omap2/omap_hwmod.c 				  struct resource *res)
res              2251 arch/arm/mach-omap2/omap_hwmod.c 	if (!res)
res              2292 arch/arm/mach-omap2/omap_hwmod.c 		omap_hwmod_fix_mpu_rt_idx(oh, np, res);
res              2297 arch/arm/mach-omap2/omap_hwmod.c 	res->start = base;
res              2298 arch/arm/mach-omap2/omap_hwmod.c 	res->end = base + size - 1;
res              2299 arch/arm/mach-omap2/omap_hwmod.c 	res->flags = IORESOURCE_MEM;
res              2325 arch/arm/mach-omap2/omap_hwmod.c 	struct resource res;
res              2347 arch/arm/mach-omap2/omap_hwmod.c 	error = omap_hwmod_parse_module_range(oh, np, &res);
res              2349 arch/arm/mach-omap2/omap_hwmod.c 		va_start = ioremap(res.start, resource_size(&res));
res               621 arch/arm/mach-omap2/omap_hwmod.h 				  struct resource *res);
res               642 arch/arm/mach-omap2/omap_hwmod.h int omap_hwmod_fill_resources(struct omap_hwmod *oh, struct resource *res);
res               644 arch/arm/mach-omap2/omap_hwmod.h 				   const char *name, struct resource *res);
res               104 arch/arm/mach-omap2/pdata-quirks.c 	int res;
res               106 arch/arm/mach-omap2/pdata-quirks.c 	res = gpio_request_one(gpio + 2, GPIOF_OUT_INIT_HIGH,
res               108 arch/arm/mach-omap2/pdata-quirks.c 	if (res)
res               109 arch/arm/mach-omap2/pdata-quirks.c 		return res;
res               748 arch/arm/mach-omap2/prm_common.c 	struct resource res;
res               754 arch/arm/mach-omap2/prm_common.c 		ret = of_address_to_resource(np, 0, &res);
res               758 arch/arm/mach-omap2/prm_common.c 		data->mem = ioremap(res.start, resource_size(&res));
res               762 arch/arm/mach-omap2/prm_common.c 			prm_base.pa = res.start + data->offset;
res               369 arch/arm/mach-omap2/timer.c 	int res;
res               381 arch/arm/mach-omap2/timer.c 	res = omap_dm_timer_init_one(&clkev, fck_source, property,
res               383 arch/arm/mach-omap2/timer.c 	BUG_ON(res);
res               507 arch/arm/mach-omap2/timer.c 	int res;
res               512 arch/arm/mach-omap2/timer.c 	res = omap_dm_timer_init_one(&clksrc, fck_source, property,
res               524 arch/arm/mach-omap2/timer.c 	BUG_ON(res);
res               144 arch/arm/mach-orion5x/pci.c 	struct resource *res;
res               172 arch/arm/mach-orion5x/pci.c 	res = kzalloc(sizeof(struct resource), GFP_KERNEL);
res               173 arch/arm/mach-orion5x/pci.c 	if (!res)
res               179 arch/arm/mach-orion5x/pci.c 	res->name = "PCIe Memory Space";
res               180 arch/arm/mach-orion5x/pci.c 	res->flags = IORESOURCE_MEM;
res               181 arch/arm/mach-orion5x/pci.c 	res->start = ORION5X_PCIE_MEM_PHYS_BASE;
res               182 arch/arm/mach-orion5x/pci.c 	res->end = res->start + ORION5X_PCIE_MEM_SIZE - 1;
res               183 arch/arm/mach-orion5x/pci.c 	if (request_resource(&iomem_resource, res))
res               185 arch/arm/mach-orion5x/pci.c 	pci_add_resource_offset(&sys->resources, res, sys->mem_offset);
res               468 arch/arm/mach-orion5x/pci.c 	struct resource *res;
res               490 arch/arm/mach-orion5x/pci.c 	res = kzalloc(sizeof(struct resource), GFP_KERNEL);
res               491 arch/arm/mach-orion5x/pci.c 	if (!res)
res               497 arch/arm/mach-orion5x/pci.c 	res->name = "PCI Memory Space";
res               498 arch/arm/mach-orion5x/pci.c 	res->flags = IORESOURCE_MEM;
res               499 arch/arm/mach-orion5x/pci.c 	res->start = ORION5X_PCI_MEM_PHYS_BASE;
res               500 arch/arm/mach-orion5x/pci.c 	res->end = res->start + ORION5X_PCI_MEM_SIZE - 1;
res               501 arch/arm/mach-orion5x/pci.c 	if (request_resource(&iomem_resource, res))
res               503 arch/arm/mach-orion5x/pci.c 	pci_add_resource_offset(&sys->resources, res, sys->mem_offset);
res               192 arch/arm/mach-pxa/am300epd.c 	u16 res = 0;
res               196 arch/arm/mach-pxa/am300epd.c 		res |= (gpio_get_value(DB0_GPIO_PIN + i)) ? (1 << i) : 0;
res               198 arch/arm/mach-pxa/am300epd.c 	return res;
res               236 arch/arm/mach-pxa/irq.c 	struct resource res;
res               252 arch/arm/mach-pxa/irq.c 	ret = of_address_to_resource(node, 0, &res);
res               257 arch/arm/mach-pxa/irq.c 	pxa_irq_base = io_p2v(res.start);
res               109 arch/arm/mach-pxa/pxa_cplds_irqs.c 	struct resource *res;
res               127 arch/arm/mach-pxa/pxa_cplds_irqs.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               128 arch/arm/mach-pxa/pxa_cplds_irqs.c 	fpga->base = devm_ioremap_resource(&pdev->dev, res);
res               170 arch/arm/mach-rockchip/platsmp.c 	struct resource res;
res               174 arch/arm/mach-rockchip/platsmp.c 	ret = of_address_to_resource(node, 0, &res);
res               181 arch/arm/mach-rockchip/platsmp.c 	rsize = resource_size(&res);
res               227 arch/arm/mach-rockchip/pm.c 	struct resource res;
res               264 arch/arm/mach-rockchip/pm.c 	ret = of_address_to_resource(sram_np, 0, &res);
res               270 arch/arm/mach-rockchip/pm.c 	rk3288_bootram_phy = res.start;
res               122 arch/arm/mach-rpc/ecard.c 	struct resource *res;
res               124 arch/arm/mach-rpc/ecard.c 	res = ec->slot_no == 8
res               130 arch/arm/mach-rpc/ecard.c 	ecard_loader_reset(res->start, ec->loader);
res               858 arch/arm/mach-rpc/ecard.c void __iomem *ecardm_iomap(struct expansion_card *ec, unsigned int res,
res               861 arch/arm/mach-rpc/ecard.c 	unsigned long start = ecard_resource_start(ec, res);
res               862 arch/arm/mach-rpc/ecard.c 	unsigned long end = ecard_resource_end(ec, res);
res               217 arch/arm/mach-s3c24xx/iotiming-s3c2410.c 	unsigned long res;
res               220 arch/arm/mach-s3c24xx/iotiming-s3c2410.c 	res  = bt->bankcon;
res               221 arch/arm/mach-s3c24xx/iotiming-s3c2410.c 	res &= (S3C2410_BANKCON_SDRAM | S3C2410_BANKCON_PMC16);
res               230 arch/arm/mach-s3c24xx/iotiming-s3c2410.c 	ret  = calc_0124(bt->tacs, hclk, &res, S3C2410_BANKCON_Tacs_SHIFT);
res               231 arch/arm/mach-s3c24xx/iotiming-s3c2410.c 	ret |= calc_0124(bt->tcos, hclk, &res, S3C2410_BANKCON_Tcos_SHIFT);
res               232 arch/arm/mach-s3c24xx/iotiming-s3c2410.c 	ret |= calc_0124(bt->tcah, hclk, &res, S3C2410_BANKCON_Tcah_SHIFT);
res               233 arch/arm/mach-s3c24xx/iotiming-s3c2410.c 	ret |= calc_0124(bt->tcoh, hclk, &res, S3C2410_BANKCON_Tcoh_SHIFT);
res               238 arch/arm/mach-s3c24xx/iotiming-s3c2410.c 	ret |= calc_tacp(bt->tacp, hclk, &res);
res               239 arch/arm/mach-s3c24xx/iotiming-s3c2410.c 	ret |= calc_tacc(bt->tacc, bt->nwait_en, hclk, &res);
res               244 arch/arm/mach-s3c24xx/iotiming-s3c2410.c 	bt->bankcon = res;
res               144 arch/arm/mach-s3c24xx/mach-gta02.c gta02_configure_pmu_for_charger(struct pcf50633 *pcf, void *unused, int res)
res               149 arch/arm/mach-s3c24xx/mach-gta02.c 	if (res < ((ADC_NOM_CHG_DETECT_USB + ADC_NOM_CHG_DETECT_1A) / 2)) {
res               248 arch/arm/mach-sa1100/generic.c 			 struct resource *res, int nr)
res               251 arch/arm/mach-sa1100/generic.c 	sa11x0mtd_device.resource = res;
res                31 arch/arm/mach-sa1100/generic.h 			 struct resource *res, int nr);
res               237 arch/arm/mach-sa1100/neponset.c 		.res = sa1111_resources,
res               257 arch/arm/mach-sa1100/neponset.c 		.res = smc91x_resources,
res               185 arch/arm/mach-shmobile/platsmp-apmu.c static void apmu_init_cpu(struct resource *res, int cpu, int bit)
res               192 arch/arm/mach-shmobile/platsmp-apmu.c 	apmu_cpus[cpu].iomem = ioremap_nocache(res->start, resource_size(res));
res               195 arch/arm/mach-shmobile/platsmp-apmu.c 	pr_debug("apmu ioremap %d %d %pr\n", cpu, bit, res);
res               208 arch/arm/mach-shmobile/platsmp-apmu.c static void apmu_parse_dt(void (*fn)(struct resource *res, int cpu, int bit))
res               211 arch/arm/mach-shmobile/platsmp-apmu.c 	struct resource res;
res               243 arch/arm/mach-shmobile/platsmp-apmu.c 								    0, &res))
res               244 arch/arm/mach-shmobile/platsmp-apmu.c 						fn(&res, index, bit);
res                53 arch/arm/mach-shmobile/pm-rcar-gen2.c 	struct resource res;
res                69 arch/arm/mach-shmobile/pm-rcar-gen2.c 		res = (struct resource)DEFINE_RES_MEM(ICRAM1,
res                74 arch/arm/mach-shmobile/pm-rcar-gen2.c 	error = of_address_to_resource(np, 0, &res);
res                83 arch/arm/mach-shmobile/pm-rcar-gen2.c 	if (res.start & (256 * 1024 - 1) ||
res                84 arch/arm/mach-shmobile/pm-rcar-gen2.c 	    resource_size(&res) < shmobile_boot_size) {
res                89 arch/arm/mach-shmobile/pm-rcar-gen2.c 	p = ioremap(res.start, resource_size(&res));
res                96 arch/arm/mach-shmobile/pm-rcar-gen2.c 	if (resource_size(&res) >= shmobile_boot_size_gen2) {
res               107 arch/arm/mach-shmobile/pm-rcar-gen2.c 	bar = phys_to_sbar(res.start);
res               784 arch/arm/mach-sunxi/mc_smp.c 	struct resource res;
res               897 arch/arm/mach-sunxi/mc_smp.c 		of_address_to_resource(nodes.r_cpucfg_node, 0, &res);
res               900 arch/arm/mach-sunxi/mc_smp.c 		of_address_to_resource(nodes.sram_node, 0, &res);
res               902 arch/arm/mach-sunxi/mc_smp.c 	release_mem_region(res.start, resource_size(&res));
res               905 arch/arm/mach-sunxi/mc_smp.c 	of_address_to_resource(nodes.cpucfg_node, 0, &res);
res               906 arch/arm/mach-sunxi/mc_smp.c 	release_mem_region(res.start, resource_size(&res));
res                64 arch/arm/mach-versatile/versatile_dt.c 	if (adev->res.start == VERSATILE_MMCI0_BASE)
res               155 arch/arm/mach-zx/zx296702-pm-domain.c 	struct resource *res;
res               165 arch/arm/mach-zx/zx296702-pm-domain.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               166 arch/arm/mach-zx/zx296702-pm-domain.c 	if (!res) {
res               171 arch/arm/mach-zx/zx296702-pm-domain.c 	pcubase = devm_ioremap_resource(&pdev->dev, res);
res              1016 arch/arm/mm/alignment.c 	struct proc_dir_entry *res;
res              1018 arch/arm/mm/alignment.c 	res = proc_create("cpu/alignment", S_IWUSR | S_IRUGO, NULL,
res              1020 arch/arm/mm/alignment.c 	if (!res)
res              1757 arch/arm/mm/cache-l2x0.c 	struct resource res;
res              1766 arch/arm/mm/cache-l2x0.c 	if (of_address_to_resource(np, 0, &res))
res              1769 arch/arm/mm/cache-l2x0.c 	l2x0_base = ioremap(res.start, resource_size(&res));
res              1773 arch/arm/mm/cache-l2x0.c 	l2x0_saved_regs.phy_base = res.start;
res               418 arch/arm/mm/init.c 	struct memblock_region *mem, *res;
res               437 arch/arm/mm/init.c 		for_each_memblock(reserved, res) {
res               440 arch/arm/mm/init.c 			res_start = memblock_region_reserved_base_pfn(res);
res               441 arch/arm/mm/init.c 			res_end = memblock_region_reserved_end_pfn(res);
res                79 arch/arm/mm/proc-v7-bugs.c 		struct arm_smccc_res res;
res                87 arch/arm/mm/proc-v7-bugs.c 					  ARM_SMCCC_ARCH_WORKAROUND_1, &res);
res                88 arch/arm/mm/proc-v7-bugs.c 			if ((int)res.a0 != 0)
res                98 arch/arm/mm/proc-v7-bugs.c 					  ARM_SMCCC_ARCH_WORKAROUND_1, &res);
res                99 arch/arm/mm/proc-v7-bugs.c 			if ((int)res.a0 != 0)
res               113 arch/arm/plat-pxa/ssp.c 	struct resource *res;
res               127 arch/arm/plat-pxa/ssp.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               128 arch/arm/plat-pxa/ssp.c 	if (res == NULL) {
res               133 arch/arm/plat-pxa/ssp.c 	res = devm_request_mem_region(dev, res->start, resource_size(res),
res               135 arch/arm/plat-pxa/ssp.c 	if (res == NULL) {
res               140 arch/arm/plat-pxa/ssp.c 	ssp->phys_base = res->start;
res               142 arch/arm/plat-pxa/ssp.c 	ssp->mmio_base = devm_ioremap(dev, res->start, resource_size(res));
res               121 arch/arm/plat-samsung/include/plat/cpu.h 				  struct s3c24xx_uart_resources *res,
res               105 arch/arm/plat-samsung/init.c 				  struct s3c24xx_uart_resources *res,
res               119 arch/arm/plat-samsung/init.c 		resp = res + cfgptr->hwport;
res                69 arch/arm/plat-samsung/pm-check.c static u32 *s3c_pm_countram(struct resource *res, u32 *val)
res                71 arch/arm/plat-samsung/pm-check.c 	u32 size = (u32)resource_size(res);
res                77 arch/arm/plat-samsung/pm-check.c 		  (unsigned long)res->start, (unsigned long)res->end, size);
res               104 arch/arm/plat-samsung/pm-check.c static u32 *s3c_pm_makecheck(struct resource *res, u32 *val)
res               108 arch/arm/plat-samsung/pm-check.c 	for (addr = res->start; addr < res->end;
res               110 arch/arm/plat-samsung/pm-check.c 		left = res->end - addr;
res               161 arch/arm/plat-samsung/pm-check.c static u32 *s3c_pm_runcheck(struct resource *res, u32 *val)
res               171 arch/arm/plat-samsung/pm-check.c 	for (addr = res->start; addr < res->end;
res               173 arch/arm/plat-samsung/pm-check.c 		left = res->end - addr;
res                84 arch/arm64/include/asm/irqflags.h 	int res;
res                90 arch/arm64/include/asm/irqflags.h 		: "=&r" (res)
res                94 arch/arm64/include/asm/irqflags.h 	return res;
res               117 arch/arm64/include/asm/vdso/compat_gettimeofday.h 	u64 res;
res               131 arch/arm64/include/asm/vdso/compat_gettimeofday.h 	asm volatile("mrrc p15, 1, %Q0, %R0, c14" : "=r" (res));
res               138 arch/arm64/include/asm/vdso/compat_gettimeofday.h 	return res;
res                71 arch/arm64/include/asm/vdso/gettimeofday.h 	u64 res;
res                85 arch/arm64/include/asm/vdso/gettimeofday.h 	asm volatile("mrs %0, cntvct_el0" : "=r" (res) :: "memory");
res                92 arch/arm64/include/asm/vdso/gettimeofday.h 	return res;
res               278 arch/arm64/kernel/armv8_deprecated.c #define __user_swpX_asm(data, addr, res, temp, temp2, B)	\
res               300 arch/arm64/kernel/armv8_deprecated.c 	: "=&r" (res), "+r" (data), "=&r" (temp), "=&r" (temp2)	\
res               308 arch/arm64/kernel/armv8_deprecated.c #define __user_swp_asm(data, addr, res, temp, temp2) \
res               309 arch/arm64/kernel/armv8_deprecated.c 	__user_swpX_asm(data, addr, res, temp, temp2, "")
res               310 arch/arm64/kernel/armv8_deprecated.c #define __user_swpb_asm(data, addr, res, temp, temp2) \
res               311 arch/arm64/kernel/armv8_deprecated.c 	__user_swpX_asm(data, addr, res, temp, temp2, "b")
res               322 arch/arm64/kernel/armv8_deprecated.c 	unsigned int res = 0;
res               334 arch/arm64/kernel/armv8_deprecated.c 			__user_swpb_asm(*data, address, res, temp, temp2);
res               336 arch/arm64/kernel/armv8_deprecated.c 			__user_swp_asm(*data, address, res, temp, temp2);
res               338 arch/arm64/kernel/armv8_deprecated.c 		if (likely(res != -EAGAIN) || signal_pending(current))
res               344 arch/arm64/kernel/armv8_deprecated.c 	return res;
res               375 arch/arm64/kernel/armv8_deprecated.c 	int rn, rt2, res = 0;
res               413 arch/arm64/kernel/armv8_deprecated.c 	res = emulate_swpX(address, &data, type);
res               414 arch/arm64/kernel/armv8_deprecated.c 	if (res == -EFAULT)
res               416 arch/arm64/kernel/armv8_deprecated.c 	else if (res == 0)
res               221 arch/arm64/kernel/cpu_errata.c 	struct arm_smccc_res res;
res               230 arch/arm64/kernel/cpu_errata.c 				  ARM_SMCCC_ARCH_WORKAROUND_1, &res);
res               231 arch/arm64/kernel/cpu_errata.c 		switch ((int)res.a0) {
res               248 arch/arm64/kernel/cpu_errata.c 				  ARM_SMCCC_ARCH_WORKAROUND_1, &res);
res               249 arch/arm64/kernel/cpu_errata.c 		switch ((int)res.a0) {
res               381 arch/arm64/kernel/cpu_errata.c 	struct arm_smccc_res res;
res               412 arch/arm64/kernel/cpu_errata.c 				  ARM_SMCCC_ARCH_WORKAROUND_2, &res);
res               417 arch/arm64/kernel/cpu_errata.c 				  ARM_SMCCC_ARCH_WORKAROUND_2, &res);
res               427 arch/arm64/kernel/cpu_errata.c 	val = (s32)res.a0;
res               104 arch/arm64/kernel/pci.c 		if (!(entry->res->flags & IORESOURCE_WINDOW))
res               205 arch/arm64/kernel/setup.c 	struct resource *res;
res               221 arch/arm64/kernel/setup.c 		res = &standard_resources[i++];
res               223 arch/arm64/kernel/setup.c 			res->name  = "reserved";
res               224 arch/arm64/kernel/setup.c 			res->flags = IORESOURCE_MEM;
res               226 arch/arm64/kernel/setup.c 			res->name  = "System RAM";
res               227 arch/arm64/kernel/setup.c 			res->flags = IORESOURCE_SYSTEM_RAM | IORESOURCE_BUSY;
res               229 arch/arm64/kernel/setup.c 		res->start = __pfn_to_phys(memblock_region_memory_base_pfn(region));
res               230 arch/arm64/kernel/setup.c 		res->end = __pfn_to_phys(memblock_region_memory_end_pfn(region)) - 1;
res               232 arch/arm64/kernel/setup.c 		request_resource(&iomem_resource, res);
res               234 arch/arm64/kernel/setup.c 		if (kernel_code.start >= res->start &&
res               235 arch/arm64/kernel/setup.c 		    kernel_code.end <= res->end)
res               236 arch/arm64/kernel/setup.c 			request_resource(res, &kernel_code);
res               237 arch/arm64/kernel/setup.c 		if (kernel_data.start >= res->start &&
res               238 arch/arm64/kernel/setup.c 		    kernel_data.end <= res->end)
res               239 arch/arm64/kernel/setup.c 			request_resource(res, &kernel_data);
res               242 arch/arm64/kernel/setup.c 		if (crashk_res.end && crashk_res.start >= res->start &&
res               243 arch/arm64/kernel/setup.c 		    crashk_res.end <= res->end)
res               244 arch/arm64/kernel/setup.c 			request_resource(res, &crashk_res);
res               409 arch/arm64/kernel/traps.c #define __user_cache_maint(insn, address, res)			\
res               411 arch/arm64/kernel/traps.c 		res = -EFAULT;					\
res               424 arch/arm64/kernel/traps.c 			: "=r" (res)				\
res                24 arch/arm64/kernel/vdso/vgettimeofday.c 			  struct __kernel_timespec *res)
res                26 arch/arm64/kernel/vdso/vgettimeofday.c 	return __cvdso_clock_getres(clock_id, res);
res                38 arch/arm64/kernel/vdso32/vgettimeofday.c 			struct old_timespec32 *res)
res                41 arch/arm64/kernel/vdso32/vgettimeofday.c 	if ((u32)res >= TASK_SIZE_32)
res                44 arch/arm64/kernel/vdso32/vgettimeofday.c 	return __cvdso_clock_getres_time32(clock_id, res);
res               622 arch/arm64/kvm/guest.c 	unsigned long res = 0;
res               624 arch/arm64/kvm/guest.c 	res += num_core_regs(vcpu);
res               625 arch/arm64/kvm/guest.c 	res += num_sve_regs(vcpu);
res               626 arch/arm64/kvm/guest.c 	res += kvm_arm_num_sys_reg_descs(vcpu);
res               627 arch/arm64/kvm/guest.c 	res += kvm_arm_get_fw_num_regs(vcpu);
res               628 arch/arm64/kvm/guest.c 	res += NUM_TIMER_REGS;
res               630 arch/arm64/kvm/guest.c 	return res;
res                39 arch/csky/include/asm/spinlock.h 	u32 tmp, contended, res;
res                54 arch/csky/include/asm/spinlock.h 		: "=&r" (res), "=&r" (tmp), "=&r" (contended)
res                57 arch/csky/include/asm/spinlock.h 	} while (!res);
res                27 arch/csky/lib/usercopy.c #define __do_strncpy_from_user(dst, src, count, res)	\
res                53 arch/csky/lib/usercopy.c 	: "=r"(res), "=r"(count), "=r"(dst),		\
res                83 arch/csky/lib/usercopy.c 	long res;
res                85 arch/csky/lib/usercopy.c 	__do_strncpy_from_user(dst, src, count, res);
res                86 arch/csky/lib/usercopy.c 	return res;
res               110 arch/csky/lib/usercopy.c 	long res = -EFAULT;
res               113 arch/csky/lib/usercopy.c 		__do_strncpy_from_user(dst, src, count, res);
res               114 arch/csky/lib/usercopy.c 	return res;
res               131 arch/csky/lib/usercopy.c 	unsigned long res, tmp;
res               157 arch/csky/lib/usercopy.c 	: "=r"(n), "=r"(s), "=r"(res), "=r"(tmp)
res               161 arch/csky/lib/usercopy.c 	return res;
res                77 arch/hexagon/include/asm/uaccess.h 	long res = __strnlen_user(src, n);
res                79 arch/hexagon/include/asm/uaccess.h 	if (unlikely(!res))
res                82 arch/hexagon/include/asm/uaccess.h 	if (res > n) {
res                88 arch/hexagon/include/asm/uaccess.h 		long left = raw_copy_from_user(dst, src, res);
res                90 arch/hexagon/include/asm/uaccess.h 			memset(dst + (res - left), 0, left);
res                91 arch/hexagon/include/asm/uaccess.h 		return res-1;
res              1177 arch/ia64/kernel/efi.c 	struct resource *res;
res              1188 arch/ia64/kernel/efi.c 	res = NULL;
res              1245 arch/ia64/kernel/efi.c 		if ((res = kzalloc(sizeof(struct resource),
res              1252 arch/ia64/kernel/efi.c 		res->name = name;
res              1253 arch/ia64/kernel/efi.c 		res->start = md->phys_addr;
res              1254 arch/ia64/kernel/efi.c 		res->end = md->phys_addr + efi_md_size(md) - 1;
res              1255 arch/ia64/kernel/efi.c 		res->flags = flags;
res              1256 arch/ia64/kernel/efi.c 		res->desc = desc;
res              1258 arch/ia64/kernel/efi.c 		if (insert_resource(&iomem_resource, res) < 0)
res              1259 arch/ia64/kernel/efi.c 			kfree(res);
res              1266 arch/ia64/kernel/efi.c 			insert_resource(res, code_resource);
res              1267 arch/ia64/kernel/efi.c 			insert_resource(res, data_resource);
res              1268 arch/ia64/kernel/efi.c 			insert_resource(res, bss_resource);
res              1270 arch/ia64/kernel/efi.c                         insert_resource(res, &efi_memmap_res);
res              1271 arch/ia64/kernel/efi.c                         insert_resource(res, &boot_param_res);
res              1273 arch/ia64/kernel/efi.c 				insert_resource(res, &crashk_res);
res                35 arch/ia64/pci/fixup.c 	struct resource *res;
res                64 arch/ia64/pci/fixup.c 			res = &pdev->resource[PCI_ROM_RESOURCE];
res                67 arch/ia64/pci/fixup.c 			if (res->parent)
res                68 arch/ia64/pci/fixup.c 				release_resource(res);
res                70 arch/ia64/pci/fixup.c 			res->start = 0xC0000;
res                71 arch/ia64/pci/fixup.c 			res->end = res->start + 0x20000 - 1;
res                72 arch/ia64/pci/fixup.c 			res->flags = IORESOURCE_MEM | IORESOURCE_ROM_SHADOW |
res                75 arch/ia64/pci/fixup.c 				 res);
res               155 arch/ia64/pci/pci.c 	struct resource *resource, *res = entry->res;
res               168 arch/ia64/pci/pci.c 	if (res->flags & IORESOURCE_IO_SPARSE)
res               175 arch/ia64/pci/pci.c 	min = res->start - entry->offset;
res               176 arch/ia64/pci/pci.c 	max = res->end - entry->offset;
res               190 arch/ia64/pci/pci.c 	resource = iospace->res;
res               203 arch/ia64/pci/pci.c 	res->start = min + base_port;
res               204 arch/ia64/pci/pci.c 	res->end = max + base_port;
res               228 arch/ia64/pci/pci.c static bool resource_is_pcicfg_ioport(struct resource *res)
res               230 arch/ia64/pci/pci.c 	return (res->flags & IORESOURCE_IO) &&
res               231 arch/ia64/pci/pci.c 		res->start == 0xCF8 && res->end == 0xCFF;
res               238 arch/ia64/pci/pci.c 	struct resource *res;
res               246 arch/ia64/pci/pci.c 			res = entry->res;
res               247 arch/ia64/pci/pci.c 			if (res->flags & IORESOURCE_MEM) {
res               252 arch/ia64/pci/pci.c 				if (resource_size(res) <= 16) {
res               255 arch/ia64/pci/pci.c 							entry->res);
res               259 arch/ia64/pci/pci.c 			} else if (res->flags & IORESOURCE_IO) {
res               260 arch/ia64/pci/pci.c 				if (resource_is_pcicfg_ioport(entry->res))
res               278 arch/ia64/pci/pci.c 		release_resource(entry->res);
res                47 arch/m68k/amiga/chipram.c 	struct resource *res;
res                50 arch/m68k/amiga/chipram.c 	res = kzalloc(sizeof(struct resource), GFP_KERNEL);
res                51 arch/m68k/amiga/chipram.c 	if (!res)
res                54 arch/m68k/amiga/chipram.c 	res->name = name;
res                55 arch/m68k/amiga/chipram.c 	p = amiga_chip_alloc_res(size, res);
res                57 arch/m68k/amiga/chipram.c 		kfree(res);
res                73 arch/m68k/amiga/chipram.c void *amiga_chip_alloc_res(unsigned long size, struct resource *res)
res                81 arch/m68k/amiga/chipram.c 	error = allocate_resource(&chipram_res, res, size, 0, UINT_MAX,
res                90 arch/m68k/amiga/chipram.c 	pr_debug("amiga_chip_alloc_res: returning %pR\n", res);
res                91 arch/m68k/amiga/chipram.c 	return ZTWO_VADDR(res->start);
res                97 arch/m68k/amiga/chipram.c 	struct resource *res;
res               100 arch/m68k/amiga/chipram.c 	res = lookup_resource(&chipram_res, start);
res               101 arch/m68k/amiga/chipram.c 	if (!res) {
res               107 arch/m68k/amiga/chipram.c 	size = resource_size(res);
res               110 arch/m68k/amiga/chipram.c 	release_resource(res);
res               111 arch/m68k/amiga/chipram.c 	kfree(res);
res               157 arch/m68k/atari/stram.c 	struct resource *res;
res               165 arch/m68k/atari/stram.c 	res = kzalloc(sizeof(struct resource), GFP_KERNEL);
res               166 arch/m68k/atari/stram.c 	if (!res)
res               169 arch/m68k/atari/stram.c 	res->name = owner;
res               170 arch/m68k/atari/stram.c 	error = allocate_resource(&stram_pool, res, size, 0, UINT_MAX,
res               175 arch/m68k/atari/stram.c 		kfree(res);
res               179 arch/m68k/atari/stram.c 	pr_debug("atari_stram_alloc: returning %pR\n", res);
res               180 arch/m68k/atari/stram.c 	return atari_stram_to_virt(res->start);
res               188 arch/m68k/atari/stram.c 	struct resource *res;
res               191 arch/m68k/atari/stram.c 	res = lookup_resource(&stram_pool, start);
res               192 arch/m68k/atari/stram.c 	if (!res) {
res               198 arch/m68k/atari/stram.c 	size = resource_size(res);
res               200 arch/m68k/atari/stram.c 	release_resource(res);
res               201 arch/m68k/atari/stram.c 	kfree(res);
res               123 arch/m68k/emu/nfcon.c 	int res;
res               144 arch/m68k/emu/nfcon.c 	res = tty_register_driver(nfcon_tty_driver);
res               145 arch/m68k/emu/nfcon.c 	if (res) {
res               149 arch/m68k/emu/nfcon.c 		return res;
res                64 arch/m68k/emu/nfeth.c 	int res;
res                66 arch/m68k/emu/nfeth.c 	res = nf_call(nfEtherID + XIF_START, priv->ethX);
res                67 arch/m68k/emu/nfeth.c 	netdev_dbg(dev, "%s: %d\n", __func__, res);
res               259 arch/m68k/include/asm/amigahw.h void *amiga_chip_alloc_res(unsigned long size, struct resource *res);
res               321 arch/m68k/include/asm/bitops.h 	int res = 32;
res               335 arch/m68k/include/asm/bitops.h 			      : "=d" (res) : "d" (num & -num));
res               336 arch/m68k/include/asm/bitops.h 	res ^= 31;
res               338 arch/m68k/include/asm/bitops.h 	res += ((long)p - (long)vaddr - 4) * 8;
res               339 arch/m68k/include/asm/bitops.h 	return res < size ? res : size;
res               347 arch/m68k/include/asm/bitops.h 	int bit = offset & 31UL, res;
res               358 arch/m68k/include/asm/bitops.h 				      : "=d" (res) : "d" (num & -num));
res               359 arch/m68k/include/asm/bitops.h 		if (res < 32) {
res               360 arch/m68k/include/asm/bitops.h 			offset += res ^ 31;
res               376 arch/m68k/include/asm/bitops.h 	int res = 32;
res               390 arch/m68k/include/asm/bitops.h 			      : "=d" (res) : "d" (num & -num));
res               391 arch/m68k/include/asm/bitops.h 	res ^= 31;
res               393 arch/m68k/include/asm/bitops.h 	res += ((long)p - (long)vaddr - 4) * 8;
res               394 arch/m68k/include/asm/bitops.h 	return res < size ? res : size;
res               402 arch/m68k/include/asm/bitops.h 	int bit = offset & 31UL, res;
res               413 arch/m68k/include/asm/bitops.h 				      : "=d" (res) : "d" (num & -num));
res               414 arch/m68k/include/asm/bitops.h 		if (res < 32) {
res               415 arch/m68k/include/asm/bitops.h 			offset += res ^ 31;
res               434 arch/m68k/include/asm/bitops.h 	int res;
res               437 arch/m68k/include/asm/bitops.h 			      : "=d" (res) : "d" (~word & -~word));
res               438 arch/m68k/include/asm/bitops.h 	return res ^ 31;
res                38 arch/m68k/include/asm/bootstd.h #define __bsc_return(type, res) \
res                40 arch/m68k/include/asm/bootstd.h    if ((unsigned long)(res) >= (unsigned long)(-64)) { \
res                42 arch/m68k/include/asm/bootstd.h       int __err = -(res); \
res                44 arch/m68k/include/asm/bootstd.h       res = -1; \
res                46 arch/m68k/include/asm/bootstd.h    return (type)(res); \
res                45 arch/m68k/include/asm/string.h 	char res;
res                56 arch/m68k/include/asm/string.h 		: "+a" (cs), "+a" (ct), "=d" (res));
res                57 arch/m68k/include/asm/string.h 	return res;
res                38 arch/m68k/include/asm/uaccess_mm.h #define __put_user_asm(res, x, ptr, bwl, reg, err)	\
res                53 arch/m68k/include/asm/uaccess_mm.h 	: "+d" (res), "=m" (*(ptr))			\
res               109 arch/m68k/include/asm/uaccess_mm.h #define __get_user_asm(res, x, ptr, type, bwl, reg, err) ({		\
res               125 arch/m68k/include/asm/uaccess_mm.h 		: "+d" (res), "=&" #reg (__gu_val)			\
res               190 arch/m68k/include/asm/uaccess_mm.h #define ____constant_copy_from_user_asm(res, to, from, tmp, n1, n2, n3, s1, s2, s3)\
res               225 arch/m68k/include/asm/uaccess_mm.h 		: "+d" (res), "+&a" (to), "+a" (from), "=&d" (tmp)	\
res               228 arch/m68k/include/asm/uaccess_mm.h #define ___constant_copy_from_user_asm(res, to, from, tmp, n1, n2, n3, s1, s2, s3)\
res               229 arch/m68k/include/asm/uaccess_mm.h 	____constant_copy_from_user_asm(res, to, from, tmp, n1, n2, n3, s1, s2, s3)
res               230 arch/m68k/include/asm/uaccess_mm.h #define __constant_copy_from_user_asm(res, to, from, tmp, n1, n2, n3)	\
res               231 arch/m68k/include/asm/uaccess_mm.h 	___constant_copy_from_user_asm(res, to, from, tmp, n1, n2, n3,  \
res               237 arch/m68k/include/asm/uaccess_mm.h 	unsigned long res = 0, tmp;
res               241 arch/m68k/include/asm/uaccess_mm.h 		__constant_copy_from_user_asm(res, to, from, tmp, 1, 0, 0);
res               244 arch/m68k/include/asm/uaccess_mm.h 		__constant_copy_from_user_asm(res, to, from, tmp, 2, 0, 0);
res               247 arch/m68k/include/asm/uaccess_mm.h 		__constant_copy_from_user_asm(res, to, from, tmp, 2, 1, 0);
res               250 arch/m68k/include/asm/uaccess_mm.h 		__constant_copy_from_user_asm(res, to, from, tmp, 4, 0, 0);
res               253 arch/m68k/include/asm/uaccess_mm.h 		__constant_copy_from_user_asm(res, to, from, tmp, 4, 1, 0);
res               256 arch/m68k/include/asm/uaccess_mm.h 		__constant_copy_from_user_asm(res, to, from, tmp, 4, 2, 0);
res               259 arch/m68k/include/asm/uaccess_mm.h 		__constant_copy_from_user_asm(res, to, from, tmp, 4, 2, 1);
res               262 arch/m68k/include/asm/uaccess_mm.h 		__constant_copy_from_user_asm(res, to, from, tmp, 4, 4, 0);
res               265 arch/m68k/include/asm/uaccess_mm.h 		__constant_copy_from_user_asm(res, to, from, tmp, 4, 4, 1);
res               268 arch/m68k/include/asm/uaccess_mm.h 		__constant_copy_from_user_asm(res, to, from, tmp, 4, 4, 2);
res               271 arch/m68k/include/asm/uaccess_mm.h 		__constant_copy_from_user_asm(res, to, from, tmp, 4, 4, 4);
res               278 arch/m68k/include/asm/uaccess_mm.h 	return res;
res               281 arch/m68k/include/asm/uaccess_mm.h #define __constant_copy_to_user_asm(res, to, from, tmp, n, s1, s2, s3)	\
res               312 arch/m68k/include/asm/uaccess_mm.h 		: "+d" (res), "+a" (to), "+a" (from), "=&d" (tmp)	\
res               318 arch/m68k/include/asm/uaccess_mm.h 	unsigned long res = 0, tmp;
res               322 arch/m68k/include/asm/uaccess_mm.h 		__put_user_asm(res, *(u8 *)from, (u8 __user *)to, b, d, 1);
res               325 arch/m68k/include/asm/uaccess_mm.h 		__put_user_asm(res, *(u16 *)from, (u16 __user *)to, w, r, 2);
res               328 arch/m68k/include/asm/uaccess_mm.h 		__constant_copy_to_user_asm(res, to, from, tmp, 3, w, b,);
res               331 arch/m68k/include/asm/uaccess_mm.h 		__put_user_asm(res, *(u32 *)from, (u32 __user *)to, l, r, 4);
res               334 arch/m68k/include/asm/uaccess_mm.h 		__constant_copy_to_user_asm(res, to, from, tmp, 5, l, b,);
res               337 arch/m68k/include/asm/uaccess_mm.h 		__constant_copy_to_user_asm(res, to, from, tmp, 6, l, w,);
res               340 arch/m68k/include/asm/uaccess_mm.h 		__constant_copy_to_user_asm(res, to, from, tmp, 7, l, w, b);
res               343 arch/m68k/include/asm/uaccess_mm.h 		__constant_copy_to_user_asm(res, to, from, tmp, 8, l, l,);
res               346 arch/m68k/include/asm/uaccess_mm.h 		__constant_copy_to_user_asm(res, to, from, tmp, 9, l, l, b);
res               349 arch/m68k/include/asm/uaccess_mm.h 		__constant_copy_to_user_asm(res, to, from, tmp, 10, l, l, w);
res               352 arch/m68k/include/asm/uaccess_mm.h 		__constant_copy_to_user_asm(res, to, from, tmp, 12, l, l, l);
res               359 arch/m68k/include/asm/uaccess_mm.h 	return res;
res                29 arch/m68k/kernel/pcibios.c resource_size_t pcibios_align_resource(void *data, const struct resource *res,
res                32 arch/m68k/kernel/pcibios.c 	resource_size_t start = res->start;
res                34 arch/m68k/kernel/pcibios.c 	if ((res->flags & IORESOURCE_IO) && (start & 0x300))
res               204 arch/m68k/kernel/traps.c 	int res = 0;
res               212 arch/m68k/kernel/traps.c 		res = put_user(wbd & 0xff, (char __user *)wba);
res               215 arch/m68k/kernel/traps.c 		res = put_user(wbd & 0xffff, (short __user *)wba);
res               218 arch/m68k/kernel/traps.c 		res = put_user(wbd, (int __user *)wba);
res               226 arch/m68k/kernel/traps.c 	pr_debug("do_040writeback1, res=%d\n", res);
res               228 arch/m68k/kernel/traps.c 	return res;
res               245 arch/m68k/kernel/traps.c 	int res = 0;
res               253 arch/m68k/kernel/traps.c 		res = do_040writeback1(fp->un.fmt7.wb2s, fp->un.fmt7.wb2a,
res               255 arch/m68k/kernel/traps.c 		if (res)
res               262 arch/m68k/kernel/traps.c 	if (fp->un.fmt7.wb3s & WBV_040 && (!res || fp->un.fmt7.wb3s & 4)) {
res               263 arch/m68k/kernel/traps.c 		res = do_040writeback1(fp->un.fmt7.wb3s, fp->un.fmt7.wb3a,
res               265 arch/m68k/kernel/traps.c 		if (res)
res               278 arch/m68k/kernel/traps.c 	if (res)
res                13 arch/m68k/lib/uaccess.c 	unsigned long tmp, res;
res                49 arch/m68k/lib/uaccess.c 		: "=d" (res), "+a" (from), "+a" (to), "=&d" (tmp)
res                52 arch/m68k/lib/uaccess.c 	return res;
res                59 arch/m68k/lib/uaccess.c 	unsigned long tmp, res;
res                93 arch/m68k/lib/uaccess.c 		: "=d" (res), "+a" (from), "+a" (to), "=&d" (tmp)
res                96 arch/m68k/lib/uaccess.c 	return res;
res               106 arch/m68k/lib/uaccess.c 	unsigned long res;
res               137 arch/m68k/lib/uaccess.c 		: "=d" (res), "+a" (to)
res               140 arch/m68k/lib/uaccess.c     return res;
res                66 arch/m68k/math-emu/fp_emu.h 	register int res asm ("d0");				\
res                69 arch/m68k/math-emu/fp_emu.h 			: "=d" (res) : "a" (reg)		\
res                71 arch/m68k/math-emu/fp_emu.h 	res;							\
res                16 arch/microblaze/include/asm/atomic.h 	int res;
res                19 arch/microblaze/include/asm/atomic.h 	res = v->counter - 1;
res                20 arch/microblaze/include/asm/atomic.h 	if (res >= 0)
res                21 arch/microblaze/include/asm/atomic.h 		v->counter = res;
res                24 arch/microblaze/include/asm/atomic.h 	return res;
res               422 arch/microblaze/pci/pci-common.c 	struct resource *res;
res               450 arch/microblaze/pci/pci-common.c 		res = NULL;
res               481 arch/microblaze/pci/pci-common.c 			res = &hose->io_resource;
res               524 arch/microblaze/pci/pci-common.c 			res = &hose->mem_resources[memno++];
res               527 arch/microblaze/pci/pci-common.c 		if (res != NULL) {
res               528 arch/microblaze/pci/pci-common.c 			res->name = dev->full_name;
res               529 arch/microblaze/pci/pci-common.c 			res->flags = range.flags;
res               530 arch/microblaze/pci/pci-common.c 			res->start = range.cpu_addr;
res               531 arch/microblaze/pci/pci-common.c 			res->end = range.cpu_addr + range.size - 1;
res               532 arch/microblaze/pci/pci-common.c 			res->parent = res->child = res->sibling = NULL;
res               571 arch/microblaze/pci/pci-common.c 		struct resource *res = dev->resource + i;
res               572 arch/microblaze/pci/pci-common.c 		if (!res->flags)
res               574 arch/microblaze/pci/pci-common.c 		if (res->start == 0) {
res               577 arch/microblaze/pci/pci-common.c 				 (unsigned long long)res->start,
res               578 arch/microblaze/pci/pci-common.c 				 (unsigned long long)res->end,
res               579 arch/microblaze/pci/pci-common.c 				 (unsigned int)res->flags);
res               581 arch/microblaze/pci/pci-common.c 			res->end -= res->start;
res               582 arch/microblaze/pci/pci-common.c 			res->start = 0;
res               583 arch/microblaze/pci/pci-common.c 			res->flags |= IORESOURCE_UNSET;
res               589 arch/microblaze/pci/pci-common.c 			 (unsigned long long)res->start,
res               590 arch/microblaze/pci/pci-common.c 			 (unsigned long long)res->end,
res               591 arch/microblaze/pci/pci-common.c 			 (unsigned int)res->flags);
res               609 arch/microblaze/pci/pci-common.c 				     struct resource *res)
res               615 arch/microblaze/pci/pci-common.c 		if (p->end < res->start)
res               617 arch/microblaze/pci/pci-common.c 		if (res->end < p->start)
res               619 arch/microblaze/pci/pci-common.c 		if (p->start < res->start || p->end > res->end)
res               626 arch/microblaze/pci/pci-common.c 	res->parent = parent;
res               627 arch/microblaze/pci/pci-common.c 	res->child = *firstpp;
res               628 arch/microblaze/pci/pci-common.c 	res->sibling = *pp;
res               629 arch/microblaze/pci/pci-common.c 	*firstpp = res;
res               631 arch/microblaze/pci/pci-common.c 	for (p = res->child; p != NULL; p = p->sibling) {
res               632 arch/microblaze/pci/pci-common.c 		p->parent = res;
res               636 arch/microblaze/pci/pci-common.c 			 (unsigned long long)p->end, res->name);
res               678 arch/microblaze/pci/pci-common.c 	struct resource *res, *pr;
res               683 arch/microblaze/pci/pci-common.c 	pci_bus_for_each_resource(bus, res, i) {
res               684 arch/microblaze/pci/pci-common.c 		if (!res || !res->flags
res               685 arch/microblaze/pci/pci-common.c 		    || res->start > res->end || res->parent)
res               688 arch/microblaze/pci/pci-common.c 			pr = (res->flags & IORESOURCE_IO) ?
res               697 arch/microblaze/pci/pci-common.c 			pr = pci_find_parent_resource(bus->self, res);
res               698 arch/microblaze/pci/pci-common.c 			if (pr == res) {
res               710 arch/microblaze/pci/pci-common.c 			 (unsigned long long)res->start,
res               711 arch/microblaze/pci/pci-common.c 			 (unsigned long long)res->end);
res               713 arch/microblaze/pci/pci-common.c 			 (unsigned int)res->flags,
res               719 arch/microblaze/pci/pci-common.c 			if (request_resource(pr, res) == 0)
res               726 arch/microblaze/pci/pci-common.c 			if (reparent_resources(pr, res) == 0)
res               737 arch/microblaze/pci/pci-common.c 		res->start = res->end = 0;
res               738 arch/microblaze/pci/pci-common.c 		res->flags = 0;
res               824 arch/microblaze/pci/pci-common.c 	struct resource *res, *pres;
res               834 arch/microblaze/pci/pci-common.c 	res = kzalloc(sizeof(struct resource), GFP_KERNEL);
res               835 arch/microblaze/pci/pci-common.c 	BUG_ON(res == NULL);
res               836 arch/microblaze/pci/pci-common.c 	res->name = "Legacy IO";
res               837 arch/microblaze/pci/pci-common.c 	res->flags = IORESOURCE_IO;
res               838 arch/microblaze/pci/pci-common.c 	res->start = offset;
res               839 arch/microblaze/pci/pci-common.c 	res->end = (offset + 0xfff) & 0xfffffffful;
res               840 arch/microblaze/pci/pci-common.c 	pr_debug("Candidate legacy IO: %pR\n", res);
res               841 arch/microblaze/pci/pci-common.c 	if (request_resource(&hose->io_resource, res)) {
res               843 arch/microblaze/pci/pci-common.c 		       pci_domain_nr(bus), bus->number, res);
res               844 arch/microblaze/pci/pci-common.c 		kfree(res);
res               862 arch/microblaze/pci/pci-common.c 	res = kzalloc(sizeof(struct resource), GFP_KERNEL);
res               863 arch/microblaze/pci/pci-common.c 	BUG_ON(res == NULL);
res               864 arch/microblaze/pci/pci-common.c 	res->name = "Legacy VGA memory";
res               865 arch/microblaze/pci/pci-common.c 	res->flags = IORESOURCE_MEM;
res               866 arch/microblaze/pci/pci-common.c 	res->start = 0xa0000 + offset;
res               867 arch/microblaze/pci/pci-common.c 	res->end = 0xbffff + offset;
res               868 arch/microblaze/pci/pci-common.c 	pr_debug("Candidate VGA memory: %pR\n", res);
res               869 arch/microblaze/pci/pci-common.c 	if (request_resource(pres, res)) {
res               871 arch/microblaze/pci/pci-common.c 		       pci_domain_nr(bus), bus->number, res);
res               872 arch/microblaze/pci/pci-common.c 		kfree(res);
res               905 arch/microblaze/pci/pci-common.c 	struct resource *res;
res               909 arch/microblaze/pci/pci-common.c 	res = &hose->io_resource;
res               913 arch/microblaze/pci/pci-common.c 	res->start = (res->start + io_offset) & 0xffffffffu;
res               914 arch/microblaze/pci/pci-common.c 	res->end = (res->end + io_offset) & 0xffffffffu;
res               916 arch/microblaze/pci/pci-common.c 	if (!res->flags) {
res               921 arch/microblaze/pci/pci-common.c 		res->start = (unsigned long)hose->io_base_virt - isa_io_base;
res               922 arch/microblaze/pci/pci-common.c 		res->end = res->start + IO_SPACE_LIMIT;
res               923 arch/microblaze/pci/pci-common.c 		res->flags = IORESOURCE_IO;
res               925 arch/microblaze/pci/pci-common.c 	pci_add_resource_offset(resources, res,
res               929 arch/microblaze/pci/pci-common.c 		 (unsigned long long)res->start,
res               930 arch/microblaze/pci/pci-common.c 		 (unsigned long long)res->end,
res               931 arch/microblaze/pci/pci-common.c 		 (unsigned long)res->flags);
res               935 arch/microblaze/pci/pci-common.c 		res = &hose->mem_resources[i];
res               936 arch/microblaze/pci/pci-common.c 		if (!res->flags) {
res               944 arch/microblaze/pci/pci-common.c 			res->start = hose->pci_mem_offset;
res               945 arch/microblaze/pci/pci-common.c 			res->end = (resource_size_t)-1LL;
res               946 arch/microblaze/pci/pci-common.c 			res->flags = IORESOURCE_MEM;
res               949 arch/microblaze/pci/pci-common.c 		pci_add_resource_offset(resources, res, hose->pci_mem_offset);
res               952 arch/microblaze/pci/pci-common.c 			i, (unsigned long long)res->start,
res               953 arch/microblaze/pci/pci-common.c 			(unsigned long long)res->end,
res               954 arch/microblaze/pci/pci-common.c 			(unsigned long)res->flags);
res               217 arch/mips/alchemy/common/platform.c 	struct resource *res;
res               221 arch/mips/alchemy/common/platform.c 	if (_new_usbres(&res, &pdev))
res               224 arch/mips/alchemy/common/platform.c 	res[0].start = alchemy_ohci_data[ctype][0];
res               225 arch/mips/alchemy/common/platform.c 	res[0].end = res[0].start + 0x100 - 1;
res               226 arch/mips/alchemy/common/platform.c 	res[0].flags = IORESOURCE_MEM;
res               227 arch/mips/alchemy/common/platform.c 	res[1].start = alchemy_ohci_data[ctype][1];
res               228 arch/mips/alchemy/common/platform.c 	res[1].end = res[1].start;
res               229 arch/mips/alchemy/common/platform.c 	res[1].flags = IORESOURCE_IRQ;
res               241 arch/mips/alchemy/common/platform.c 		if (_new_usbres(&res, &pdev))
res               244 arch/mips/alchemy/common/platform.c 		res[0].start = alchemy_ehci_data[ctype][0];
res               245 arch/mips/alchemy/common/platform.c 		res[0].end = res[0].start + 0x100 - 1;
res               246 arch/mips/alchemy/common/platform.c 		res[0].flags = IORESOURCE_MEM;
res               247 arch/mips/alchemy/common/platform.c 		res[1].start = alchemy_ehci_data[ctype][1];
res               248 arch/mips/alchemy/common/platform.c 		res[1].end = res[1].start;
res               249 arch/mips/alchemy/common/platform.c 		res[1].flags = IORESOURCE_IRQ;
res               261 arch/mips/alchemy/common/platform.c 		if (_new_usbres(&res, &pdev))
res               264 arch/mips/alchemy/common/platform.c 		res[0].start = AU1300_USB_OHCI1_PHYS_ADDR;
res               265 arch/mips/alchemy/common/platform.c 		res[0].end = res[0].start + 0x100 - 1;
res               266 arch/mips/alchemy/common/platform.c 		res[0].flags = IORESOURCE_MEM;
res               267 arch/mips/alchemy/common/platform.c 		res[1].start = AU1300_USB_INT;
res               268 arch/mips/alchemy/common/platform.c 		res[1].end = res[1].start;
res               269 arch/mips/alchemy/common/platform.c 		res[1].flags = IORESOURCE_IRQ;
res               175 arch/mips/alchemy/devboards/platform.c 	struct resource *res;
res               186 arch/mips/alchemy/devboards/platform.c 	res = kzalloc(sizeof(struct resource), GFP_KERNEL);
res               187 arch/mips/alchemy/devboards/platform.c 	if (!res)
res               199 arch/mips/alchemy/devboards/platform.c 	res->start = 0x20000000 - size;
res               200 arch/mips/alchemy/devboards/platform.c 	res->end = 0x20000000 - 1;
res               201 arch/mips/alchemy/devboards/platform.c 	res->flags = IORESOURCE_MEM;
res               249 arch/mips/alchemy/devboards/platform.c 	pd->resource = res;
res               260 arch/mips/alchemy/devboards/platform.c 	kfree(res);
res               101 arch/mips/ar7/clock.c 	int i, j, k, freq, res = target;
res               106 arch/mips/ar7/clock.c 				if (freq < res) {
res               107 arch/mips/ar7/clock.c 					res = freq;
res               554 arch/mips/ar7/platform.c 	int res;
res               573 arch/mips/ar7/platform.c 	res = early_serial_setup(&uart_port);
res               574 arch/mips/ar7/platform.c 	if (res)
res               575 arch/mips/ar7/platform.c 		return res;
res               584 arch/mips/ar7/platform.c 		res = early_serial_setup(&uart_port);
res               585 arch/mips/ar7/platform.c 		if (res)
res               586 arch/mips/ar7/platform.c 			return res;
res               642 arch/mips/ar7/platform.c 	int res;
res               644 arch/mips/ar7/platform.c 	res = ar7_gpio_init();
res               645 arch/mips/ar7/platform.c 	if (res)
res               646 arch/mips/ar7/platform.c 		pr_warn("unable to register gpios: %d\n", res);
res               648 arch/mips/ar7/platform.c 	res = ar7_register_uarts();
res               649 arch/mips/ar7/platform.c 	if (res)
res               650 arch/mips/ar7/platform.c 		pr_err("unable to setup uart(s): %d\n", res);
res               652 arch/mips/ar7/platform.c 	res = platform_device_register(&physmap_flash);
res               653 arch/mips/ar7/platform.c 	if (res)
res               654 arch/mips/ar7/platform.c 		pr_warn("unable to register physmap-flash: %d\n", res);
res               660 arch/mips/ar7/platform.c 	res = platform_device_register(&vlynq_low);
res               661 arch/mips/ar7/platform.c 	if (res)
res               662 arch/mips/ar7/platform.c 		pr_warn("unable to register vlynq-low: %d\n", res);
res               666 arch/mips/ar7/platform.c 		res = platform_device_register(&vlynq_high);
res               667 arch/mips/ar7/platform.c 		if (res)
res               668 arch/mips/ar7/platform.c 			pr_warn("unable to register vlynq-high: %d\n", res);
res               672 arch/mips/ar7/platform.c 		res = fixed_phy_add(PHY_POLL, cpmac_high.id,
res               674 arch/mips/ar7/platform.c 		if (!res) {
res               677 arch/mips/ar7/platform.c 			res = platform_device_register(&cpmac_high);
res               678 arch/mips/ar7/platform.c 			if (res)
res               680 arch/mips/ar7/platform.c 					res);
res               682 arch/mips/ar7/platform.c 			pr_warn("unable to add cpmac-high phy: %d\n", res);
res               686 arch/mips/ar7/platform.c 	res = fixed_phy_add(PHY_POLL, cpmac_low.id, &fixed_phy_status);
res               687 arch/mips/ar7/platform.c 	if (!res) {
res               689 arch/mips/ar7/platform.c 		res = platform_device_register(&cpmac_low);
res               690 arch/mips/ar7/platform.c 		if (res)
res               691 arch/mips/ar7/platform.c 			pr_warn("unable to register cpmac-low: %d\n", res);
res               693 arch/mips/ar7/platform.c 		pr_warn("unable to add cpmac-low phy: %d\n", res);
res               696 arch/mips/ar7/platform.c 	res = platform_device_register(&ar7_gpio_leds);
res               697 arch/mips/ar7/platform.c 	if (res)
res               698 arch/mips/ar7/platform.c 		pr_warn("unable to register leds: %d\n", res);
res               700 arch/mips/ar7/platform.c 	res = platform_device_register(&ar7_udc);
res               701 arch/mips/ar7/platform.c 	if (res)
res               702 arch/mips/ar7/platform.c 		pr_warn("unable to register usb slave: %d\n", res);
res               715 arch/mips/ar7/platform.c 		res = platform_device_register(&ar7_wdt);
res               716 arch/mips/ar7/platform.c 		if (res)
res               717 arch/mips/ar7/platform.c 			pr_warn("unable to register watchdog: %d\n", res);
res                94 arch/mips/ath25/devices.c 	struct resource *res;
res                97 arch/mips/ath25/devices.c 	res = &ath25_wmac[nr].resource[0];
res                98 arch/mips/ath25/devices.c 	res->start = base;
res                99 arch/mips/ath25/devices.c 	res->end = base + 0x10000 - 1;
res               100 arch/mips/ath25/devices.c 	res++;
res               101 arch/mips/ath25/devices.c 	res->start = irq;
res               102 arch/mips/ath25/devices.c 	res->end = irq;
res               563 arch/mips/boot/tools/relocs.c 	int res;
res               565 arch/mips/boot/tools/relocs.c 	res = fprintf(f, "\t.long 0x%08"PRIx32"\n", v);
res               566 arch/mips/boot/tools/relocs.c 	if (res < 0)
res               567 arch/mips/boot/tools/relocs.c 		return res;
res                46 arch/mips/cavium-octeon/executive/cvmx-spi.c 			res = function_p(args); \
res                47 arch/mips/cavium-octeon/executive/cvmx-spi.c 			if (res)		\
res                48 arch/mips/cavium-octeon/executive/cvmx-spi.c 				return res;	\
res               108 arch/mips/cavium-octeon/executive/cvmx-spi.c 	int res = -1;
res               111 arch/mips/cavium-octeon/executive/cvmx-spi.c 		return res;
res               133 arch/mips/cavium-octeon/executive/cvmx-spi.c 	return res;
res               152 arch/mips/cavium-octeon/executive/cvmx-spi.c 	int res = -1;
res               155 arch/mips/cavium-octeon/executive/cvmx-spi.c 		return res;
res               178 arch/mips/cavium-octeon/executive/cvmx-spi.c 	return res;
res               501 arch/mips/cavium-octeon/octeon-usb.c 	struct resource *res;
res               519 arch/mips/cavium-octeon/octeon-usb.c 			res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               520 arch/mips/cavium-octeon/octeon-usb.c 			if (res == NULL) {
res               531 arch/mips/cavium-octeon/octeon-usb.c 			base = devm_ioremap_resource(&pdev->dev, res);
res               542 arch/mips/cavium-octeon/octeon-usb.c 			devm_release_mem_region(&pdev->dev, res->start,
res               543 arch/mips/cavium-octeon/octeon-usb.c 						resource_size(res));
res               236 arch/mips/include/asm/bitops.h 	unsigned long res;
res               253 arch/mips/include/asm/bitops.h 		: "=&r" (temp), "+" GCC_OFF_SMALL_ASM() (*m), "=&r" (res)
res               269 arch/mips/include/asm/bitops.h 			: "=&r" (temp), "+" GCC_OFF_SMALL_ASM() (*m), "=&r" (res)
res               272 arch/mips/include/asm/bitops.h 		} while (unlikely(!res));
res               274 arch/mips/include/asm/bitops.h 		res = temp & (1UL << bit);
res               276 arch/mips/include/asm/bitops.h 		res = __mips_test_and_set_bit(nr, addr);
res               280 arch/mips/include/asm/bitops.h 	return res != 0;
res               295 arch/mips/include/asm/bitops.h 	unsigned long res;
res               310 arch/mips/include/asm/bitops.h 		: "=&r" (temp), "+m" (*m), "=&r" (res)
res               326 arch/mips/include/asm/bitops.h 			: "=&r" (temp), "+" GCC_OFF_SMALL_ASM() (*m), "=&r" (res)
res               329 arch/mips/include/asm/bitops.h 		} while (unlikely(!res));
res               331 arch/mips/include/asm/bitops.h 		res = temp & (1UL << bit);
res               333 arch/mips/include/asm/bitops.h 		res = __mips_test_and_set_bit_lock(nr, addr);
res               337 arch/mips/include/asm/bitops.h 	return res != 0;
res               351 arch/mips/include/asm/bitops.h 	unsigned long res;
res               369 arch/mips/include/asm/bitops.h 		: "=&r" (temp), "+" GCC_OFF_SMALL_ASM() (*m), "=&r" (res)
res               384 arch/mips/include/asm/bitops.h 			: "=&r" (temp), "+" GCC_OFF_SMALL_ASM() (*m), "=&r" (res)
res               403 arch/mips/include/asm/bitops.h 			: "=&r" (temp), "+" GCC_OFF_SMALL_ASM() (*m), "=&r" (res)
res               406 arch/mips/include/asm/bitops.h 		} while (unlikely(!res));
res               408 arch/mips/include/asm/bitops.h 		res = temp & (1UL << bit);
res               410 arch/mips/include/asm/bitops.h 		res = __mips_test_and_clear_bit(nr, addr);
res               414 arch/mips/include/asm/bitops.h 	return res != 0;
res               429 arch/mips/include/asm/bitops.h 	unsigned long res;
res               446 arch/mips/include/asm/bitops.h 		: "=&r" (temp), "+" GCC_OFF_SMALL_ASM() (*m), "=&r" (res)
res               462 arch/mips/include/asm/bitops.h 			: "=&r" (temp), "+" GCC_OFF_SMALL_ASM() (*m), "=&r" (res)
res               465 arch/mips/include/asm/bitops.h 		} while (unlikely(!res));
res               467 arch/mips/include/asm/bitops.h 		res = temp & (1UL << bit);
res               469 arch/mips/include/asm/bitops.h 		res = __mips_test_and_change_bit(nr, addr);
res               473 arch/mips/include/asm/bitops.h 	return res != 0;
res                25 arch/mips/include/asm/cdmm.h 	struct resource		res;
res                19 arch/mips/include/asm/mach-ip27/kernel-entry-init.h 	.macro GET_NASID_ASM res
res               195 arch/mips/include/asm/mipsmtregs.h 	int res = 0;
res               206 arch/mips/include/asm/mipsmtregs.h 	: "=r" (res));
res               210 arch/mips/include/asm/mipsmtregs.h 	return res;
res               238 arch/mips/include/asm/mipsmtregs.h 	int res;
res               248 arch/mips/include/asm/mipsmtregs.h 	: "=r" (res));
res               252 arch/mips/include/asm/mipsmtregs.h 	return res;
res              2661 arch/mips/include/asm/mipsregs.h 	int res = 0;
res              2672 arch/mips/include/asm/mipsregs.h 	: "=r" (res));
res              2683 arch/mips/include/asm/mipsregs.h 	if ((res & _ULCAST_(1)))
res              2776 arch/mips/include/asm/mipsregs.h 	unsigned int res, new;					\
res              2778 arch/mips/include/asm/mipsregs.h 	res = read_##name();					\
res              2779 arch/mips/include/asm/mipsregs.h 	new = res | set;					\
res              2782 arch/mips/include/asm/mipsregs.h 	return res;						\
res              2788 arch/mips/include/asm/mipsregs.h 	unsigned int res, new;					\
res              2790 arch/mips/include/asm/mipsregs.h 	res = read_##name();					\
res              2791 arch/mips/include/asm/mipsregs.h 	new = res & ~clear;					\
res              2794 arch/mips/include/asm/mipsregs.h 	return res;						\
res              2800 arch/mips/include/asm/mipsregs.h 	unsigned int res, new;					\
res              2802 arch/mips/include/asm/mipsregs.h 	res = read_##name();					\
res              2803 arch/mips/include/asm/mipsregs.h 	new = res & ~change;					\
res              2807 arch/mips/include/asm/mipsregs.h 	return res;						\
res               651 arch/mips/include/asm/uaccess.h 	__kernel_size_t res;
res               667 arch/mips/include/asm/uaccess.h 			: "=r" (res)
res               678 arch/mips/include/asm/uaccess.h 			: "=r" (res)
res               683 arch/mips/include/asm/uaccess.h 	return res;
res               719 arch/mips/include/asm/uaccess.h 	long res;
res               728 arch/mips/include/asm/uaccess.h 			: "=r" (res)
res               739 arch/mips/include/asm/uaccess.h 			: "=r" (res)
res               744 arch/mips/include/asm/uaccess.h 	return res;
res               765 arch/mips/include/asm/uaccess.h 	long res;
res               774 arch/mips/include/asm/uaccess.h 			: "=r" (res)
res               783 arch/mips/include/asm/uaccess.h 			: "=r" (res)
res               788 arch/mips/include/asm/uaccess.h 	return res;
res                22 arch/mips/kernel/cevt-r4k.c 	int res;
res                27 arch/mips/kernel/cevt-r4k.c 	res = ((int)(read_c0_count() - cnt) >= 0) ? -ETIME : 0;
res                28 arch/mips/kernel/cevt-r4k.c 	return res;
res                24 arch/mips/kernel/mips-cpc.c 	struct resource res;
res                29 arch/mips/kernel/mips-cpc.c 		err = of_address_to_resource(cpc_node, 0, &res);
res                31 arch/mips/kernel/mips-cpc.c 			return res.start;
res               404 arch/mips/kernel/mips-r2-to-r6-emul.c 	s64 res;
res               409 arch/mips/kernel/mips-r2-to-r6-emul.c 	res = (s64)rt * (s64)rs;
res               411 arch/mips/kernel/mips-r2-to-r6-emul.c 	rs = res;
res               413 arch/mips/kernel/mips-r2-to-r6-emul.c 	rt = res >> 32;
res               414 arch/mips/kernel/mips-r2-to-r6-emul.c 	res = (s64)rt;
res               415 arch/mips/kernel/mips-r2-to-r6-emul.c 	regs->hi = res;
res               431 arch/mips/kernel/mips-r2-to-r6-emul.c 	u64 res;
res               436 arch/mips/kernel/mips-r2-to-r6-emul.c 	res = (u64)rt * (u64)rs;
res               437 arch/mips/kernel/mips-r2-to-r6-emul.c 	rt = res;
res               439 arch/mips/kernel/mips-r2-to-r6-emul.c 	regs->hi = (s64)(s32)(res >> 32);
res               499 arch/mips/kernel/mips-r2-to-r6-emul.c 	s64 res;
res               507 arch/mips/kernel/mips-r2-to-r6-emul.c 	res = rt * rs;
res               509 arch/mips/kernel/mips-r2-to-r6-emul.c 	regs->lo = res;
res               512 arch/mips/kernel/mips-r2-to-r6-emul.c 		: "=r"(res)
res               515 arch/mips/kernel/mips-r2-to-r6-emul.c 	regs->hi = res;
res               531 arch/mips/kernel/mips-r2-to-r6-emul.c 	u64 res;
res               539 arch/mips/kernel/mips-r2-to-r6-emul.c 	res = rt * rs;
res               541 arch/mips/kernel/mips-r2-to-r6-emul.c 	regs->lo = res;
res               544 arch/mips/kernel/mips-r2-to-r6-emul.c 		: "=r"(res)
res               547 arch/mips/kernel/mips-r2-to-r6-emul.c 	regs->hi = res;
res               635 arch/mips/kernel/mips-r2-to-r6-emul.c 	s64 res;
res               640 arch/mips/kernel/mips-r2-to-r6-emul.c 	res = (s64)rt * (s64)rs;
res               643 arch/mips/kernel/mips-r2-to-r6-emul.c 	res += ((((s64)rt) << 32) | (u32)rs);
res               645 arch/mips/kernel/mips-r2-to-r6-emul.c 	rt = res;
res               647 arch/mips/kernel/mips-r2-to-r6-emul.c 	rs = res >> 32;
res               664 arch/mips/kernel/mips-r2-to-r6-emul.c 	u64 res;
res               669 arch/mips/kernel/mips-r2-to-r6-emul.c 	res = (u64)rt * (u64)rs;
res               672 arch/mips/kernel/mips-r2-to-r6-emul.c 	res += ((((s64)rt) << 32) | (u32)rs);
res               674 arch/mips/kernel/mips-r2-to-r6-emul.c 	rt = res;
res               676 arch/mips/kernel/mips-r2-to-r6-emul.c 	rs = res >> 32;
res               693 arch/mips/kernel/mips-r2-to-r6-emul.c 	s64 res;
res               698 arch/mips/kernel/mips-r2-to-r6-emul.c 	res = (s64)rt * (s64)rs;
res               701 arch/mips/kernel/mips-r2-to-r6-emul.c 	res = ((((s64)rt) << 32) | (u32)rs) - res;
res               703 arch/mips/kernel/mips-r2-to-r6-emul.c 	rt = res;
res               705 arch/mips/kernel/mips-r2-to-r6-emul.c 	rs = res >> 32;
res               722 arch/mips/kernel/mips-r2-to-r6-emul.c 	u64 res;
res               727 arch/mips/kernel/mips-r2-to-r6-emul.c 	res = (u64)rt * (u64)rs;
res               730 arch/mips/kernel/mips-r2-to-r6-emul.c 	res = ((((s64)rt) << 32) | (u32)rs) - res;
res               732 arch/mips/kernel/mips-r2-to-r6-emul.c 	rt = res;
res               734 arch/mips/kernel/mips-r2-to-r6-emul.c 	rs = res >> 32;
res               751 arch/mips/kernel/mips-r2-to-r6-emul.c 	s64 res;
res               758 arch/mips/kernel/mips-r2-to-r6-emul.c 	res = (s64)rt * (s64)rs;
res               760 arch/mips/kernel/mips-r2-to-r6-emul.c 	rs = res;
res               777 arch/mips/kernel/mips-r2-to-r6-emul.c 	u32 res;
res               784 arch/mips/kernel/mips-r2-to-r6-emul.c 	__asm__ __volatile__("clz %0, %1" : "=r"(res) : "r"(rs));
res               785 arch/mips/kernel/mips-r2-to-r6-emul.c 	regs->regs[MIPSInst_RD(ir)] = res;
res               802 arch/mips/kernel/mips-r2-to-r6-emul.c 	u32 res;
res               809 arch/mips/kernel/mips-r2-to-r6-emul.c 	__asm__ __volatile__("clo %0, %1" : "=r"(res) : "r"(rs));
res               810 arch/mips/kernel/mips-r2-to-r6-emul.c 	regs->regs[MIPSInst_RD(ir)] = res;
res               826 arch/mips/kernel/mips-r2-to-r6-emul.c 	u64 res;
res               836 arch/mips/kernel/mips-r2-to-r6-emul.c 	__asm__ __volatile__("dclz %0, %1" : "=r"(res) : "r"(rs));
res               837 arch/mips/kernel/mips-r2-to-r6-emul.c 	regs->regs[MIPSInst_RD(ir)] = res;
res               853 arch/mips/kernel/mips-r2-to-r6-emul.c 	u64 res;
res               863 arch/mips/kernel/mips-r2-to-r6-emul.c 	__asm__ __volatile__("dclo %0, %1" : "=r"(res) : "r"(rs));
res               864 arch/mips/kernel/mips-r2-to-r6-emul.c 	regs->regs[MIPSInst_RD(ir)] = res;
res               911 arch/mips/kernel/mips-r2-to-r6-emul.c 	unsigned long cpc, epc, nepc, r31, res, rs, rt;
res              1185 arch/mips/kernel/mips-r2-to-r6-emul.c 		*fcr31 = res = mask_fcr31_x(current->thread.fpu.fcr31);
res              1186 arch/mips/kernel/mips-r2-to-r6-emul.c 		current->thread.fpu.fcr31 &= ~res;
res              2012 arch/mips/kernel/mips-r2-to-r6-emul.c 			: "=&r"(res), "+&r"(err)
res              2017 arch/mips/kernel/mips-r2-to-r6-emul.c 			regs->regs[MIPSInst_RT(inst)] = res;
res              2055 arch/mips/kernel/mips-r2-to-r6-emul.c 		res = regs->regs[MIPSInst_RT(inst)];
res              2070 arch/mips/kernel/mips-r2-to-r6-emul.c 			: "+&r"(res), "+&r"(err)
res              2074 arch/mips/kernel/mips-r2-to-r6-emul.c 			regs->regs[MIPSInst_RT(inst)] = res;
res              2131 arch/mips/kernel/mips-r2-to-r6-emul.c 			: "=&r"(res), "+&r"(err)
res              2135 arch/mips/kernel/mips-r2-to-r6-emul.c 			regs->regs[MIPSInst_RT(inst)] = res;
res              2179 arch/mips/kernel/mips-r2-to-r6-emul.c 		res = regs->regs[MIPSInst_RT(inst)];
res              2194 arch/mips/kernel/mips-r2-to-r6-emul.c 			: "+&r"(res), "+&r"(err)
res              2198 arch/mips/kernel/mips-r2-to-r6-emul.c 			regs->regs[MIPSInst_RT(inst)] = res;
res                48 arch/mips/kernel/relocate.c 	u32 res;
res                50 arch/mips/kernel/relocate.c 	__asm__("rdhwr  %0, $1" : "=r" (res));
res                52 arch/mips/kernel/relocate.c 	return res;
res               141 arch/mips/kernel/relocate.c 	int res;
res               159 arch/mips/kernel/relocate.c 		res = reloc_handlers_rel[type](loc_orig, loc_new, offset);
res               160 arch/mips/kernel/relocate.c 		if (res)
res               161 arch/mips/kernel/relocate.c 			return res;
res               303 arch/mips/kernel/relocate.c 	int res = 1;
res               360 arch/mips/kernel/relocate.c 		res = do_relocations(&_text, loc_new, offset);
res               361 arch/mips/kernel/relocate.c 		if (res < 0)
res               367 arch/mips/kernel/relocate.c 		res = relocate_exception_table(offset);
res               368 arch/mips/kernel/relocate.c 		if (res < 0)
res               506 arch/mips/kernel/setup.c static void __init request_crashkernel(struct resource *res)
res               513 arch/mips/kernel/setup.c 	ret = request_resource(res, &crashk_res);
res               525 arch/mips/kernel/setup.c static void __init request_crashkernel(struct resource *res)
res               689 arch/mips/kernel/setup.c 		struct resource *res;
res               691 arch/mips/kernel/setup.c 		res = memblock_alloc(sizeof(struct resource), SMP_CACHE_BYTES);
res               692 arch/mips/kernel/setup.c 		if (!res)
res               696 arch/mips/kernel/setup.c 		res->start = start;
res               697 arch/mips/kernel/setup.c 		res->end = end;
res               698 arch/mips/kernel/setup.c 		res->flags = IORESOURCE_SYSTEM_RAM | IORESOURCE_BUSY;
res               699 arch/mips/kernel/setup.c 		res->name = "System RAM";
res               701 arch/mips/kernel/setup.c 		request_resource(&iomem_resource, res);
res               708 arch/mips/kernel/setup.c 		request_resource(res, &code_resource);
res               709 arch/mips/kernel/setup.c 		request_resource(res, &data_resource);
res               710 arch/mips/kernel/setup.c 		request_resource(res, &bss_resource);
res               711 arch/mips/kernel/setup.c 		request_crashkernel(res);
res                37 arch/mips/kernel/spram.c 	unsigned int res;
res                38 arch/mips/kernel/spram.c 	res = read_c0_errctl();
res                39 arch/mips/kernel/spram.c 	write_c0_errctl(res | set);
res                40 arch/mips/kernel/spram.c 	return res;
res               112 arch/mips/kernel/unaligned.c #define     _LoadHW(addr, value, res, type)  \
res               130 arch/mips/kernel/unaligned.c 			: "=&r" (value), "=r" (res)         \
res               135 arch/mips/kernel/unaligned.c #define     _LoadW(addr, value, res, type)   \
res               151 arch/mips/kernel/unaligned.c 			: "=&r" (value), "=r" (res)         \
res               157 arch/mips/kernel/unaligned.c #define     _LoadW(addr, value, res, type) \
res               186 arch/mips/kernel/unaligned.c 			: "=&r" (value), "=r" (res)	    \
res               192 arch/mips/kernel/unaligned.c #define     _LoadHWU(addr, value, res, type) \
res               212 arch/mips/kernel/unaligned.c 			: "=&r" (value), "=r" (res)         \
res               217 arch/mips/kernel/unaligned.c #define     _LoadWU(addr, value, res, type)  \
res               235 arch/mips/kernel/unaligned.c 			: "=&r" (value), "=r" (res)         \
res               239 arch/mips/kernel/unaligned.c #define     _LoadDW(addr, value, res)  \
res               255 arch/mips/kernel/unaligned.c 			: "=&r" (value), "=r" (res)         \
res               261 arch/mips/kernel/unaligned.c #define	    _LoadWU(addr, value, res, type) \
res               290 arch/mips/kernel/unaligned.c 			: "=&r" (value), "=r" (res)	    \
res               294 arch/mips/kernel/unaligned.c #define     _LoadDW(addr, value, res)  \
res               339 arch/mips/kernel/unaligned.c 			: "=&r" (value), "=r" (res)	    \
res               346 arch/mips/kernel/unaligned.c #define     _StoreHW(addr, value, res, type) \
res               365 arch/mips/kernel/unaligned.c 			: "=r" (res)                        \
res               370 arch/mips/kernel/unaligned.c #define     _StoreW(addr, value, res, type)  \
res               386 arch/mips/kernel/unaligned.c 		: "=r" (res)                                \
res               390 arch/mips/kernel/unaligned.c #define     _StoreDW(addr, value, res) \
res               406 arch/mips/kernel/unaligned.c 		: "=r" (res)                                \
res               411 arch/mips/kernel/unaligned.c #define     _StoreW(addr, value, res, type)  \
res               437 arch/mips/kernel/unaligned.c 		: "=&r" (res)			    	    \
res               442 arch/mips/kernel/unaligned.c #define     _StoreDW(addr, value, res) \
res               481 arch/mips/kernel/unaligned.c 		: "=&r" (res)			    	    \
res               490 arch/mips/kernel/unaligned.c #define     _LoadHW(addr, value, res, type)  \
res               508 arch/mips/kernel/unaligned.c 			: "=&r" (value), "=r" (res)         \
res               513 arch/mips/kernel/unaligned.c #define     _LoadW(addr, value, res, type)   \
res               529 arch/mips/kernel/unaligned.c 			: "=&r" (value), "=r" (res)         \
res               535 arch/mips/kernel/unaligned.c #define     _LoadW(addr, value, res, type) \
res               564 arch/mips/kernel/unaligned.c 			: "=&r" (value), "=r" (res)	    \
res               571 arch/mips/kernel/unaligned.c #define     _LoadHWU(addr, value, res, type) \
res               591 arch/mips/kernel/unaligned.c 			: "=&r" (value), "=r" (res)         \
res               596 arch/mips/kernel/unaligned.c #define     _LoadWU(addr, value, res, type)  \
res               614 arch/mips/kernel/unaligned.c 			: "=&r" (value), "=r" (res)         \
res               618 arch/mips/kernel/unaligned.c #define     _LoadDW(addr, value, res)  \
res               634 arch/mips/kernel/unaligned.c 			: "=&r" (value), "=r" (res)         \
res               640 arch/mips/kernel/unaligned.c #define	    _LoadWU(addr, value, res, type) \
res               669 arch/mips/kernel/unaligned.c 			: "=&r" (value), "=r" (res)	    \
res               673 arch/mips/kernel/unaligned.c #define     _LoadDW(addr, value, res)  \
res               718 arch/mips/kernel/unaligned.c 			: "=&r" (value), "=r" (res)	    \
res               723 arch/mips/kernel/unaligned.c #define     _StoreHW(addr, value, res, type) \
res               742 arch/mips/kernel/unaligned.c 			: "=r" (res)                        \
res               747 arch/mips/kernel/unaligned.c #define     _StoreW(addr, value, res, type)  \
res               763 arch/mips/kernel/unaligned.c 		: "=r" (res)                                \
res               767 arch/mips/kernel/unaligned.c #define     _StoreDW(addr, value, res) \
res               783 arch/mips/kernel/unaligned.c 		: "=r" (res)                                \
res               789 arch/mips/kernel/unaligned.c #define     _StoreW(addr, value, res, type)  \
res               815 arch/mips/kernel/unaligned.c 		: "=&r" (res)			    	    \
res               820 arch/mips/kernel/unaligned.c #define     _StoreDW(addr, value, res) \
res               859 arch/mips/kernel/unaligned.c 		: "=&r" (res)			    	    \
res               867 arch/mips/kernel/unaligned.c #define LoadHWU(addr, value, res)	_LoadHWU(addr, value, res, kernel)
res               868 arch/mips/kernel/unaligned.c #define LoadHWUE(addr, value, res)	_LoadHWU(addr, value, res, user)
res               869 arch/mips/kernel/unaligned.c #define LoadWU(addr, value, res)	_LoadWU(addr, value, res, kernel)
res               870 arch/mips/kernel/unaligned.c #define LoadWUE(addr, value, res)	_LoadWU(addr, value, res, user)
res               871 arch/mips/kernel/unaligned.c #define LoadHW(addr, value, res)	_LoadHW(addr, value, res, kernel)
res               872 arch/mips/kernel/unaligned.c #define LoadHWE(addr, value, res)	_LoadHW(addr, value, res, user)
res               873 arch/mips/kernel/unaligned.c #define LoadW(addr, value, res)		_LoadW(addr, value, res, kernel)
res               874 arch/mips/kernel/unaligned.c #define LoadWE(addr, value, res)	_LoadW(addr, value, res, user)
res               875 arch/mips/kernel/unaligned.c #define LoadDW(addr, value, res)	_LoadDW(addr, value, res)
res               877 arch/mips/kernel/unaligned.c #define StoreHW(addr, value, res)	_StoreHW(addr, value, res, kernel)
res               878 arch/mips/kernel/unaligned.c #define StoreHWE(addr, value, res)	_StoreHW(addr, value, res, user)
res               879 arch/mips/kernel/unaligned.c #define StoreW(addr, value, res)	_StoreW(addr, value, res, kernel)
res               880 arch/mips/kernel/unaligned.c #define StoreWE(addr, value, res)	_StoreW(addr, value, res, user)
res               881 arch/mips/kernel/unaligned.c #define StoreDW(addr, value, res)	_StoreDW(addr, value, res)
res               888 arch/mips/kernel/unaligned.c 	unsigned int res;
res               942 arch/mips/kernel/unaligned.c 				LoadW(addr, value, res);
res               943 arch/mips/kernel/unaligned.c 				if (res)
res               951 arch/mips/kernel/unaligned.c 				LoadHW(addr, value, res);
res               952 arch/mips/kernel/unaligned.c 				if (res)
res               976 arch/mips/kernel/unaligned.c 				LoadHWE(addr, value, res);
res               977 arch/mips/kernel/unaligned.c 				if (res) {
res               989 arch/mips/kernel/unaligned.c 				LoadWE(addr, value, res);
res               990 arch/mips/kernel/unaligned.c 				if (res) {
res              1002 arch/mips/kernel/unaligned.c 				LoadHWUE(addr, value, res);
res              1003 arch/mips/kernel/unaligned.c 				if (res) {
res              1017 arch/mips/kernel/unaligned.c 				StoreHWE(addr, value, res);
res              1018 arch/mips/kernel/unaligned.c 				if (res) {
res              1030 arch/mips/kernel/unaligned.c 				StoreWE(addr, value, res);
res              1031 arch/mips/kernel/unaligned.c 				if (res) {
res              1050 arch/mips/kernel/unaligned.c 				LoadHW(addr, value, res);
res              1052 arch/mips/kernel/unaligned.c 				LoadHWE(addr, value, res);
res              1054 arch/mips/kernel/unaligned.c 			LoadHW(addr, value, res);
res              1057 arch/mips/kernel/unaligned.c 		if (res)
res              1069 arch/mips/kernel/unaligned.c 				LoadW(addr, value, res);
res              1071 arch/mips/kernel/unaligned.c 				LoadWE(addr, value, res);
res              1073 arch/mips/kernel/unaligned.c 			LoadW(addr, value, res);
res              1076 arch/mips/kernel/unaligned.c 		if (res)
res              1088 arch/mips/kernel/unaligned.c 				LoadHWU(addr, value, res);
res              1090 arch/mips/kernel/unaligned.c 				LoadHWUE(addr, value, res);
res              1092 arch/mips/kernel/unaligned.c 			LoadHWU(addr, value, res);
res              1095 arch/mips/kernel/unaligned.c 		if (res)
res              1113 arch/mips/kernel/unaligned.c 		LoadWU(addr, value, res);
res              1114 arch/mips/kernel/unaligned.c 		if (res)
res              1136 arch/mips/kernel/unaligned.c 		LoadDW(addr, value, res);
res              1137 arch/mips/kernel/unaligned.c 		if (res)
res              1156 arch/mips/kernel/unaligned.c 				StoreHW(addr, value, res);
res              1158 arch/mips/kernel/unaligned.c 				StoreHWE(addr, value, res);
res              1160 arch/mips/kernel/unaligned.c 			StoreHW(addr, value, res);
res              1163 arch/mips/kernel/unaligned.c 		if (res)
res              1176 arch/mips/kernel/unaligned.c 				StoreW(addr, value, res);
res              1178 arch/mips/kernel/unaligned.c 				StoreWE(addr, value, res);
res              1180 arch/mips/kernel/unaligned.c 			StoreW(addr, value, res);
res              1183 arch/mips/kernel/unaligned.c 		if (res)
res              1201 arch/mips/kernel/unaligned.c 		StoreDW(addr, value, res);
res              1202 arch/mips/kernel/unaligned.c 		if (res)
res              1222 arch/mips/kernel/unaligned.c 		res = fpu_emulator_cop1Handler(regs, &current->thread.fpu, 1,
res              1227 arch/mips/kernel/unaligned.c 		process_fpemu_return(res, fault_addr, 0);
res              1229 arch/mips/kernel/unaligned.c 		if (res == 0)
res              1273 arch/mips/kernel/unaligned.c 				res = __copy_from_user_inatomic(fpr, addr,
res              1275 arch/mips/kernel/unaligned.c 				if (res)
res              1307 arch/mips/kernel/unaligned.c 			res = __copy_to_user_inatomic(addr, fpr, sizeof(*fpr));
res              1308 arch/mips/kernel/unaligned.c 			if (res)
res              1394 arch/mips/kernel/unaligned.c 	unsigned int res;
res              1470 arch/mips/kernel/unaligned.c 			LoadW(addr, value, res);
res              1471 arch/mips/kernel/unaligned.c 			if (res)
res              1475 arch/mips/kernel/unaligned.c 			LoadW(addr, value, res);
res              1476 arch/mips/kernel/unaligned.c 			if (res)
res              1490 arch/mips/kernel/unaligned.c 			StoreW(addr, value, res);
res              1491 arch/mips/kernel/unaligned.c 			if (res)
res              1495 arch/mips/kernel/unaligned.c 			StoreW(addr, value, res);
res              1496 arch/mips/kernel/unaligned.c 			if (res)
res              1509 arch/mips/kernel/unaligned.c 			LoadDW(addr, value, res);
res              1510 arch/mips/kernel/unaligned.c 			if (res)
res              1514 arch/mips/kernel/unaligned.c 			LoadDW(addr, value, res);
res              1515 arch/mips/kernel/unaligned.c 			if (res)
res              1533 arch/mips/kernel/unaligned.c 			StoreDW(addr, value, res);
res              1534 arch/mips/kernel/unaligned.c 			if (res)
res              1538 arch/mips/kernel/unaligned.c 			StoreDW(addr, value, res);
res              1539 arch/mips/kernel/unaligned.c 			if (res)
res              1561 arch/mips/kernel/unaligned.c 				LoadW(addr, value, res);
res              1562 arch/mips/kernel/unaligned.c 				if (res)
res              1568 arch/mips/kernel/unaligned.c 				LoadW(addr, value, res);
res              1569 arch/mips/kernel/unaligned.c 				if (res)
res              1575 arch/mips/kernel/unaligned.c 				LoadW(addr, value, res);
res              1576 arch/mips/kernel/unaligned.c 				if (res)
res              1598 arch/mips/kernel/unaligned.c 				StoreW(addr, value, res);
res              1599 arch/mips/kernel/unaligned.c 				if (res)
res              1605 arch/mips/kernel/unaligned.c 				StoreW(addr, value, res);
res              1606 arch/mips/kernel/unaligned.c 				if (res)
res              1612 arch/mips/kernel/unaligned.c 				StoreW(addr, value, res);
res              1613 arch/mips/kernel/unaligned.c 				if (res)
res              1635 arch/mips/kernel/unaligned.c 				LoadDW(addr, value, res);
res              1636 arch/mips/kernel/unaligned.c 				if (res)
res              1642 arch/mips/kernel/unaligned.c 				LoadDW(addr, value, res);
res              1643 arch/mips/kernel/unaligned.c 				if (res)
res              1649 arch/mips/kernel/unaligned.c 				LoadDW(addr, value, res);
res              1650 arch/mips/kernel/unaligned.c 				if (res)
res              1677 arch/mips/kernel/unaligned.c 				StoreDW(addr, value, res);
res              1678 arch/mips/kernel/unaligned.c 				if (res)
res              1684 arch/mips/kernel/unaligned.c 				StoreDW(addr, value, res);
res              1685 arch/mips/kernel/unaligned.c 				if (res)
res              1691 arch/mips/kernel/unaligned.c 				StoreDW(addr, value, res);
res              1692 arch/mips/kernel/unaligned.c 				if (res)
res              1742 arch/mips/kernel/unaligned.c 		res = fpu_emulator_cop1Handler(regs, &current->thread.fpu, 1,
res              1747 arch/mips/kernel/unaligned.c 		process_fpemu_return(res, fault_addr, 0);
res              1749 arch/mips/kernel/unaligned.c 		if (res == 0)
res              1792 arch/mips/kernel/unaligned.c 				LoadW(addr, value, res);
res              1793 arch/mips/kernel/unaligned.c 				if (res)
res              1798 arch/mips/kernel/unaligned.c 			LoadW(addr, value, res);
res              1799 arch/mips/kernel/unaligned.c 			if (res)
res              1813 arch/mips/kernel/unaligned.c 				StoreW(addr, value, res);
res              1814 arch/mips/kernel/unaligned.c 				if (res)
res              1819 arch/mips/kernel/unaligned.c 			StoreW(addr, value, res);
res              1820 arch/mips/kernel/unaligned.c 			if (res)
res              1865 arch/mips/kernel/unaligned.c 	LoadHW(addr, value, res);
res              1866 arch/mips/kernel/unaligned.c 	if (res)
res              1875 arch/mips/kernel/unaligned.c 	LoadHWU(addr, value, res);
res              1876 arch/mips/kernel/unaligned.c 	if (res)
res              1885 arch/mips/kernel/unaligned.c 	LoadW(addr, value, res);
res              1886 arch/mips/kernel/unaligned.c 	if (res)
res              1903 arch/mips/kernel/unaligned.c 	LoadWU(addr, value, res);
res              1904 arch/mips/kernel/unaligned.c 	if (res)
res              1925 arch/mips/kernel/unaligned.c 	LoadDW(addr, value, res);
res              1926 arch/mips/kernel/unaligned.c 	if (res)
res              1940 arch/mips/kernel/unaligned.c 	StoreHW(addr, value, res);
res              1941 arch/mips/kernel/unaligned.c 	if (res)
res              1950 arch/mips/kernel/unaligned.c 	StoreW(addr, value, res);
res              1951 arch/mips/kernel/unaligned.c 	if (res)
res              1968 arch/mips/kernel/unaligned.c 	StoreDW(addr, value, res);
res              1969 arch/mips/kernel/unaligned.c 	if (res)
res              2013 arch/mips/kernel/unaligned.c 	unsigned int res;
res              2125 arch/mips/kernel/unaligned.c 		LoadHW(addr, value, res);
res              2126 arch/mips/kernel/unaligned.c 		if (res)
res              2136 arch/mips/kernel/unaligned.c 		LoadHWU(addr, value, res);
res              2137 arch/mips/kernel/unaligned.c 		if (res)
res              2149 arch/mips/kernel/unaligned.c 		LoadW(addr, value, res);
res              2150 arch/mips/kernel/unaligned.c 		if (res)
res              2168 arch/mips/kernel/unaligned.c 		LoadWU(addr, value, res);
res              2169 arch/mips/kernel/unaligned.c 		if (res)
res              2192 arch/mips/kernel/unaligned.c 		LoadDW(addr, value, res);
res              2193 arch/mips/kernel/unaligned.c 		if (res)
res              2209 arch/mips/kernel/unaligned.c 		StoreHW(addr, value, res);
res              2210 arch/mips/kernel/unaligned.c 		if (res)
res              2222 arch/mips/kernel/unaligned.c 		StoreW(addr, value, res);
res              2223 arch/mips/kernel/unaligned.c 		if (res)
res              2242 arch/mips/kernel/unaligned.c 		StoreDW(addr, value, res);
res              2243 arch/mips/kernel/unaligned.c 		if (res)
res                55 arch/mips/kernel/vpe.c 	struct vpe *res, *v;
res                60 arch/mips/kernel/vpe.c 	res = NULL;
res                64 arch/mips/kernel/vpe.c 			res = v;
res                70 arch/mips/kernel/vpe.c 	return res;
res                76 arch/mips/kernel/vpe.c 	struct tc *res, *t;
res                78 arch/mips/kernel/vpe.c 	res = NULL;
res                82 arch/mips/kernel/vpe.c 			res = t;
res                88 arch/mips/kernel/vpe.c 	return res;
res               436 arch/mips/kernel/vpe.c 	int res;
res               456 arch/mips/kernel/vpe.c 		res = reloc_handlers[ELF32_R_TYPE(r_info)](me, location, v);
res               457 arch/mips/kernel/vpe.c 		if (res) {
res               462 arch/mips/kernel/vpe.c 			return res;
res               163 arch/mips/lantiq/clk.c 	u32 res;
res               170 arch/mips/lantiq/clk.c 		: "=&r" (res)
res               174 arch/mips/lantiq/clk.c 	return res;
res               340 arch/mips/lantiq/irq.c 	struct resource res;
res               345 arch/mips/lantiq/irq.c 		if (of_address_to_resource(node, vpe, &res))
res               348 arch/mips/lantiq/irq.c 		if (!request_mem_region(res.start, resource_size(&res),
res               349 arch/mips/lantiq/irq.c 					res.name))
res               352 arch/mips/lantiq/irq.c 		ltq_icu_membase[vpe] = ioremap_nocache(res.start,
res               353 arch/mips/lantiq/irq.c 					resource_size(&res));
res               388 arch/mips/lantiq/irq.c 	if (eiu_node && !of_address_to_resource(eiu_node, 0, &res)) {
res               401 arch/mips/lantiq/irq.c 		if (!request_mem_region(res.start, resource_size(&res),
res               402 arch/mips/lantiq/irq.c 							res.name))
res               405 arch/mips/lantiq/irq.c 		ltq_eiu_membase = ioremap_nocache(res.start,
res               406 arch/mips/lantiq/irq.c 							resource_size(&res));
res                25 arch/mips/lantiq/xway/dcdc.c 	struct resource *res;
res                27 arch/mips/lantiq/xway/dcdc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                28 arch/mips/lantiq/xway/dcdc.c 	dcdc_membase = devm_ioremap_resource(&pdev->dev, res);
res               207 arch/mips/lantiq/xway/dma.c 	struct resource *res;
res               211 arch/mips/lantiq/xway/dma.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               212 arch/mips/lantiq/xway/dma.c 	ltq_dma_membase = devm_ioremap_resource(&pdev->dev, res);
res               137 arch/mips/lantiq/xway/gptu.c 	struct resource *res;
res               144 arch/mips/lantiq/xway/gptu.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               147 arch/mips/lantiq/xway/gptu.c 	gptu_membase = devm_ioremap_resource(&pdev->dev, res);
res                93 arch/mips/lib/bitops.c 	int res;
res                98 arch/mips/lib/bitops.c 	res = (mask & *a) != 0;
res               101 arch/mips/lib/bitops.c 	return res;
res               119 arch/mips/lib/bitops.c 	int res;
res               124 arch/mips/lib/bitops.c 	res = (mask & *a) != 0;
res               127 arch/mips/lib/bitops.c 	return res;
res               144 arch/mips/lib/bitops.c 	int res;
res               149 arch/mips/lib/bitops.c 	res = (mask & *a) != 0;
res               152 arch/mips/lib/bitops.c 	return res;
res               169 arch/mips/lib/bitops.c 	int res;
res               174 arch/mips/lib/bitops.c 	res = (mask & *a) != 0;
res               177 arch/mips/lib/bitops.c 	return res;
res                17 arch/mips/lib/multi3.c 	long long res;
res                19 arch/mips/lib/multi3.c 	asm ("dmulu %0,%1,%2" : "=r" (res) : "r" (a), "r" (b));
res                20 arch/mips/lib/multi3.c 	return res;
res                26 arch/mips/lib/multi3.c 	long long res;
res                28 arch/mips/lib/multi3.c 	asm ("dmuhu %0,%1,%2" : "=r" (res) : "r" (a), "r" (b));
res                29 arch/mips/lib/multi3.c 	return res;
res                35 arch/mips/lib/multi3.c 	TWunion res, aa, bb;
res                45 arch/mips/lib/multi3.c 	res.s.low = dmulu(aa.s.low, bb.s.low);
res                46 arch/mips/lib/multi3.c 	res.s.high = dmuhu(aa.s.low, bb.s.low);
res                47 arch/mips/lib/multi3.c 	res.s.high += dmulu(aa.s.high, bb.s.low);
res                48 arch/mips/lib/multi3.c 	res.s.high += dmulu(aa.s.low, bb.s.high);
res                50 arch/mips/lib/multi3.c 	return res.ti;
res                33 arch/mips/loongson64/common/env.c #define parse_even_earlier(res, option, p)				\
res                38 arch/mips/loongson64/common/env.c 		tmp = kstrtou32((char *)p + strlen(option"="), 10, &res); \
res               162 arch/mips/loongson64/loongson-3/hpet.c 	s32 res;
res               168 arch/mips/loongson64/loongson-3/hpet.c 	res = (s32)(cnt - hpet_read(HPET_COUNTER));
res               170 arch/mips/loongson64/loongson-3/hpet.c 	return res < HPET_MIN_CYCLES ? -ETIME : 0;
res               167 arch/mips/mm/cerr-sb1.c 	uint32_t errctl, cerr_i, cerr_d, dpalo, dpahi, eepc, res;
res               207 arch/mips/mm/cerr-sb1.c 				res = extract_ic(cerr_i & SB1_CACHE_INDEX_MASK,
res               209 arch/mips/mm/cerr-sb1.c 				if (!(res & cerr_i))
res               220 arch/mips/mm/cerr-sb1.c 				res = extract_dc(cerr_dpa & SB1_CACHE_INDEX_MASK,
res               222 arch/mips/mm/cerr-sb1.c 				if (!(res & cerr_d))
res               228 arch/mips/mm/cerr-sb1.c 					res = extract_dc(cerr_d & SB1_CACHE_INDEX_MASK,
res               230 arch/mips/mm/cerr-sb1.c 					if (!(res & cerr_d))
res               327 arch/mips/mm/cerr-sb1.c 	int res = 0;
res               365 arch/mips/mm/cerr-sb1.c 				res |= CP0_CERRI_TAG_PARITY;
res               369 arch/mips/mm/cerr-sb1.c 				res |= CP0_CERRI_TAG_PARITY;
res               374 arch/mips/mm/cerr-sb1.c 			res |= CP0_CERRI_TAG_PARITY;
res               403 arch/mips/mm/cerr-sb1.c 					res |= CP0_CERRI_DATA_PARITY;
res               408 arch/mips/mm/cerr-sb1.c 					res |= CP0_CERRI_DATA_PARITY;
res               412 arch/mips/mm/cerr-sb1.c 					res |= CP0_CERRI_DATA_PARITY;
res               419 arch/mips/mm/cerr-sb1.c 	return res;
res               482 arch/mips/mm/cerr-sb1.c 	int res = 0;
res               519 arch/mips/mm/cerr-sb1.c 				res |= CP0_CERRD_TAG_ADDRESS;
res               523 arch/mips/mm/cerr-sb1.c 				res |= CP0_CERRD_TAG_ADDRESS;
res               526 arch/mips/mm/cerr-sb1.c 			res |= CP0_CERRD_TAG_STATE;
res               557 arch/mips/mm/cerr-sb1.c 					res |= (bits == 1) ? CP0_CERRD_DATA_SBE : CP0_CERRD_DATA_DBE;
res               568 arch/mips/mm/cerr-sb1.c 	return res;
res               288 arch/mips/netlogic/common/irq.c 	struct resource res;
res               292 arch/mips/netlogic/common/irq.c 	ret = of_address_to_resource(node, 0, &res);
res               299 arch/mips/netlogic/common/irq.c 		bus = (res.start >> 20) & 0xf;
res               312 arch/mips/netlogic/common/irq.c 		socid = (res.start >> 18) & 0x3;
res               332 arch/mips/netlogic/common/irq.c 	pr_info("Node %d: IRQ domain created for PIC@%pR\n", socid, &res);
res               143 arch/mips/netlogic/xlr/platform-flash.c 	uint64_t flash_map_base, int cs, struct resource *res)
res               150 arch/mips/netlogic/xlr/platform-flash.c 	res->start = flash_map_base + ((unsigned long)base << 16);
res               151 arch/mips/netlogic/xlr/platform-flash.c 	res->end = res->start + (mask + 1) * 64 * 1024;
res                78 arch/mips/oprofile/common.c 	int res;
res               124 arch/mips/oprofile/common.c 	res = lmodel->init();
res               125 arch/mips/oprofile/common.c 	if (res)
res               126 arch/mips/oprofile/common.c 		return res;
res                43 arch/mips/pci/fixup-loongson3.c 	struct resource *res = &pdev->resource[PCI_ROM_RESOURCE];
res                45 arch/mips/pci/fixup-loongson3.c 	if (res->start)
res                52 arch/mips/pci/fixup-loongson3.c 	if (res->parent)
res                53 arch/mips/pci/fixup-loongson3.c 		release_resource(res);
res                55 arch/mips/pci/fixup-loongson3.c 	res->start = virt_to_phys((void *) loongson_sysconf.vgabios_addr);
res                56 arch/mips/pci/fixup-loongson3.c 	res->end   = res->start + 256*1024 - 1;
res                57 arch/mips/pci/fixup-loongson3.c 	res->flags = IORESOURCE_MEM | IORESOURCE_ROM_SHADOW |
res                61 arch/mips/pci/fixup-loongson3.c 		 PCI_ROM_RESOURCE, res);
res                43 arch/mips/pci/ops-sni.c 	int res;
res                45 arch/mips/pci/ops-sni.c 	if ((res = set_config_address(bus->number, devfn, reg)))
res                46 arch/mips/pci/ops-sni.c 		return res;
res                66 arch/mips/pci/ops-sni.c 	int res;
res                68 arch/mips/pci/ops-sni.c 	if ((res = set_config_address(bus->number, devfn, reg)))
res                69 arch/mips/pci/ops-sni.c 		return res;
res               103 arch/mips/pci/ops-sni.c 	int res;
res               113 arch/mips/pci/ops-sni.c 		if ((res = pcit_set_config_address(0, devfn, 0)))
res               114 arch/mips/pci/ops-sni.c 			return res;
res               120 arch/mips/pci/ops-sni.c 	if ((res = pcit_set_config_address(bus->number, devfn, reg)))
res               121 arch/mips/pci/ops-sni.c 		return res;
res               140 arch/mips/pci/ops-sni.c 	int res;
res               142 arch/mips/pci/ops-sni.c 	if ((res = pcit_set_config_address(bus->number, devfn, reg)))
res               143 arch/mips/pci/ops-sni.c 		return res;
res               310 arch/mips/pci/pci-ar2315.c 	int res;
res               313 arch/mips/pci/pci-ar2315.c 	res = ar2315_pci_local_cfg_rd(apc, devfn, PCI_VENDOR_ID, &id);
res               314 arch/mips/pci/pci-ar2315.c 	if (res != PCIBIOS_SUCCESSFUL || id != AR2315_PCI_HOST_DEVID)
res               414 arch/mips/pci/pci-ar2315.c 	struct resource *res;
res               426 arch/mips/pci/pci-ar2315.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
res               428 arch/mips/pci/pci-ar2315.c 	apc->mmr_mem = devm_ioremap_resource(dev, res);
res               432 arch/mips/pci/pci-ar2315.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
res               434 arch/mips/pci/pci-ar2315.c 	if (!res)
res               438 arch/mips/pci/pci-ar2315.c 	apc->mem_res.parent = res;
res               439 arch/mips/pci/pci-ar2315.c 	apc->mem_res.start = res->start;
res               440 arch/mips/pci/pci-ar2315.c 	apc->mem_res.end = res->end;
res               444 arch/mips/pci/pci-ar2315.c 	apc->cfg_mem = devm_ioremap_nocache(dev, res->start,
res               331 arch/mips/pci/pci-ar71xx.c 	struct resource *res;
res               339 arch/mips/pci/pci-ar71xx.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "cfg_base");
res               340 arch/mips/pci/pci-ar71xx.c 	apc->cfg_base = devm_ioremap_resource(&pdev->dev, res);
res               348 arch/mips/pci/pci-ar71xx.c 	res = platform_get_resource_byname(pdev, IORESOURCE_IO, "io_base");
res               349 arch/mips/pci/pci-ar71xx.c 	if (!res)
res               352 arch/mips/pci/pci-ar71xx.c 	apc->io_res.parent = res;
res               354 arch/mips/pci/pci-ar71xx.c 	apc->io_res.start = res->start;
res               355 arch/mips/pci/pci-ar71xx.c 	apc->io_res.end = res->end;
res               358 arch/mips/pci/pci-ar71xx.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "mem_base");
res               359 arch/mips/pci/pci-ar71xx.c 	if (!res)
res               362 arch/mips/pci/pci-ar71xx.c 	apc->mem_res.parent = res;
res               364 arch/mips/pci/pci-ar71xx.c 	apc->mem_res.start = res->start;
res               365 arch/mips/pci/pci-ar71xx.c 	apc->mem_res.end = res->end;
res               363 arch/mips/pci/pci-ar724x.c 	struct resource *res;
res               375 arch/mips/pci/pci-ar724x.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "ctrl_base");
res               376 arch/mips/pci/pci-ar724x.c 	apc->ctrl_base = devm_ioremap_resource(&pdev->dev, res);
res               380 arch/mips/pci/pci-ar724x.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "cfg_base");
res               381 arch/mips/pci/pci-ar724x.c 	apc->devcfg_base = devm_ioremap_resource(&pdev->dev, res);
res               385 arch/mips/pci/pci-ar724x.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "crp_base");
res               386 arch/mips/pci/pci-ar724x.c 	apc->crp_base = devm_ioremap_resource(&pdev->dev, res);
res               394 arch/mips/pci/pci-ar724x.c 	res = platform_get_resource_byname(pdev, IORESOURCE_IO, "io_base");
res               395 arch/mips/pci/pci-ar724x.c 	if (!res)
res               398 arch/mips/pci/pci-ar724x.c 	apc->io_res.parent = res;
res               400 arch/mips/pci/pci-ar724x.c 	apc->io_res.start = res->start;
res               401 arch/mips/pci/pci-ar724x.c 	apc->io_res.end = res->end;
res               404 arch/mips/pci/pci-ar724x.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "mem_base");
res               405 arch/mips/pci/pci-ar724x.c 	if (!res)
res               408 arch/mips/pci/pci-ar724x.c 	apc->mem_res.parent = res;
res               410 arch/mips/pci/pci-ar724x.c 	apc->mem_res.start = res->start;
res               411 arch/mips/pci/pci-ar724x.c 	apc->mem_res.end = res->end;
res                39 arch/mips/pci/pci-bcm47xx.c 	int res;
res                42 arch/mips/pci/pci-bcm47xx.c 	res = ssb_pcibios_plat_dev_init(dev);
res                43 arch/mips/pci/pci-bcm47xx.c 	if (res < 0) {
res                46 arch/mips/pci/pci-bcm47xx.c 		return res;
res                51 arch/mips/pci/pci-bcm47xx.c 	res = ssb_pcibios_map_irq(dev, slot, pin);
res                54 arch/mips/pci/pci-bcm47xx.c 	if (res < 2) {
res                57 arch/mips/pci/pci-bcm47xx.c 		return res;
res                60 arch/mips/pci/pci-bcm47xx.c 	dev->irq = res;
res                68 arch/mips/pci/pci-bcm47xx.c 	int res;
res                70 arch/mips/pci/pci-bcm47xx.c 	res = bcma_core_pci_plat_dev_init(dev);
res                71 arch/mips/pci/pci-bcm47xx.c 	if (res < 0) {
res                74 arch/mips/pci/pci-bcm47xx.c 		return res;
res                77 arch/mips/pci/pci-bcm47xx.c 	res = bcma_core_pci_pcibios_map_irq(dev);
res                80 arch/mips/pci/pci-bcm47xx.c 	if (res < 2) {
res                83 arch/mips/pci/pci-bcm47xx.c 		return res;
res                86 arch/mips/pci/pci-bcm47xx.c 	dev->irq = res;
res                24 arch/mips/pci/pci-generic.c resource_size_t pcibios_align_resource(void *data, const struct resource *res,
res                28 arch/mips/pci/pci-generic.c 	resource_size_t start = res->start;
res                31 arch/mips/pci/pci-generic.c 	if (res->flags & IORESOURCE_IO && start & 0x300)
res                39 arch/mips/pci/pci-generic.c 		return host_bridge->align_resource(dev, res,
res                46 arch/mips/pci/pci-legacy.c pcibios_align_resource(void *data, const struct resource *res,
res                51 arch/mips/pci/pci-legacy.c 	resource_size_t start = res->start;
res                53 arch/mips/pci/pci-legacy.c 	if (res->flags & IORESOURCE_IO) {
res                63 arch/mips/pci/pci-legacy.c 	} else if (res->flags & IORESOURCE_MEM) {
res               150 arch/mips/pci/pci-legacy.c 		struct resource *res = NULL;
res               160 arch/mips/pci/pci-legacy.c 			res = hose->io_resource;
res               166 arch/mips/pci/pci-legacy.c 			res = hose->mem_resource;
res               169 arch/mips/pci/pci-legacy.c 		if (res != NULL)
res               170 arch/mips/pci/pci-legacy.c 			of_pci_range_to_resource(&range, node, res);
res               413 arch/mips/pci/pci-rt3883.c 	struct resource *res;
res               423 arch/mips/pci/pci-rt3883.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               424 arch/mips/pci/pci-rt3883.c 	rpc->base = devm_ioremap_resource(dev, res);
res               292 arch/mips/pci/pci-vr41xx.c 		struct resource *res = vr41xx_pci_controller.io_resource;
res               295 arch/mips/pci/pci-vr41xx.c 				      resource_size(res));
res               102 arch/mips/pci/pci-xtalk-bridge.c 	int res;
res               120 arch/mips/pci/pci-xtalk-bridge.c 		res = get_dbe(*value, (u8 *)addr);
res               122 arch/mips/pci/pci-xtalk-bridge.c 		res = get_dbe(*value, (u16 *)addr);
res               124 arch/mips/pci/pci-xtalk-bridge.c 		res = get_dbe(*value, (u32 *)addr);
res               126 arch/mips/pci/pci-xtalk-bridge.c 	return res ? PCIBIOS_DEVICE_NOT_FOUND : PCIBIOS_SUCCESSFUL;
res               139 arch/mips/pci/pci-xtalk-bridge.c 	int res;
res               158 arch/mips/pci/pci-xtalk-bridge.c 		res = get_dbe(*value, (u8 *)addr);
res               160 arch/mips/pci/pci-xtalk-bridge.c 		res = get_dbe(*value, (u16 *)addr);
res               162 arch/mips/pci/pci-xtalk-bridge.c 		res = get_dbe(*value, (u32 *)addr);
res               164 arch/mips/pci/pci-xtalk-bridge.c 	return res ? PCIBIOS_DEVICE_NOT_FOUND : PCIBIOS_SUCCESSFUL;
res               185 arch/mips/pci/pci-xtalk-bridge.c 	int res;
res               203 arch/mips/pci/pci-xtalk-bridge.c 		res = put_dbe(value, (u8 *)addr);
res               205 arch/mips/pci/pci-xtalk-bridge.c 		res = put_dbe(value, (u16 *)addr);
res               207 arch/mips/pci/pci-xtalk-bridge.c 		res = put_dbe(value, (u32 *)addr);
res               209 arch/mips/pci/pci-xtalk-bridge.c 	if (res)
res               225 arch/mips/pci/pci-xtalk-bridge.c 	int res;
res               244 arch/mips/pci/pci-xtalk-bridge.c 		res = put_dbe(value, (u8 *)addr);
res               246 arch/mips/pci/pci-xtalk-bridge.c 		res = put_dbe(value, (u16 *)addr);
res               248 arch/mips/pci/pci-xtalk-bridge.c 		res = put_dbe(value, (u32 *)addr);
res               250 arch/mips/pci/pci-xtalk-bridge.c 	if (res)
res               118 arch/mips/pic32/pic32mzda/init.c 	struct resource res;
res               128 arch/mips/pic32/pic32mzda/init.c 			if (!of_address_to_resource(np, 0, &res))
res               129 arch/mips/pic32/pic32mzda/init.c 				lookup->phys_addr = res.start;
res               149 arch/mips/ralink/irq.c 	struct resource res;
res               161 arch/mips/ralink/irq.c 	if (of_address_to_resource(node, 0, &res))
res               164 arch/mips/ralink/irq.c 	if (!request_mem_region(res.start, resource_size(&res),
res               165 arch/mips/ralink/irq.c 				res.name))
res               168 arch/mips/ralink/irq.c 	rt_intc_membase = ioremap_nocache(res.start,
res               169 arch/mips/ralink/irq.c 					resource_size(&res));
res                31 arch/mips/ralink/of.c 	struct resource res;
res                38 arch/mips/ralink/of.c 	if (of_address_to_resource(np, 0, &res))
res                41 arch/mips/ralink/of.c 	if (!request_mem_region(res.start,
res                42 arch/mips/ralink/of.c 				resource_size(&res),
res                43 arch/mips/ralink/of.c 				res.name))
res                46 arch/mips/ralink/of.c 	return ioremap_nocache(res.start, resource_size(&res));
res                98 arch/mips/ralink/timer.c 	struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               112 arch/mips/ralink/timer.c 	rt->membase = devm_ioremap_resource(&pdev->dev, res);
res               268 arch/mips/sgi-ip22/ip22-gio.c static int ip22_gio_id(unsigned long addr, u32 *res)
res               295 arch/mips/sgi-ip22/ip22-gio.c 			*res = tmp32;
res               303 arch/mips/sgi-ip22/ip22-gio.c 			*res = tmp32;
res                39 arch/mips/sgi-ip22/ip22-mc.c 	unsigned int res = bank > 1 ? sgimc->mconfig1 : sgimc->mconfig0;
res                40 arch/mips/sgi-ip22/ip22-mc.c 	return bank % 2 ? res & 0xffff : res >> 16;
res                79 arch/mips/sgi-ip22/ip22-nvram.c 	unsigned short res = 0;
res                92 arch/mips/sgi-ip22/ip22-nvram.c 		res <<= 1;
res                94 arch/mips/sgi-ip22/ip22-nvram.c 			res |= 1;
res                99 arch/mips/sgi-ip22/ip22-nvram.c 	return res;
res                77 arch/mips/sgi-ip22/ip22-platform.c 	int res;
res                82 arch/mips/sgi-ip22/ip22-platform.c 	res = platform_device_register(&sgiwd93_0_device);
res                83 arch/mips/sgi-ip22/ip22-platform.c 	if (res)
res                84 arch/mips/sgi-ip22/ip22-platform.c 		return res;
res               150 arch/mips/sgi-ip22/ip22-platform.c 	int res, i;
res               162 arch/mips/sgi-ip22/ip22-platform.c 	res = platform_device_register(&eth0_device);
res               163 arch/mips/sgi-ip22/ip22-platform.c 	if (res)
res               164 arch/mips/sgi-ip22/ip22-platform.c 		return res;
res               212 arch/mips/sgi-ip22/ip22-platform.c 	struct resource res;
res               214 arch/mips/sgi-ip22/ip22-platform.c 	memset(&res, 0, sizeof(res));
res               215 arch/mips/sgi-ip22/ip22-platform.c 	res.start = HPC3_CHIP0_BASE + offsetof(struct hpc3_regs, rtcregs);
res               216 arch/mips/sgi-ip22/ip22-platform.c 	res.end = res.start + sizeof(hpc3c0->rtcregs) - 1;
res               217 arch/mips/sgi-ip22/ip22-platform.c 	res.flags = IORESOURCE_MEM;
res               220 arch/mips/sgi-ip22/ip22-platform.c 						      &res, 1));
res               185 arch/mips/sgi-ip22/ip22-reset.c 	int res;
res               191 arch/mips/sgi-ip22/ip22-reset.c 	res = request_irq(SGI_PANEL_IRQ, panel_int, 0, "Front Panel", NULL);
res               192 arch/mips/sgi-ip22/ip22-reset.c 	if (res) {
res               194 arch/mips/sgi-ip22/ip22-reset.c 		return res;
res               194 arch/mips/sgi-ip27/ip27-timer.c 	struct resource res;
res               196 arch/mips/sgi-ip27/ip27-timer.c 	memset(&res, 0, sizeof(res));
res               197 arch/mips/sgi-ip27/ip27-timer.c 	res.start = XPHYSADDR(KL_CONFIG_CH_CONS_INFO(master_nasid)->memory_base +
res               199 arch/mips/sgi-ip27/ip27-timer.c 	res.end = res.start + 32767;
res               200 arch/mips/sgi-ip27/ip27-timer.c 	res.flags = IORESOURCE_MEM;
res               203 arch/mips/sgi-ip27/ip27-timer.c 						      &res, 1));
res                26 arch/mips/sni/eisa.c 	.res	       = &ioport_resource,
res               391 arch/mips/txx9/generic/setup.c 	struct resource res = {
res               396 arch/mips/txx9/generic/setup.c 	platform_device_register_simple("txx9wdt", -1, &res, 1);
res               416 arch/mips/txx9/generic/setup.c 	struct resource res[] = {
res               427 arch/mips/txx9/generic/setup.c 					res, ARRAY_SIZE(res));
res               617 arch/mips/txx9/generic/setup.c 	struct resource res = {
res               644 arch/mips/txx9/generic/setup.c 	    platform_device_add_resources(pdev, &res, 1) ||
res               655 arch/mips/txx9/generic/setup.c 	struct resource res = {
res               663 arch/mips/txx9/generic/setup.c 	    platform_device_add_resources(pdev, &res, 1) ||
res               792 arch/mips/txx9/generic/setup.c 	struct resource res[] = {
res               816 arch/mips/txx9/generic/setup.c 	    platform_device_add_resources(pdev, res, ARRAY_SIZE(res)) ||
res               849 arch/mips/txx9/generic/setup.c 	struct resource res[] = {
res               871 arch/mips/txx9/generic/setup.c 	    platform_device_add_resources(pdev, res, ARRAY_SIZE(res)) ||
res               336 arch/mips/txx9/generic/setup_tx4938.c 	struct resource res[] = {
res               369 arch/mips/txx9/generic/setup_tx4938.c 	res[0].start = ((ebccr >> 48) << 20) + 0x10000;
res               370 arch/mips/txx9/generic/setup_tx4938.c 	res[0].end = res[0].start + 0x20000 - 1;
res               373 arch/mips/txx9/generic/setup_tx4938.c 	    platform_device_add_resources(pdev, res, ARRAY_SIZE(res)) ||
res               434 arch/mips/txx9/generic/setup_tx4939.c 	static struct resource res[] = {
res               447 arch/mips/txx9/generic/setup_tx4939.c 		.num_resources = ARRAY_SIZE(res),
res               448 arch/mips/txx9/generic/setup_tx4939.c 		.resource = res,
res               502 arch/mips/txx9/generic/setup_tx4939.c 	static struct resource res = {
res               511 arch/mips/txx9/generic/setup_tx4939.c 		.resource = &res,
res               175 arch/mips/txx9/jmr3927/setup.c 	static struct resource __initdata res = {
res               180 arch/mips/txx9/jmr3927/setup.c 	platform_device_register_simple("rtc-ds1742", -1, &res, 1);
res               289 arch/mips/txx9/rbtx4927/setup.c 	struct resource res = {
res               294 arch/mips/txx9/rbtx4927/setup.c 	platform_device_register_simple("rtc-ds1742", -1, &res, 1);
res               299 arch/mips/txx9/rbtx4927/setup.c 	struct resource res[] = {
res               309 arch/mips/txx9/rbtx4927/setup.c 	platform_device_register_simple("ne", -1, res, ARRAY_SIZE(res));
res               229 arch/mips/txx9/rbtx4938/setup.c 	struct resource res[] = {
res               239 arch/mips/txx9/rbtx4938/setup.c 	platform_device_register_simple("ne", -1, res, ARRAY_SIZE(res));
res               378 arch/mips/txx9/rbtx4939/setup.c 		struct resource res;
res               420 arch/mips/txx9/rbtx4939/setup.c 		struct resource *r = &pdevs[i].res;
res                37 arch/mips/vdso/vgettimeofday.c 			struct old_timespec32 *res)
res                39 arch/mips/vdso/vgettimeofday.c 	return __cvdso_clock_getres_time32(clock_id, res);
res                73 arch/mips/vdso/vgettimeofday.c 			struct __kernel_timespec *res)
res                75 arch/mips/vdso/vgettimeofday.c 	return __cvdso_clock_getres(clock_id, res);
res                64 arch/mips/vr41xx/common/giu.c 	struct resource *res;
res                76 arch/mips/vr41xx/common/giu.c 		res = giu_50pins_pullupdown_resource;
res                82 arch/mips/vr41xx/common/giu.c 		res = giu_36pins_resource;
res                87 arch/mips/vr41xx/common/giu.c 		res = giu_48pins_resource;
res                95 arch/mips/vr41xx/common/giu.c 	retval = platform_device_add_resources(pdev, res, num);
res                65 arch/mips/vr41xx/common/rtc.c 	struct resource *res;
res                76 arch/mips/vr41xx/common/rtc.c 		res = rtc_type1_resource;
res                82 arch/mips/vr41xx/common/rtc.c 		res = rtc_type2_resource;
res                90 arch/mips/vr41xx/common/rtc.c 	retval = platform_device_add_resources(pdev, res, num);
res                66 arch/mips/vr41xx/common/siu.c 	struct resource *res;
res                78 arch/mips/vr41xx/common/siu.c 		res = siu_type1_resource;
res                85 arch/mips/vr41xx/common/siu.c 		res = siu_type2_resource;
res                93 arch/mips/vr41xx/common/siu.c 	retval = platform_device_add_resources(pdev, res, num);
res               113 arch/mips/vr41xx/common/siu.c 	struct resource *res;
res               121 arch/mips/vr41xx/common/siu.c 		res = siu_type1_resource;
res               127 arch/mips/vr41xx/common/siu.c 		res = siu_type2_resource;
res               138 arch/mips/vr41xx/common/siu.c 		port.mapbase = res[i].start;
res               139 arch/mips/vr41xx/common/siu.c 		port.membase = (unsigned char __iomem *)KSEG1ADDR(res[i].start);
res                19 arch/nds32/kernel/atl2c.c 	struct resource res;
res                30 arch/nds32/kernel/atl2c.c 	if (of_address_to_resource(np, 0, &res))
res                33 arch/nds32/kernel/atl2c.c 	atl2c_base = ioremap(res.start, resource_size(&res));
res               197 arch/nds32/kernel/vdso/gettimeofday.c 	register struct timespec *res asm("$r1") = _res;
res               203 arch/nds32/kernel/vdso/gettimeofday.c 		      :"r"(clk_id), "r"(res), "i"(__NR_clock_getres)
res               209 arch/nds32/kernel/vdso/gettimeofday.c notrace int __vdso_clock_getres(clockid_t clk_id, struct timespec *res)
res               213 arch/nds32/kernel/vdso/gettimeofday.c 	if (res == NULL)
res               219 arch/nds32/kernel/vdso/gettimeofday.c 		res->tv_sec = 0;
res               220 arch/nds32/kernel/vdso/gettimeofday.c 		res->tv_nsec = vdata->hrtimer_res;
res               224 arch/nds32/kernel/vdso/gettimeofday.c 		res->tv_sec = 0;
res               225 arch/nds32/kernel/vdso/gettimeofday.c 		res->tv_nsec = CLOCK_COARSE_RES;
res               228 arch/nds32/kernel/vdso/gettimeofday.c 		return clock_getres_fallback(clk_id, res);
res               198 arch/parisc/kernel/pci.c resource_size_t pcibios_align_resource(void *data, const struct resource *res,
res               201 arch/parisc/kernel/pci.c 	resource_size_t mask, align, start = res->start;
res               205 arch/parisc/kernel/pci.c 		res->parent, res->start, res->end,
res               206 arch/parisc/kernel/pci.c 		(int) res->flags, size, alignment);
res               209 arch/parisc/kernel/pci.c 	align = (res->flags & IORESOURCE_IO) ? PCIBIOS_MIN_IO : PCIBIOS_MIN_MEM;
res               174 arch/parisc/mm/init.c 		struct resource *res = &sysram_resources[i];
res               184 arch/parisc/mm/init.c 		res->name = "System RAM";
res               185 arch/parisc/mm/init.c 		res->start = start;
res               186 arch/parisc/mm/init.c 		res->end = start + size - 1;
res               187 arch/parisc/mm/init.c 		res->flags = IORESOURCE_SYSTEM_RAM | IORESOURCE_BUSY;
res               188 arch/parisc/mm/init.c 		request_resource(&iomem_resource, res);
res               335 arch/parisc/mm/init.c 		struct resource *res = &sysram_resources[i];
res               336 arch/parisc/mm/init.c 		request_resource(res, &code_resource);
res               337 arch/parisc/mm/init.c 		request_resource(res, &data_resource);
res               228 arch/powerpc/boot/devtree.c static int dt_xlate(void *node, int res, int reglen, unsigned long *addr,
res               247 arch/powerpc/boot/devtree.c 	offset = (naddr + nsize) * res;
res               313 arch/powerpc/boot/devtree.c int dt_xlate_reg(void *node, int res, unsigned long *addr, unsigned long *size)
res               318 arch/powerpc/boot/devtree.c 	return dt_xlate(node, res, reglen, addr, size);
res                96 arch/powerpc/boot/ops.h int dt_xlate_reg(void *node, int res, unsigned long *addr, unsigned long *size);
res               197 arch/powerpc/include/asm/8xx_immap.h 	char	res[0x74];        /* Reserved area                  */
res               224 arch/powerpc/include/asm/8xx_immap.h 	char	res[0x474];
res               304 arch/powerpc/include/asm/8xx_immap.h 	char	res[0xe];
res                79 arch/powerpc/include/asm/atomic.h 	int res, t;							\
res                87 arch/powerpc/include/asm/atomic.h 	: "=&r" (res), "=&r" (t), "+m" (v->counter)			\
res                91 arch/powerpc/include/asm/atomic.h 	return res;							\
res               351 arch/powerpc/include/asm/atomic.h 	s64 res, t;							\
res               358 arch/powerpc/include/asm/atomic.h 	: "=&r" (res), "=&r" (t), "+m" (v->counter)			\
res               362 arch/powerpc/include/asm/atomic.h 	return res;							\
res                98 arch/powerpc/include/asm/checksum.h 	u64 res = (__force u64)csum;
res               106 arch/powerpc/include/asm/checksum.h 	res += (__force u64)addend;
res               107 arch/powerpc/include/asm/checksum.h 	return (__force __wsum)((u32)res + (res >> 32));
res                30 arch/powerpc/include/asm/cpm.h 	__be32	res;	/* Tx temp. */
res                49 arch/powerpc/include/asm/cputhreads.h 	cpumask_t	tmp, res;
res                52 arch/powerpc/include/asm/cputhreads.h 	cpumask_clear(&res);
res                58 arch/powerpc/include/asm/cputhreads.h 				cpumask_set_cpu(cpu, &res);
res                61 arch/powerpc/include/asm/cputhreads.h 	return res;
res               307 arch/powerpc/include/asm/immap_cpm2.h 	u8	res[104];
res               604 arch/powerpc/include/asm/immap_cpm2.h 	u8		res[236];
res                77 arch/powerpc/include/asm/macio.h 	struct resource *res = &dev->resource[resource_no];
res                78 arch/powerpc/include/asm/macio.h 	if (res->start == 0 || res->end == 0 || res->end < res->start)
res                80 arch/powerpc/include/asm/macio.h 	return resource_size(res);
res                43 arch/powerpc/include/asm/mpc5121.h 	u8	res[0x6c];	/* Reserved */
res                30 arch/powerpc/kernel/io-workarounds.c 	struct resource *res;
res                46 arch/powerpc/kernel/io-workarounds.c 				res = &phb->mem_resources[j];
res                47 arch/powerpc/kernel/io-workarounds.c 				if (paddr >= res->start && paddr <= res->end)
res               156 arch/powerpc/kernel/io-workarounds.c 	void __iomem *res = __ioremap_caller(addr, size, prot, caller);
res               162 arch/powerpc/kernel/io-workarounds.c 		PCI_SET_ADDR_TOKEN(res, busno + 1);
res               164 arch/powerpc/kernel/io-workarounds.c 	return res;
res               672 arch/powerpc/kernel/pci-common.c 	struct resource *res;
res               694 arch/powerpc/kernel/pci-common.c 		res = NULL;
res               729 arch/powerpc/kernel/pci-common.c 			res = &hose->io_resource;
res               757 arch/powerpc/kernel/pci-common.c 			res = &hose->mem_resources[memno++];
res               760 arch/powerpc/kernel/pci-common.c 		if (res != NULL) {
res               761 arch/powerpc/kernel/pci-common.c 			res->name = dev->full_name;
res               762 arch/powerpc/kernel/pci-common.c 			res->flags = range.flags;
res               763 arch/powerpc/kernel/pci-common.c 			res->start = range.cpu_addr;
res               764 arch/powerpc/kernel/pci-common.c 			res->end = range.cpu_addr + range.size - 1;
res               765 arch/powerpc/kernel/pci-common.c 			res->parent = res->child = res->sibling = NULL;
res               808 arch/powerpc/kernel/pci-common.c 		struct resource *res = dev->resource + i;
res               810 arch/powerpc/kernel/pci-common.c 		if (!res->flags)
res               818 arch/powerpc/kernel/pci-common.c 		pcibios_resource_to_bus(dev->bus, &reg, res);
res               824 arch/powerpc/kernel/pci-common.c 					 pci_name(dev), i, res);
res               825 arch/powerpc/kernel/pci-common.c 			res->end -= res->start;
res               826 arch/powerpc/kernel/pci-common.c 			res->start = 0;
res               827 arch/powerpc/kernel/pci-common.c 			res->flags |= IORESOURCE_UNSET;
res               831 arch/powerpc/kernel/pci-common.c 		pr_debug("PCI:%s Resource %d %pR\n", pci_name(dev), i, res);
res               846 arch/powerpc/kernel/pci-common.c 						 struct resource *res)
res               860 arch/powerpc/kernel/pci-common.c 	if (res->flags & IORESOURCE_MEM) {
res               861 arch/powerpc/kernel/pci-common.c 		pcibios_resource_to_bus(dev->bus, &region, res);
res               891 arch/powerpc/kernel/pci-common.c 		if (((res->start - offset) & 0xfffffffful) != 0)
res               913 arch/powerpc/kernel/pci-common.c 	struct resource *res;
res               918 arch/powerpc/kernel/pci-common.c 	pci_bus_for_each_resource(bus, res, i) {
res               919 arch/powerpc/kernel/pci-common.c 		if (!res || !res->flags)
res               929 arch/powerpc/kernel/pci-common.c 			res->flags |= IORESOURCE_UNSET;
res               930 arch/powerpc/kernel/pci-common.c 			res->start = 0;
res               931 arch/powerpc/kernel/pci-common.c 			res->end = -1;
res               935 arch/powerpc/kernel/pci-common.c 		pr_debug("PCI:%s Bus rsrc %d %pR\n", pci_name(dev), i, res);
res               940 arch/powerpc/kernel/pci-common.c 		if (pcibios_uninitialized_bridge_resource(bus, res)) {
res               941 arch/powerpc/kernel/pci-common.c 			res->flags = 0;
res              1074 arch/powerpc/kernel/pci-common.c resource_size_t pcibios_align_resource(void *data, const struct resource *res,
res              1078 arch/powerpc/kernel/pci-common.c 	resource_size_t start = res->start;
res              1080 arch/powerpc/kernel/pci-common.c 	if (res->flags & IORESOURCE_IO) {
res              1096 arch/powerpc/kernel/pci-common.c 				     struct resource *res)
res              1102 arch/powerpc/kernel/pci-common.c 		if (p->end < res->start)
res              1104 arch/powerpc/kernel/pci-common.c 		if (res->end < p->start)
res              1106 arch/powerpc/kernel/pci-common.c 		if (p->start < res->start || p->end > res->end)
res              1113 arch/powerpc/kernel/pci-common.c 	res->parent = parent;
res              1114 arch/powerpc/kernel/pci-common.c 	res->child = *firstpp;
res              1115 arch/powerpc/kernel/pci-common.c 	res->sibling = *pp;
res              1116 arch/powerpc/kernel/pci-common.c 	*firstpp = res;
res              1118 arch/powerpc/kernel/pci-common.c 	for (p = res->child; p != NULL; p = p->sibling) {
res              1119 arch/powerpc/kernel/pci-common.c 		p->parent = res;
res              1121 arch/powerpc/kernel/pci-common.c 			 p->name, p, res->name);
res              1163 arch/powerpc/kernel/pci-common.c 	struct resource *res, *pr;
res              1168 arch/powerpc/kernel/pci-common.c 	pci_bus_for_each_resource(bus, res, i) {
res              1169 arch/powerpc/kernel/pci-common.c 		if (!res || !res->flags || res->start > res->end || res->parent)
res              1173 arch/powerpc/kernel/pci-common.c 		if (res->flags & IORESOURCE_UNSET)
res              1177 arch/powerpc/kernel/pci-common.c 			pr = (res->flags & IORESOURCE_IO) ?
res              1180 arch/powerpc/kernel/pci-common.c 			pr = pci_find_parent_resource(bus->self, res);
res              1181 arch/powerpc/kernel/pci-common.c 			if (pr == res) {
res              1192 arch/powerpc/kernel/pci-common.c 			 i, res, pr, (pr && pr->name) ? pr->name : "nil");
res              1197 arch/powerpc/kernel/pci-common.c 			if (request_resource(pr, res) == 0)
res              1204 arch/powerpc/kernel/pci-common.c 			if (reparent_resources(pr, res) == 0)
res              1221 arch/powerpc/kernel/pci-common.c 		res->start = 0;
res              1222 arch/powerpc/kernel/pci-common.c 		res->end = -1;
res              1223 arch/powerpc/kernel/pci-common.c 		res->flags = 0;
res              1302 arch/powerpc/kernel/pci-common.c 	struct resource *res, *pres;
res              1311 arch/powerpc/kernel/pci-common.c 	res = kzalloc(sizeof(struct resource), GFP_KERNEL);
res              1312 arch/powerpc/kernel/pci-common.c 	BUG_ON(res == NULL);
res              1313 arch/powerpc/kernel/pci-common.c 	res->name = "Legacy IO";
res              1314 arch/powerpc/kernel/pci-common.c 	res->flags = IORESOURCE_IO;
res              1315 arch/powerpc/kernel/pci-common.c 	res->start = offset;
res              1316 arch/powerpc/kernel/pci-common.c 	res->end = (offset + 0xfff) & 0xfffffffful;
res              1317 arch/powerpc/kernel/pci-common.c 	pr_debug("Candidate legacy IO: %pR\n", res);
res              1318 arch/powerpc/kernel/pci-common.c 	if (request_resource(&hose->io_resource, res)) {
res              1321 arch/powerpc/kernel/pci-common.c 		       pci_domain_nr(bus), bus->number, res);
res              1322 arch/powerpc/kernel/pci-common.c 		kfree(res);
res              1339 arch/powerpc/kernel/pci-common.c 	res = kzalloc(sizeof(struct resource), GFP_KERNEL);
res              1340 arch/powerpc/kernel/pci-common.c 	BUG_ON(res == NULL);
res              1341 arch/powerpc/kernel/pci-common.c 	res->name = "Legacy VGA memory";
res              1342 arch/powerpc/kernel/pci-common.c 	res->flags = IORESOURCE_MEM;
res              1343 arch/powerpc/kernel/pci-common.c 	res->start = 0xa0000 + offset;
res              1344 arch/powerpc/kernel/pci-common.c 	res->end = 0xbffff + offset;
res              1345 arch/powerpc/kernel/pci-common.c 	pr_debug("Candidate VGA memory: %pR\n", res);
res              1346 arch/powerpc/kernel/pci-common.c 	if (request_resource(pres, res)) {
res              1349 arch/powerpc/kernel/pci-common.c 		       pci_domain_nr(bus), bus->number, res);
res              1350 arch/powerpc/kernel/pci-common.c 		kfree(res);
res              1478 arch/powerpc/kernel/pci-common.c 	struct resource *res;
res              1483 arch/powerpc/kernel/pci-common.c 	res = &hose->io_resource;
res              1485 arch/powerpc/kernel/pci-common.c 	if (!res->flags) {
res              1493 arch/powerpc/kernel/pci-common.c 			 res, (unsigned long long)offset);
res              1494 arch/powerpc/kernel/pci-common.c 		pci_add_resource_offset(resources, res, offset);
res              1499 arch/powerpc/kernel/pci-common.c 		res = &hose->mem_resources[i];
res              1500 arch/powerpc/kernel/pci-common.c 		if (!res->flags)
res              1505 arch/powerpc/kernel/pci-common.c 			 res, (unsigned long long)offset);
res              1507 arch/powerpc/kernel/pci-common.c 		pci_add_resource_offset(resources, res, offset);
res               226 arch/powerpc/kernel/pci_32.c 	struct resource *res = &hose->io_resource;
res               230 arch/powerpc/kernel/pci_32.c 	res->start += io_offset;
res               231 arch/powerpc/kernel/pci_32.c 	res->end += io_offset;
res                96 arch/powerpc/kernel/pci_64.c 		struct resource *res = bus->resource[0];
res               103 arch/powerpc/kernel/pci_64.c 		__flush_hash_table_range(&init_mm, res->start + _IO_BASE,
res               104 arch/powerpc/kernel/pci_64.c 					 res->end + _IO_BASE + 1);
res               122 arch/powerpc/kernel/pci_of_scan.c 	struct resource *res;
res               151 arch/powerpc/kernel/pci_of_scan.c 			res = &dev->resource[(i - PCI_BASE_ADDRESS_0) >> 2];
res               153 arch/powerpc/kernel/pci_of_scan.c 			res = &dev->resource[PCI_ROM_RESOURCE];
res               159 arch/powerpc/kernel/pci_of_scan.c 		res->flags = flags;
res               161 arch/powerpc/kernel/pci_of_scan.c 			res->flags |= IORESOURCE_UNSET;
res               162 arch/powerpc/kernel/pci_of_scan.c 		res->name = pci_name(dev);
res               165 arch/powerpc/kernel/pci_of_scan.c 		pcibios_bus_to_resource(dev->bus, res, &region);
res               258 arch/powerpc/kernel/pci_of_scan.c 	struct resource *res;
res               297 arch/powerpc/kernel/pci_of_scan.c 	res = &dev->resource[PCI_BRIDGE_RESOURCES];
res               299 arch/powerpc/kernel/pci_of_scan.c 		res->flags = 0;
res               300 arch/powerpc/kernel/pci_of_scan.c 		bus->resource[i] = res;
res               301 arch/powerpc/kernel/pci_of_scan.c 		++res;
res               310 arch/powerpc/kernel/pci_of_scan.c 			res = bus->resource[0];
res               311 arch/powerpc/kernel/pci_of_scan.c 			if (res->flags) {
res               322 arch/powerpc/kernel/pci_of_scan.c 			res = bus->resource[i];
res               325 arch/powerpc/kernel/pci_of_scan.c 		res->flags = flags;
res               328 arch/powerpc/kernel/pci_of_scan.c 		pcibios_bus_to_resource(dev->bus, res, &region);
res               661 arch/powerpc/kernel/prom.c 	bool res;
res               663 arch/powerpc/kernel/prom.c 	if (kstrtobool(str, &res))
res               666 arch/powerpc/kernel/prom.c 	tm_disabled = !res;
res               281 arch/powerpc/kernel/prom_init.c 	int res = 0;
res               284 arch/powerpc/kernel/prom_init.c 		if ((res = *su1 - *su2) != 0)
res               286 arch/powerpc/kernel/prom_init.c 	return res;
res               319 arch/powerpc/kernel/prom_init.c static int __init prom_strtobool(const char *s, bool *res)
res               328 arch/powerpc/kernel/prom_init.c 		*res = true;
res               333 arch/powerpc/kernel/prom_init.c 		*res = false;
res               340 arch/powerpc/kernel/prom_init.c 			*res = true;
res               344 arch/powerpc/kernel/prom_init.c 			*res = false;
res               165 arch/powerpc/kernel/time.c 	struct div_result res;
res               167 arch/powerpc/kernel/time.c 	div128_by_32(1000000, 0, tb_ticks_per_sec, &res);
res               168 arch/powerpc/kernel/time.c 	__cputime_usec_factor = res.result_low;
res              1076 arch/powerpc/kernel/time.c 	struct div_result res;
res              1107 arch/powerpc/kernel/time.c 	div128_by_32(1000000000, 0, tb_ticks_per_sec, &res);
res              1108 arch/powerpc/kernel/time.c 	scale = res.result_low;
res              1109 arch/powerpc/kernel/time.c 	for (shift = 0; res.result_high != 0; ++shift) {
res              1110 arch/powerpc/kernel/time.c 		scale = (scale >> 1) | (res.result_high << 63);
res              1111 arch/powerpc/kernel/time.c 		res.result_high >>= 1;
res               878 arch/powerpc/kvm/book3s_xics.c 	unsigned long res;
res               888 arch/powerpc/kvm/book3s_xics.c 		res = kvmppc_h_xirr(vcpu);
res               889 arch/powerpc/kvm/book3s_xics.c 		kvmppc_set_gpr(vcpu, 4, res);
res               903 arch/powerpc/kvm/book3s_xics.c 		res = kvmppc_h_xirr(vcpu);
res               904 arch/powerpc/kvm/book3s_xics.c 		kvmppc_set_gpr(vcpu, 4, res);
res              1110 arch/powerpc/lib/sstep.c 	unsigned long long res = v ^ (v >> 8);
res              1112 arch/powerpc/lib/sstep.c 	res ^= res >> 16;
res              1114 arch/powerpc/lib/sstep.c 		op->val = res & 0x0000000100000001ULL;
res              1118 arch/powerpc/lib/sstep.c 	res ^= res >> 32;
res              1119 arch/powerpc/lib/sstep.c 	op->val = res & 1;	/*prtyd */
res               282 arch/powerpc/mm/fault.c 			int res;
res               285 arch/powerpc/mm/fault.c 			res = __get_user_inatomic(inst, nip);
res               287 arch/powerpc/mm/fault.c 			if (!res)
res               595 arch/powerpc/mm/mem.c 		struct resource *res;
res               599 arch/powerpc/mm/mem.c 		res = kzalloc(sizeof(struct resource), GFP_KERNEL);
res               600 arch/powerpc/mm/mem.c 		WARN_ON(!res);
res               602 arch/powerpc/mm/mem.c 		if (res) {
res               603 arch/powerpc/mm/mem.c 			res->name = "System RAM";
res               604 arch/powerpc/mm/mem.c 			res->start = base;
res               605 arch/powerpc/mm/mem.c 			res->end = base + size - 1;
res               606 arch/powerpc/mm/mem.c 			res->flags = IORESOURCE_SYSTEM_RAM | IORESOURCE_BUSY;
res               607 arch/powerpc/mm/mem.c 			WARN_ON(request_resource(&iomem_resource, res) < 0);
res              1182 arch/powerpc/perf/hv-24x7.c 				 struct hv_24x7_result *res, u64 *countp,
res              1185 arch/powerpc/perf/hv-24x7.c 	u16 num_elements = be16_to_cpu(res->num_elements_returned);
res              1186 arch/powerpc/perf/hv-24x7.c 	u16 data_size = be16_to_cpu(res->result_element_data_size);
res              1197 arch/powerpc/perf/hv-24x7.c 			 res->result_ix);
res              1200 arch/powerpc/perf/hv-24x7.c 			*next = (struct hv_24x7_result *) res->elements;
res              1213 arch/powerpc/perf/hv-24x7.c 		       res->result_ix, num_elements);
res              1220 arch/powerpc/perf/hv-24x7.c 			 res->result_ix, data_size);
res              1233 arch/powerpc/perf/hv-24x7.c 	for (i = count = 0, element_data = res->elements + data_offset;
res              1493 arch/powerpc/perf/hv-24x7.c 	struct hv_24x7_result *res, *next_res;
res              1519 arch/powerpc/perf/hv-24x7.c 	for (i = 0, res = result_buffer->results;
res              1520 arch/powerpc/perf/hv-24x7.c 	     i < result_buffer->num_results; i++, res = next_res) {
res              1521 arch/powerpc/perf/hv-24x7.c 		struct perf_event *event = h24x7hw->events[res->result_ix];
res              1523 arch/powerpc/perf/hv-24x7.c 		ret = get_count_from_result(event, result_buffer, res, &count,
res               401 arch/powerpc/perf/imc-pmu.c 	int res;
res               417 arch/powerpc/perf/imc-pmu.c 	res = opal_imc_counters_stop(OPAL_IMC_COUNTERS_NEST,
res               419 arch/powerpc/perf/imc-pmu.c 	if (res)
res               420 arch/powerpc/perf/imc-pmu.c 		return res;
res              1532 arch/powerpc/perf/imc-pmu.c 	int nr_cores, cpu, res = -ENOMEM;
res              1585 arch/powerpc/perf/imc-pmu.c 			res = thread_imc_mem_alloc(cpu, pmu_ptr->counter_mem_size);
res              1586 arch/powerpc/perf/imc-pmu.c 			if (res) {
res              1608 arch/powerpc/perf/imc-pmu.c 			res = trace_imc_mem_alloc(cpu, trace_imc_mem_size);
res              1609 arch/powerpc/perf/imc-pmu.c 			if (res) {
res              1621 arch/powerpc/perf/imc-pmu.c 	return res;
res               128 arch/powerpc/platforms/4xx/msi.c 				 struct resource res, struct ppc4xx_msi *msi)
res               172 arch/powerpc/platforms/4xx/msi.c 	mtdcri(SDR0, *sdr_addr, upper_32_bits(res.start));	/*HIGH addr */
res               173 arch/powerpc/platforms/4xx/msi.c 	mtdcri(SDR0, *sdr_addr + 1, lower_32_bits(res.start));	/* Low addr */
res               217 arch/powerpc/platforms/4xx/msi.c 	struct resource res;
res               229 arch/powerpc/platforms/4xx/msi.c 	err = of_address_to_resource(dev->dev.of_node, 0, &res);
res               239 arch/powerpc/platforms/4xx/msi.c 	err = ppc4xx_setup_pcieh_hw(dev, res, msi);
res                93 arch/powerpc/platforms/4xx/pci.c 					  struct resource *res)
res               102 arch/powerpc/platforms/4xx/pci.c 	res->start = 0;
res               104 arch/powerpc/platforms/4xx/pci.c 	res->end = size - 1;
res               105 arch/powerpc/platforms/4xx/pci.c 	res->flags = IORESOURCE_MEM | IORESOURCE_PREFETCH;
res               139 arch/powerpc/platforms/4xx/pci.c 			res->flags &= ~IORESOURCE_PREFETCH;
res               143 arch/powerpc/platforms/4xx/pci.c 		res->start = pci_addr;
res               147 arch/powerpc/platforms/4xx/pci.c 			res->end = 0xffffffff;
res               149 arch/powerpc/platforms/4xx/pci.c 			res->end = res->start + size - 1;
res               154 arch/powerpc/platforms/4xx/pci.c 	if (dma_offset_set && pci_dram_offset != res->start) {
res               171 arch/powerpc/platforms/4xx/pci.c 	    (res->start & (size - 1)) != 0) {
res               179 arch/powerpc/platforms/4xx/pci.c 	if (res->end > 0xffffffff &&
res               188 arch/powerpc/platforms/4xx/pci.c 	pci_dram_offset = res->start;
res               189 arch/powerpc/platforms/4xx/pci.c 	hose->dma_window_base_cur = res->start;
res               190 arch/powerpc/platforms/4xx/pci.c 	hose->dma_window_size = resource_size(res);
res               259 arch/powerpc/platforms/4xx/pci.c 		struct resource *res = &hose->mem_resources[i];
res               263 arch/powerpc/platforms/4xx/pci.c 		if (!(res->flags & IORESOURCE_MEM))
res               272 arch/powerpc/platforms/4xx/pci.c 					     res->start,
res               273 arch/powerpc/platforms/4xx/pci.c 					     res->start - offset,
res               274 arch/powerpc/platforms/4xx/pci.c 					     resource_size(res),
res               275 arch/powerpc/platforms/4xx/pci.c 					     res->flags,
res               282 arch/powerpc/platforms/4xx/pci.c 			if (res->start == offset)
res               297 arch/powerpc/platforms/4xx/pci.c 					     const struct resource *res)
res               299 arch/powerpc/platforms/4xx/pci.c 	resource_size_t size = resource_size(res);
res               312 arch/powerpc/platforms/4xx/pci.c 				 PCI_BASE_ADDRESS_1, res->start);
res               458 arch/powerpc/platforms/4xx/pci.c 		struct resource *res = &hose->mem_resources[i];
res               462 arch/powerpc/platforms/4xx/pci.c 		if (!(res->flags & IORESOURCE_MEM))
res               471 arch/powerpc/platforms/4xx/pci.c 					      res->start,
res               472 arch/powerpc/platforms/4xx/pci.c 					      res->start - offset,
res               473 arch/powerpc/platforms/4xx/pci.c 					      resource_size(res),
res               474 arch/powerpc/platforms/4xx/pci.c 					      res->flags,
res               481 arch/powerpc/platforms/4xx/pci.c 			if (res->start == offset)
res               496 arch/powerpc/platforms/4xx/pci.c 					      const struct resource *res,
res               500 arch/powerpc/platforms/4xx/pci.c 	resource_size_t size = resource_size(res);
res               510 arch/powerpc/platforms/4xx/pci.c 	if (res->flags & IORESOURCE_PREFETCH)
res               520 arch/powerpc/platforms/4xx/pci.c 	writel(res->start, reg + PCIX0_BAR0L);
res              1794 arch/powerpc/platforms/4xx/pci.c 		struct resource *res = &hose->mem_resources[i];
res              1798 arch/powerpc/platforms/4xx/pci.c 		if (!(res->flags & IORESOURCE_MEM))
res              1808 arch/powerpc/platforms/4xx/pci.c 					       res->start,
res              1809 arch/powerpc/platforms/4xx/pci.c 					       res->start - offset,
res              1810 arch/powerpc/platforms/4xx/pci.c 					       resource_size(res),
res              1811 arch/powerpc/platforms/4xx/pci.c 					       res->flags,
res              1818 arch/powerpc/platforms/4xx/pci.c 			if (res->start == offset)
res              1843 arch/powerpc/platforms/4xx/pci.c 					       struct resource *res)
res              1845 arch/powerpc/platforms/4xx/pci.c 	resource_size_t size = resource_size(res);
res              1878 arch/powerpc/platforms/4xx/pci.c 		if (res->flags & IORESOURCE_PREFETCH)
res              1901 arch/powerpc/platforms/4xx/pci.c 		out_le32(mbase + PCI_BASE_ADDRESS_0, RES_TO_U32_LOW(res->start));
res              1902 arch/powerpc/platforms/4xx/pci.c 		out_le32(mbase + PCI_BASE_ADDRESS_1, RES_TO_U32_HIGH(res->start));
res               986 arch/powerpc/platforms/512x/clock-commonclk.c 	of_address_to_resource(np, 0, &res); \
res               987 arch/powerpc/platforms/512x/clock-commonclk.c 	snprintf(devname, sizeof(devname), "%08x.%s", res.start, np->name); \
res              1029 arch/powerpc/platforms/512x/clock-commonclk.c 	struct resource res;
res              1037 arch/powerpc/platforms/512x/clock-commonclk.c 		idx = (res.start >> 8) & 0xf;
res              1055 arch/powerpc/platforms/512x/clock-commonclk.c 		idx += (res.start & 0x2000) ? 2 : 0;
res              1056 arch/powerpc/platforms/512x/clock-commonclk.c 		idx += (res.start & 0x0080) ? 1 : 0;
res              1128 arch/powerpc/platforms/512x/clock-commonclk.c 		if (res.start & 0x4000)
res              1137 arch/powerpc/platforms/512x/clock-commonclk.c 		idx = (res.start & 0x4000) ? 1 : 0;
res               223 arch/powerpc/platforms/512x/mpc512x_shared.c 	unsigned long mode, pix_fmt, res, bpp;
res               256 arch/powerpc/platforms/512x/mpc512x_shared.c 	res = in_be32(&diu_reg->disp_size);
res               260 arch/powerpc/platforms/512x/mpc512x_shared.c 	diu_shared_fb.fb_len = ((res & 0xfff0000) >> 16) * (res & 0xfff) * bpp;
res               474 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c 	struct resource res;
res               484 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c 	if (of_address_to_resource(op->dev.of_node, 0, &res))
res               486 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c 	lpbfifo.regs_phys = res.start;
res               504 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c 		bcom_gen_bd_rx_init(2, res.start + LPBFIFO_REG_FIFO_DATA,
res               520 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c 		bcom_gen_bd_tx_init(2, res.start + LPBFIFO_REG_FIFO_DATA,
res               241 arch/powerpc/platforms/52xx/mpc52xx_pci.c 	struct resource *res;
res               258 arch/powerpc/platforms/52xx/mpc52xx_pci.c 	res = &hose->mem_resources[0];
res               259 arch/powerpc/platforms/52xx/mpc52xx_pci.c 	if (res->flags) {
res               262 arch/powerpc/platforms/52xx/mpc52xx_pci.c 		         (unsigned long long)res->start,
res               263 arch/powerpc/platforms/52xx/mpc52xx_pci.c 			 (unsigned long long)res->end,
res               264 arch/powerpc/platforms/52xx/mpc52xx_pci.c 			 (unsigned long long)res->flags);
res               266 arch/powerpc/platforms/52xx/mpc52xx_pci.c 		         MPC52xx_PCI_IWBTAR_TRANSLATION(res->start, res->start,
res               267 arch/powerpc/platforms/52xx/mpc52xx_pci.c 							resource_size(res)));
res               269 arch/powerpc/platforms/52xx/mpc52xx_pci.c 		if (res->flags & IORESOURCE_PREFETCH)
res               275 arch/powerpc/platforms/52xx/mpc52xx_pci.c 	res = &hose->mem_resources[1];
res               276 arch/powerpc/platforms/52xx/mpc52xx_pci.c 	if (res->flags) {
res               278 arch/powerpc/platforms/52xx/mpc52xx_pci.c 		         res->start, res->end, res->flags);
res               280 arch/powerpc/platforms/52xx/mpc52xx_pci.c 		         MPC52xx_PCI_IWBTAR_TRANSLATION(res->start, res->start,
res               281 arch/powerpc/platforms/52xx/mpc52xx_pci.c 							resource_size(res)));
res               283 arch/powerpc/platforms/52xx/mpc52xx_pci.c 		if (res->flags & IORESOURCE_PREFETCH)
res               290 arch/powerpc/platforms/52xx/mpc52xx_pci.c 	res = &hose->io_resource;
res               291 arch/powerpc/platforms/52xx/mpc52xx_pci.c 	if (!res) {
res               297 arch/powerpc/platforms/52xx/mpc52xx_pci.c 	         (unsigned long long)res->start,
res               298 arch/powerpc/platforms/52xx/mpc52xx_pci.c 		 (unsigned long long)res->end,
res               299 arch/powerpc/platforms/52xx/mpc52xx_pci.c 		 (unsigned long long)res->flags, (void*)hose->io_base_phys);
res               302 arch/powerpc/platforms/52xx/mpc52xx_pci.c 	                                        res->start,
res               303 arch/powerpc/platforms/52xx/mpc52xx_pci.c 						resource_size(res)));
res               345 arch/powerpc/platforms/52xx/mpc52xx_pci.c 		struct resource *res = &dev->resource[i];
res               346 arch/powerpc/platforms/52xx/mpc52xx_pci.c 		if (res->end > res->start) {	/* Only valid resources */
res               347 arch/powerpc/platforms/52xx/mpc52xx_pci.c 			res->end -= res->start;
res               348 arch/powerpc/platforms/52xx/mpc52xx_pci.c 			res->start = 0;
res               349 arch/powerpc/platforms/52xx/mpc52xx_pci.c 			res->flags |= IORESOURCE_UNSET;
res               358 arch/powerpc/platforms/52xx/mpc52xx_pci.c 		struct resource *res = &dev->resource[1];
res               359 arch/powerpc/platforms/52xx/mpc52xx_pci.c 		res->start = res->end = res->flags = 0;
res                68 arch/powerpc/platforms/52xx/mpc52xx_pm.c 	struct resource res;
res                73 arch/powerpc/platforms/52xx/mpc52xx_pm.c 	if (of_address_to_resource(np, 0, &res)) {
res                79 arch/powerpc/platforms/52xx/mpc52xx_pm.c 	mbar = ioremap(res.start, 0xc000); /* we should map whole region including SRAM */
res               113 arch/powerpc/platforms/82xx/ep8248e.c 	struct resource res;
res               122 arch/powerpc/platforms/82xx/ep8248e.c 	ret = of_address_to_resource(ofdev->dev.of_node, 0, &res);
res               132 arch/powerpc/platforms/82xx/ep8248e.c 	snprintf(bus->id, MII_BUS_ID_SIZE, "%x", res.start);
res                28 arch/powerpc/platforms/82xx/pq2.c 	in_8(&cpm2_immr->im_clkrst.res[0]);
res                51 arch/powerpc/platforms/83xx/km83xx.c 	struct	resource res;
res                61 arch/powerpc/platforms/83xx/km83xx.c 	ret = of_address_to_resource(np_par, 0, &res);
res                67 arch/powerpc/platforms/83xx/km83xx.c 	base = ioremap(res.start, res.end - res.start + 1);
res                62 arch/powerpc/platforms/83xx/mpc832x_mds.c 		struct resource res;
res                64 arch/powerpc/platforms/83xx/mpc832x_mds.c 		of_address_to_resource(np, 0, &res);
res                65 arch/powerpc/platforms/83xx/mpc832x_mds.c 		bcsr_regs = ioremap(res.start, resource_size(&res));
res                52 arch/powerpc/platforms/83xx/mpc832x_rdb.c 		struct resource res[2];
res                58 arch/powerpc/platforms/83xx/mpc832x_rdb.c 		memset(res, 0, sizeof(res));
res                83 arch/powerpc/platforms/83xx/mpc832x_rdb.c 		ret = of_address_to_resource(np, 0, &res[0]);
res                87 arch/powerpc/platforms/83xx/mpc832x_rdb.c 		ret = of_irq_to_resource(np, 0, &res[1]);
res                99 arch/powerpc/platforms/83xx/mpc832x_rdb.c 		ret = platform_device_add_resources(pdev, res,
res               100 arch/powerpc/platforms/83xx/mpc832x_rdb.c 						    ARRAY_SIZE(res));
res                48 arch/powerpc/platforms/83xx/mpc834x_mds.c 		struct resource res;
res                50 arch/powerpc/platforms/83xx/mpc834x_mds.c 		of_address_to_resource(np, 0, &res);
res                51 arch/powerpc/platforms/83xx/mpc834x_mds.c 		bcsr_regs = ioremap(res.start, resource_size(&res));
res                70 arch/powerpc/platforms/83xx/mpc836x_mds.c 		struct resource res;
res                72 arch/powerpc/platforms/83xx/mpc836x_mds.c 		of_address_to_resource(np, 0, &res);
res                73 arch/powerpc/platforms/83xx/mpc836x_mds.c 		bcsr_regs = ioremap(res.start, resource_size(&res));
res               327 arch/powerpc/platforms/83xx/suspend.c 	struct resource res;
res               348 arch/powerpc/platforms/83xx/suspend.c 	ret = of_address_to_resource(np, 0, &res);
res               361 arch/powerpc/platforms/83xx/suspend.c 	pmc_regs = ioremap(res.start, sizeof(*pmc_regs));
res               368 arch/powerpc/platforms/83xx/suspend.c 	ret = of_address_to_resource(np, 1, &res);
res               374 arch/powerpc/platforms/83xx/suspend.c 	clock_regs = ioremap(res.start, sizeof(*clock_regs));
res               106 arch/powerpc/platforms/83xx/usb.c 	struct resource res;
res               164 arch/powerpc/platforms/83xx/usb.c 	ret = of_address_to_resource(np, 0, &res);
res               169 arch/powerpc/platforms/83xx/usb.c 	usb_regs = ioremap(res.start, resource_size(&res));
res                60 arch/powerpc/platforms/85xx/mpc85xx_cds.c 	u8 res[248];	/* Total 256 bytes */
res               187 arch/powerpc/platforms/85xx/mpc85xx_cds.c 	struct resource *res = bus->resource[0];
res               192 arch/powerpc/platforms/85xx/mpc85xx_cds.c 		if (res) {
res               193 arch/powerpc/platforms/85xx/mpc85xx_cds.c 			res->start = 0;
res               194 arch/powerpc/platforms/85xx/mpc85xx_cds.c 			res->end   = 0x1fff;
res               195 arch/powerpc/platforms/85xx/mpc85xx_cds.c 			res->flags = IORESOURCE_IO;
res               197 arch/powerpc/platforms/85xx/mpc85xx_cds.c 			pr_info("mpc85xx_cds: %pR\n", res);
res               323 arch/powerpc/platforms/85xx/mpc85xx_mds.c 	struct resource res;
res               329 arch/powerpc/platforms/85xx/mpc85xx_mds.c 		of_address_to_resource(mdio, 0, &res);
res               331 arch/powerpc/platforms/85xx/mpc85xx_mds.c 			(unsigned long long)res.start, 1);
res               338 arch/powerpc/platforms/85xx/mpc85xx_mds.c 			(unsigned long long)res.start, 7);
res                61 arch/powerpc/platforms/85xx/sbc8548.c 	struct resource res;
res                71 arch/powerpc/platforms/85xx/sbc8548.c 	of_address_to_resource(np, 0, &res);
res                74 arch/powerpc/platforms/85xx/sbc8548.c 	rev = ioremap(res.start,sizeof(unsigned int));
res               136 arch/powerpc/platforms/8xx/cpm1.c 	struct resource res;
res               150 arch/powerpc/platforms/8xx/cpm1.c 	ret = of_address_to_resource(np, 0, &res);
res               154 arch/powerpc/platforms/8xx/cpm1.c 	cpic_reg = ioremap(res.start, resource_size(&res));
res               298 arch/powerpc/platforms/8xx/cpm1.c 	__be16 res[3];
res               212 arch/powerpc/platforms/8xx/m8xx_setup.c 	in_8(&clk_r->res[0]);
res               130 arch/powerpc/platforms/8xx/pic.c 	struct resource res;
res               142 arch/powerpc/platforms/8xx/pic.c 	ret = of_address_to_resource(np, 0, &res);
res               146 arch/powerpc/platforms/8xx/pic.c 	siu_reg = ioremap(res.start, resource_size(&res));
res               172 arch/powerpc/platforms/cell/spufs/inode.c 	int res;
res               175 arch/powerpc/platforms/cell/spufs/inode.c 	res = simple_rmdir(parent, dir);
res               178 arch/powerpc/platforms/cell/spufs/inode.c 	return res;
res               126 arch/powerpc/platforms/embedded6xx/flipper-pic.c 	struct resource res;
res               140 arch/powerpc/platforms/embedded6xx/flipper-pic.c 	retval = of_address_to_resource(pi, 0, &res);
res               145 arch/powerpc/platforms/embedded6xx/flipper-pic.c 	io_base = ioremap(res.start, resource_size(&res));
res               147 arch/powerpc/platforms/embedded6xx/flipper-pic.c 	pr_info("controller at 0x%08x mapped to 0x%p\n", res.start, io_base);
res               161 arch/powerpc/platforms/embedded6xx/hlwd-pic.c 	struct resource res;
res               165 arch/powerpc/platforms/embedded6xx/hlwd-pic.c 	retval = of_address_to_resource(np, 0, &res);
res               170 arch/powerpc/platforms/embedded6xx/hlwd-pic.c 	io_base = ioremap(res.start, resource_size(&res));
res               176 arch/powerpc/platforms/embedded6xx/hlwd-pic.c 	pr_info("controller at 0x%08x mapped to 0x%p\n", res.start, io_base);
res                76 arch/powerpc/platforms/embedded6xx/wii.c 	struct resource res;
res                84 arch/powerpc/platforms/embedded6xx/wii.c 	error = of_address_to_resource(np, 0, &res);
res                90 arch/powerpc/platforms/embedded6xx/wii.c 	hw_regs = ioremap(res.start, resource_size(&res));
res                93 arch/powerpc/platforms/embedded6xx/wii.c 			res.start, hw_regs);
res               220 arch/powerpc/platforms/fsl_uli1575.c 	struct resource *res;
res               229 arch/powerpc/platforms/fsl_uli1575.c 	pci_bus_for_each_resource(bus, res, i) {
res               230 arch/powerpc/platforms/fsl_uli1575.c 		if (res && res->flags & IORESOURCE_MEM) {
res               231 arch/powerpc/platforms/fsl_uli1575.c 			if (res->end == end)
res               232 arch/powerpc/platforms/fsl_uli1575.c 				dummy = ioremap(res->start, 0x4);
res               234 arch/powerpc/platforms/fsl_uli1575.c 				dummy = ioremap(res->end - 3, 0x4);
res               502 arch/powerpc/platforms/pasemi/dma_lib.c 	struct resource res;
res               559 arch/powerpc/platforms/pasemi/dma_lib.c 		err = of_address_to_resource(dn, 1, &res);
res               562 arch/powerpc/platforms/pasemi/dma_lib.c 		res.start = 0xfd800000;
res               563 arch/powerpc/platforms/pasemi/dma_lib.c 		res.end = res.start + 0x1000;
res               565 arch/powerpc/platforms/pasemi/dma_lib.c 	dma_status = ioremap_cache(res.start, resource_size(&res));
res               108 arch/powerpc/platforms/pasemi/pci.c 	struct resource res;
res               119 arch/powerpc/platforms/pasemi/pci.c 		err = of_address_to_resource(dn, 0, &res);
res               127 arch/powerpc/platforms/pasemi/pci.c 		pr_info("NEMO SB600 IOB base %08llx\n",res.start);
res               129 arch/powerpc/platforms/pasemi/pci.c 		iob_mapbase = ioremap(res.start + 0x100, 0x94);
res               273 arch/powerpc/platforms/pasemi/pci.c 	int res;
res               285 arch/powerpc/platforms/pasemi/pci.c 		res = pas_add_bridge(np);
res               435 arch/powerpc/platforms/powernv/pci-ioda.c 	struct resource *res;
res               481 arch/powerpc/platforms/powernv/pci-ioda.c 	res = &hose->mem_resources[1];
res               482 arch/powerpc/platforms/powernv/pci-ioda.c 	res->name = dn->full_name;
res               483 arch/powerpc/platforms/powernv/pci-ioda.c 	res->start = of_translate_address(dn, r + 2);
res               484 arch/powerpc/platforms/powernv/pci-ioda.c 	res->end = res->start + of_read_number(r + 4, 2) - 1;
res               485 arch/powerpc/platforms/powernv/pci-ioda.c 	res->flags = (IORESOURCE_MEM | IORESOURCE_MEM_64 | IORESOURCE_PREFETCH);
res               487 arch/powerpc/platforms/powernv/pci-ioda.c 	hose->mem_offset[1] = res->start - pci_addr;
res               489 arch/powerpc/platforms/powernv/pci-ioda.c 	phb->ioda.m64_size = resource_size(res);
res               495 arch/powerpc/platforms/powernv/pci-ioda.c 		res->start, res->end, pci_addr, m64_range[0],
res               963 arch/powerpc/platforms/powernv/pci-ioda.c 	struct resource *res, res2;
res               980 arch/powerpc/platforms/powernv/pci-ioda.c 		res = &dev->resource[i + PCI_IOV_RESOURCES];
res               981 arch/powerpc/platforms/powernv/pci-ioda.c 		if (!res->flags || !res->parent)
res               991 arch/powerpc/platforms/powernv/pci-ioda.c 		res2.flags = res->flags;
res               992 arch/powerpc/platforms/powernv/pci-ioda.c 		res2.start = res->start + (size * offset);
res               995 arch/powerpc/platforms/powernv/pci-ioda.c 		if (res2.end > res->end) {
res               997 arch/powerpc/platforms/powernv/pci-ioda.c 				i, &res2, res, num_vfs, offset);
res              1011 arch/powerpc/platforms/powernv/pci-ioda.c 		res = &dev->resource[i + PCI_IOV_RESOURCES];
res              1012 arch/powerpc/platforms/powernv/pci-ioda.c 		if (!res->flags || !res->parent)
res              1016 arch/powerpc/platforms/powernv/pci-ioda.c 		res2 = *res;
res              1017 arch/powerpc/platforms/powernv/pci-ioda.c 		res->start += size * offset;
res              1020 arch/powerpc/platforms/powernv/pci-ioda.c 			 i, &res2, res, (offset > 0) ? "En" : "Dis",
res              1035 arch/powerpc/platforms/powernv/pci-ioda.c 			devm_request_resource(&dev->dev, res->parent,
res              1341 arch/powerpc/platforms/powernv/pci-ioda.c 	struct resource       *res;
res              1372 arch/powerpc/platforms/powernv/pci-ioda.c 		res = &pdev->resource[i + PCI_IOV_RESOURCES];
res              1373 arch/powerpc/platforms/powernv/pci-ioda.c 		if (!res->flags || !res->parent)
res              1390 arch/powerpc/platforms/powernv/pci-ioda.c 				start = res->start + size * j;
res              1392 arch/powerpc/platforms/powernv/pci-ioda.c 				size = resource_size(res);
res              1393 arch/powerpc/platforms/powernv/pci-ioda.c 				start = res->start;
res              2897 arch/powerpc/platforms/powernv/pci-ioda.c 	struct resource *res;
res              2912 arch/powerpc/platforms/powernv/pci-ioda.c 		res = &pdev->resource[i + PCI_IOV_RESOURCES];
res              2913 arch/powerpc/platforms/powernv/pci-ioda.c 		if (!res->flags || res->parent)
res              2915 arch/powerpc/platforms/powernv/pci-ioda.c 		if (!pnv_pci_is_m64_flags(res->flags)) {
res              2918 arch/powerpc/platforms/powernv/pci-ioda.c 				 i, res);
res              2948 arch/powerpc/platforms/powernv/pci-ioda.c 		res = &pdev->resource[i + PCI_IOV_RESOURCES];
res              2949 arch/powerpc/platforms/powernv/pci-ioda.c 		if (!res->flags || res->parent)
res              2959 arch/powerpc/platforms/powernv/pci-ioda.c 		dev_dbg(&pdev->dev, " Fixing VF BAR%d: %pR to\n", i, res);
res              2960 arch/powerpc/platforms/powernv/pci-ioda.c 		res->end = res->start + size * mul - 1;
res              2961 arch/powerpc/platforms/powernv/pci-ioda.c 		dev_dbg(&pdev->dev, "                       %pR\n", res);
res              2963 arch/powerpc/platforms/powernv/pci-ioda.c 			 i, res, mul);
res              2972 arch/powerpc/platforms/powernv/pci-ioda.c 		res = &pdev->resource[i + PCI_IOV_RESOURCES];
res              2973 arch/powerpc/platforms/powernv/pci-ioda.c 		res->flags = 0;
res              2974 arch/powerpc/platforms/powernv/pci-ioda.c 		res->end = res->start - 1;
res              3004 arch/powerpc/platforms/powernv/pci-ioda.c 				  struct resource *res)
res              3011 arch/powerpc/platforms/powernv/pci-ioda.c 	if (!res || !res->flags || res->start > res->end)
res              3014 arch/powerpc/platforms/powernv/pci-ioda.c 	if (res->flags & IORESOURCE_IO) {
res              3015 arch/powerpc/platforms/powernv/pci-ioda.c 		region.start = res->start - phb->ioda.io_pci_base;
res              3016 arch/powerpc/platforms/powernv/pci-ioda.c 		region.end   = res->end - phb->ioda.io_pci_base;
res              3033 arch/powerpc/platforms/powernv/pci-ioda.c 	} else if ((res->flags & IORESOURCE_MEM) &&
res              3034 arch/powerpc/platforms/powernv/pci-ioda.c 		   !pnv_pci_is_m64(phb, res)) {
res              3035 arch/powerpc/platforms/powernv/pci-ioda.c 		region.start = res->start -
res              3038 arch/powerpc/platforms/powernv/pci-ioda.c 		region.end   = res->end -
res               137 arch/powerpc/platforms/powernv/rng.c 	struct resource res;
res               144 arch/powerpc/platforms/powernv/rng.c 	if (of_address_to_resource(dn, 0, &res)) {
res               149 arch/powerpc/platforms/powernv/rng.c 	rng->regs_real = (void __iomem *)res.start;
res                29 arch/powerpc/platforms/powernv/vas.c 	struct resource *res;
res                55 arch/powerpc/platforms/powernv/vas.c 	res = &pdev->resource[0];
res                56 arch/powerpc/platforms/powernv/vas.c 	vinst->hvwc_bar_start = res->start;
res                58 arch/powerpc/platforms/powernv/vas.c 	res = &pdev->resource[1];
res                59 arch/powerpc/platforms/powernv/vas.c 	vinst->uwc_bar_start = res->start;
res                61 arch/powerpc/platforms/powernv/vas.c 	res = &pdev->resource[2];
res                62 arch/powerpc/platforms/powernv/vas.c 	vinst->paste_base_addr = res->start;
res                64 arch/powerpc/platforms/powernv/vas.c 	res = &pdev->resource[3];
res                65 arch/powerpc/platforms/powernv/vas.c 	if (res->end > 62) {
res                66 arch/powerpc/platforms/powernv/vas.c 		pr_err("Bad 'paste_win_id_shift' in DT, %llx\n", res->end);
res                70 arch/powerpc/platforms/powernv/vas.c 	vinst->paste_win_id_shift = 63 - res->end;
res               635 arch/powerpc/platforms/ps3/device-init.c 	int res;
res               644 arch/powerpc/platforms/ps3/device-init.c 		res = ps3_repository_find_device_by_id(&repo, bus_id, dev_id);
res               645 arch/powerpc/platforms/ps3/device-init.c 		if (!res)
res               698 arch/powerpc/platforms/ps3/device-init.c 	int res;
res               702 arch/powerpc/platforms/ps3/device-init.c 	res = lv1_storage_get_async_status(PS3_NOTIFICATION_DEV_ID, &tag,
res               708 arch/powerpc/platforms/ps3/device-init.c 	if (res) {
res               709 arch/powerpc/platforms/ps3/device-init.c 		pr_err("%s:%u: res %d status 0x%llx\n", __func__, __LINE__, res,
res               726 arch/powerpc/platforms/ps3/device-init.c 	int res;
res               730 arch/powerpc/platforms/ps3/device-init.c 	res = write ? lv1_storage_write(dev->sbd.dev_id, 0, 0, 1, 0, lpar,
res               735 arch/powerpc/platforms/ps3/device-init.c 	if (res) {
res               736 arch/powerpc/platforms/ps3/device-init.c 		pr_err("%s:%u: %s failed %d\n", __func__, __LINE__, op, res);
res               741 arch/powerpc/platforms/ps3/device-init.c 	res = wait_event_interruptible(dev->done.wait,
res               744 arch/powerpc/platforms/ps3/device-init.c 		res = -EINTR;
res               745 arch/powerpc/platforms/ps3/device-init.c 	if (res) {
res               747 arch/powerpc/platforms/ps3/device-init.c 		return res;
res               775 arch/powerpc/platforms/ps3/device-init.c 	int res;
res               797 arch/powerpc/platforms/ps3/device-init.c 	res = lv1_open_device(dev.sbd.bus_id, dev.sbd.dev_id, 0);
res               798 arch/powerpc/platforms/ps3/device-init.c 	if (res) {
res               800 arch/powerpc/platforms/ps3/device-init.c 		       __LINE__, ps3_result(res));
res               804 arch/powerpc/platforms/ps3/device-init.c 	res = ps3_sb_event_receive_port_setup(&dev.sbd, PS3_BINDING_CPU_ANY,
res               806 arch/powerpc/platforms/ps3/device-init.c 	if (res) {
res               808 arch/powerpc/platforms/ps3/device-init.c 		       __func__, __LINE__, res);
res               814 arch/powerpc/platforms/ps3/device-init.c 	res = request_irq(irq, ps3_notification_interrupt, 0,
res               816 arch/powerpc/platforms/ps3/device-init.c 	if (res) {
res               818 arch/powerpc/platforms/ps3/device-init.c 		       res);
res               826 arch/powerpc/platforms/ps3/device-init.c 	res = ps3_notification_read_write(&dev, lpar, 1);
res               827 arch/powerpc/platforms/ps3/device-init.c 	if (res)
res               836 arch/powerpc/platforms/ps3/device-init.c 		res = ps3_notification_read_write(&dev, lpar, 0);
res               837 arch/powerpc/platforms/ps3/device-init.c 		if (res)
res               229 arch/powerpc/platforms/ps3/os-area.c 	ssize_t res = -ENODEV;
res               233 arch/powerpc/platforms/ps3/os-area.c 		res = os_area_flash_ops->read(buf, count, pos);
res               236 arch/powerpc/platforms/ps3/os-area.c 	return res;
res               241 arch/powerpc/platforms/ps3/os-area.c 	ssize_t res = -ENODEV;
res               245 arch/powerpc/platforms/ps3/os-area.c 		res = os_area_flash_ops->write(buf, count, pos);
res               248 arch/powerpc/platforms/ps3/os-area.c 	return res;
res                39 arch/powerpc/platforms/pseries/papr_scm.c 	struct resource res;
res                72 arch/powerpc/platforms/pseries/papr_scm.c 	dev_dbg(&p->pdev->dev, "bound drc 0x%x to %pR\n", p->drc_index, &p->res);
res               136 arch/powerpc/platforms/pseries/papr_scm.c 	dev_dbg(&p->pdev->dev, "bound drc 0x%x to %pR\n", p->drc_index, &p->res);
res               375 arch/powerpc/platforms/pseries/papr_scm.c 	ndr_desc.res = &p->res;
res               389 arch/powerpc/platforms/pseries/papr_scm.c 				ndr_desc.res, p->dn);
res               478 arch/powerpc/platforms/pseries/papr_scm.c 	p->res.start = p->bound_addr;
res               479 arch/powerpc/platforms/pseries/papr_scm.c 	p->res.end   = p->bound_addr + p->blocks * p->block_size - 1;
res               480 arch/powerpc/platforms/pseries/papr_scm.c 	p->res.name  = pdev->name;
res               481 arch/powerpc/platforms/pseries/papr_scm.c 	p->res.flags = IORESOURCE_MEM;
res               110 arch/powerpc/platforms/pseries/pci.c 	struct resource *res;
res               122 arch/powerpc/platforms/pseries/pci.c 			res = &pdev->resource[i + PCI_IOV_RESOURCES];
res               123 arch/powerpc/platforms/pseries/pci.c 			if (!res->parent)
res               128 arch/powerpc/platforms/pseries/pci.c 				cpu_to_be64(res->start + size * vf_index);
res                69 arch/powerpc/platforms/pseries/pci_dlpar.c 	struct resource *res;
res                82 arch/powerpc/platforms/pseries/pci_dlpar.c 	res = &phb->io_resource;
res                83 arch/powerpc/platforms/pseries/pci_dlpar.c 	if (res->flags & IORESOURCE_IO) {
res                98 arch/powerpc/platforms/pseries/pci_dlpar.c 	if (res->flags & IORESOURCE_IO)
res                99 arch/powerpc/platforms/pseries/pci_dlpar.c 		release_resource(res);
res               103 arch/powerpc/platforms/pseries/pci_dlpar.c 		res = &phb->mem_resources[i];
res               104 arch/powerpc/platforms/pseries/pci_dlpar.c 		if (!(res->flags & IORESOURCE_MEM))
res               106 arch/powerpc/platforms/pseries/pci_dlpar.c 		release_resource(res);
res               620 arch/powerpc/platforms/pseries/setup.c 	struct resource *res;
res               628 arch/powerpc/platforms/pseries/setup.c 		res = &dev->resource[r + PCI_IOV_RESOURCES];
res               631 arch/powerpc/platforms/pseries/setup.c 		res->flags = pci_parse_of_flags(of_read_number
res               633 arch/powerpc/platforms/pseries/setup.c 		res->flags |= (IORESOURCE_MEM_64 | IORESOURCE_PCI_FIXED);
res               634 arch/powerpc/platforms/pseries/setup.c 		res->name = pci_name(dev);
res               635 arch/powerpc/platforms/pseries/setup.c 		res->start = base;
res               636 arch/powerpc/platforms/pseries/setup.c 		res->end = base + size - 1;
res               642 arch/powerpc/platforms/pseries/setup.c 	struct resource *res, *root, *conflict;
res               654 arch/powerpc/platforms/pseries/setup.c 		res = &dev->resource[r + PCI_IOV_RESOURCES];
res               657 arch/powerpc/platforms/pseries/setup.c 		res->name = pci_name(dev);
res               658 arch/powerpc/platforms/pseries/setup.c 		res->start = base;
res               659 arch/powerpc/platforms/pseries/setup.c 		res->end = base + size - 1;
res               663 arch/powerpc/platforms/pseries/setup.c 			 r + PCI_IOV_RESOURCES, res);
res               664 arch/powerpc/platforms/pseries/setup.c 		conflict = request_resource_conflict(root, res);
res               668 arch/powerpc/platforms/pseries/setup.c 				 r + PCI_IOV_RESOURCES, res,
res               670 arch/powerpc/platforms/pseries/setup.c 			res->flags |= IORESOURCE_UNSET;
res               327 arch/powerpc/sysdev/cpm2.c 	u32 res[3];
res                96 arch/powerpc/sysdev/cpm_common.c 	u32 res[3];
res               400 arch/powerpc/sysdev/fsl_msi.c 	struct resource res, msiir;
res               436 arch/powerpc/sysdev/fsl_msi.c 		err = of_address_to_resource(dev->dev.of_node, 0, &res);
res               443 arch/powerpc/sysdev/fsl_msi.c 		msi->msi_regs = ioremap(res.start, resource_size(&res));
res               451 arch/powerpc/sysdev/fsl_msi.c 			features->msiir_offset + (res.start & 0xfffff);
res               459 arch/powerpc/sysdev/fsl_msi.c 					    (res.start & MSIIR_OFFSET_MASK);
res               144 arch/powerpc/sysdev/fsl_pci.c 	unsigned int index, const struct resource *res,
res               147 arch/powerpc/sysdev/fsl_pci.c 	resource_size_t pci_addr = res->start - offset;
res               148 arch/powerpc/sysdev/fsl_pci.c 	resource_size_t phys_addr = res->start;
res               149 arch/powerpc/sysdev/fsl_pci.c 	resource_size_t size = resource_size(res);
res               154 arch/powerpc/sysdev/fsl_pci.c 		(u64)res->start, (u64)size);
res               156 arch/powerpc/sysdev/fsl_pci.c 	if (res->flags & IORESOURCE_PREFETCH)
res               498 arch/powerpc/sysdev/fsl_pci.c 			struct resource *res = bus->resource[i];
res               501 arch/powerpc/sysdev/fsl_pci.c 			if (!res)
res               509 arch/powerpc/sysdev/fsl_pci.c 			res->start = par ? par->start : 0;
res               510 arch/powerpc/sysdev/fsl_pci.c 			res->end   = par ? par->end   : 0;
res               511 arch/powerpc/sysdev/fsl_pci.c 			res->flags = par ? par->flags : 0;
res              1034 arch/powerpc/sysdev/fsl_pci.c 	struct resource *res;
res              1042 arch/powerpc/sysdev/fsl_pci.c 			res = &hose->mem_resources[i];
res              1043 arch/powerpc/sysdev/fsl_pci.c 			if ((res->flags & IORESOURCE_MEM) &&
res              1044 arch/powerpc/sysdev/fsl_pci.c 				addr >= res->start && addr <= res->end)
res              1164 arch/powerpc/sysdev/fsl_pci.c 	int res;
res              1182 arch/powerpc/sysdev/fsl_pci.c 	res = devm_request_irq(hose->parent, pme_irq,
res              1186 arch/powerpc/sysdev/fsl_pci.c 	if (res < 0) {
res               329 arch/powerpc/sysdev/fsl_rmu.c 					if ((dbell->res->start
res               331 arch/powerpc/sysdev/fsl_rmu.c 						&& (dbell->res->end
res               702 arch/powerpc/sysdev/ipic.c 	struct resource res;
res               705 arch/powerpc/sysdev/ipic.c 	ret = of_address_to_resource(node, 0, &res);
res               720 arch/powerpc/sysdev/ipic.c 	ipic->regs = ioremap(res.start, resource_size(&res));
res                32 arch/powerpc/sysdev/of_rtc.c 			struct resource *res;
res                34 arch/powerpc/sysdev/of_rtc.c 			res = kmalloc(sizeof(*res), GFP_KERNEL);
res                35 arch/powerpc/sysdev/of_rtc.c 			if (!res) {
res                42 arch/powerpc/sysdev/of_rtc.c 			err = of_address_to_resource(node, 0, res);
res                52 arch/powerpc/sysdev/of_rtc.c 			       (unsigned long long)res->start,
res                53 arch/powerpc/sysdev/of_rtc.c 			       (unsigned long long)res->end);
res                54 arch/powerpc/sysdev/of_rtc.c 			platform_device_register_simple(plat_name, -1, res, 1);
res                24 arch/powerpc/sysdev/rtc_cmos_setup.c 	struct resource res[2];
res                28 arch/powerpc/sysdev/rtc_cmos_setup.c 	memset(&res, 0, sizeof(res));
res                34 arch/powerpc/sysdev/rtc_cmos_setup.c 	ret = of_address_to_resource(np, 0, &res[0]);
res                43 arch/powerpc/sysdev/rtc_cmos_setup.c 	if (res[0].start != RTC_PORT(0))
res                56 arch/powerpc/sysdev/rtc_cmos_setup.c 		res[1].start = 8;
res                57 arch/powerpc/sysdev/rtc_cmos_setup.c 		res[1].end = 8;
res                58 arch/powerpc/sysdev/rtc_cmos_setup.c 		res[1].flags = IORESOURCE_IRQ;
res                63 arch/powerpc/sysdev/rtc_cmos_setup.c 					     &res[0], num_res);
res                68 arch/powerpc/sysdev/tsi108_dev.c 	struct resource res;
res               110 arch/powerpc/sysdev/tsi108_dev.c 		ret = of_address_to_resource(mdio, 0, &res);
res               126 arch/powerpc/sysdev/tsi108_dev.c 		tsi_eth_data.phyregs = res.start;
res              2921 arch/powerpc/xmon/xmon.c 	ssize_t res;
res              2938 arch/powerpc/xmon/xmon.c 	while ((res = opal_msglog_copy(buf, pos, sizeof(buf) - 1))) {
res              2939 arch/powerpc/xmon/xmon.c 		if (res < 0) {
res              2940 arch/powerpc/xmon/xmon.c 			printf("Error dumping OPAL msglog! Error: %zd\n", res);
res              2943 arch/powerpc/xmon/xmon.c 		buf[res] = '\0';
res              2945 arch/powerpc/xmon/xmon.c 		pos += res;
res               306 arch/riscv/kernel/module.c 	int res;
res               386 arch/riscv/kernel/module.c 		res = handler(me, location, v);
res               387 arch/riscv/kernel/module.c 		if (res)
res               388 arch/riscv/kernel/module.c 			return res;
res               148 arch/riscv/mm/sifive_l2_cache.c 	struct resource res;
res               155 arch/riscv/mm/sifive_l2_cache.c 	if (of_address_to_resource(np, 0, &res))
res               158 arch/riscv/mm/sifive_l2_cache.c 	l2_base = ioremap(res.start, resource_size(&res));
res                18 arch/s390/boot/kaslr.c 	u32 res;
res               104 arch/s390/boot/string.c int kstrtobool(const char *s, bool *res)
res               113 arch/s390/boot/string.c 		*res = true;
res               118 arch/s390/boot/string.c 		*res = false;
res               125 arch/s390/boot/string.c 			*res = true;
res               129 arch/s390/boot/string.c 			*res = false;
res                87 arch/s390/crypto/prng.c 	u32 res;
res               202 arch/s390/include/asm/cio.h 	__u16 res;
res               249 arch/s390/include/asm/diag.h 	u8	res[2];
res               288 arch/s390/include/asm/diag.h 	u8	res[4];
res               294 arch/s390/include/asm/diag.h 	u8	res[2];
res                88 arch/s390/include/asm/pci.h 	struct resource *res;		/* bus resource */
res                76 arch/s390/include/asm/qdio.h 	u32 res[9];
res               112 arch/s390/include/asm/qdio.h 	u8 res[88];
res               171 arch/s390/include/asm/qdio.h 	u8 res[1000];
res                52 arch/s390/include/asm/scsw.h 	__u32 res  : 1;
res               269 arch/s390/include/uapi/asm/dasd.h 		__u8 res:3;
res               501 arch/s390/kernel/setup.c 	struct resource *res, *std_res, *sub_res;
res               513 arch/s390/kernel/setup.c 		res = memblock_alloc(sizeof(*res), 8);
res               514 arch/s390/kernel/setup.c 		if (!res)
res               516 arch/s390/kernel/setup.c 			      __func__, sizeof(*res), 8);
res               517 arch/s390/kernel/setup.c 		res->flags = IORESOURCE_BUSY | IORESOURCE_SYSTEM_RAM;
res               519 arch/s390/kernel/setup.c 		res->name = "System RAM";
res               520 arch/s390/kernel/setup.c 		res->start = reg->base;
res               521 arch/s390/kernel/setup.c 		res->end = reg->base + reg->size - 1;
res               522 arch/s390/kernel/setup.c 		request_resource(&iomem_resource, res);
res               526 arch/s390/kernel/setup.c 			if (std_res->start < res->start ||
res               527 arch/s390/kernel/setup.c 			    std_res->start > res->end)
res               529 arch/s390/kernel/setup.c 			if (std_res->end > res->end) {
res               535 arch/s390/kernel/setup.c 				sub_res->end = res->end;
res               536 arch/s390/kernel/setup.c 				std_res->start = res->end + 1;
res               537 arch/s390/kernel/setup.c 				request_resource(res, sub_res);
res               539 arch/s390/kernel/setup.c 				request_resource(res, std_res);
res              1056 arch/s390/kvm/kvm-s390.c 	int res = -ENXIO;
res              1061 arch/s390/kvm/kvm-s390.c 		res = kvm_s390_vm_start_migration(kvm);
res              1064 arch/s390/kvm/kvm-s390.c 		res = kvm_s390_vm_stop_migration(kvm);
res              1071 arch/s390/kvm/kvm-s390.c 	return res;
res              1947 arch/s390/kvm/kvm-s390.c 			      u8 *res, unsigned long bufsize)
res              1962 arch/s390/kvm/kvm-s390.c 		res[args->count++] = (pgstev >> 24) & 0x43;
res              1995 arch/s390/kvm/kvm-s390.c 			     u8 *res, unsigned long bufsize)
res              2020 arch/s390/kvm/kvm-s390.c 		res[args->count++] = (pgstev >> 24) & 0x43;
res              1125 arch/s390/kvm/priv.c 	unsigned long gfn, hva, res, pgstev, ptev;
res              1143 arch/s390/kvm/priv.c 		res = orc ? 0x10 : 0;
res              1144 arch/s390/kvm/priv.c 		vcpu->run->s.regs.gprs[r1] = res; /* Exception Indication */
res              1147 arch/s390/kvm/priv.c 	res = (pgstev & _PGSTE_GPS_USAGE_MASK) >> 22;
res              1155 arch/s390/kvm/priv.c 		res |= 2;
res              1157 arch/s390/kvm/priv.c 			res |= 1;
res              1160 arch/s390/kvm/priv.c 		res |= 0x20;
res              1161 arch/s390/kvm/priv.c 	vcpu->run->s.regs.gprs[r1] = res;
res               173 arch/s390/lib/string.c 	size_t res = dsize + len;
res               183 arch/s390/lib/string.c 	return res;
res                73 arch/s390/mm/extmem.c 	struct resource *res;
res               321 arch/s390/mm/extmem.c 	seg->res = kzalloc(sizeof(struct resource), GFP_KERNEL);
res               322 arch/s390/mm/extmem.c 	if (seg->res == NULL) {
res               326 arch/s390/mm/extmem.c 	seg->res->flags = IORESOURCE_BUSY | IORESOURCE_MEM;
res               327 arch/s390/mm/extmem.c 	seg->res->start = seg->start_addr;
res               328 arch/s390/mm/extmem.c 	seg->res->end = seg->end;
res               333 arch/s390/mm/extmem.c 	seg->res->name = seg->res_name;
res               337 arch/s390/mm/extmem.c 		seg->res->flags |= IORESOURCE_READONLY;
res               338 arch/s390/mm/extmem.c 	if (request_resource(&iomem_resource, seg->res)) {
res               340 arch/s390/mm/extmem.c 		kfree(seg->res);
res               381 arch/s390/mm/extmem.c 	release_resource(seg->res);
res               382 arch/s390/mm/extmem.c 	kfree(seg->res);
res               477 arch/s390/mm/extmem.c 	release_resource(seg->res);
res               479 arch/s390/mm/extmem.c 		seg->res->flags &= ~IORESOURCE_READONLY;
res               483 arch/s390/mm/extmem.c 			seg->res->flags |= IORESOURCE_READONLY;
res               485 arch/s390/mm/extmem.c 	if (request_resource(&iomem_resource, seg->res)) {
res               489 arch/s390/mm/extmem.c 		kfree(seg->res);
res               516 arch/s390/mm/extmem.c 	release_resource(seg->res);
res               517 arch/s390/mm/extmem.c 	kfree(seg->res);
res               550 arch/s390/mm/extmem.c 	release_resource(seg->res);
res               551 arch/s390/mm/extmem.c 	kfree(seg->res);
res               977 arch/s390/mm/pgtable.c 	int res = 0;
res              1003 arch/s390/mm/pgtable.c 			res = 1;
res              1009 arch/s390/mm/pgtable.c 			res = 1;
res              1023 arch/s390/mm/pgtable.c 			res = 1;
res              1051 arch/s390/mm/pgtable.c 	if (res)
res              1057 arch/s390/mm/pgtable.c 	return res;
res                32 arch/s390/numa/toptree.c 	struct toptree *res;
res                35 arch/s390/numa/toptree.c 		res = kzalloc(sizeof(*res), GFP_KERNEL);
res                37 arch/s390/numa/toptree.c 		res = memblock_alloc(sizeof(*res), 8);
res                38 arch/s390/numa/toptree.c 	if (!res)
res                39 arch/s390/numa/toptree.c 		return res;
res                41 arch/s390/numa/toptree.c 	INIT_LIST_HEAD(&res->children);
res                42 arch/s390/numa/toptree.c 	INIT_LIST_HEAD(&res->sibling);
res                43 arch/s390/numa/toptree.c 	cpumask_clear(&res->mask);
res                44 arch/s390/numa/toptree.c 	res->level = level;
res                45 arch/s390/numa/toptree.c 	res->id = id;
res                46 arch/s390/numa/toptree.c 	return res;
res               216 arch/s390/pci/pci.c resource_size_t pcibios_align_resource(void *data, const struct resource *res,
res               511 arch/s390/pci/pci.c 	struct resource *res;
res               538 arch/s390/pci/pci.c 		res = __alloc_res(zdev, addr, size, flags);
res               539 arch/s390/pci/pci.c 		if (!res) {
res               543 arch/s390/pci/pci.c 		zdev->bars[i].res = res;
res               544 arch/s390/pci/pci.c 		pci_add_resource(resources, res);
res               555 arch/s390/pci/pci.c 		if (!zdev->bars[i].size || !zdev->bars[i].res)
res               559 arch/s390/pci/pci.c 		release_resource(zdev->bars[i].res);
res               560 arch/s390/pci/pci.c 		kfree(zdev->bars[i].res);
res               566 arch/s390/pci/pci.c 	struct resource *res;
res               577 arch/s390/pci/pci.c 		res = &pdev->resource[i];
res               578 arch/s390/pci/pci.c 		if (res->parent || !res->flags)
res                76 arch/sh/drivers/heartbeat.c 	struct resource *res;
res                85 arch/sh/drivers/heartbeat.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                86 arch/sh/drivers/heartbeat.c 	if (unlikely(res == NULL)) {
res                99 arch/sh/drivers/heartbeat.c 	hd->base = ioremap_nocache(res->start, resource_size(res));
res               119 arch/sh/drivers/heartbeat.c 		switch (res->flags & IORESOURCE_MEM_TYPE_MASK) {
res                31 arch/sh/drivers/pci/fixups-dreamcast.c 	struct resource res;
res                59 arch/sh/drivers/pci/fixups-dreamcast.c 		res.start = GAPSPCI_DMA_BASE;
res                60 arch/sh/drivers/pci/fixups-dreamcast.c 		res.end = GAPSPCI_DMA_BASE + GAPSPCI_DMA_SIZE - 1;
res                61 arch/sh/drivers/pci/fixups-dreamcast.c 		res.flags = IORESOURCE_MEM;
res                62 arch/sh/drivers/pci/fixups-dreamcast.c 		pcibios_resource_to_bus(dev->bus, &region, &res);
res                64 arch/sh/drivers/pci/fixups-dreamcast.c 						res.start,
res                66 arch/sh/drivers/pci/fixups-dreamcast.c 						resource_size(&res)));
res               347 arch/sh/drivers/pci/pci-sh7780.c 		struct resource *res = chan->resources + i;
res               350 arch/sh/drivers/pci/pci-sh7780.c 		if (unlikely(res->flags & IORESOURCE_IO))
res               357 arch/sh/drivers/pci/pci-sh7780.c 		if ((res->flags & IORESOURCE_MEM_32BIT) && __in_29bit_mode()) {
res               362 arch/sh/drivers/pci/pci-sh7780.c 		size = resource_size(res);
res               370 arch/sh/drivers/pci/pci-sh7780.c 		__raw_writel(res->start, chan->reg_base + SH7780_PCIMBR(i - 1));
res                37 arch/sh/drivers/pci/pci.c 	struct resource *res;
res                47 arch/sh/drivers/pci/pci.c 		res = hose->resources + i;
res                49 arch/sh/drivers/pci/pci.c 		if (res->flags & IORESOURCE_DISABLED)
res                51 arch/sh/drivers/pci/pci.c 		if (res->flags & IORESOURCE_IO)
res                53 arch/sh/drivers/pci/pci.c 		else if (res->flags & IORESOURCE_MEM)
res                55 arch/sh/drivers/pci/pci.c 		pci_add_resource_offset(&resources, res, offset);
res               102 arch/sh/drivers/pci/pci.c 		struct resource *res = hose->resources + i;
res               104 arch/sh/drivers/pci/pci.c 		if (res->flags & IORESOURCE_DISABLED)
res               107 arch/sh/drivers/pci/pci.c 		if (res->flags & IORESOURCE_IO) {
res               108 arch/sh/drivers/pci/pci.c 			if (request_resource(&ioport_resource, res) < 0)
res               111 arch/sh/drivers/pci/pci.c 			if (request_resource(&iomem_resource, res) < 0)
res               172 arch/sh/drivers/pci/pci.c resource_size_t pcibios_align_resource(void *data, const struct resource *res,
res               177 arch/sh/drivers/pci/pci.c 	resource_size_t start = res->start;
res               179 arch/sh/drivers/pci/pci.c 	if (res->flags & IORESOURCE_IO) {
res               442 arch/sh/drivers/pci/pcie-sh7786.c 		struct resource *res = chan->resources + i;
res               450 arch/sh/drivers/pci/pcie-sh7786.c 		if ((res->flags & IORESOURCE_MEM_32BIT) && __in_29bit_mode())
res               451 arch/sh/drivers/pci/pcie-sh7786.c 			res->flags |= IORESOURCE_DISABLED;
res               453 arch/sh/drivers/pci/pcie-sh7786.c 		if (res->flags & IORESOURCE_DISABLED)
res               462 arch/sh/drivers/pci/pcie-sh7786.c 		size = resource_size(res);
res               466 arch/sh/drivers/pci/pcie-sh7786.c 		pci_write_reg(chan, upper_32_bits(res->start),
res               468 arch/sh/drivers/pci/pcie-sh7786.c 		pci_write_reg(chan, lower_32_bits(res->start),
res               472 arch/sh/drivers/pci/pcie-sh7786.c 		if (res->flags & IORESOURCE_IO)
res                50 arch/sh/include/asm/atomic-grb.h 	int res, tmp;							\
res                62 arch/sh/include/asm/atomic-grb.h 		: "=&r" (tmp), "=&r" (res), "+r"  (v)			\
res                66 arch/sh/include/asm/atomic-grb.h 	return res;							\
res                55 arch/sh/include/asm/atomic-llsc.h 	unsigned long res, temp;					\
res                64 arch/sh/include/asm/atomic-llsc.h 	: "=&z" (temp), "=&r" (res)					\
res                68 arch/sh/include/asm/atomic-llsc.h 	return res;							\
res                61 arch/sh/kernel/cpu/irq/ipr.c 		int res;
res                66 arch/sh/kernel/cpu/irq/ipr.c 		res = irq_alloc_desc_at(p->irq, numa_node_id());
res                67 arch/sh/kernel/cpu/irq/ipr.c 		if (unlikely(res != p->irq && res != -EEXIST)) {
res                43 arch/sh/kernel/io_trapped.c 	struct resource *res;
res                56 arch/sh/kernel/io_trapped.c 		res = tiop->resource + k;
res                57 arch/sh/kernel/io_trapped.c 		len += roundup(resource_size(res), PAGE_SIZE);
res                58 arch/sh/kernel/io_trapped.c 		flags |= res->flags;
res                79 arch/sh/kernel/io_trapped.c 		res = tiop->resource + k;
res                82 arch/sh/kernel/io_trapped.c 		       res->flags & IORESOURCE_IO ? "io" : "mmio",
res                83 arch/sh/kernel/io_trapped.c 		       (unsigned long)res->start);
res                84 arch/sh/kernel/io_trapped.c 		len += roundup(resource_size(res), PAGE_SIZE);
res               113 arch/sh/kernel/io_trapped.c 	struct resource *res;
res               121 arch/sh/kernel/io_trapped.c 			res = tiop->resource + k;
res               122 arch/sh/kernel/io_trapped.c 			if (res->start == offset) {
res               127 arch/sh/kernel/io_trapped.c 			len = resource_size(res);
res               165 arch/sh/kernel/io_trapped.c 	struct resource *res;
res               171 arch/sh/kernel/io_trapped.c 		res = tiop->resource + k;
res               172 arch/sh/kernel/io_trapped.c 		len = roundup(resource_size(res), PAGE_SIZE);
res               174 arch/sh/kernel/io_trapped.c 			return res->start + (address - vaddr);
res               199 arch/sh/kernel/setup.c 	struct resource *res = &mem_resources[nid];
res               202 arch/sh/kernel/setup.c 	WARN_ON(res->name); /* max one active range per node for now */
res               207 arch/sh/kernel/setup.c 	res->name = "System RAM";
res               208 arch/sh/kernel/setup.c 	res->start = start;
res               209 arch/sh/kernel/setup.c 	res->end = end - 1;
res               210 arch/sh/kernel/setup.c 	res->flags = IORESOURCE_SYSTEM_RAM | IORESOURCE_BUSY;
res               212 arch/sh/kernel/setup.c 	if (request_resource(&iomem_resource, res)) {
res               223 arch/sh/kernel/setup.c 	request_resource(res, &code_resource);
res               224 arch/sh/kernel/setup.c 	request_resource(res, &data_resource);
res               225 arch/sh/kernel/setup.c 	request_resource(res, &bss_resource);
res               227 arch/sh/kernel/setup.c 	request_resource(res, &crashk_res);
res               172 arch/sh/mm/alignment.c 	struct proc_dir_entry *dir, *res;
res               178 arch/sh/mm/alignment.c 	res = proc_create_data("alignment", S_IWUSR | S_IRUGO, dir,
res               180 arch/sh/mm/alignment.c 	if (!res)
res               183 arch/sh/mm/alignment.c         res = proc_create_data("kernel_alignment", S_IWUSR | S_IRUGO, dir,
res               185 arch/sh/mm/alignment.c         if (!res)
res                45 arch/sparc/include/asm/prom.h void __iomem *of_ioremap(struct resource *res, unsigned long offset, unsigned long size, char *name);
res                46 arch/sparc/include/asm/prom.h void of_iounmap(struct resource *res, void __iomem *base, unsigned long size);
res               165 arch/sparc/include/asm/spinlock_32.h 	register int res asm("o0");
res               171 arch/sparc/include/asm/spinlock_32.h 	: "=r" (res)
res               174 arch/sparc/include/asm/spinlock_32.h 	return res;
res               179 arch/sparc/include/asm/spinlock_32.h 	int res; \
res               181 arch/sparc/include/asm/spinlock_32.h 	res = __arch_read_trylock(lock); \
res               183 arch/sparc/include/asm/spinlock_32.h 	res; \
res               289 arch/sparc/kernel/ds.c 		struct ds_md_update_res	res;
res               302 arch/sparc/kernel/ds.c 	pkt.res.req_num = rp->req_num;
res               303 arch/sparc/kernel/ds.c 	pkt.res.result = DS_OK;
res               328 arch/sparc/kernel/ds.c 		struct ds_shutdown_res	res;
res               340 arch/sparc/kernel/ds.c 	pkt.res.req_num = rp->req_num;
res               341 arch/sparc/kernel/ds.c 	pkt.res.result = DS_OK;
res               342 arch/sparc/kernel/ds.c 	pkt.res.reason[0] = 0;
res               368 arch/sparc/kernel/ds.c 		struct ds_panic_res	res;
res               380 arch/sparc/kernel/ds.c 	pkt.res.req_num = rp->req_num;
res               381 arch/sparc/kernel/ds.c 	pkt.res.result = DS_OK;
res               382 arch/sparc/kernel/ds.c 	pkt.res.reason[0] = 0;
res               515 arch/sparc/kernel/ds.c 			u32 res, u32 stat)
res               527 arch/sparc/kernel/ds.c 		ent[i].result = res;
res               560 arch/sparc/kernel/ds.c 			__u32 res = DR_CPU_RES_FAILURE;
res               565 arch/sparc/kernel/ds.c 				res = DR_CPU_RES_NOT_IN_MD;
res               569 arch/sparc/kernel/ds.c 				res = DR_CPU_RES_CPU_NOT_RESPONDING;
res               574 arch/sparc/kernel/ds.c 			dr_cpu_mark(resp, cpu, ncpus, res, stat);
res                66 arch/sparc/kernel/ioport.c static void __iomem *_sparc_ioremap(struct resource *res, u32 bus, u32 pa, int sz);
res                69 arch/sparc/kernel/ioport.c static void _sparc_free_io(struct resource *res);
res               139 arch/sparc/kernel/ioport.c 	struct resource *res;
res               145 arch/sparc/kernel/ioport.c 	if ((res = lookup_resource(&sparc_iomap, vaddr)) == NULL) {
res               149 arch/sparc/kernel/ioport.c 	_sparc_free_io(res);
res               151 arch/sparc/kernel/ioport.c 	if ((char *)res >= (char*)xresv && (char *)res < (char *)&xresv[XNRES]) {
res               152 arch/sparc/kernel/ioport.c 		xres_free((struct xresource *)res);
res               154 arch/sparc/kernel/ioport.c 		kfree(res);
res               159 arch/sparc/kernel/ioport.c void __iomem *of_ioremap(struct resource *res, unsigned long offset,
res               162 arch/sparc/kernel/ioport.c 	return _sparc_alloc_io(res->flags & 0xF,
res               163 arch/sparc/kernel/ioport.c 			       res->start + offset,
res               168 arch/sparc/kernel/ioport.c void of_iounmap(struct resource *res, void __iomem *base, unsigned long size)
res               182 arch/sparc/kernel/ioport.c 	struct resource *res;
res               191 arch/sparc/kernel/ioport.c 		res = &xres->xres;
res               201 arch/sparc/kernel/ioport.c 		res = (struct resource *) tack;
res               206 arch/sparc/kernel/ioport.c 	res->name = tack;
res               208 arch/sparc/kernel/ioport.c 	va = _sparc_ioremap(res, busno, phys, size);
res               216 arch/sparc/kernel/ioport.c _sparc_ioremap(struct resource *res, u32 bus, u32 pa, int sz)
res               220 arch/sparc/kernel/ioport.c 	if (allocate_resource(&sparc_iomap, res,
res               225 arch/sparc/kernel/ioport.c 		    (res->name != NULL)? res->name: "???");
res               230 arch/sparc/kernel/ioport.c 	srmmu_mapiorange(bus, pa, res->start, resource_size(res));
res               232 arch/sparc/kernel/ioport.c 	return (void __iomem *)(unsigned long)(res->start + offset);
res               238 arch/sparc/kernel/ioport.c static void _sparc_free_io(struct resource *res)
res               242 arch/sparc/kernel/ioport.c 	plen = resource_size(res);
res               244 arch/sparc/kernel/ioport.c 	srmmu_unmapiorange(res->start, plen);
res               245 arch/sparc/kernel/ioport.c 	release_resource(res);
res               250 arch/sparc/kernel/ioport.c 	struct resource *res;
res               252 arch/sparc/kernel/ioport.c 	res = kzalloc(sizeof(*res), GFP_KERNEL);
res               253 arch/sparc/kernel/ioport.c 	if (!res)
res               255 arch/sparc/kernel/ioport.c 	res->name = dev->of_node->full_name;
res               257 arch/sparc/kernel/ioport.c 	if (allocate_resource(&_sparc_dvma, res, len, _sparc_dvma.start,
res               260 arch/sparc/kernel/ioport.c 		kfree(res);
res               264 arch/sparc/kernel/ioport.c 	return res->start;
res               270 arch/sparc/kernel/ioport.c 	struct resource *res;
res               272 arch/sparc/kernel/ioport.c 	res = lookup_resource(&_sparc_dvma, addr);
res               273 arch/sparc/kernel/ioport.c 	if (!res) {
res               284 arch/sparc/kernel/ioport.c 	if (resource_size(res) != size) {
res               286 arch/sparc/kernel/ioport.c 			__func__, (long)resource_size(res), size);
res               290 arch/sparc/kernel/ioport.c 	release_resource(res);
res               291 arch/sparc/kernel/ioport.c 	kfree(res);
res                72 arch/sparc/kernel/leon_pci.c 		struct resource *res = &dev->resource[i];
res                78 arch/sparc/kernel/leon_pci.c 		if (res->flags & IORESOURCE_IO)
res                80 arch/sparc/kernel/leon_pci.c 		if (res->flags & IORESOURCE_MEM)
res               518 arch/sparc/kernel/leon_pci_grpci1.c 	struct resource *res;
res               539 arch/sparc/kernel/leon_pci_grpci1.c 	res = platform_get_resource(ofdev, IORESOURCE_MEM, 0);
res               540 arch/sparc/kernel/leon_pci_grpci1.c 	regs = devm_ioremap_resource(&ofdev->dev, res);
res               148 arch/sparc/kernel/leon_pci_grpci2.c 	unsigned int res;	/* 0x0C Reserved */
res                18 arch/sparc/kernel/of_device_64.c void __iomem *of_ioremap(struct resource *res, unsigned long offset, unsigned long size, char *name)
res                20 arch/sparc/kernel/of_device_64.c 	unsigned long ret = res->start + offset;
res                23 arch/sparc/kernel/of_device_64.c 	if (res->flags & IORESOURCE_MEM)
res                34 arch/sparc/kernel/of_device_64.c void of_iounmap(struct resource *res, void __iomem *base, unsigned long size)
res                36 arch/sparc/kernel/of_device_64.c 	if (res->flags & IORESOURCE_MEM)
res               221 arch/sparc/kernel/pci.c 		struct resource *res;
res               234 arch/sparc/kernel/pci.c 			res = &dev->resource[(i - PCI_BASE_ADDRESS_0) >> 2];
res               236 arch/sparc/kernel/pci.c 			res = &dev->resource[PCI_ROM_RESOURCE];
res               242 arch/sparc/kernel/pci.c 		res->start = op_res->start;
res               243 arch/sparc/kernel/pci.c 		res->end = op_res->end;
res               244 arch/sparc/kernel/pci.c 		res->flags = flags;
res               245 arch/sparc/kernel/pci.c 		res->name = pci_name(dev);
res               247 arch/sparc/kernel/pci.c 		pci_info(dev, "reg 0x%x: %pR\n", i, res);
res               389 arch/sparc/kernel/pci.c 	struct resource *res;
res               395 arch/sparc/kernel/pci.c 	res = bus->resource[0];
res               396 arch/sparc/kernel/pci.c 	res->flags = IORESOURCE_IO;
res               399 arch/sparc/kernel/pci.c 	pcibios_bus_to_resource(dev->bus, res, &region);
res               403 arch/sparc/kernel/pci.c 	res = bus->resource[1];
res               404 arch/sparc/kernel/pci.c 	res->flags = IORESOURCE_MEM;
res               407 arch/sparc/kernel/pci.c 	pcibios_bus_to_resource(dev->bus, res, &region);
res               424 arch/sparc/kernel/pci.c 	struct resource *res;
res               468 arch/sparc/kernel/pci.c 	res = &dev->resource[PCI_BRIDGE_RESOURCES];
res               470 arch/sparc/kernel/pci.c 		res->flags = 0;
res               471 arch/sparc/kernel/pci.c 		bus->resource[i] = res;
res               472 arch/sparc/kernel/pci.c 		++res;
res               507 arch/sparc/kernel/pci.c 			res = bus->resource[0];
res               508 arch/sparc/kernel/pci.c 			if (res->flags) {
res               519 arch/sparc/kernel/pci.c 			res = bus->resource[i];
res               523 arch/sparc/kernel/pci.c 		res->flags = flags;
res               531 arch/sparc/kernel/pci.c 		pcibios_bus_to_resource(dev->bus, res, &region);
res               735 arch/sparc/kernel/pci.c 		struct resource *res = &dev->resource[i];
res               741 arch/sparc/kernel/pci.c 		if (res->flags & IORESOURCE_IO)
res               743 arch/sparc/kernel/pci.c 		if (res->flags & IORESOURCE_MEM)
res               653 arch/sparc/kernel/pcic.c 		struct resource *res = &dev->resource[i];
res               659 arch/sparc/kernel/pcic.c 		if (res->flags & IORESOURCE_IO)
res               661 arch/sparc/kernel/pcic.c 		if (res->flags & IORESOURCE_MEM)
res                39 arch/sparc/kernel/power.c 	struct resource *res = &op->resource[0];
res                42 arch/sparc/kernel/power.c 	power_reg = of_ioremap(res, 0, 0x4, "power");
res                45 arch/sparc/kernel/power.c 	       op->dev.of_node, res->start);
res               724 arch/sparc/kernel/prom_irqtrans.c 	struct resource *res;
res               729 arch/sparc/kernel/prom_irqtrans.c 		res = &central_op->resource[5];
res               731 arch/sparc/kernel/prom_irqtrans.c 		res = &central_op->resource[4];
res               733 arch/sparc/kernel/prom_irqtrans.c 		res = &central_op->resource[3];
res               738 arch/sparc/kernel/prom_irqtrans.c 	imap = res->start + 0x00UL;
res               739 arch/sparc/kernel/prom_irqtrans.c 	iclr = res->start + 0x10UL;
res               421 arch/sparc/kernel/sun4d_irq.c 	struct resource res;
res               451 arch/sparc/kernel/sun4d_irq.c 	res.start = reg[1];
res               452 arch/sparc/kernel/sun4d_irq.c 	res.end = reg[2] - 1;
res               453 arch/sparc/kernel/sun4d_irq.c 	res.flags = reg[0] & 0xff;
res               454 arch/sparc/kernel/sun4d_irq.c 	sun4d_timers = of_ioremap(&res, BW_TIMER_LIMIT,
res              3074 arch/sparc/mm/init_64.c 	struct resource *res;
res              3079 arch/sparc/mm/init_64.c 		res = kzalloc(sizeof(struct resource), GFP_KERNEL);
res              3081 arch/sparc/mm/init_64.c 		if (!res) {
res              3086 arch/sparc/mm/init_64.c 		res->name = "System RAM";
res              3087 arch/sparc/mm/init_64.c 		res->start = pavail[i].phys_addr;
res              3088 arch/sparc/mm/init_64.c 		res->end = pavail[i].phys_addr + pavail[i].reg_size - 1;
res              3089 arch/sparc/mm/init_64.c 		res->flags = IORESOURCE_BUSY | IORESOURCE_SYSTEM_RAM;
res              3091 arch/sparc/mm/init_64.c 		if (insert_resource(&iomem_resource, res) < 0) {
res              3096 arch/sparc/mm/init_64.c 		insert_resource(res, &code_resource);
res              3097 arch/sparc/mm/init_64.c 		insert_resource(res, &data_resource);
res              3098 arch/sparc/mm/init_64.c 		insert_resource(res, &bss_resource);
res               458 arch/um/drivers/ubd_kern.c 	int res = 0;
res               468 arch/um/drivers/ubd_kern.c 	res = os_read_file(
res               474 arch/um/drivers/ubd_kern.c 	if (res > 0) {
res               475 arch/um/drivers/ubd_kern.c 		n += res;
res               493 arch/um/drivers/ubd_kern.c 		n = res;
res              1380 arch/um/drivers/ubd_kern.c 	int ret = 0, res = BLK_STS_OK;
res              1401 arch/um/drivers/ubd_kern.c 		res = BLK_STS_NOTSUPP;
res              1408 arch/um/drivers/ubd_kern.c 			res = BLK_STS_RESOURCE;
res              1410 arch/um/drivers/ubd_kern.c 			res = BLK_STS_DEV_RESOURCE;
res              1413 arch/um/drivers/ubd_kern.c 	return res;
res              1582 arch/um/drivers/ubd_kern.c 	int n, count, written, res;
res              1609 arch/um/drivers/ubd_kern.c 			res = os_write_file(kernel_fd,
res              1612 arch/um/drivers/ubd_kern.c 			if (res >= 0) {
res              1613 arch/um/drivers/ubd_kern.c 				written += res;
res                15 arch/um/os-Linux/tty.c 	int res;
res                23 arch/um/os-Linux/tty.c 	info->res = grantpt(info->fd);
res                43 arch/um/os-Linux/tty.c 	if (info.res < 0) {
res               327 arch/unicore32/kernel/pci.c resource_size_t pcibios_align_resource(void *data, const struct resource *res,
res               330 arch/unicore32/kernel/pci.c 	resource_size_t start = res->start;
res               332 arch/unicore32/kernel/pci.c 	if (res->flags & IORESOURCE_IO && start & 0x300)
res               194 arch/unicore32/kernel/setup.c 	struct resource *res;
res               206 arch/unicore32/kernel/setup.c 		res = memblock_alloc_low(sizeof(*res), SMP_CACHE_BYTES);
res               207 arch/unicore32/kernel/setup.c 		if (!res)
res               209 arch/unicore32/kernel/setup.c 			      __func__, sizeof(*res), SMP_CACHE_BYTES);
res               211 arch/unicore32/kernel/setup.c 		res->name  = "System RAM";
res               212 arch/unicore32/kernel/setup.c 		res->start = mi->bank[i].start;
res               213 arch/unicore32/kernel/setup.c 		res->end   = mi->bank[i].start + mi->bank[i].size - 1;
res               214 arch/unicore32/kernel/setup.c 		res->flags = IORESOURCE_SYSTEM_RAM | IORESOURCE_BUSY;
res               216 arch/unicore32/kernel/setup.c 		request_resource(&iomem_resource, res);
res               218 arch/unicore32/kernel/setup.c 		if (kernel_code.start >= res->start &&
res               219 arch/unicore32/kernel/setup.c 		    kernel_code.end <= res->end)
res               220 arch/unicore32/kernel/setup.c 			request_resource(res, &kernel_code);
res               221 arch/unicore32/kernel/setup.c 		if (kernel_data.start >= res->start &&
res               222 arch/unicore32/kernel/setup.c 		    kernel_data.end <= res->end)
res               223 arch/unicore32/kernel/setup.c 			request_resource(res, &kernel_data);
res               296 arch/unicore32/kernel/setup.c 	struct proc_dir_entry *res;
res               298 arch/unicore32/kernel/setup.c 	res = proc_mkdir("cpu", NULL);
res               299 arch/unicore32/kernel/setup.c 	if (!res)
res               261 arch/x86/boot/string.c 	unsigned long long res;
res               264 arch/x86/boot/string.c 	res = 0;
res               284 arch/x86/boot/string.c 		if (unlikely(res & (~0ull << 60))) {
res               285 arch/x86/boot/string.c 			if (res > __div_u64(ULLONG_MAX - val, base))
res               288 arch/x86/boot/string.c 		res = res * base + val;
res               292 arch/x86/boot/string.c 	*p = res;
res               296 arch/x86/boot/string.c static int _kstrtoull(const char *s, unsigned int base, unsigned long long *res)
res               312 arch/x86/boot/string.c 	*res = _res;
res               332 arch/x86/boot/string.c int kstrtoull(const char *s, unsigned int base, unsigned long long *res)
res               336 arch/x86/boot/string.c 	return _kstrtoull(s, base, res);
res                32 arch/x86/boot/string.h int kstrtoull(const char *s, unsigned int base, unsigned long long *res);
res                39 arch/x86/entry/vdso/vclock_gettime.c extern int __vdso_clock_getres(clockid_t clock, struct __kernel_timespec *res);
res                50 arch/x86/entry/vdso/vclock_gettime.c 			struct __kernel_timespec *res)
res                52 arch/x86/entry/vdso/vclock_gettime.c 	return __cvdso_clock_getres(clock, res);
res                60 arch/x86/entry/vdso/vclock_gettime.c extern int __vdso_clock_getres(clockid_t clock, struct old_timespec32 *res);
res                78 arch/x86/entry/vdso/vclock_gettime.c int __vdso_clock_getres(clockid_t clock, struct old_timespec32 *res)
res                80 arch/x86/entry/vdso/vclock_gettime.c 	return __cvdso_clock_getres_time32(clock, res);
res              2427 arch/x86/events/intel/core.c 	bool res;
res              2429 arch/x86/events/intel/core.c 	if (kstrtobool(s, &res))
res              2432 arch/x86/events/intel/core.c 	disable_counter_freezing = !res;
res                19 arch/x86/include/asm/amd_nb.h extern struct resource *amd_get_mmconfig_range(struct resource *res);
res                17 arch/x86/include/asm/arch_hweight.h 	unsigned int res;
res                20 arch/x86/include/asm/arch_hweight.h 			 : "="REG_OUT (res)
res                23 arch/x86/include/asm/arch_hweight.h 	return res;
res                45 arch/x86/include/asm/arch_hweight.h 	unsigned long res;
res                48 arch/x86/include/asm/arch_hweight.h 			 : "="REG_OUT (res)
res                51 arch/x86/include/asm/arch_hweight.h 	return res;
res                19 arch/x86/include/asm/microcode_amd.h 	u16	res;
res                15 arch/x86/include/asm/olpc_ofw.h #define olpc_ofw(name, args, res) \
res                16 arch/x86/include/asm/olpc_ofw.h 	__olpc_ofw((name), ARRAY_SIZE(args), args, ARRAY_SIZE(res), res)
res                19 arch/x86/include/asm/olpc_ofw.h 		void **res);
res               144 arch/x86/include/asm/pci_x86.h 	struct resource res;
res               153 arch/x86/include/asm/pgtable-3level.h 	pte_t res;
res               155 arch/x86/include/asm/pgtable-3level.h 	res.pte = (pteval_t)arch_atomic64_xchg((atomic64_t *)ptep, 0);
res               157 arch/x86/include/asm/pgtable-3level.h 	return res;
res               174 arch/x86/include/asm/pgtable-3level.h 	union split_pmd res, *orig = (union split_pmd *)pmdp;
res               177 arch/x86/include/asm/pgtable-3level.h 	res.pmd_low = xchg(&orig->pmd_low, 0);
res               178 arch/x86/include/asm/pgtable-3level.h 	res.pmd_high = orig->pmd_high;
res               181 arch/x86/include/asm/pgtable-3level.h 	return res.pmd;
res               232 arch/x86/include/asm/pgtable-3level.h 	union split_pud res, *orig = (union split_pud *)pudp;
res               239 arch/x86/include/asm/pgtable-3level.h 	res.pud_low = xchg(&orig->pud_low, 0);
res               240 arch/x86/include/asm/pgtable-3level.h 	res.pud_high = orig->pud_high;
res               243 arch/x86/include/asm/pgtable-3level.h 	return res.pud;
res              1060 arch/x86/include/asm/pgtable.h 	pte_t res = *ptep;
res              1064 arch/x86/include/asm/pgtable.h 	return res;
res              1069 arch/x86/include/asm/pgtable.h 	pmd_t res = *pmdp;
res              1072 arch/x86/include/asm/pgtable.h 	return res;
res              1077 arch/x86/include/asm/pgtable.h 	pud_t res = *pudp;
res              1080 arch/x86/include/asm/pgtable.h 	return res;
res               242 arch/x86/include/asm/xen/hypercall.h 	long res;
res               245 arch/x86/include/asm/xen/hypercall.h 	res = xen_single_call(call, a1, a2, a3, a4, a5);
res               248 arch/x86/include/asm/xen/hypercall.h 	return res;
res               347 arch/x86/kernel/amd_nb.c struct resource *amd_get_mmconfig_range(struct resource *res)
res               373 arch/x86/kernel/amd_nb.c 	res->flags = IORESOURCE_MEM;
res               374 arch/x86/kernel/amd_nb.c 	res->start = base;
res               375 arch/x86/kernel/amd_nb.c 	res->end = base + (1ULL<<(segn_busn_bits + 20)) - 1;
res               376 arch/x86/kernel/amd_nb.c 	return res;
res               761 arch/x86/kernel/apic/apic.c 	u64 res;
res               781 arch/x86/kernel/apic/apic.c 	res = (((u64)deltapm) *  mult) >> 22;
res               782 arch/x86/kernel/apic/apic.c 	do_div(res, 1000000);
res               784 arch/x86/kernel/apic/apic.c 		   "with PM-Timer: %ldms instead of 100ms\n",(long)res);
res               787 arch/x86/kernel/apic/apic.c 	res = (((u64)(*delta)) * pm_100ms);
res               788 arch/x86/kernel/apic/apic.c 	do_div(res, deltapm);
res               790 arch/x86/kernel/apic/apic.c 		"%lu (%ld)\n", (unsigned long)res, *delta);
res               791 arch/x86/kernel/apic/apic.c 	*delta = (long)res;
res               795 arch/x86/kernel/apic/apic.c 		res = (((u64)(*deltatsc)) * pm_100ms);
res               796 arch/x86/kernel/apic/apic.c 		do_div(res, deltapm);
res               799 arch/x86/kernel/apic/apic.c 					(unsigned long)res, *deltatsc);
res               800 arch/x86/kernel/apic/apic.c 		*deltatsc = (long)res;
res              2632 arch/x86/kernel/apic/io_apic.c 	struct resource *res;
res              2645 arch/x86/kernel/apic/io_apic.c 	res = (void *)mem;
res              2650 arch/x86/kernel/apic/io_apic.c 		res[i].name = mem;
res              2651 arch/x86/kernel/apic/io_apic.c 		res[i].flags = IORESOURCE_MEM | IORESOURCE_BUSY;
res              2654 arch/x86/kernel/apic/io_apic.c 		ioapics[i].iomem_res = &res[i];
res              2657 arch/x86/kernel/apic/io_apic.c 	ioapic_resources = res;
res              2659 arch/x86/kernel/apic/io_apic.c 	return res;
res               199 arch/x86/kernel/cpu/cacheinfo.c 		unsigned res:2;
res                79 arch/x86/kernel/cpu/match.c 	const struct x86_cpu_desc *res = x86_match_cpu_with_stepping(table);
res                81 arch/x86/kernel/cpu/match.c 	if (!res || res->x86_microcode_rev > boot_cpu_data.microcode)
res               121 arch/x86/kernel/cpu/microcode/core.c 	bool *res = (bool *)__pa_nodebug(&dis_ucode_ldr);
res               126 arch/x86/kernel/cpu/microcode/core.c 	bool *res = &dis_ucode_ldr;
res               135 arch/x86/kernel/cpu/microcode/core.c 		return *res;
res               139 arch/x86/kernel/cpu/microcode/core.c 			return *res;
res               143 arch/x86/kernel/cpu/microcode/core.c 		*res = false;
res               145 arch/x86/kernel/cpu/microcode/core.c 	return *res;
res               421 arch/x86/kernel/cpu/resctrl/core.c 	struct rdt_resource *r = m->res;
res               319 arch/x86/kernel/cpu/resctrl/ctrlmondata.c 	msr_param.res = r;
res               340 arch/x86/kernel/cpu/resctrl/internal.h 	struct rdt_resource	*res;
res              2134 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	msr_param.res = r;
res               178 arch/x86/kernel/crash.c static int get_nr_ram_ranges_callback(struct resource *res, void *arg)
res               233 arch/x86/kernel/crash.c static int prepare_elf64_ram_headers_callback(struct resource *res, void *arg)
res               237 arch/x86/kernel/crash.c 	cmem->ranges[cmem->nr_ranges].start = res->start;
res               238 arch/x86/kernel/crash.c 	cmem->ranges[cmem->nr_ranges].end = res->end;
res               305 arch/x86/kernel/crash.c static int memmap_entry_callback(struct resource *res, void *arg)
res               311 arch/x86/kernel/crash.c 	ei.addr = res->start;
res               312 arch/x86/kernel/crash.c 	ei.size = resource_size(res);
res               412 arch/x86/kernel/crash.c static int determine_backup_region(struct resource *res, void *arg)
res               416 arch/x86/kernel/crash.c 	image->arch.backup_src_start = res->start;
res               417 arch/x86/kernel/crash.c 	image->arch.backup_src_sz = resource_size(res);
res              1074 arch/x86/kernel/e820.c static bool __init do_mark_busy(enum e820_type type, struct resource *res)
res              1077 arch/x86/kernel/e820.c 	if (res->start < (1ULL<<20))
res              1108 arch/x86/kernel/e820.c 	struct resource *res;
res              1111 arch/x86/kernel/e820.c 	res = memblock_alloc(sizeof(*res) * e820_table->nr_entries,
res              1113 arch/x86/kernel/e820.c 	if (!res)
res              1115 arch/x86/kernel/e820.c 		      sizeof(*res) * e820_table->nr_entries);
res              1116 arch/x86/kernel/e820.c 	e820_res = res;
res              1123 arch/x86/kernel/e820.c 			res++;
res              1126 arch/x86/kernel/e820.c 		res->start = entry->addr;
res              1127 arch/x86/kernel/e820.c 		res->end   = end;
res              1128 arch/x86/kernel/e820.c 		res->name  = e820_type_to_string(entry);
res              1129 arch/x86/kernel/e820.c 		res->flags = e820_type_to_iomem_type(entry);
res              1130 arch/x86/kernel/e820.c 		res->desc  = e820_type_to_iores_desc(entry);
res              1137 arch/x86/kernel/e820.c 		if (do_mark_busy(entry->type, res)) {
res              1138 arch/x86/kernel/e820.c 			res->flags |= IORESOURCE_BUSY;
res              1139 arch/x86/kernel/e820.c 			insert_resource(&iomem_resource, res);
res              1141 arch/x86/kernel/e820.c 		res++;
res              1176 arch/x86/kernel/e820.c 	struct resource *res;
res              1178 arch/x86/kernel/e820.c 	res = e820_res;
res              1180 arch/x86/kernel/e820.c 		if (!res->parent && res->end)
res              1181 arch/x86/kernel/e820.c 			insert_resource_expand_to_fit(&iomem_resource, res);
res              1182 arch/x86/kernel/e820.c 		res++;
res               363 arch/x86/kernel/hpet.c 	s32 res;
res               391 arch/x86/kernel/hpet.c 	res = (s32)(cnt - hpet_readl(HPET_COUNTER));
res               393 arch/x86/kernel/hpet.c 	return res < HPET_MIN_CYCLES ? -ETIME : 0;
res                41 arch/x86/kernel/machine_kexec_64.c static int mem_region_callback(struct resource *res, void *arg)
res                46 arch/x86/kernel/machine_kexec_64.c 	mstart = res->start;
res                47 arch/x86/kernel/machine_kexec_64.c 	mend = mstart + resource_size(res) - 1;
res                10 arch/x86/kernel/pmem.c static int found(struct resource *res, void *data)
res               120 arch/x86/kernel/probe_roms.c 		struct resource *res = &adapter_rom_resources[i];
res               124 arch/x86/kernel/probe_roms.c 		if (res->end == 0)
res               127 arch/x86/kernel/probe_roms.c 		rom = isa_bus_to_virt(res->start);
res               138 arch/x86/kernel/probe_roms.c 			oprom = res;
res               146 arch/x86/kernel/probe_roms.c 			oprom = res;
res                 5 arch/x86/kernel/resource.c static void resource_clip(struct resource *res, resource_size_t start,
res                10 arch/x86/kernel/resource.c 	if (res->end < start || res->start > end)
res                13 arch/x86/kernel/resource.c 	if (res->start < start)
res                14 arch/x86/kernel/resource.c 		low = start - res->start;
res                16 arch/x86/kernel/resource.c 	if (res->end > end)
res                17 arch/x86/kernel/resource.c 		high = res->end - end;
res                21 arch/x86/kernel/resource.c 		res->end = start - 1;
res                23 arch/x86/kernel/resource.c 		res->start = end + 1;
res                64 arch/x86/kernel/sysfb_simplefb.c 	struct resource res;
res               100 arch/x86/kernel/sysfb_simplefb.c 	memset(&res, 0, sizeof(res));
res               101 arch/x86/kernel/sysfb_simplefb.c 	res.flags = IORESOURCE_MEM | IORESOURCE_BUSY;
res               102 arch/x86/kernel/sysfb_simplefb.c 	res.name = simplefb_resname;
res               103 arch/x86/kernel/sysfb_simplefb.c 	res.start = base;
res               104 arch/x86/kernel/sysfb_simplefb.c 	res.end = res.start + length - 1;
res               105 arch/x86/kernel/sysfb_simplefb.c 	if (res.end <= res.start)
res               109 arch/x86/kernel/sysfb_simplefb.c 					       &res, 1, mode, sizeof(*mode));
res              1220 arch/x86/kernel/tsc.c 	u64 tmp, res, rem;
res              1224 arch/x86/kernel/tsc.c 	res = art * art_to_tsc_numerator;
res              1228 arch/x86/kernel/tsc.c 	res += tmp + art_to_tsc_offset;
res              1231 arch/x86/kernel/tsc.c 			.cycles = res};
res              1258 arch/x86/kernel/tsc.c 	u64 tmp, res, rem;
res              1262 arch/x86/kernel/tsc.c 	res = art_ns * tsc_khz;
res              1266 arch/x86/kernel/tsc.c 	res += tmp;
res              1269 arch/x86/kernel/tsc.c 					      .cycles = res};
res               166 arch/x86/kernel/tsc_msr.c 	unsigned long res;
res               198 arch/x86/kernel/tsc_msr.c 		res = DIV_ROUND_CLOSEST(tscref * ratio, md->divider);
res               201 arch/x86/kernel/tsc_msr.c 		res = freq * ratio;
res               229 arch/x86/kernel/tsc_msr.c 	return res;
res              6062 arch/x86/kvm/x86.c 	int res = 0;
res              6066 arch/x86/kvm/x86.c 		res = kvm_set_cr0(vcpu, mk_cr_64(kvm_read_cr0(vcpu), val));
res              6072 arch/x86/kvm/x86.c 		res = kvm_set_cr3(vcpu, val);
res              6075 arch/x86/kvm/x86.c 		res = kvm_set_cr4(vcpu, mk_cr_64(kvm_read_cr4(vcpu), val));
res              6078 arch/x86/kvm/x86.c 		res = kvm_set_cr8(vcpu, val);
res              6082 arch/x86/kvm/x86.c 		res = -1;
res              6085 arch/x86/kvm/x86.c 	return res;
res                81 arch/x86/lib/csum-partial_64.c 				    : [res] "=r" (result)
res                98 arch/x86/lib/string_32.c 	int res;
res               109 arch/x86/lib/string_32.c 		: "=a" (res), "=&S" (d0), "=&D" (d1)
res               112 arch/x86/lib/string_32.c 	return res;
res               120 arch/x86/lib/string_32.c 	int res;
res               134 arch/x86/lib/string_32.c 		: "=a" (res), "=&S" (d0), "=&D" (d1), "=&c" (d2)
res               137 arch/x86/lib/string_32.c 	return res;
res               146 arch/x86/lib/string_32.c 	char *res;
res               156 arch/x86/lib/string_32.c 		: "=a" (res), "=&S" (d0)
res               159 arch/x86/lib/string_32.c 	return res;
res               168 arch/x86/lib/string_32.c 	size_t res;
res               171 arch/x86/lib/string_32.c 		: "=c" (res), "=&D" (d0)
res               174 arch/x86/lib/string_32.c 	return ~res - 1;
res               183 arch/x86/lib/string_32.c 	void *res;
res               191 arch/x86/lib/string_32.c 		: "=D" (res), "=&c" (d0)
res               194 arch/x86/lib/string_32.c 	return res;
res               220 arch/x86/lib/string_32.c 	int res;
res               230 arch/x86/lib/string_32.c 		: "=a" (res), "=&d" (d0)
res               233 arch/x86/lib/string_32.c 	return res;
res                69 arch/x86/mm/ioremap.c static unsigned int __ioremap_check_ram(struct resource *res)
res                74 arch/x86/mm/ioremap.c 	if ((res->flags & IORESOURCE_SYSTEM_RAM) != IORESOURCE_SYSTEM_RAM)
res                77 arch/x86/mm/ioremap.c 	start_pfn = (res->start + PAGE_SIZE - 1) >> PAGE_SHIFT;
res                78 arch/x86/mm/ioremap.c 	stop_pfn = (res->end + 1) >> PAGE_SHIFT;
res                93 arch/x86/mm/ioremap.c static unsigned int __ioremap_check_encrypted(struct resource *res)
res                98 arch/x86/mm/ioremap.c 	switch (res->desc) {
res               125 arch/x86/mm/ioremap.c static int __ioremap_collect_map_flags(struct resource *res, void *arg)
res               130 arch/x86/mm/ioremap.c 		desc->flags |= __ioremap_check_ram(res);
res               133 arch/x86/mm/ioremap.c 		desc->flags |= __ioremap_check_encrypted(res);
res               522 arch/x86/mm/pageattr.c 	pgprotval_t forbidden, res;
res               535 arch/x86/mm/pageattr.c 	res = protect_kernel_text(start, end);
res               536 arch/x86/mm/pageattr.c 	check_conflict(warnlvl, prot, res, start, end, pfn, "Text NX");
res               537 arch/x86/mm/pageattr.c 	forbidden = res;
res               546 arch/x86/mm/pageattr.c 		res = protect_kernel_text_ro(start, end);
res               547 arch/x86/mm/pageattr.c 		check_conflict(warnlvl, prot, res, start, end, pfn, "Text RO");
res               548 arch/x86/mm/pageattr.c 		forbidden |= res;
res               552 arch/x86/mm/pageattr.c 	res = protect_pci_bios(pfn, pfn + npg - 1);
res               553 arch/x86/mm/pageattr.c 	check_conflict(warnlvl, prot, res, start, end, pfn, "PCIBIOS NX");
res               554 arch/x86/mm/pageattr.c 	forbidden |= res;
res               556 arch/x86/mm/pageattr.c 	res = protect_rodata(pfn, pfn + npg - 1);
res               557 arch/x86/mm/pageattr.c 	check_conflict(warnlvl, prot, res, start, end, pfn, "Rodata RO");
res               558 arch/x86/mm/pageattr.c 	forbidden |= res;
res               288 arch/x86/pci/acpi.c static bool resource_is_pcicfg_ioport(struct resource *res)
res               290 arch/x86/pci/acpi.c 	return (res->flags & IORESOURCE_IO) &&
res               291 arch/x86/pci/acpi.c 		res->start == 0xCF8 && res->end == 0xCFF;
res               304 arch/x86/pci/acpi.c 			if (resource_is_pcicfg_ioport(entry->res))
res               311 arch/x86/pci/acpi.c 			   "host bridge window %pR (ignored)\n", entry->res);
res               324 arch/x86/pci/amd_bus.c 				       busnum, &root_res->res);
res                22 arch/x86/pci/broadcom_bus.c 	struct resource res;
res                49 arch/x86/pci/broadcom_bus.c 		res.start = ((resource_size_t) word1 << 16) | 0x0000;
res                50 arch/x86/pci/broadcom_bus.c 		res.end   = ((resource_size_t) word2 << 16) | 0xffff;
res                51 arch/x86/pci/broadcom_bus.c 		res.flags = IORESOURCE_MEM;
res                52 arch/x86/pci/broadcom_bus.c 		update_res(info, res.start, res.end, res.flags, 0);
res                59 arch/x86/pci/broadcom_bus.c 		res.start = ((resource_size_t) word1 << 16) | 0x0000;
res                60 arch/x86/pci/broadcom_bus.c 		res.end   = ((resource_size_t) word2 << 16) | 0xffff;
res                61 arch/x86/pci/broadcom_bus.c 		res.flags = IORESOURCE_MEM | IORESOURCE_PREFETCH;
res                62 arch/x86/pci/broadcom_bus.c 		update_res(info, res.start, res.end, res.flags, 0);
res                69 arch/x86/pci/broadcom_bus.c 		res.start = word1;
res                70 arch/x86/pci/broadcom_bus.c 		res.end   = word2;
res                71 arch/x86/pci/broadcom_bus.c 		res.flags = IORESOURCE_IO;
res                72 arch/x86/pci/broadcom_bus.c 		update_res(info, res.start, res.end, res.flags, 0);
res                76 arch/x86/pci/broadcom_bus.c 	res.start = fbus;
res                77 arch/x86/pci/broadcom_bus.c 	res.end   = lbus;
res                78 arch/x86/pci/broadcom_bus.c 	res.flags = IORESOURCE_BUS;
res                79 arch/x86/pci/broadcom_bus.c 	printk(KERN_INFO "CNB20LE PCI Host Bridge (domain 0000 %pR)\n", &res);
res                82 arch/x86/pci/broadcom_bus.c 		printk(KERN_INFO "host bridge window %pR\n", &root_res->res);
res                46 arch/x86/pci/bus_numa.c 		if (window->res->flags & IORESOURCE_BUS) {
res                55 arch/x86/pci/bus_numa.c 		pci_add_resource(resources, &root_res->res);
res                98 arch/x86/pci/bus_numa.c 	struct resource *res;
res               115 arch/x86/pci/bus_numa.c 		res = &root_res->res;
res               116 arch/x86/pci/bus_numa.c 		if (res->flags != flags)
res               119 arch/x86/pci/bus_numa.c 		common_start = max(res->start, start);
res               120 arch/x86/pci/bus_numa.c 		common_end = min(res->end, end);
res               124 arch/x86/pci/bus_numa.c 		final_start = min(res->start, start);
res               125 arch/x86/pci/bus_numa.c 		final_end = max(res->end, end);
res               127 arch/x86/pci/bus_numa.c 		res->start = final_start;
res               128 arch/x86/pci/bus_numa.c 		res->end = final_end;
res               139 arch/x86/pci/bus_numa.c 	res = &root_res->res;
res               140 arch/x86/pci/bus_numa.c 	res->name = info->name;
res               141 arch/x86/pci/bus_numa.c 	res->flags = flags;
res               142 arch/x86/pci/bus_numa.c 	res->start = start;
res               143 arch/x86/pci/bus_numa.c 	res->end = end;
res                10 arch/x86/pci/bus_numa.h 	struct resource res;
res               316 arch/x86/pci/fixup.c 	struct resource *res;
res               341 arch/x86/pci/fixup.c 			res = &pdev->resource[PCI_ROM_RESOURCE];
res               344 arch/x86/pci/fixup.c 			if (res->parent)
res               345 arch/x86/pci/fixup.c 				release_resource(res);
res               347 arch/x86/pci/fixup.c 			res->start = 0xC0000;
res               348 arch/x86/pci/fixup.c 			res->end = res->start + 0x20000 - 1;
res               349 arch/x86/pci/fixup.c 			res->flags = IORESOURCE_MEM | IORESOURCE_ROM_SHADOW |
res               352 arch/x86/pci/fixup.c 				 res);
res               622 arch/x86/pci/fixup.c 	struct resource *res;
res               629 arch/x86/pci/fixup.c 	res = request_mem_region(0x7fa00000, 0x200000,
res               631 arch/x86/pci/fixup.c 	if (res)
res               632 arch/x86/pci/fixup.c 		dev_info(dev, "claimed %s %pR\n", res->name, res);
res               695 arch/x86/pci/fixup.c 	struct resource *res, *conflict;
res               731 arch/x86/pci/fixup.c 	res = kzalloc(sizeof(*res), GFP_KERNEL);
res               732 arch/x86/pci/fixup.c 	if (!res)
res               739 arch/x86/pci/fixup.c 	res->name = name;
res               740 arch/x86/pci/fixup.c 	res->flags = IORESOURCE_PREFETCH | IORESOURCE_MEM |
res               742 arch/x86/pci/fixup.c 	res->start = 0xbd00000000ull;
res               743 arch/x86/pci/fixup.c 	res->end = 0xfd00000000ull - 1;
res               745 arch/x86/pci/fixup.c 	conflict = request_resource_conflict(&iomem_resource, res);
res               747 arch/x86/pci/fixup.c 		kfree(res);
res               752 arch/x86/pci/fixup.c 		res = conflict;
res               755 arch/x86/pci/fixup.c 			 res);
res               757 arch/x86/pci/fixup.c 		pci_bus_add_resource(dev->bus, res, 0);
res               760 arch/x86/pci/fixup.c 	base = ((res->start >> 8) & AMD_141b_MMIO_BASE_MMIOBASE_MASK) |
res               762 arch/x86/pci/fixup.c 	limit = ((res->end + 1) >> 8) & AMD_141b_MMIO_LIMIT_MMIOLIMIT_MASK;
res               763 arch/x86/pci/fixup.c 	high = ((res->start >> 40) & AMD_141b_MMIO_HIGH_MMIOBASE_MASK) |
res               764 arch/x86/pci/fixup.c 		((((res->end + 1) >> 40) << AMD_141b_MMIO_HIGH_MMIOLIMIT_SHIFT)
res               155 arch/x86/pci/i386.c pcibios_align_resource(void *data, const struct resource *res,
res               159 arch/x86/pci/i386.c 	resource_size_t start = res->start;
res               161 arch/x86/pci/i386.c 	if (res->flags & IORESOURCE_IO) {
res               166 arch/x86/pci/i386.c 	} else if (res->flags & IORESOURCE_MEM) {
res                38 arch/x86/pci/mmconfig-shared.c 	if (cfg->res.parent)
res                39 arch/x86/pci/mmconfig-shared.c 		release_resource(&cfg->res);
res                73 arch/x86/pci/mmconfig-shared.c 	struct resource *res;
res                87 arch/x86/pci/mmconfig-shared.c 	res = &new->res;
res                88 arch/x86/pci/mmconfig-shared.c 	res->start = addr + PCI_MMCFG_BUS_OFFSET(start);
res                89 arch/x86/pci/mmconfig-shared.c 	res->end = addr + PCI_MMCFG_BUS_OFFSET(end + 1) - 1;
res                90 arch/x86/pci/mmconfig-shared.c 	res->flags = IORESOURCE_MEM | IORESOURCE_BUSY;
res                93 arch/x86/pci/mmconfig-shared.c 	res->name = new->name;
res               112 arch/x86/pci/mmconfig-shared.c 		       segment, start, end, &new->res, (unsigned long)addr);
res               378 arch/x86/pci/mmconfig-shared.c static acpi_status check_mcfg_resource(struct acpi_resource *res, void *data)
res               384 arch/x86/pci/mmconfig-shared.c 	if (res->type == ACPI_RESOURCE_TYPE_FIXED_MEMORY32) {
res               386 arch/x86/pci/mmconfig-shared.c 			&res->data.fixed_memory32;
res               396 arch/x86/pci/mmconfig-shared.c 	if ((res->type != ACPI_RESOURCE_TYPE_ADDRESS32) &&
res               397 arch/x86/pci/mmconfig-shared.c 	    (res->type != ACPI_RESOURCE_TYPE_ADDRESS64))
res               400 arch/x86/pci/mmconfig-shared.c 	status = acpi_resource_to_address64(res, &address);
res               451 arch/x86/pci/mmconfig-shared.c 	u64 addr = cfg->res.start;
res               452 arch/x86/pci/mmconfig-shared.c 	u64 size = resource_size(&cfg->res);
res               468 arch/x86/pci/mmconfig-shared.c 			 &cfg->res, method);
res               471 arch/x86/pci/mmconfig-shared.c 		       &cfg->res, method);
res               477 arch/x86/pci/mmconfig-shared.c 		cfg->res.end = cfg->res.start +
res               487 arch/x86/pci/mmconfig-shared.c 				&cfg->res, (unsigned long) cfg->address);
res               493 arch/x86/pci/mmconfig-shared.c 				&cfg->res, (unsigned long) cfg->address);
res               510 arch/x86/pci/mmconfig-shared.c 				 &cfg->res);
res               515 arch/x86/pci/mmconfig-shared.c 			       &cfg->res);
res               624 arch/x86/pci/mmconfig-shared.c 		rc = func(cfg->res.start, resource_size(&cfg->res), data);
res               707 arch/x86/pci/mmconfig-shared.c 		if (!cfg->res.parent)
res               708 arch/x86/pci/mmconfig-shared.c 			insert_resource(&iomem_resource, &cfg->res);
res               759 arch/x86/pci/mmconfig-shared.c 			 &cfg->res);
res               764 arch/x86/pci/mmconfig-shared.c 						       &cfg->res);
res               770 arch/x86/pci/mmconfig-shared.c 				 &cfg->res, tmp->name, tmp);
res               773 arch/x86/pci/mmconfig-shared.c 				 &cfg->res);
res               777 arch/x86/pci/mmconfig-shared.c 				 &cfg->res, (unsigned long)addr);
res               784 arch/x86/pci/mmconfig-shared.c 		if (cfg->res.parent)
res               785 arch/x86/pci/mmconfig-shared.c 			release_resource(&cfg->res);
res               806 arch/x86/pci/mmconfig-shared.c 			if (cfg->res.parent)
res               807 arch/x86/pci/mmconfig-shared.c 				release_resource(&cfg->res);
res               141 arch/x86/pci/mmconfig_64.c 		pr_err(PREFIX "can't map MMCONFIG at %pR\n", &cfg->res);
res                63 arch/x86/platform/intel-mid/device_libs/platform_mrfld_power_btn.c 	struct resource *res = mrfld_power_btn_resources;
res                66 arch/x86/platform/intel-mid/device_libs/platform_mrfld_power_btn.c 	res->start = res->end = pentry->irq;
res               316 arch/x86/platform/intel-mid/sfi.c 	static struct resource res __initdata = {
res               320 arch/x86/platform/intel-mid/sfi.c 	res.start = irq;
res               321 arch/x86/platform/intel-mid/sfi.c 	platform_device_add_resources(pdev, &res, 1);
res                30 arch/x86/platform/intel-quark/imr_selftest.c void __init imr_self_test_result(int res, const char *fmt, ...)
res                35 arch/x86/platform/intel-quark/imr_selftest.c 	if (res)
res                46 arch/x86/platform/intel-quark/imr_selftest.c 	WARN(res == 0, "test failed");
res               122 arch/x86/platform/olpc/olpc-xo1-pm.c 	struct resource *res;
res               133 arch/x86/platform/olpc/olpc-xo1-pm.c 	res = platform_get_resource(pdev, IORESOURCE_IO, 0);
res               134 arch/x86/platform/olpc/olpc-xo1-pm.c 	if (!res) {
res               139 arch/x86/platform/olpc/olpc-xo1-pm.c 		pms_base = res->start;
res               141 arch/x86/platform/olpc/olpc-xo1-pm.c 		acpi_base = res->start;
res               533 arch/x86/platform/olpc/olpc-xo1-sci.c 	struct resource *res;
res               544 arch/x86/platform/olpc/olpc-xo1-sci.c 	res = platform_get_resource(pdev, IORESOURCE_IO, 0);
res               545 arch/x86/platform/olpc/olpc-xo1-sci.c 	if (!res) {
res               549 arch/x86/platform/olpc/olpc-xo1-sci.c 	acpi_base = res->start;
res                25 arch/x86/platform/olpc/olpc_dt.c 	void *res[] = { &node };
res                30 arch/x86/platform/olpc/olpc_dt.c 	if (olpc_ofw("peer", args, res) || (s32)node == -1)
res                39 arch/x86/platform/olpc/olpc_dt.c 	void *res[] = { &node };
res                44 arch/x86/platform/olpc/olpc_dt.c 	if (olpc_ofw("child", args, res) || (s32)node == -1) {
res                56 arch/x86/platform/olpc/olpc_dt.c 	void *res[] = { &len };
res                61 arch/x86/platform/olpc/olpc_dt.c 	if (olpc_ofw("getproplen", args, res)) {
res                79 arch/x86/platform/olpc/olpc_dt.c 		void *res[] = { &plen };
res                81 arch/x86/platform/olpc/olpc_dt.c 		if (olpc_ofw("getprop", args, res)) {
res                94 arch/x86/platform/olpc/olpc_dt.c 	void *res[] = { &success };
res               101 arch/x86/platform/olpc/olpc_dt.c 	if (olpc_ofw("nextprop", args, res) || success != 1)
res               111 arch/x86/platform/olpc/olpc_dt.c 	void *res[] = { len };
res               116 arch/x86/platform/olpc/olpc_dt.c 	if (olpc_ofw("package-to-path", args, res) || *len < 1)
res               128 arch/x86/platform/olpc/olpc_dt.c 	void *res;
res               139 arch/x86/platform/olpc/olpc_dt.c 		res = memblock_alloc(chunk_size, SMP_CACHE_BYTES);
res               140 arch/x86/platform/olpc/olpc_dt.c 		if (!res)
res               143 arch/x86/platform/olpc/olpc_dt.c 		BUG_ON(!res);
res               145 arch/x86/platform/olpc/olpc_dt.c 		memset(res, 0, chunk_size);
res               147 arch/x86/platform/olpc/olpc_dt.c 		mem = res;
res               152 arch/x86/platform/olpc/olpc_dt.c 	res = mem;
res               154 arch/x86/platform/olpc/olpc_dt.c 	return res;
res               170 arch/x86/platform/olpc/olpc_dt.c 	void *res[] = { &node };
res               172 arch/x86/platform/olpc/olpc_dt.c 	if (olpc_ofw("finddevice", args, res)) {
res               187 arch/x86/platform/olpc/olpc_dt.c 	void *res[] = { &result };
res               189 arch/x86/platform/olpc/olpc_dt.c 	if (olpc_ofw("interpret", args, res)) {
res                48 arch/x86/platform/olpc/olpc_ofw.c 		void **res)
res                74 arch/x86/platform/olpc/olpc_ofw.c 			*((int *)res[i]) = *p;
res                36 arch/x86/um/asm/ptrace.h #define PT_REGS_SET_SYSCALL_RETURN(r, res) (PT_REGS_AX(r) = (res))
res                24 arch/x86/um/ldt.c 	long res;
res                26 arch/x86/um/ldt.c 	res = syscall_stub_data(mm_idp, (unsigned long *)desc,
res                30 arch/x86/um/ldt.c 	if (!res) {
res                35 arch/x86/um/ldt.c 		res = run_syscall_stub(mm_idp, __NR_modify_ldt, args,
res                39 arch/x86/um/ldt.c 	return res;
res                19 arch/x86/video/fbdev.c 	struct resource *res;
res                32 arch/x86/video/fbdev.c 	res = pci_dev->resource + PCI_ROM_RESOURCE;
res                34 arch/x86/video/fbdev.c 	if (res->flags & IORESOURCE_ROM_SHADOW)
res                64 arch/xtensa/include/asm/pci-bridge.h static inline void pcibios_init_resource(struct resource *res,
res                67 arch/xtensa/include/asm/pci-bridge.h 	res->start = start;
res                68 arch/xtensa/include/asm/pci-bridge.h 	res->end = end;
res                69 arch/xtensa/include/asm/pci-bridge.h 	res->flags = flags;
res                70 arch/xtensa/include/asm/pci-bridge.h 	res->name = name;
res                71 arch/xtensa/include/asm/pci-bridge.h 	res->parent = NULL;
res                72 arch/xtensa/include/asm/pci-bridge.h 	res->sibling = NULL;
res                73 arch/xtensa/include/asm/pci-bridge.h 	res->child = NULL;
res                22 arch/xtensa/include/uapi/asm/swab.h     __u32 res;
res                29 arch/xtensa/include/uapi/asm/swab.h 	    : "=&a" (res)
res                32 arch/xtensa/include/uapi/asm/swab.h     return res;
res                57 arch/xtensa/include/uapi/asm/swab.h     __u32 res;
res                63 arch/xtensa/include/uapi/asm/swab.h 	    : "=&a" (res), "=&a" (tmp)
res                67 arch/xtensa/include/uapi/asm/swab.h     return res;
res                41 arch/xtensa/kernel/pci.c pcibios_align_resource(void *data, const struct resource *res,
res                45 arch/xtensa/kernel/pci.c 	resource_size_t start = res->start;
res                47 arch/xtensa/kernel/pci.c 	if (res->flags & IORESOURCE_IO) {
res                50 arch/xtensa/kernel/pci.c 					pci_name(dev), dev->resource - res,
res                92 arch/xtensa/mm/init.c 	struct memblock_region *mem, *res;
res               112 arch/xtensa/mm/init.c 		for_each_memblock(reserved, res) {
res               115 arch/xtensa/mm/init.c 			res_start = memblock_region_reserved_base_pfn(res);
res               116 arch/xtensa/mm/init.c 			res_end = memblock_region_reserved_end_pfn(res);
res               464 block/blk-mq-debugfs.c 	int res;
res               466 block/blk-mq-debugfs.c 	res = mutex_lock_interruptible(&q->sysfs_lock);
res               467 block/blk-mq-debugfs.c 	if (res)
res               474 block/blk-mq-debugfs.c 	return res;
res               481 block/blk-mq-debugfs.c 	int res;
res               483 block/blk-mq-debugfs.c 	res = mutex_lock_interruptible(&q->sysfs_lock);
res               484 block/blk-mq-debugfs.c 	if (res)
res               491 block/blk-mq-debugfs.c 	return res;
res               498 block/blk-mq-debugfs.c 	int res;
res               500 block/blk-mq-debugfs.c 	res = mutex_lock_interruptible(&q->sysfs_lock);
res               501 block/blk-mq-debugfs.c 	if (res)
res               508 block/blk-mq-debugfs.c 	return res;
res               515 block/blk-mq-debugfs.c 	int res;
res               517 block/blk-mq-debugfs.c 	res = mutex_lock_interruptible(&q->sysfs_lock);
res               518 block/blk-mq-debugfs.c 	if (res)
res               525 block/blk-mq-debugfs.c 	return res;
res                68 block/blk-mq-sysfs.c 	ssize_t res;
res                77 block/blk-mq-sysfs.c 	res = -ENOENT;
res                80 block/blk-mq-sysfs.c 		res = entry->show(ctx, page);
res                82 block/blk-mq-sysfs.c 	return res;
res                91 block/blk-mq-sysfs.c 	ssize_t res;
res               100 block/blk-mq-sysfs.c 	res = -ENOENT;
res               103 block/blk-mq-sysfs.c 		res = entry->store(ctx, page, length);
res               105 block/blk-mq-sysfs.c 	return res;
res               114 block/blk-mq-sysfs.c 	ssize_t res;
res               123 block/blk-mq-sysfs.c 	res = -ENOENT;
res               126 block/blk-mq-sysfs.c 		res = entry->show(hctx, page);
res               128 block/blk-mq-sysfs.c 	return res;
res               138 block/blk-mq-sysfs.c 	ssize_t res;
res               147 block/blk-mq-sysfs.c 	res = -ENOENT;
res               150 block/blk-mq-sysfs.c 		res = entry->store(hctx, page, length);
res               152 block/blk-mq-sysfs.c 	return res;
res               799 block/blk-sysfs.c 	ssize_t res;
res               808 block/blk-sysfs.c 	res = entry->show(q, page);
res               810 block/blk-sysfs.c 	return res;
res               819 block/blk-sysfs.c 	ssize_t res;
res               830 block/blk-sysfs.c 	res = entry->store(q, page, length);
res               832 block/blk-sysfs.c 	return res;
res              1606 block/genhd.c  	int res = 0;
res              1610 block/genhd.c  		res = __invalidate_device(bdev, true);
res              1613 block/genhd.c  	return res;
res               191 block/ioctl.c  	int res;
res               194 block/ioctl.c  	res = __blkdev_reread_part(bdev);
res               197 block/ioctl.c  	return res;
res               446 block/partition-generic.c 	int res;
res               450 block/partition-generic.c 	res = invalidate_partition(disk, 0);
res               451 block/partition-generic.c 	if (res)
res               452 block/partition-generic.c 		return res;
res               516 block/partition-generic.c 	int p, highest, res;
res               523 block/partition-generic.c 	res = drop_partitions(disk, bdev);
res               524 block/partition-generic.c 	if (res)
res               525 block/partition-generic.c 		return res;
res               644 block/partition-generic.c 	int res;
res               649 block/partition-generic.c 	res = drop_partitions(disk, bdev);
res               650 block/partition-generic.c 	if (res)
res               651 block/partition-generic.c 		return res;
res                35 block/partitions/amiga.c 	int start_sect, nr_sects, blk, part, res = 0;
res                48 block/partitions/amiga.c 			res = -1;
res                91 block/partitions/amiga.c 			res = -1;
res               136 block/partitions/amiga.c 		res = 1;
res               141 block/partitions/amiga.c 	return res;
res               146 block/partitions/check.c 	int i, res, err;
res               164 block/partitions/check.c 	i = res = err = 0;
res               165 block/partitions/check.c 	while (!res && check_part[i]) {
res               167 block/partitions/check.c 		res = check_part[i++](state);
res               168 block/partitions/check.c 		if (res < 0) {
res               172 block/partitions/check.c 			err = res;
res               173 block/partitions/check.c 			res = 0;
res               177 block/partitions/check.c 	if (res > 0) {
res               187 block/partitions/check.c 		res = err;
res               188 block/partitions/check.c 	if (res) {
res               197 block/partitions/check.c 	return ERR_PTR(res);
res               293 block/partitions/ibm.c 	int blocksize, res;
res               302 block/partitions/ibm.c 	res = 0;
res               328 block/partitions/ibm.c 			res = find_vol1_partitions(state, geo, blocksize, name,
res               331 block/partitions/ibm.c 			res = find_lnx1_partitions(state, geo, blocksize, name,
res               335 block/partitions/ibm.c 			res = find_cms1_partitions(state, geo, blocksize, name,
res               346 block/partitions/ibm.c 		res = 1;
res               355 block/partitions/ibm.c 		res = 0;
res               364 block/partitions/ibm.c 	return res;
res               230 crypto/crypto_user_base.c 	int res;
res               240 crypto/crypto_user_base.c 			res = crypto_report_alg(alg, &info);
res               241 crypto/crypto_user_base.c 			if (res == -EMSGSIZE)
res               243 crypto/crypto_user_base.c 			if (res)
res               249 crypto/crypto_user_base.c 	res = skb->len;
res               252 crypto/crypto_user_base.c 	return res;
res              1298 crypto/ecc.c   	u64 res[ECC_MAX_DIGITS];
res              1309 crypto/ecc.c   	vli_sub(res, curve->n, one, ndigits);
res              1310 crypto/ecc.c   	vli_sub(res, res, one, ndigits);
res              1311 crypto/ecc.c   	if (vli_cmp(res, private_key, ndigits) != 1)
res               118 crypto/lrw.c   	int i, res = 0;
res               122 crypto/lrw.c   			return res + ffz(counter[i]++);
res               125 crypto/lrw.c   		res += 32;
res                75 drivers/acpi/acpi_amba.c 		switch (resource_type(rentry->res)) {
res                78 drivers/acpi/acpi_amba.c 				dev->res = *rentry->res;
res                84 drivers/acpi/acpi_amba.c 				dev->irq[irq_no++] = rentry->res->start;
res                77 drivers/acpi/acpi_apd.c 	struct resource res;
res                79 drivers/acpi/acpi_apd.c 	return !acpi_dev_resource_memory(ares, &res);
res               102 drivers/acpi/acpi_apd.c 		clk_data->base = devm_ioremap(&adev->dev, rentry->res->start,
res               103 drivers/acpi/acpi_apd.c 					      resource_size(rentry->res));
res               377 drivers/acpi/acpi_lpss.c static int is_memory(struct acpi_resource *res, void *not_used)
res               380 drivers/acpi/acpi_lpss.c 	return !acpi_dev_resource_memory(res, &r);
res               658 drivers/acpi/acpi_lpss.c 		if (resource_type(rentry->res) == IORESOURCE_MEM) {
res               662 drivers/acpi/acpi_lpss.c 				pdata->mmio_size = resource_size(rentry->res);
res               663 drivers/acpi/acpi_lpss.c 			pdata->mmio_base = ioremap(rentry->res->start,
res               130 drivers/acpi/acpi_platform.c 			acpi_platform_fill_resource(adev, rentry->res,
res               146 drivers/acpi/acpi_platform.c 	pdevinfo.res = resources;
res               133 drivers/acpi/acpi_watchdog.c 		struct resource res = {};
res               138 drivers/acpi/acpi_watchdog.c 		res.start = gas->address;
res               139 drivers/acpi/acpi_watchdog.c 		res.end = res.start + ACPI_ACCESS_BYTE_WIDTH(gas->access_width) - 1;
res               141 drivers/acpi/acpi_watchdog.c 			res.flags = IORESOURCE_MEM;
res               143 drivers/acpi/acpi_watchdog.c 			res.flags = IORESOURCE_IO;
res               152 drivers/acpi/acpi_watchdog.c 			if (rentry->res->flags == res.flags &&
res               153 drivers/acpi/acpi_watchdog.c 			    resource_overlaps(rentry->res, &res)) {
res               154 drivers/acpi/acpi_watchdog.c 				if (res.start < rentry->res->start)
res               155 drivers/acpi/acpi_watchdog.c 					rentry->res->start = res.start;
res               156 drivers/acpi/acpi_watchdog.c 				if (res.end > rentry->res->end)
res               157 drivers/acpi/acpi_watchdog.c 					rentry->res->end = res.end;
res               168 drivers/acpi/acpi_watchdog.c 			*rentry->res = res;
res               180 drivers/acpi/acpi_watchdog.c 		resources[i++] = *rentry->res;
res               298 drivers/acpi/apei/apei-base.c 	struct apei_res *res, *resn, *res_ins = NULL;
res               304 drivers/acpi/apei/apei-base.c 	list_for_each_entry_safe(res, resn, res_list, list) {
res               305 drivers/acpi/apei/apei-base.c 		if (res->start > end || res->end < start)
res               307 drivers/acpi/apei/apei-base.c 		else if (end <= res->end && start >= res->start) {
res               311 drivers/acpi/apei/apei-base.c 		list_del(&res->list);
res               312 drivers/acpi/apei/apei-base.c 		res->start = start = min(res->start, start);
res               313 drivers/acpi/apei/apei-base.c 		res->end = end = max(res->end, end);
res               315 drivers/acpi/apei/apei-base.c 		res_ins = res;
res               322 drivers/acpi/apei/apei-base.c 		res_ins = kmalloc(sizeof(*res), GFP_KERNEL);
res               336 drivers/acpi/apei/apei-base.c 	struct apei_res *res1, *resn1, *res2, *res;
res               351 drivers/acpi/apei/apei-base.c 				res = kmalloc(sizeof(*res), GFP_KERNEL);
res               352 drivers/acpi/apei/apei-base.c 				if (!res)
res               354 drivers/acpi/apei/apei-base.c 				res->start = res2->end;
res               355 drivers/acpi/apei/apei-base.c 				res->end = res1->end;
res               357 drivers/acpi/apei/apei-base.c 				list_add(&res->list, &res1->list);
res               358 drivers/acpi/apei/apei-base.c 				resn1 = res;
res               375 drivers/acpi/apei/apei-base.c 	struct apei_res *res, *resn;
res               377 drivers/acpi/apei/apei-base.c 	list_for_each_entry_safe(res, resn, res_list, list) {
res               378 drivers/acpi/apei/apei-base.c 		list_del(&res->list);
res               379 drivers/acpi/apei/apei-base.c 		kfree(res);
res               394 drivers/acpi/apei/apei-base.c 	struct apei_res *res;
res               396 drivers/acpi/apei/apei-base.c 	list_for_each_entry(res, &resources2->iomem, list) {
res               397 drivers/acpi/apei/apei-base.c 		rc = apei_res_add(&resources1->iomem, res->start,
res               398 drivers/acpi/apei/apei-base.c 				  res->end - res->start);
res               402 drivers/acpi/apei/apei-base.c 	list_for_each_entry(res, &resources2->ioport, list) {
res               403 drivers/acpi/apei/apei-base.c 		rc = apei_res_add(&resources1->ioport, res->start,
res               404 drivers/acpi/apei/apei-base.c 				  res->end - res->start);
res               467 drivers/acpi/apei/apei-base.c 	struct apei_res *res, *res_bak = NULL;
res               500 drivers/acpi/apei/apei-base.c 	list_for_each_entry(res, &resources->iomem, list) {
res               501 drivers/acpi/apei/apei-base.c 		r = request_mem_region(res->start, res->end - res->start,
res               506 drivers/acpi/apei/apei-base.c 			       (unsigned long long)res->start,
res               507 drivers/acpi/apei/apei-base.c 			       (unsigned long long)res->end - 1, desc);
res               508 drivers/acpi/apei/apei-base.c 			res_bak = res;
res               513 drivers/acpi/apei/apei-base.c 	list_for_each_entry(res, &resources->ioport, list) {
res               514 drivers/acpi/apei/apei-base.c 		r = request_region(res->start, res->end - res->start, desc);
res               518 drivers/acpi/apei/apei-base.c 			       (unsigned long long)res->start,
res               519 drivers/acpi/apei/apei-base.c 			       (unsigned long long)res->end - 1, desc);
res               520 drivers/acpi/apei/apei-base.c 			res_bak = res;
res               534 drivers/acpi/apei/apei-base.c 	list_for_each_entry(res, &resources->ioport, list) {
res               535 drivers/acpi/apei/apei-base.c 		if (res == res_bak)
res               537 drivers/acpi/apei/apei-base.c 		release_region(res->start, res->end - res->start);
res               541 drivers/acpi/apei/apei-base.c 	list_for_each_entry(res, &resources->iomem, list) {
res               542 drivers/acpi/apei/apei-base.c 		if (res == res_bak)
res               544 drivers/acpi/apei/apei-base.c 		release_mem_region(res->start, res->end - res->start);
res               558 drivers/acpi/apei/apei-base.c 	struct apei_res *res;
res               560 drivers/acpi/apei/apei-base.c 	list_for_each_entry(res, &resources->iomem, list)
res               561 drivers/acpi/apei/apei-base.c 		release_mem_region(res->start, res->end - res->start);
res               562 drivers/acpi/apei/apei-base.c 	list_for_each_entry(res, &resources->ioport, list)
res               563 drivers/acpi/apei/apei-base.c 		release_region(res->start, res->end - res->start);
res               338 drivers/acpi/arm64/gtdt.c 	struct resource res[] = {
res               343 drivers/acpi/arm64/gtdt.c 	int nr_res = ARRAY_SIZE(res);
res               365 drivers/acpi/arm64/gtdt.c 	pdev = platform_device_register_simple("sbsa-gwdt", index, res, nr_res);
res              1114 drivers/acpi/arm64/iort.c 					  struct resource *res)
res              1125 drivers/acpi/arm64/iort.c 	res->start = irq;
res              1126 drivers/acpi/arm64/iort.c 	res->end = irq;
res              1127 drivers/acpi/arm64/iort.c 	res->flags = IORESOURCE_IRQ;
res              1128 drivers/acpi/arm64/iort.c 	res->name = name;
res              1185 drivers/acpi/arm64/iort.c static void __init arm_smmu_v3_init_resources(struct resource *res,
res              1194 drivers/acpi/arm64/iort.c 	res[num_res].start = smmu->base_address;
res              1195 drivers/acpi/arm64/iort.c 	res[num_res].end = smmu->base_address +
res              1197 drivers/acpi/arm64/iort.c 	res[num_res].flags = IORESOURCE_MEM;
res              1204 drivers/acpi/arm64/iort.c 					       &res[num_res++]);
res              1210 drivers/acpi/arm64/iort.c 					       &res[num_res++]);
res              1215 drivers/acpi/arm64/iort.c 					       &res[num_res++]);
res              1220 drivers/acpi/arm64/iort.c 					       &res[num_res++]);
res              1225 drivers/acpi/arm64/iort.c 					       &res[num_res++]);
res              1293 drivers/acpi/arm64/iort.c static void __init arm_smmu_init_resources(struct resource *res,
res              1303 drivers/acpi/arm64/iort.c 	res[num_res].start = smmu->base_address;
res              1304 drivers/acpi/arm64/iort.c 	res[num_res].end = smmu->base_address + smmu->span - 1;
res              1305 drivers/acpi/arm64/iort.c 	res[num_res].flags = IORESOURCE_MEM;
res              1314 drivers/acpi/arm64/iort.c 				     &res[num_res++]);
res              1323 drivers/acpi/arm64/iort.c 				       &res[num_res++]);
res              1360 drivers/acpi/arm64/iort.c static void __init arm_smmu_v3_pmcg_init_resources(struct resource *res,
res              1368 drivers/acpi/arm64/iort.c 	res[0].start = pmcg->page0_base_address;
res              1369 drivers/acpi/arm64/iort.c 	res[0].end = pmcg->page0_base_address + SZ_4K - 1;
res              1370 drivers/acpi/arm64/iort.c 	res[0].flags = IORESOURCE_MEM;
res              1371 drivers/acpi/arm64/iort.c 	res[1].start = pmcg->page1_base_address;
res              1372 drivers/acpi/arm64/iort.c 	res[1].end = pmcg->page1_base_address + SZ_4K - 1;
res              1373 drivers/acpi/arm64/iort.c 	res[1].flags = IORESOURCE_MEM;
res              1377 drivers/acpi/arm64/iort.c 				       ACPI_EDGE_SENSITIVE, &res[2]);
res              1407 drivers/acpi/arm64/iort.c 	void (*dev_init_resources)(struct resource *res,
res                32 drivers/acpi/ioapic.c 	struct resource	res;
res                42 drivers/acpi/ioapic.c 	struct resource *res = data;
res                51 drivers/acpi/ioapic.c 	res->flags = 0;
res                55 drivers/acpi/ioapic.c 	if (!acpi_dev_resource_memory(acpi_res, res)) {
res                58 drivers/acpi/ioapic.c 			*res = win.res;
res                60 drivers/acpi/ioapic.c 	if ((res->flags & IORESOURCE_PREFETCH) ||
res                61 drivers/acpi/ioapic.c 	    (res->flags & IORESOURCE_DISABLED))
res                62 drivers/acpi/ioapic.c 		res->flags = 0;
res               103 drivers/acpi/ioapic.c 	struct resource *res = NULL, *pci_res = NULL, *crs_res;
res               150 drivers/acpi/ioapic.c 	crs_res = &ioapic->res;
res               163 drivers/acpi/ioapic.c 	res = pci_res;
res               164 drivers/acpi/ioapic.c 	if (!res || !res->flags)
res               165 drivers/acpi/ioapic.c 		res = crs_res;
res               167 drivers/acpi/ioapic.c 	if (acpi_register_ioapic(handle, res->start, (u32)gsi_base)) {
res               177 drivers/acpi/ioapic.c 			 type, res, (u32)gsi_base);
res               180 drivers/acpi/ioapic.c 				 type, res, (u32)gsi_base);
res               187 drivers/acpi/ioapic.c 	if (ioapic->res.flags && ioapic->res.parent)
res               188 drivers/acpi/ioapic.c 		release_resource(&ioapic->res);
res               240 drivers/acpi/ioapic.c 		if (ioapic->res.flags && ioapic->res.parent)
res               241 drivers/acpi/ioapic.c 			release_resource(&ioapic->res);
res               256 drivers/acpi/irq.c int acpi_irq_get(acpi_handle handle, unsigned int index, struct resource *res)
res               275 drivers/acpi/irq.c 	res->start = rc;
res               276 drivers/acpi/irq.c 	res->end = rc;
res               277 drivers/acpi/irq.c 	res->flags = flags;
res              1144 drivers/acpi/nfit/core.c 				struct resource *res = &nfit_mem->flush_wpq[i];
res              1146 drivers/acpi/nfit/core.c 				res->start = flush->hint_address[i];
res              1147 drivers/acpi/nfit/core.c 				res->end = res->start + 8 - 1;
res              2814 drivers/acpi/nfit/core.c 	struct resource *res = data;
res              2816 drivers/acpi/nfit/core.c 	remove_resource(res);
res              2822 drivers/acpi/nfit/core.c 	struct resource *res, *nd_res = ndr_desc->res;
res              2831 drivers/acpi/nfit/core.c 	res = devm_kzalloc(acpi_desc->dev, sizeof(*res), GFP_KERNEL);
res              2832 drivers/acpi/nfit/core.c 	if (!res)
res              2835 drivers/acpi/nfit/core.c 	res->name = "Persistent Memory";
res              2836 drivers/acpi/nfit/core.c 	res->start = nd_res->start;
res              2837 drivers/acpi/nfit/core.c 	res->end = nd_res->end;
res              2838 drivers/acpi/nfit/core.c 	res->flags = IORESOURCE_MEM;
res              2839 drivers/acpi/nfit/core.c 	res->desc = IORES_DESC_PERSISTENT_MEMORY;
res              2841 drivers/acpi/nfit/core.c 	ret = insert_resource(&iomem_resource, res);
res              2847 drivers/acpi/nfit/core.c 					res);
res              2932 drivers/acpi/nfit/core.c 	struct resource res;
res              2943 drivers/acpi/nfit/core.c 	memset(&res, 0, sizeof(res));
res              2946 drivers/acpi/nfit/core.c 	res.start = spa->address;
res              2947 drivers/acpi/nfit/core.c 	res.end = res.start + spa->length - 1;
res              2949 drivers/acpi/nfit/core.c 	ndr_desc->res = &res;
res              1454 drivers/acpi/osl.c int acpi_check_resource_conflict(const struct resource *res)
res              1463 drivers/acpi/osl.c 	if (!(res->flags & IORESOURCE_IO) && !(res->flags & IORESOURCE_MEM))
res              1466 drivers/acpi/osl.c 	if (res->flags & IORESOURCE_IO)
res              1471 drivers/acpi/osl.c 	length = resource_size(res);
res              1474 drivers/acpi/osl.c 	clash = acpi_check_address_range(space_id, res->start, length, warn);
res              1496 drivers/acpi/osl.c 	struct resource res = {
res              1503 drivers/acpi/osl.c 	return acpi_check_resource_conflict(&res);
res              1514 drivers/acpi/osl.c 	struct resource *res = _res;
res              1537 drivers/acpi/osl.c 	if (!(mem_ctx[0]->address >= res->start &&
res              1538 drivers/acpi/osl.c 	      mem_ctx[0]->address < res->end))
res              1566 drivers/acpi/osl.c acpi_status acpi_release_memory(acpi_handle handle, struct resource *res,
res              1569 drivers/acpi/osl.c 	if (!(res->flags & IORESOURCE_MEM))
res              1573 drivers/acpi/osl.c 				   acpi_deactivate_mem_region, NULL, res, NULL);
res               284 drivers/acpi/pci_link.c 		struct acpi_resource res;
res               301 drivers/acpi/pci_link.c 		resource->res.type = ACPI_RESOURCE_TYPE_IRQ;
res               302 drivers/acpi/pci_link.c 		resource->res.length = sizeof(struct acpi_resource);
res               303 drivers/acpi/pci_link.c 		resource->res.data.irq.triggering = link->irq.triggering;
res               304 drivers/acpi/pci_link.c 		resource->res.data.irq.polarity =
res               307 drivers/acpi/pci_link.c 			resource->res.data.irq.shareable =
res               310 drivers/acpi/pci_link.c 			resource->res.data.irq.shareable = ACPI_SHARED;
res               311 drivers/acpi/pci_link.c 		resource->res.data.irq.interrupt_count = 1;
res               312 drivers/acpi/pci_link.c 		resource->res.data.irq.interrupts[0] = irq;
res               316 drivers/acpi/pci_link.c 		resource->res.type = ACPI_RESOURCE_TYPE_EXTENDED_IRQ;
res               317 drivers/acpi/pci_link.c 		resource->res.length = sizeof(struct acpi_resource);
res               318 drivers/acpi/pci_link.c 		resource->res.data.extended_irq.producer_consumer =
res               320 drivers/acpi/pci_link.c 		resource->res.data.extended_irq.triggering =
res               322 drivers/acpi/pci_link.c 		resource->res.data.extended_irq.polarity =
res               325 drivers/acpi/pci_link.c 			resource->res.data.irq.shareable =
res               328 drivers/acpi/pci_link.c 			resource->res.data.irq.shareable = ACPI_SHARED;
res               329 drivers/acpi/pci_link.c 		resource->res.data.extended_irq.interrupt_count = 1;
res               330 drivers/acpi/pci_link.c 		resource->res.data.extended_irq.interrupts[0] = irq;
res               200 drivers/acpi/pci_mcfg.c 	struct resource res;
res               218 drivers/acpi/pci_mcfg.c 	memset(&res, 0, sizeof(res));
res               220 drivers/acpi/pci_mcfg.c 		res.start = root->mcfg_addr + (bus_res->start << 20);
res               221 drivers/acpi/pci_mcfg.c 		res.end = res.start + (resource_size(bus_res) << 20) - 1;
res               222 drivers/acpi/pci_mcfg.c 		res.flags = IORESOURCE_MEM;
res               231 drivers/acpi/pci_mcfg.c 	pci_mcfg_apply_quirks(root, &res, &ops);
res               232 drivers/acpi/pci_mcfg.c 	if (!res.start)
res               235 drivers/acpi/pci_mcfg.c 	*cfgres = res;
res                90 drivers/acpi/pci_root.c 	struct resource *res = data;
res               100 drivers/acpi/pci_root.c 		res->start = address.address.minimum;
res               101 drivers/acpi/pci_root.c 		res->end = address.address.minimum + address.address.address_length - 1;
res               108 drivers/acpi/pci_root.c 					     struct resource *res)
res               112 drivers/acpi/pci_root.c 	res->start = -1;
res               115 drivers/acpi/pci_root.c 				get_root_bridge_busnr_callback, res);
res               118 drivers/acpi/pci_root.c 	if (res->start == -1)
res               691 drivers/acpi/pci_root.c 		res1 = entry->res;
res               710 drivers/acpi/pci_root.c 			res2 = entry2->res;
res               742 drivers/acpi/pci_root.c 	struct resource *res = entry->res;
res               743 drivers/acpi/pci_root.c 	resource_size_t cpu_addr = res->start;
res               745 drivers/acpi/pci_root.c 	resource_size_t length = resource_size(res);
res               755 drivers/acpi/pci_root.c 	res->start = port;
res               756 drivers/acpi/pci_root.c 	res->end = port + length - 1;
res               759 drivers/acpi/pci_root.c 	if (pci_remap_iospace(res, cpu_addr) < 0)
res               762 drivers/acpi/pci_root.c 	pr_info("Remapped I/O %pa to %pR\n", &cpu_addr, res);
res               765 drivers/acpi/pci_root.c 	res->flags |= IORESOURCE_DISABLED;
res               789 drivers/acpi/pci_root.c 			if (entry->res->flags & IORESOURCE_IO)
res               793 drivers/acpi/pci_root.c 			if (entry->res->flags & IORESOURCE_DISABLED)
res               796 drivers/acpi/pci_root.c 				entry->res->name = info->name;
res               810 drivers/acpi/pci_root.c 	struct resource *res, *conflict, *root = NULL;
res               813 drivers/acpi/pci_root.c 		res = entry->res;
res               814 drivers/acpi/pci_root.c 		if (res->flags & IORESOURCE_MEM)
res               816 drivers/acpi/pci_root.c 		else if (res->flags & IORESOURCE_IO)
res               825 drivers/acpi/pci_root.c 		if (res == root)
res               828 drivers/acpi/pci_root.c 		conflict = insert_resource_conflict(root, res);
res               832 drivers/acpi/pci_root.c 				 res, conflict->name, conflict);
res               840 drivers/acpi/pci_root.c 	struct resource *res;
res               847 drivers/acpi/pci_root.c 		res = entry->res;
res               848 drivers/acpi/pci_root.c 		if (res->parent &&
res               849 drivers/acpi/pci_root.c 		    (res->flags & (IORESOURCE_MEM | IORESOURCE_IO)))
res               850 drivers/acpi/pci_root.c 			release_resource(res);
res               859 drivers/acpi/pci_root.c 	struct resource *res;
res               863 drivers/acpi/pci_root.c 		res = entry->res;
res               864 drivers/acpi/pci_root.c 		if (res->flags & IORESOURCE_IO)
res               865 drivers/acpi/pci_root.c 			pci_unmap_iospace(res);
res               866 drivers/acpi/pci_root.c 		if (res->parent &&
res               867 drivers/acpi/pci_root.c 		    (res->flags & (IORESOURCE_MEM | IORESOURCE_IO)))
res               868 drivers/acpi/pci_root.c 			release_resource(res);
res               103 drivers/acpi/pptt.c 				struct acpi_subtable_header *res,
res               109 drivers/acpi/pptt.c 	if (res->type != ACPI_PPTT_TYPE_CACHE)
res               112 drivers/acpi/pptt.c 	cache = (struct acpi_pptt_cache *) res;
res               140 drivers/acpi/pptt.c 	struct acpi_subtable_header *res;
res               147 drivers/acpi/pptt.c 	while ((res = acpi_get_pptt_resource(table_hdr, cpu_node, resource))) {
res               151 drivers/acpi/pptt.c 						   res, &ret, level, type);
res                22 drivers/acpi/resource.c static inline bool acpi_iospace_resource_valid(struct resource *res)
res                25 drivers/acpi/resource.c 	return res->end < 0x10003;
res                35 drivers/acpi/resource.c acpi_iospace_resource_valid(struct resource *res) { return true; }
res                71 drivers/acpi/resource.c static void acpi_dev_memresource_flags(struct resource *res, u64 len,
res                74 drivers/acpi/resource.c 	res->flags = IORESOURCE_MEM;
res                76 drivers/acpi/resource.c 	if (!acpi_dev_resource_len_valid(res->start, res->end, len, false))
res                77 drivers/acpi/resource.c 		res->flags |= IORESOURCE_DISABLED | IORESOURCE_UNSET;
res                80 drivers/acpi/resource.c 		res->flags |= IORESOURCE_MEM_WRITEABLE;
res                83 drivers/acpi/resource.c static void acpi_dev_get_memresource(struct resource *res, u64 start, u64 len,
res                86 drivers/acpi/resource.c 	res->start = start;
res                87 drivers/acpi/resource.c 	res->end = start + len - 1;
res                88 drivers/acpi/resource.c 	acpi_dev_memresource_flags(res, len, write_protect);
res               105 drivers/acpi/resource.c bool acpi_dev_resource_memory(struct acpi_resource *ares, struct resource *res)
res               114 drivers/acpi/resource.c 		acpi_dev_get_memresource(res, memory24->minimum << 8,
res               120 drivers/acpi/resource.c 		acpi_dev_get_memresource(res, memory32->minimum,
res               126 drivers/acpi/resource.c 		acpi_dev_get_memresource(res, fixed_memory32->address,
res               131 drivers/acpi/resource.c 		res->flags = 0;
res               135 drivers/acpi/resource.c 	return !(res->flags & IORESOURCE_DISABLED);
res               139 drivers/acpi/resource.c static void acpi_dev_ioresource_flags(struct resource *res, u64 len,
res               142 drivers/acpi/resource.c 	res->flags = IORESOURCE_IO;
res               144 drivers/acpi/resource.c 	if (!acpi_dev_resource_len_valid(res->start, res->end, len, true))
res               145 drivers/acpi/resource.c 		res->flags |= IORESOURCE_DISABLED | IORESOURCE_UNSET;
res               147 drivers/acpi/resource.c 	if (!acpi_iospace_resource_valid(res))
res               148 drivers/acpi/resource.c 		res->flags |= IORESOURCE_DISABLED | IORESOURCE_UNSET;
res               151 drivers/acpi/resource.c 		res->flags |= IORESOURCE_IO_16BIT_ADDR;
res               153 drivers/acpi/resource.c 		res->flags |= IORESOURCE_IO_SPARSE;
res               156 drivers/acpi/resource.c static void acpi_dev_get_ioresource(struct resource *res, u64 start, u64 len,
res               159 drivers/acpi/resource.c 	res->start = start;
res               160 drivers/acpi/resource.c 	res->end = start + len - 1;
res               161 drivers/acpi/resource.c 	acpi_dev_ioresource_flags(res, len, io_decode, 0);
res               178 drivers/acpi/resource.c bool acpi_dev_resource_io(struct acpi_resource *ares, struct resource *res)
res               186 drivers/acpi/resource.c 		acpi_dev_get_ioresource(res, io->minimum,
res               192 drivers/acpi/resource.c 		acpi_dev_get_ioresource(res, fixed_io->address,
res               197 drivers/acpi/resource.c 		res->flags = 0;
res               201 drivers/acpi/resource.c 	return !(res->flags & IORESOURCE_DISABLED);
res               213 drivers/acpi/resource.c 	struct resource *res = &win->res;
res               240 drivers/acpi/resource.c 	res->start = start;
res               241 drivers/acpi/resource.c 	res->end = end;
res               243 drivers/acpi/resource.c 	    (offset != win->offset || start != res->start || end != res->end)) {
res               251 drivers/acpi/resource.c 		acpi_dev_memresource_flags(res, len, wp);
res               254 drivers/acpi/resource.c 		acpi_dev_ioresource_flags(res, len, iodec,
res               258 drivers/acpi/resource.c 		res->flags = IORESOURCE_BUS;
res               265 drivers/acpi/resource.c 		res->flags |= IORESOURCE_WINDOW;
res               268 drivers/acpi/resource.c 		res->flags |= IORESOURCE_PREFETCH;
res               270 drivers/acpi/resource.c 	return !(res->flags & IORESOURCE_DISABLED);
res               293 drivers/acpi/resource.c 	win->res.flags = 0;
res               322 drivers/acpi/resource.c 	win->res.flags = 0;
res               383 drivers/acpi/resource.c static void acpi_dev_irqresource_disabled(struct resource *res, u32 gsi)
res               385 drivers/acpi/resource.c 	res->start = gsi;
res               386 drivers/acpi/resource.c 	res->end = gsi;
res               387 drivers/acpi/resource.c 	res->flags = IORESOURCE_IRQ | IORESOURCE_DISABLED | IORESOURCE_UNSET;
res               390 drivers/acpi/resource.c static void acpi_dev_get_irqresource(struct resource *res, u32 gsi,
res               397 drivers/acpi/resource.c 		acpi_dev_irqresource_disabled(res, gsi);
res               423 drivers/acpi/resource.c 	res->flags = acpi_dev_irq_flags(triggering, polarity, shareable);
res               426 drivers/acpi/resource.c 		res->start = irq;
res               427 drivers/acpi/resource.c 		res->end = irq;
res               429 drivers/acpi/resource.c 		acpi_dev_irqresource_disabled(res, gsi);
res               453 drivers/acpi/resource.c 				 struct resource *res)
res               466 drivers/acpi/resource.c 			acpi_dev_irqresource_disabled(res, 0);
res               469 drivers/acpi/resource.c 		acpi_dev_get_irqresource(res, irq->interrupts[index],
res               476 drivers/acpi/resource.c 			acpi_dev_irqresource_disabled(res, 0);
res               480 drivers/acpi/resource.c 			acpi_dev_get_irqresource(res, ext_irq->interrupts[index],
res               484 drivers/acpi/resource.c 			acpi_dev_irqresource_disabled(res, 0);
res               487 drivers/acpi/resource.c 		res->flags = 0;
res               523 drivers/acpi/resource.c 	*rentry->res = win->res;
res               535 drivers/acpi/resource.c 	struct resource *res = &win.res;
res               552 drivers/acpi/resource.c 	if (acpi_dev_resource_memory(ares, res)
res               553 drivers/acpi/resource.c 	    || acpi_dev_resource_io(ares, res)
res               558 drivers/acpi/resource.c 	for (i = 0; acpi_dev_resource_interrupt(ares, i, res); i++) {
res               634 drivers/acpi/resource.c 	struct resource *res = &win.res;
res               638 drivers/acpi/resource.c 	return !(acpi_dev_resource_memory(ares, res)
res               721 drivers/acpi/resource.c static int acpi_dev_consumes_res(struct acpi_device *adev, struct resource *res)
res               733 drivers/acpi/resource.c 		if (resource_contains(rentry->res, res)) {
res               747 drivers/acpi/resource.c 	struct resource *res = context;
res               754 drivers/acpi/resource.c 	if (acpi_dev_consumes_res(adev, res)) {
res               770 drivers/acpi/resource.c struct acpi_device *acpi_resource_consumer(struct resource *res)
res               774 drivers/acpi/resource.c 	acpi_get_devices(NULL, acpi_res_consumer_cb, res, (void **) &consumer);
res              1434 drivers/acpi/scan.c 			if (rentry->res->start < dma_start)
res              1435 drivers/acpi/scan.c 				dma_start = rentry->res->start;
res              1436 drivers/acpi/scan.c 			if (rentry->res->end > dma_end)
res              1437 drivers/acpi/scan.c 				dma_end = rentry->res->end;
res              1663 drivers/acpi/scan.c 	struct resource *res = context;
res              1665 drivers/acpi/scan.c 	if (acpi_dev_resource_memory(ares, res))
res              1674 drivers/acpi/scan.c 	struct resource res;
res              1685 drivers/acpi/scan.c 				     acpi_get_resource_memory, &res);
res              1686 drivers/acpi/scan.c 	if (ACPI_FAILURE(status) || res.start != spcr_uart_addr)
res              1690 drivers/acpi/scan.c 			 &res.start);
res              2283 drivers/acpi/scan.c 			int res;
res              2284 drivers/acpi/scan.c 			res = acpi_table_parse(ape->id, ape->probe_table);
res              2285 drivers/acpi/scan.c 			if (!res)
res               144 drivers/amba/bus.c 	 (unsigned long long)dev->res.start, (unsigned long long)dev->res.end,
res               145 drivers/amba/bus.c 	 dev->res.flags);
res               363 drivers/amba/bus.c 	if (d->res.parent)
res               364 drivers/amba/bus.c 		release_resource(&d->res);
res               377 drivers/amba/bus.c 	ret = request_resource(parent, &dev->res);
res               389 drivers/amba/bus.c 	size = resource_size(&dev->res);
res               390 drivers/amba/bus.c 	tmp = ioremap(dev->res.start, size);
res               474 drivers/amba/bus.c 	release_resource(&dev->res);
res               648 drivers/amba/bus.c 	dev->res.name = dev_name(&dev->dev);
res               668 drivers/amba/bus.c 		dev->res.start = base;
res               669 drivers/amba/bus.c 		dev->res.end = base + size - 1;
res               670 drivers/amba/bus.c 		dev->res.flags = IORESOURCE_MEM;
res               793 drivers/amba/bus.c 	size = resource_size(&dev->res);
res               795 drivers/amba/bus.c 	if (!request_mem_region(dev->res.start, size, name))
res               811 drivers/amba/bus.c 	size = resource_size(&dev->res);
res               812 drivers/amba/bus.c 	release_mem_region(dev->res.start, size);
res               241 drivers/amba/tegra-ahb.c 	struct resource *res;
res               250 drivers/amba/tegra-ahb.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               253 drivers/amba/tegra-ahb.c 	if (res &&
res               254 drivers/amba/tegra-ahb.c 	    (res->start & INCORRECT_BASE_ADDR_LOW_BYTE) ==
res               257 drivers/amba/tegra-ahb.c 		res->start -= INCORRECT_BASE_ADDR_LOW_BYTE;
res               260 drivers/amba/tegra-ahb.c 	ahb->regs = devm_ioremap_resource(&pdev->dev, res);
res               417 drivers/ata/ahci_brcm.c 	struct resource *res;
res               431 drivers/ata/ahci_brcm.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "top-ctrl");
res               432 drivers/ata/ahci_brcm.c 	priv->top_ctrl = devm_ioremap_resource(dev, res);
res               165 drivers/ata/ahci_da850.c 	struct resource *res;
res               214 drivers/ata/ahci_da850.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res               215 drivers/ata/ahci_da850.c 	if (!res) {
res               220 drivers/ata/ahci_da850.c 	pwrdn_reg = devm_ioremap(dev, res->start, resource_size(res));
res                35 drivers/ata/ahci_octeon.c 	struct resource *res;
res                40 drivers/ata/ahci_octeon.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                41 drivers/ata/ahci_octeon.c 	base = devm_ioremap_resource(&pdev->dev, res);
res               262 drivers/ata/ahci_qoriq.c 	struct resource *res;
res               280 drivers/ata/ahci_qoriq.c 		res = platform_get_resource_byname(pdev,
res               283 drivers/ata/ahci_qoriq.c 		if (res) {
res               285 drivers/ata/ahci_qoriq.c 				devm_ioremap_resource(dev, res);
res               484 drivers/ata/ahci_tegra.c 	struct resource *res;
res               501 drivers/ata/ahci_tegra.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res               502 drivers/ata/ahci_tegra.c 	tegra->sata_regs = devm_ioremap_resource(&pdev->dev, res);
res               509 drivers/ata/ahci_tegra.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 2);
res               510 drivers/ata/ahci_tegra.c 	if (res) {
res               511 drivers/ata/ahci_tegra.c 		tegra->sata_aux_regs = devm_ioremap_resource(&pdev->dev, res);
res               742 drivers/ata/ahci_xgene.c 	struct resource *res;
res               762 drivers/ata/ahci_xgene.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res               763 drivers/ata/ahci_xgene.c 	ctx->csr_core = devm_ioremap_resource(dev, res);
res               768 drivers/ata/ahci_xgene.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 2);
res               769 drivers/ata/ahci_xgene.c 	ctx->csr_diag = devm_ioremap_resource(dev, res);
res               774 drivers/ata/ahci_xgene.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 3);
res               775 drivers/ata/ahci_xgene.c 	ctx->csr_axi = devm_ioremap_resource(dev, res);
res               780 drivers/ata/ahci_xgene.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 4);
res               781 drivers/ata/ahci_xgene.c 	if (res) {
res               782 drivers/ata/ahci_xgene.c 		void __iomem *csr = devm_ioremap_resource(dev, res);
res               285 drivers/ata/libahci_platform.c static void ahci_platform_put_resources(struct device *dev, void *res)
res               287 drivers/ata/libahci_platform.c 	struct ahci_host_priv *hpriv = res;
res              6058 drivers/ata/libata-core.c static void ata_devres_release(struct device *gendev, void *res)
res              6287 drivers/ata/libata-core.c static void ata_host_stop(struct device *gendev, void *res)
res              2489 drivers/ata/libata-eh.c 		struct ata_taskfile *cmd = &qc->tf, *res = &qc->result_tf;
res              2565 drivers/ata/libata-eh.c 			res->command, res->feature, res->nsect,
res              2566 drivers/ata/libata-eh.c 			res->lbal, res->lbam, res->lbah,
res              2567 drivers/ata/libata-eh.c 			res->hob_feature, res->hob_nsect,
res              2568 drivers/ata/libata-eh.c 			res->hob_lbal, res->hob_lbam, res->hob_lbah,
res              2569 drivers/ata/libata-eh.c 			res->device, qc->err_mask, ata_err_string(qc->err_mask),
res              2573 drivers/ata/libata-eh.c 		if (res->command & (ATA_BUSY | ATA_DRDY | ATA_DF | ATA_DRQ |
res              2575 drivers/ata/libata-eh.c 			if (res->command & ATA_BUSY)
res              2579 drivers/ata/libata-eh.c 				  res->command & ATA_DRDY ? "DRDY " : "",
res              2580 drivers/ata/libata-eh.c 				  res->command & ATA_DF ? "DF " : "",
res              2581 drivers/ata/libata-eh.c 				  res->command & ATA_DRQ ? "DRQ " : "",
res              2582 drivers/ata/libata-eh.c 				  res->command & ATA_SENSE ? "SENSE " : "",
res              2583 drivers/ata/libata-eh.c 				  res->command & ATA_ERR ? "ERR " : "");
res              2587 drivers/ata/libata-eh.c 		    (res->feature & (ATA_ICRC | ATA_UNC | ATA_AMNF |
res              2590 drivers/ata/libata-eh.c 			  res->feature & ATA_ICRC ? "ICRC " : "",
res              2591 drivers/ata/libata-eh.c 			  res->feature & ATA_UNC ? "UNC " : "",
res              2592 drivers/ata/libata-eh.c 			  res->feature & ATA_AMNF ? "AMNF " : "",
res              2593 drivers/ata/libata-eh.c 			  res->feature & ATA_IDNF ? "IDNF " : "",
res              2594 drivers/ata/libata-eh.c 			  res->feature & ATA_ABORTED ? "ABRT " : "");
res               796 drivers/ata/pata_arasan_cf.c 	struct resource *res;
res               801 drivers/ata/pata_arasan_cf.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               802 drivers/ata/pata_arasan_cf.c 	if (!res)
res               805 drivers/ata/pata_arasan_cf.c 	if (!devm_request_mem_region(&pdev->dev, res->start, resource_size(res),
res               827 drivers/ata/pata_arasan_cf.c 	acdev->pbase = res->start;
res               828 drivers/ata/pata_arasan_cf.c 	acdev->vbase = devm_ioremap_nocache(&pdev->dev, res->start,
res               829 drivers/ata/pata_arasan_cf.c 			resource_size(res));
res               890 drivers/ata/pata_arasan_cf.c 		      (unsigned long long) res->start, acdev->vbase);
res               459 drivers/ata/pata_ftide010.c 	struct resource *res;
res               473 drivers/ata/pata_ftide010.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               474 drivers/ata/pata_ftide010.c 	if (!res)
res               477 drivers/ata/pata_ftide010.c 	ftide->base = devm_ioremap_resource(dev, res);
res               501 drivers/ata/pata_ftide010.c 				(res->start == 0x63400000));
res               529 drivers/ata/pata_ftide010.c 		 readl(ftide->base + FTIDE010_IDE_DEVICE_ID), irq, res);
res               130 drivers/ata/pata_gayle.c 	struct resource *res;
res               142 drivers/ata/pata_gayle.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               143 drivers/ata/pata_gayle.c 	if (!res)
res               146 drivers/ata/pata_gayle.c 	if (!devm_request_mem_region(&pdev->dev, res->start,
res               147 drivers/ata/pata_gayle.c 				     resource_size(res), DRV_NAME)) {
res              1081 drivers/ata/pata_legacy.c static __init void qdi65_identify_port(u8 r, u8 res, unsigned long port)
res              1099 drivers/ata/pata_legacy.c 		res = inb(port + 3);
res              1101 drivers/ata/pata_legacy.c 		if (res & 1)
res              1125 drivers/ata/pata_legacy.c 		u8 r, res;
res              1137 drivers/ata/pata_legacy.c 			res = inb(port);
res              1144 drivers/ata/pata_legacy.c 			if (res == 0x19) {
res              1153 drivers/ata/pata_legacy.c 				qdi65_identify_port(r, res, port);
res               106 drivers/ata/pata_rb532_cf.c 	struct resource *res;
res               111 drivers/ata/pata_rb532_cf.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               112 drivers/ata/pata_rb532_cf.c 	if (!res) {
res               143 drivers/ata/pata_rb532_cf.c 	info->iobase = devm_ioremap_nocache(&pdev->dev, res->start,
res               144 drivers/ata/pata_rb532_cf.c 				resource_size(res));
res               497 drivers/ata/pata_samsung_cf.c 	struct resource *res;
res               511 drivers/ata/pata_samsung_cf.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               513 drivers/ata/pata_samsung_cf.c 	info->ide_addr = devm_ioremap_resource(dev, res);
res               571 drivers/ata/pata_samsung_cf.c 			(unsigned long long)res->start);
res                89 drivers/ata/sata_dwc_460ex.c 	u32 res[15];		/* Reserved locations */
res               240 drivers/ata/sata_dwc_460ex.c 	struct resource *res;
res               257 drivers/ata/sata_dwc_460ex.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res               258 drivers/ata/sata_dwc_460ex.c 	hsdev->dma->regs = devm_ioremap_resource(&pdev->dev, res);
res              1210 drivers/ata/sata_dwc_460ex.c 	struct resource *res;
res              1221 drivers/ata/sata_dwc_460ex.c 	res = platform_get_resource(ofdev, IORESOURCE_MEM, 0);
res              1222 drivers/ata/sata_dwc_460ex.c 	base = devm_ioremap_resource(&ofdev->dev, res);
res              1229 drivers/ata/sata_dwc_460ex.c 	hsdev->dmadr = res->start + SATA_DWC_REG_OFFSET + offsetof(struct sata_dwc_regs, dmadr);
res               321 drivers/ata/sata_gemini.c 	struct resource *res;
res               332 drivers/ata/sata_gemini.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               333 drivers/ata/sata_gemini.c 	if (!res)
res               336 drivers/ata/sata_gemini.c 	sg->base = devm_ioremap_resource(dev, res);
res              4054 drivers/ata/sata_mv.c 	struct resource *res;
res              4072 drivers/ata/sata_mv.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              4073 drivers/ata/sata_mv.c 	if (res == NULL)
res              4118 drivers/ata/sata_mv.c 	hpriv->base = devm_ioremap(&pdev->dev, res->start,
res              4119 drivers/ata/sata_mv.c 				   resource_size(res));
res              1657 drivers/atm/ambassador.c 	int res;
res              1665 drivers/atm/ambassador.c 			res = -EINVAL;
res              1669 drivers/atm/ambassador.c 			res = -ETIMEDOUT;
res              1673 drivers/atm/ambassador.c 			res = 0;
res              1677 drivers/atm/ambassador.c 			res = -EIO;
res              1681 drivers/atm/ambassador.c 			res = 0;
res              1685 drivers/atm/ambassador.c 			res = -EINVAL;
res              1689 drivers/atm/ambassador.c 			res = 0;
res              1693 drivers/atm/ambassador.c 			res = -EINVAL;
res              1697 drivers/atm/ambassador.c 			res = -EIO;
res              1701 drivers/atm/ambassador.c 			res = 0;
res              1705 drivers/atm/ambassador.c 			res = -EIO;
res              1709 drivers/atm/ambassador.c 			res = -EINVAL;
res              1713 drivers/atm/ambassador.c 			res = -EINVAL;
res              1722 drivers/atm/ambassador.c 	return res;
res              1785 drivers/atm/ambassador.c   int res;
res              1789 drivers/atm/ambassador.c   res = do_loader_command (lb, dev, get_version_number);
res              1790 drivers/atm/ambassador.c   if (res)
res              1791 drivers/atm/ambassador.c     return res;
res              1818 drivers/atm/ambassador.c   int res;
res              1824 drivers/atm/ambassador.c   res = do_loader_command (lb, dev, read_adapter_memory);
res              1825 drivers/atm/ambassador.c   if (!res && memcmp(tb->data, rec->data, be16_to_cpu(rec->len)))
res              1826 drivers/atm/ambassador.c     res = -EINVAL;
res              1827 drivers/atm/ambassador.c   return res;
res              1914 drivers/atm/ambassador.c   int res;
res              1916 drivers/atm/ambassador.c   res = request_ihex_firmware(&fw, "atmsar11.fw", &dev->pci_dev->dev);
res              1917 drivers/atm/ambassador.c   if (res) {
res              1919 drivers/atm/ambassador.c     return res;
res              1945 drivers/atm/ambassador.c     res = loader_write(lb, dev, rec);
res              1946 drivers/atm/ambassador.c     if (res)
res              1949 drivers/atm/ambassador.c     res = loader_verify(lb, dev, rec);
res              1950 drivers/atm/ambassador.c     if (res)
res              1955 drivers/atm/ambassador.c   if (!res)
res              1956 drivers/atm/ambassador.c     res = loader_start(lb, dev, start_address);
res              1958 drivers/atm/ambassador.c   return res;
res              1188 drivers/atm/eni.c 	enum enq_res res;
res              1196 drivers/atm/eni.c 				res = do_tx(skb);
res              1197 drivers/atm/eni.c 				if (res == enq_ok) continue;
res              1201 drivers/atm/eni.c 				if (res == enq_jam) return;
res              1253 drivers/atm/eni.c     int *res,int unlimited)
res              1258 drivers/atm/eni.c 	if (unlimited) *pre = *res = 0;
res              1267 drivers/atm/eni.c 			*res = TS_CLOCK/div-1;
res              1278 drivers/atm/eni.c 			*res = DIV_ROUND_UP(TS_CLOCK, div)-1;
res              1280 drivers/atm/eni.c 		if (*res < 0) *res = 0;
res              1281 drivers/atm/eni.c 		if (*res > MID_SEG_MAX_RATE) *res = MID_SEG_MAX_RATE;
res              1283 drivers/atm/eni.c 	*pcr = TS_CLOCK/pre_div[*pre]/(*res+1);
res              1284 drivers/atm/eni.c 	DPRINTK("out pcr: %d (%d:%d)\n",*pcr,*pre,*res);
res              1298 drivers/atm/eni.c 	int pre,res,order;
res              1342 drivers/atm/eni.c 	error = comp_tx(eni_dev,&rate,tx->reserved,&pre,&res,unlimited);
res              1368 drivers/atm/eni.c 		tx->resolution = res;
res              2053 drivers/atm/eni.c 	enum enq_res res;
res              2077 drivers/atm/eni.c 	res = do_tx(skb);
res              2079 drivers/atm/eni.c 	if (res == enq_ok) return 0;
res              1763 drivers/atm/horizon.c   u16 res;
res              1792 drivers/atm/horizon.c   res = 0;
res              1794 drivers/atm/horizon.c     res = res >> 1;
res              1799 drivers/atm/horizon.c       res |= (1 << (data_bits-1));
res              1805 drivers/atm/horizon.c   return res;
res               301 drivers/atm/horizon.h   HDW res;
res              1656 drivers/atm/idt77252.c 	int res;
res              1660 drivers/atm/idt77252.c 	res = __fill_tst(card, vc, n, opc);
res              1667 drivers/atm/idt77252.c 	return res;
res              1699 drivers/atm/idt77252.c 	int res;
res              1703 drivers/atm/idt77252.c 	res = __clear_tst(card, vc);
res              1710 drivers/atm/idt77252.c 	return res;
res              1718 drivers/atm/idt77252.c 	int res;
res              1723 drivers/atm/idt77252.c 	res = __fill_tst(card, vc, n, opc);
res              1730 drivers/atm/idt77252.c 	return res;
res               226 drivers/atm/iphase.h 	u_int res[3];  
res               326 drivers/atm/iphase.h 	unsigned short res:8, timeout:8;  
res               271 drivers/auxdisplay/arm-charlcd.c 	struct resource *res;
res               279 drivers/auxdisplay/arm-charlcd.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               280 drivers/auxdisplay/arm-charlcd.c 	if (!res) {
res               284 drivers/auxdisplay/arm-charlcd.c 	lcd->phybase = res->start;
res               285 drivers/auxdisplay/arm-charlcd.c 	lcd->physize = resource_size(res);
res               300 drivers/auxdisplay/charlcd.c static bool parse_n(const char *s, unsigned long *res, const char **next_s)
res               305 drivers/auxdisplay/charlcd.c 	*res = 0;
res               307 drivers/auxdisplay/charlcd.c 		*res = *res * 10 + (*s - '0');
res               359 drivers/auxdisplay/img-ascii-lcd.c 	struct resource *res;
res               381 drivers/auxdisplay/img-ascii-lcd.c 		res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               382 drivers/auxdisplay/img-ascii-lcd.c 		ctx->base = devm_ioremap_resource(&pdev->dev, res);
res               309 drivers/base/component.c static void devm_component_match_release(struct device *dev, void *res)
res               311 drivers/base/component.c 	component_match_release(dev, res);
res              1341 drivers/base/core.c static int devm_attr_group_match(struct device *dev, void *res, void *data)
res              1343 drivers/base/core.c 	return ((union device_attr_group_devres *)res)->group == data;
res              1346 drivers/base/core.c static void devm_attr_group_remove(struct device *dev, void *res)
res              1348 drivers/base/core.c 	union device_attr_group_devres *devres = res;
res              1355 drivers/base/core.c static void devm_attr_groups_remove(struct device *dev, void *res)
res              1357 drivers/base/core.c 	union device_attr_group_devres *devres = res;
res                73 drivers/base/devres.c static void group_open_release(struct device *dev, void *res)
res                78 drivers/base/devres.c static void group_close_release(struct device *dev, void *res)
res               209 drivers/base/devres.c void devres_free(void *res)
res               211 drivers/base/devres.c 	if (res) {
res               212 drivers/base/devres.c 		struct devres *dr = container_of(res, struct devres, data);
res               229 drivers/base/devres.c void devres_add(struct device *dev, void *res)
res               231 drivers/base/devres.c 	struct devres *dr = container_of(res, struct devres, data);
res               379 drivers/base/devres.c 	void *res;
res               381 drivers/base/devres.c 	res = devres_remove(dev, release, match, match_data);
res               382 drivers/base/devres.c 	if (unlikely(!res))
res               385 drivers/base/devres.c 	devres_free(res);
res               409 drivers/base/devres.c 	void *res;
res               411 drivers/base/devres.c 	res = devres_remove(dev, release, match, match_data);
res               412 drivers/base/devres.c 	if (unlikely(!res))
res               415 drivers/base/devres.c 	(*release)(dev, res);
res               416 drivers/base/devres.c 	devres_free(res);
res               698 drivers/base/devres.c static int devm_action_match(struct device *dev, void *res, void *p)
res               700 drivers/base/devres.c 	struct action_devres *devres = res;
res               707 drivers/base/devres.c static void devm_action_release(struct device *dev, void *res)
res               709 drivers/base/devres.c 	struct action_devres *devres = res;
res               787 drivers/base/devres.c static void devm_kmalloc_release(struct device *dev, void *res)
res               792 drivers/base/devres.c static int devm_kmalloc_match(struct device *dev, void *res, void *data)
res               794 drivers/base/devres.c 	return res == data;
res               983 drivers/base/devres.c static int devm_pages_match(struct device *dev, void *res, void *p)
res               985 drivers/base/devres.c 	struct pages_devres *devres = res;
res               991 drivers/base/devres.c static void devm_pages_release(struct device *dev, void *res)
res               993 drivers/base/devres.c 	struct pages_devres *devres = res;
res               560 drivers/base/firmware_loader/main.c static void fw_name_devm_release(struct device *dev, void *res)
res               562 drivers/base/firmware_loader/main.c 	struct fw_name_devm *fwn = res;
res               566 drivers/base/firmware_loader/main.c 				__func__, fwn->name, res);
res               570 drivers/base/firmware_loader/main.c static int fw_devm_match(struct device *dev, void *res,
res               573 drivers/base/firmware_loader/main.c 	struct fw_name_devm *fwn = res;
res              1199 drivers/base/firmware_loader/main.c static void dev_create_fw_entry(struct device *dev, void *res,
res              1202 drivers/base/firmware_loader/main.c 	struct fw_name_devm *fwn = res;
res              1212 drivers/base/firmware_loader/main.c static int devm_name_match(struct device *dev, void *res,
res              1215 drivers/base/firmware_loader/main.c 	struct fw_name_devm *fwn = res;
res                76 drivers/base/platform.c 	struct resource *res;
res                78 drivers/base/platform.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, index);
res                79 drivers/base/platform.c 	return devm_ioremap_resource(&pdev->dev, res);
res               408 drivers/base/platform.c 				  const struct resource *res, unsigned int num)
res               412 drivers/base/platform.c 	if (res) {
res               413 drivers/base/platform.c 		r = kmemdup(res, sizeof(struct resource) * num, GFP_KERNEL);
res               643 drivers/base/platform.c 			pdevinfo->res, pdevinfo->num_res);
res               843 drivers/base/platform.c 			struct resource *res, unsigned int n_res,
res               855 drivers/base/platform.c 	error = platform_device_add_resources(pdev, res, n_res);
res               130 drivers/base/power/wakeirq.c 	int res;
res               140 drivers/base/power/wakeirq.c 	res = pm_runtime_resume(wirq->dev);
res               141 drivers/base/power/wakeirq.c 	if (res < 0)
res               143 drivers/base/power/wakeirq.c 			 "wake IRQ with no resume: %i\n", res);
res               839 drivers/base/property.c 	char *res;
res               841 drivers/base/property.c 	res = fwnode_get_mac_addr(fwnode, "mac-address", addr, alen);
res               842 drivers/base/property.c 	if (res)
res               843 drivers/base/property.c 		return res;
res               845 drivers/base/property.c 	res = fwnode_get_mac_addr(fwnode, "local-mac-address", addr, alen);
res               846 drivers/base/property.c 	if (res)
res               847 drivers/base/property.c 		return res;
res               876 drivers/base/property.c 	struct resource res;
res               882 drivers/base/property.c 	ret = acpi_irq_get(ACPI_HANDLE_FWNODE(fwnode), index, &res);
res               886 drivers/base/property.c 	return res.start;
res               858 drivers/base/regmap/regmap-irq.c static void devm_regmap_irq_chip_release(struct device *dev, void *res)
res               860 drivers/base/regmap/regmap-irq.c 	struct regmap_irq_chip_data *d = *(struct regmap_irq_chip_data **)res;
res               865 drivers/base/regmap/regmap-irq.c static int devm_regmap_irq_chip_match(struct device *dev, void *res, void *data)
res               868 drivers/base/regmap/regmap-irq.c 	struct regmap_irq_chip_data **r = res;
res               522 drivers/base/regmap/regmap.c static void dev_get_regmap_release(struct device *dev, void *res)
res              1174 drivers/base/regmap/regmap.c static void devm_regmap_release(struct device *dev, void *res)
res              1176 drivers/base/regmap/regmap.c 	regmap_exit(*(struct regmap **)res);
res              1363 drivers/base/regmap/regmap.c static int dev_get_regmap_match(struct device *dev, void *res, void *data)
res              1365 drivers/base/regmap/regmap.c 	struct regmap **r = res;
res               282 drivers/bcma/driver_chipcommon.c 	u32 res;
res               285 drivers/bcma/driver_chipcommon.c 	res = bcma_cc_write32_masked(cc, BCMA_CC_GPIOOUT, mask, value);
res               288 drivers/bcma/driver_chipcommon.c 	return res;
res               295 drivers/bcma/driver_chipcommon.c 	u32 res;
res               298 drivers/bcma/driver_chipcommon.c 	res = bcma_cc_write32_masked(cc, BCMA_CC_GPIOOUTEN, mask, value);
res               301 drivers/bcma/driver_chipcommon.c 	return res;
res               312 drivers/bcma/driver_chipcommon.c 	u32 res;
res               315 drivers/bcma/driver_chipcommon.c 	res = bcma_cc_write32_masked(cc, BCMA_CC_GPIOCTL, mask, value);
res               318 drivers/bcma/driver_chipcommon.c 	return res;
res               325 drivers/bcma/driver_chipcommon.c 	u32 res;
res               328 drivers/bcma/driver_chipcommon.c 	res = bcma_cc_write32_masked(cc, BCMA_CC_GPIOIRQ, mask, value);
res               331 drivers/bcma/driver_chipcommon.c 	return res;
res               337 drivers/bcma/driver_chipcommon.c 	u32 res;
res               340 drivers/bcma/driver_chipcommon.c 	res = bcma_cc_write32_masked(cc, BCMA_CC_GPIOPOL, mask, value);
res               343 drivers/bcma/driver_chipcommon.c 	return res;
res               349 drivers/bcma/driver_chipcommon.c 	u32 res;
res               355 drivers/bcma/driver_chipcommon.c 	res = bcma_cc_write32_masked(cc, BCMA_CC_GPIOPULLUP, mask, value);
res               358 drivers/bcma/driver_chipcommon.c 	return res;
res               364 drivers/bcma/driver_chipcommon.c 	u32 res;
res               370 drivers/bcma/driver_chipcommon.c 	res = bcma_cc_write32_masked(cc, BCMA_CC_GPIOPULLDOWN, mask, value);
res               373 drivers/bcma/driver_chipcommon.c 	return res;
res               556 drivers/bcma/driver_pci_host.c 	struct resource *res;
res               569 drivers/bcma/driver_pci_host.c 		res = &dev->resource[pos];
res               570 drivers/bcma/driver_pci_host.c 		if (res->flags & (IORESOURCE_IO | IORESOURCE_MEM)) {
res                62 drivers/block/aoe/aoe.h 	unsigned char res[2];
res                94 drivers/block/drbd/drbd_proc.c 	unsigned int res;
res                98 drivers/block/drbd/drbd_proc.c 	drbd_get_syncer_progress(device, state, &rs_total, &rs_left, &res);
res               100 drivers/block/drbd/drbd_proc.c 	x = res/50;
res               114 drivers/block/drbd/drbd_proc.c 	seq_printf(seq, "%3u.%u%% ", res / 10, res % 10);
res              4005 drivers/block/floppy.c 	int res = -EBUSY;
res              4023 drivers/block/floppy.c 	res = -ENXIO;
res              4076 drivers/block/floppy.c 		res = -EROFS;
res              4092 drivers/block/floppy.c 	return res;
res              4196 drivers/block/floppy.c 	int res = 0;
res              4206 drivers/block/floppy.c 		res = lock_fdc(drive);
res              4207 drivers/block/floppy.c 		if (res)
res              4208 drivers/block/floppy.c 			return res;
res              4225 drivers/block/floppy.c 			res = __floppy_read_block_0(opened_bdev[drive], drive);
res              4233 drivers/block/floppy.c 	return res;
res               169 drivers/block/mtip32xx/mtip32xx.h 	u8 res[3];
res               271 drivers/block/mtip32xx/mtip32xx.h 	u32 res[4];
res              1317 drivers/block/null_blk_main.c static enum blk_eh_timer_return null_timeout_rq(struct request *rq, bool res)
res               198 drivers/block/paride/paride.c 	int res;
res               202 drivers/block/paride/paride.c 		res = pi->proto->test_proto(pi, scratch, verbose);
res               204 drivers/block/paride/paride.c 		res = default_test_proto(pi, scratch, verbose);
res               207 drivers/block/paride/paride.c 	return res;
res               535 drivers/block/paride/pcd.c 	int res = cd->changed;
res               536 drivers/block/paride/pcd.c 	if (res)
res               538 drivers/block/paride/pcd.c 	return res ? DISK_EVENT_MEDIA_CHANGE : 0;
res               429 drivers/block/paride/pd.c 		enum action res;
res               449 drivers/block/paride/pd.c 		switch(res = phase()) {
res               453 drivers/block/paride/pd.c 				err = res == Ok ? 0 : BLK_STS_IOERR;
res               114 drivers/block/ps3disk.c 	int write = rq_data_dir(req), res;
res               139 drivers/block/ps3disk.c 		res = lv1_storage_write(dev->sbd.dev_id, region_id,
res               143 drivers/block/ps3disk.c 		res = lv1_storage_read(dev->sbd.dev_id, region_id,
res               147 drivers/block/ps3disk.c 	if (res) {
res               149 drivers/block/ps3disk.c 			__LINE__, op, res);
res               161 drivers/block/ps3disk.c 	u64 res;
res               165 drivers/block/ps3disk.c 	res = lv1_storage_send_device_command(dev->sbd.dev_id,
res               168 drivers/block/ps3disk.c 	if (res) {
res               170 drivers/block/ps3disk.c 			__func__, __LINE__, res);
res               217 drivers/block/ps3disk.c 	int res, read;
res               222 drivers/block/ps3disk.c 	res = lv1_storage_get_async_status(dev->sbd.dev_id, &tag, &status);
res               229 drivers/block/ps3disk.c 	if (res) {
res               231 drivers/block/ps3disk.c 			__func__, __LINE__, res, status);
res               276 drivers/block/ps3disk.c 	u64 res;
res               280 drivers/block/ps3disk.c 	res = ps3stor_send_command(dev, LV1_STORAGE_ATA_HDDOUT, 0, 0, 0, 0);
res               281 drivers/block/ps3disk.c 	if (res) {
res               283 drivers/block/ps3disk.c 			__func__, __LINE__, res);
res               356 drivers/block/ps3disk.c 	u64 res;
res               368 drivers/block/ps3disk.c 	res = ps3stor_send_command(dev, LV1_STORAGE_SEND_ATA_COMMAND,
res               372 drivers/block/ps3disk.c 	if (res) {
res               374 drivers/block/ps3disk.c 			__func__, __LINE__, res);
res               891 drivers/block/swim.c 	struct resource *res;
res               896 drivers/block/swim.c 	res = platform_get_resource(dev, IORESOURCE_MEM, 0);
res               897 drivers/block/swim.c 	if (!res) {
res               902 drivers/block/swim.c 	if (!request_mem_region(res->start, resource_size(res), CARDNAME)) {
res               907 drivers/block/swim.c 	swim_base = (struct swim __iomem *)res->start;
res               942 drivers/block/swim.c 	release_mem_region(res->start, resource_size(res));
res               951 drivers/block/swim.c 	struct resource *res;
res               969 drivers/block/swim.c 	res = platform_get_resource(dev, IORESOURCE_MEM, 0);
res               970 drivers/block/swim.c 	if (res)
res               971 drivers/block/swim.c 		release_mem_region(res->start, resource_size(res));
res              1066 drivers/bluetooth/hci_bcm.c 		if (resource_type(entry->res) == IORESOURCE_IRQ) {
res              1067 drivers/bluetooth/hci_bcm.c 			dev->irq = entry->res->start;
res               443 drivers/bus/arm-cci.c 	struct resource res;
res               480 drivers/bus/arm-cci.c 		ret = of_address_to_resource(cp, 0, &res);
res               482 drivers/bus/arm-cci.c 			ports[i].base = ioremap(res.start, resource_size(&res));
res               483 drivers/bus/arm-cci.c 			ports[i].phys = res.start;
res               538 drivers/bus/arm-cci.c 	struct resource res;
res               544 drivers/bus/arm-cci.c 	ret = of_address_to_resource(np, 0, &res);
res               546 drivers/bus/arm-cci.c 		cci_ctrl_base = ioremap(res.start, resource_size(&res));
res               547 drivers/bus/arm-cci.c 		cci_ctrl_phys =	res.start;
res               211 drivers/bus/da8xx-mstpri.c 	struct resource *res;
res               216 drivers/bus/da8xx-mstpri.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               217 drivers/bus/da8xx-mstpri.c 	mstpri = devm_ioremap_resource(dev, res);
res               233 drivers/bus/da8xx-mstpri.c 		if (prio_descr->reg + sizeof(u32) > resource_size(res)) {
res               823 drivers/bus/fsl-mc/fsl-mc-bus.c 	struct resource res;
res               834 drivers/bus/fsl-mc/fsl-mc-bus.c 	error = of_address_to_resource(pdev->dev.of_node, 0, &res);
res               842 drivers/bus/fsl-mc/fsl-mc-bus.c 	mc_portal_phys_addr = res.start;
res               843 drivers/bus/fsl-mc/fsl-mc-bus.c 	mc_portal_size = resource_size(&res);
res                74 drivers/bus/fsl-mc/mc-io.c 	struct resource *res;
res                89 drivers/bus/fsl-mc/mc-io.c 	res = devm_request_mem_region(dev,
res                93 drivers/bus/fsl-mc/mc-io.c 	if (!res) {
res               346 drivers/bus/hisi_lpc.c 				     struct resource *res)
res               349 drivers/bus/hisi_lpc.c 	resource_size_t len = resource_size(res);
res               351 drivers/bus/hisi_lpc.c 	sys_port = logic_pio_trans_hwaddr(&host->fwnode, res->start, len);
res               355 drivers/bus/hisi_lpc.c 	res->start = sys_port;
res               356 drivers/bus/hisi_lpc.c 	res->end = sys_port + len;
res               376 drivers/bus/hisi_lpc.c 				    const struct resource **res, int *num_res)
res               423 drivers/bus/hisi_lpc.c 		resources[count++] = *rentry->res;
res               440 drivers/bus/hisi_lpc.c 	*res = resources;
res               491 drivers/bus/hisi_lpc.c 		const struct resource *res;
res               495 drivers/bus/hisi_lpc.c 		ret = hisi_lpc_acpi_set_io_res(&child->dev, &adev->dev, &res,
res               514 drivers/bus/hisi_lpc.c 						.iobase = res->start,
res               550 drivers/bus/hisi_lpc.c 		ret = platform_device_add_resources(pdev, res, num_res);
res               602 drivers/bus/hisi_lpc.c 	struct resource *res;
res               611 drivers/bus/hisi_lpc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               612 drivers/bus/hisi_lpc.c 	lpcdev->membase = devm_ioremap_resource(dev, res);
res               237 drivers/bus/imx-weim.c 	struct resource *res;
res               243 drivers/bus/imx-weim.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               244 drivers/bus/imx-weim.c 	base = devm_ioremap_resource(&pdev->dev, res);
res               105 drivers/bus/mips_cdmm.c 	  (unsigned long long)dev->res.start,
res               106 drivers/bus/mips_cdmm.c 	  (unsigned long long)dev->res.end,
res               107 drivers/bus/mips_cdmm.c 	  dev->res.flags);
res               533 drivers/bus/mips_cdmm.c 		dev->res.start = bus->phys + drb * CDMM_DRB_SIZE;
res               534 drivers/bus/mips_cdmm.c 		dev->res.end = bus->phys +
res               536 drivers/bus/mips_cdmm.c 		dev->res.flags = IORESOURCE_MEM;
res               517 drivers/bus/moxtet.c 	ssize_t res;
res               524 drivers/bus/moxtet.c 	res = simple_write_to_buffer(hex, sizeof(hex), &dummy, buf, len);
res               525 drivers/bus/moxtet.c 	if (res < 0)
res               526 drivers/bus/moxtet.c 		return res;
res               937 drivers/bus/mvebu-mbus.c void mvebu_mbus_get_pcie_mem_aperture(struct resource *res)
res               939 drivers/bus/mvebu-mbus.c 	if (!res)
res               941 drivers/bus/mvebu-mbus.c 	*res = mbus_state.pcie_mem_aperture;
res               944 drivers/bus/mvebu-mbus.c void mvebu_mbus_get_pcie_io_aperture(struct resource *res)
res               946 drivers/bus/mvebu-mbus.c 	if (!res)
res               948 drivers/bus/mvebu-mbus.c 	*res = mbus_state.pcie_io_aperture;
res                34 drivers/bus/omap-ocp2scp.c 	struct resource *res;
res                61 drivers/bus/omap-ocp2scp.c 		res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                62 drivers/bus/omap-ocp2scp.c 		regs = devm_ioremap_resource(&pdev->dev, res);
res               266 drivers/bus/omap_l3_noc.c 		struct resource	*res;
res               274 drivers/bus/omap_l3_noc.c 		res = platform_get_resource(pdev, IORESOURCE_MEM, res_idx);
res               275 drivers/bus/omap_l3_noc.c 		l3->l3_base[i] = devm_ioremap_resource(&pdev->dev, res);
res               217 drivers/bus/omap_l3_smx.c 	struct resource *res;
res               226 drivers/bus/omap_l3_smx.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               227 drivers/bus/omap_l3_smx.c 	if (!res) {
res               232 drivers/bus/omap_l3_smx.c 	l3->rt = ioremap(res->start, resource_size(res));
res               297 drivers/bus/qcom-ebi2.c 	struct resource *res;
res               328 drivers/bus/qcom-ebi2.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               329 drivers/bus/qcom-ebi2.c 	ebi2_base = devm_ioremap_resource(dev, res);
res               335 drivers/bus/qcom-ebi2.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res               336 drivers/bus/qcom-ebi2.c 	ebi2_xmem = devm_ioremap_resource(dev, res);
res               209 drivers/bus/tegra-gmi.c 	struct resource *res;
res               218 drivers/bus/tegra-gmi.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               219 drivers/bus/tegra-gmi.c 	gmi->base = devm_ioremap_resource(dev, res);
res               650 drivers/bus/ti-sysc.c static void sysc_check_quirk_16bit(struct sysc *ddata, struct resource *res)
res               652 drivers/bus/ti-sysc.c 	if (resource_size(res) == 8)
res               663 drivers/bus/ti-sysc.c 	struct resource *res;
res               676 drivers/bus/ti-sysc.c 	res = platform_get_resource_byname(to_platform_device(ddata->dev),
res               678 drivers/bus/ti-sysc.c 	if (!res) {
res               684 drivers/bus/ti-sysc.c 	ddata->offsets[reg] = res->start - ddata->module_pa;
res               686 drivers/bus/ti-sysc.c 		sysc_check_quirk_16bit(ddata, res);
res                77 drivers/bus/vexpress-config.c static void vexpress_config_devres_release(struct device *dev, void *res)
res                80 drivers/bus/vexpress-config.c 	struct regmap *regmap = res;
res                89 drivers/bus/vexpress-config.c 	struct regmap **res;
res                98 drivers/bus/vexpress-config.c 	res = devres_alloc(vexpress_config_devres_release, sizeof(*res),
res               100 drivers/bus/vexpress-config.c 	if (!res)
res               105 drivers/bus/vexpress-config.c 		devres_free(res);
res               109 drivers/bus/vexpress-config.c 	*res = regmap;
res               110 drivers/bus/vexpress-config.c 	devres_add(dev, res);
res               189 drivers/char/bsr.c 		struct resource res;
res               198 drivers/char/bsr.c 		result = of_address_to_resource(bn, i, &res);
res               206 drivers/char/bsr.c 		cur->bsr_addr   = res.start;
res               207 drivers/char/bsr.c 		cur->bsr_len    = resource_size(&res);
res               959 drivers/char/hpet.c static acpi_status hpet_resources(struct acpi_resource *res, void *data)
res               967 drivers/char/hpet.c 	status = acpi_resource_to_address64(res, &addr);
res               979 drivers/char/hpet.c 	} else if (res->type == ACPI_RESOURCE_TYPE_FIXED_MEMORY32) {
res               982 drivers/char/hpet.c 		fixmem32 = &res->data.fixed_memory32;
res               992 drivers/char/hpet.c 	} else if (res->type == ACPI_RESOURCE_TYPE_EXTENDED_IRQ) {
res               996 drivers/char/hpet.c 		irqp = &res->data.extended_irq;
res                65 drivers/char/hw_random/atmel-rng.c 	struct resource *res;
res                72 drivers/char/hw_random/atmel-rng.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                73 drivers/char/hw_random/atmel-rng.c 	trng->base = devm_ioremap_resource(&pdev->dev, res);
res               543 drivers/char/hw_random/core.c static void devm_hwrng_release(struct device *dev, void *res)
res               545 drivers/char/hw_random/core.c 	hwrng_unregister(*(struct hwrng **)res);
res               548 drivers/char/hw_random/core.c static int devm_hwrng_match(struct device *dev, void *res, void *data)
res               550 drivers/char/hw_random/core.c 	struct hwrng **r = res;
res               112 drivers/char/hw_random/exynos-trng.c 	struct resource *res;
res               131 drivers/char/hw_random/exynos-trng.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               132 drivers/char/hw_random/exynos-trng.c 	trng->mem = devm_ioremap_resource(&pdev->dev, res);
res                76 drivers/char/hw_random/hisi-rng.c 	struct resource *res;
res                85 drivers/char/hw_random/hisi-rng.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                86 drivers/char/hw_random/hisi-rng.c 	rng->base = devm_ioremap_resource(&pdev->dev, res);
res               184 drivers/char/hw_random/iproc-rng200.c 	struct resource *res;
res               193 drivers/char/hw_random/iproc-rng200.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               194 drivers/char/hw_random/iproc-rng200.c 	if (!res) {
res               199 drivers/char/hw_random/iproc-rng200.c 	priv->base = devm_ioremap_resource(dev, res);
res                45 drivers/char/hw_random/meson-rng.c 	struct resource *res;
res                54 drivers/char/hw_random/meson-rng.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                55 drivers/char/hw_random/meson-rng.c 	data->base = devm_ioremap_resource(dev, res);
res               108 drivers/char/hw_random/mtk-rng.c 	struct resource *res;
res               112 drivers/char/hw_random/mtk-rng.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               113 drivers/char/hw_random/mtk-rng.c 	if (!res) {
res               138 drivers/char/hw_random/mtk-rng.c 	priv->base = devm_ioremap_resource(&pdev->dev, res);
res                55 drivers/char/hw_random/nomadik-rng.c 	base = devm_ioremap(&dev->dev, dev->res.start,
res                56 drivers/char/hw_random/nomadik-rng.c 			    resource_size(&dev->res));
res               442 drivers/char/hw_random/omap-rng.c 	struct resource *res;
res               459 drivers/char/hw_random/omap-rng.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               460 drivers/char/hw_random/omap-rng.c 	priv->base = devm_ioremap_resource(dev, res);
res                89 drivers/char/hw_random/pasemi-rng.c 	struct resource *res;
res                91 drivers/char/hw_random/pasemi-rng.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                92 drivers/char/hw_random/pasemi-rng.c 	rng_regs = devm_ioremap_resource(&pdev->dev, res);
res                73 drivers/char/hw_random/pic32-rng.c 	struct resource *res;
res                81 drivers/char/hw_random/pic32-rng.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                82 drivers/char/hw_random/pic32-rng.c 	priv->base = devm_ioremap_resource(&pdev->dev, res);
res                75 drivers/char/hw_random/st-rng.c 	struct resource *res;
res                84 drivers/char/hw_random/st-rng.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                85 drivers/char/hw_random/st-rng.c 	base = devm_ioremap_resource(&pdev->dev, res);
res               118 drivers/char/hw_random/stm32-rng.c 	struct resource res;
res               125 drivers/char/hw_random/stm32-rng.c 	err = of_address_to_resource(np, 0, &res);
res               129 drivers/char/hw_random/stm32-rng.c 	priv->base = devm_ioremap_resource(dev, &res);
res               107 drivers/char/hw_random/timeriomem-rng.c 	struct resource *res;
res               116 drivers/char/hw_random/timeriomem-rng.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               117 drivers/char/hw_random/timeriomem-rng.c 	if (!res)
res               120 drivers/char/hw_random/timeriomem-rng.c 	if (res->start % 4 != 0 || resource_size(res) < 4) {
res               163 drivers/char/hw_random/timeriomem-rng.c 	priv->io_base = devm_ioremap_resource(&pdev->dev, res);
res               316 drivers/char/hw_random/xgene-rng.c 	struct resource *res;
res               327 drivers/char/hw_random/xgene-rng.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               328 drivers/char/hw_random/xgene-rng.c 	ctx->csr_base = devm_ioremap_resource(&pdev->dev, res);
res               447 drivers/char/ipmi/bt-bmc.c 		struct resource *res;
res               454 drivers/char/ipmi/bt-bmc.c 		res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               455 drivers/char/ipmi/bt-bmc.c 		base = devm_ioremap_resource(&pdev->dev, res);
res               107 drivers/char/ipmi/ipmi_si_platform.c 	struct resource *res, *res_second;
res               109 drivers/char/ipmi/ipmi_si_platform.c 	res = platform_get_resource(pdev, IORESOURCE_IO, 0);
res               110 drivers/char/ipmi/ipmi_si_platform.c 	if (res) {
res               113 drivers/char/ipmi/ipmi_si_platform.c 		res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               114 drivers/char/ipmi/ipmi_si_platform.c 		if (res)
res               117 drivers/char/ipmi/ipmi_si_platform.c 	if (!res) {
res               121 drivers/char/ipmi/ipmi_si_platform.c 	io->addr_data = res->start;
res               133 drivers/char/ipmi/ipmi_si_platform.c 	return res;
res               324 drivers/char/ipmi/ipmi_si_platform.c 	struct resource *res;
res               369 drivers/char/ipmi/ipmi_si_platform.c 	res = ipmi_get_info_from_resources(pdev, &io);
res               370 drivers/char/ipmi/ipmi_si_platform.c 	if (!res) {
res               394 drivers/char/ipmi/ipmi_si_platform.c 		 res, io.regsize, io.regspacing, io.irq);
res                37 drivers/char/ps3flash.c 	u64 res = ps3stor_read_write_sectors(dev, dev->bounce_lpar,
res                40 drivers/char/ps3flash.c 	if (res) {
res                42 drivers/char/ps3flash.c 			__LINE__, write ? "write" : "read", res);
res                51 drivers/char/ps3flash.c 	int res;
res                56 drivers/char/ps3flash.c 	res = ps3flash_read_write_sectors(dev, priv->tag, 1);
res                57 drivers/char/ps3flash.c 	if (res)
res                58 drivers/char/ps3flash.c 		return res;
res                67 drivers/char/ps3flash.c 	int res;
res                72 drivers/char/ps3flash.c 	res = ps3flash_writeback(dev);
res                73 drivers/char/ps3flash.c 	if (res)
res                74 drivers/char/ps3flash.c 		return res;
res                78 drivers/char/ps3flash.c 	res = ps3flash_read_write_sectors(dev, start_sector, 0);
res                79 drivers/char/ps3flash.c 	if (res)
res                80 drivers/char/ps3flash.c 		return res;
res                99 drivers/char/ps3flash.c 	int res;
res               128 drivers/char/ps3flash.c 		res = ps3flash_fetch(dev, sector);
res               129 drivers/char/ps3flash.c 		if (res)
res               137 drivers/char/ps3flash.c 				res = -EFAULT;
res               159 drivers/char/ps3flash.c 	return res;
res               168 drivers/char/ps3flash.c 	int res = 0;
res               198 drivers/char/ps3flash.c 			res = ps3flash_fetch(dev, sector);
res               200 drivers/char/ps3flash.c 			res = ps3flash_writeback(dev);
res               201 drivers/char/ps3flash.c 		if (res)
res               209 drivers/char/ps3flash.c 				res = -EFAULT;
res               234 drivers/char/ps3flash.c 	return res;
res               257 drivers/char/ps3flash.c 	ssize_t res;
res               260 drivers/char/ps3flash.c 	res = ps3flash_write(NULL, buf, count, &pos);
res               261 drivers/char/ps3flash.c 	if (res < 0)
res               262 drivers/char/ps3flash.c 		return res;
res               269 drivers/char/ps3flash.c 	return res;
res               290 drivers/char/ps3flash.c 	int res;
res               293 drivers/char/ps3flash.c 	res = lv1_storage_get_async_status(dev->sbd.dev_id, &tag, &status);
res               300 drivers/char/ps3flash.c 	if (res) {
res               302 drivers/char/ps3flash.c 			__func__, __LINE__, res, status);
res               198 drivers/char/tpm/tpm-chip.c 	struct tpm_chip *chip, *res = NULL;
res               209 drivers/char/tpm/tpm-chip.c 			res = chip;
res               216 drivers/char/tpm/tpm-chip.c 	return res;
res               338 drivers/char/tpm/tpm_crb.c 	struct arm_smccc_res res;
res               340 drivers/char/tpm/tpm_crb.c 	arm_smccc_smc(func_id, 0, 0, 0, 0, 0, 0, 0, &res);
res               341 drivers/char/tpm/tpm_crb.c 	if (res.a0 != 0) {
res               344 drivers/char/tpm/tpm_crb.c 			res.a0);
res               439 drivers/char/tpm/tpm_crb.c 	struct resource *res = &(win.res);
res               441 drivers/char/tpm/tpm_crb.c 	if (acpi_dev_resource_memory(ares, res) ||
res               443 drivers/char/tpm/tpm_crb.c 		*io_res = *res;
res               491 drivers/char/tpm/tpm_i2c_nuvoton.c static int get_vid(struct i2c_client *client, u32 *res)
res               521 drivers/char/tpm/tpm_i2c_nuvoton.c 	*res = temp;
res               227 drivers/char/tpm/tpm_ppi.c 	u64 req, res;
res               255 drivers/char/tpm/tpm_ppi.c 	res = ret_obj[2].integer.value;
res               257 drivers/char/tpm/tpm_ppi.c 		if (res == 0)
res               260 drivers/char/tpm/tpm_ppi.c 		else if (res == 0xFFFFFFF0)
res               263 drivers/char/tpm/tpm_ppi.c 		else if (res == 0xFFFFFFF1)
res               266 drivers/char/tpm/tpm_ppi.c 		else if (res >= 1 && res <= 0x00000FFF)
res               268 drivers/char/tpm/tpm_ppi.c 					   req, res, "Corresponding TPM error");
res               271 drivers/char/tpm/tpm_ppi.c 					   req, res, "Error");
res                34 drivers/char/tpm/tpm_tis.c 	struct resource res;
res               203 drivers/char/tpm/tpm_tis.c 	phy->iobase = devm_ioremap_resource(dev, &tpm_info->res);
res               223 drivers/char/tpm/tpm_tis.c 	struct resource *res;
res               225 drivers/char/tpm/tpm_tis.c 	res = pnp_get_resource(pnp_dev, IORESOURCE_MEM, 0);
res               226 drivers/char/tpm/tpm_tis.c 	if (!res)
res               228 drivers/char/tpm/tpm_tis.c 	tpm_info.res = *res;
res               280 drivers/char/tpm/tpm_tis.c 	struct resource *res;
res               282 drivers/char/tpm/tpm_tis.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               283 drivers/char/tpm/tpm_tis.c 	if (res == NULL) {
res               287 drivers/char/tpm/tpm_tis.c 	tpm_info.res = *res;
res               749 drivers/char/xilinx_hwicap/xilinx_hwicap.c 	struct resource res;
res               756 drivers/char/xilinx_hwicap/xilinx_hwicap.c 	rc = of_address_to_resource(op->dev.of_node, 0, &res);
res               780 drivers/char/xilinx_hwicap/xilinx_hwicap.c 	return hwicap_setup(&op->dev, id ? *id : -1, &res, config,
res               795 drivers/char/xilinx_hwicap/xilinx_hwicap.c 	struct resource *res;
res               803 drivers/char/xilinx_hwicap/xilinx_hwicap.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               804 drivers/char/xilinx_hwicap/xilinx_hwicap.c 	if (!res)
res               824 drivers/char/xilinx_hwicap/xilinx_hwicap.c 	return hwicap_setup(&pdev->dev, pdev->id, res,
res               119 drivers/char/xillybus/xillybus_of.c 	struct resource *res;
res               132 drivers/char/xillybus/xillybus_of.c 	res = platform_get_resource(op, IORESOURCE_MEM, 0);
res               133 drivers/char/xillybus/xillybus_of.c 	endpoint->registers = devm_ioremap_resource(dev, res);
res                46 drivers/clk/actions/owl-common.c 	struct resource *res;
res                48 drivers/clk/actions/owl-common.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                49 drivers/clk/actions/owl-common.c 	base = devm_ioremap_resource(&pdev->dev, res);
res                22 drivers/clk/bcm/clk-bcm2835-aux.c 	struct resource *res;
res                30 drivers/clk/bcm/clk-bcm2835-aux.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                31 drivers/clk/bcm/clk-bcm2835-aux.c 	reg = devm_ioremap_resource(dev, res);
res              2195 drivers/clk/bcm/clk-bcm2835.c 	struct resource *res;
res              2214 drivers/clk/bcm/clk-bcm2835.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              2215 drivers/clk/bcm/clk-bcm2835.c 	cprman->regs = devm_ioremap_resource(dev, res);
res               804 drivers/clk/bcm/clk-kona-setup.c 	struct resource res = { 0 };
res               809 drivers/clk/bcm/clk-kona-setup.c 	ret = of_address_to_resource(node, 0, &res);
res               816 drivers/clk/bcm/clk-kona-setup.c 	range = resource_size(&res);
res               830 drivers/clk/bcm/clk-kona-setup.c 	ccu->base = ioremap(res.start, ccu->range);
res               544 drivers/clk/clk-axm5516.c 	struct resource *res;
res               550 drivers/clk/clk-axm5516.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               551 drivers/clk/clk-axm5516.c 	base = devm_ioremap_resource(dev, res);
res               173 drivers/clk/clk-cdce706.c 			u64 res = (u64)parent_rate * hwd->mul;
res               175 drivers/clk/clk-cdce706.c 			do_div(res, hwd->div);
res               176 drivers/clk/clk-cdce706.c 			return res;
res               190 drivers/clk/clk-cdce706.c 	u64 res;
res               206 drivers/clk/clk-cdce706.c 	res = (u64)*parent_rate * hwd->mul;
res               207 drivers/clk/clk-cdce706.c 	do_div(res, hwd->div);
res               208 drivers/clk/clk-cdce706.c 	return res;
res                 7 drivers/clk/clk-devres.c static void devm_clk_release(struct device *dev, void *res)
res                 9 drivers/clk/clk-devres.c 	clk_put(*(struct clk **)res);
res                48 drivers/clk/clk-devres.c static void devm_clk_bulk_release(struct device *dev, void *res)
res                50 drivers/clk/clk-devres.c 	struct clk_bulk_devres *devres = res;
res               119 drivers/clk/clk-devres.c static int devm_clk_match(struct device *dev, void *res, void *data)
res               121 drivers/clk/clk-devres.c 	struct clk **c = res;
res               279 drivers/clk/clk-gemini.c 	struct resource *res;
res               289 drivers/clk/clk-gemini.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               290 drivers/clk/clk-gemini.c 	base = devm_ioremap_resource(dev, res);
res               563 drivers/clk/clk-milbeaut.c 	struct resource *res;
res               569 drivers/clk/clk-milbeaut.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               570 drivers/clk/clk-milbeaut.c 	base = devm_ioremap_resource(dev, res);
res               545 drivers/clk/clk-npcm7xx.c 	struct resource res;
res               550 drivers/clk/clk-npcm7xx.c 	ret = of_address_to_resource(clk_np, 0, &res);
res               557 drivers/clk/clk-npcm7xx.c 	clk_base = ioremap(res.start, resource_size(&res));
res              1011 drivers/clk/clk-qoriq.c 	struct resource res;
res              1016 drivers/clk/clk-qoriq.c 	if (of_address_to_resource(np, 0, &res))
res              1019 drivers/clk/clk-qoriq.c 	idx = (res.start & 0xf0) >> 5;
res              1299 drivers/clk/clk-qoriq.c 	struct resource res;
res              1302 drivers/clk/clk-qoriq.c 	if (of_address_to_resource(np, 0, &res))
res              1305 drivers/clk/clk-qoriq.c 	if ((res.start & 0xfff) == 0xc00) {
res              1312 drivers/clk/clk-qoriq.c 		idx = (res.start & 0xf0) >> 5;
res               171 drivers/clk/clk-si514.c 	u8 res;
res               181 drivers/clk/clk-si514.c 		res = 1;
res               186 drivers/clk/clk-si514.c 			++res;
res               189 drivers/clk/clk-si514.c 		settings->ls_div_bits = res;
res               190 drivers/clk/clk-si514.c 		ls_freq = frequency << res;
res               355 drivers/clk/clk-si5341.c 	u64 res;
res               376 drivers/clk/clk-si5341.c 	res = m_num;
res               377 drivers/clk/clk-si5341.c 	while (res & 0xffff00000000ULL) {
res               379 drivers/clk/clk-si5341.c 		res >>= 1;
res               381 drivers/clk/clk-si5341.c 	res *= parent_rate;
res               382 drivers/clk/clk-si5341.c 	do_div(res, (m_den >> shift));
res               385 drivers/clk/clk-si5341.c 	data->freq_vco = res;
res               388 drivers/clk/clk-si5341.c 	do_div(res, 1000);
res               390 drivers/clk/clk-si5341.c 	return (unsigned long)res;
res               907 drivers/clk/clk-si5341.c 	int res;
res               910 drivers/clk/clk-si5341.c 		res = regmap_write(data->regmap,
res               912 drivers/clk/clk-si5341.c 		if (res < 0) {
res               916 drivers/clk/clk-si5341.c 			return res;
res               933 drivers/clk/clk-si5341.c 	int res;
res               937 drivers/clk/clk-si5341.c 	res = regmap_read(data->regmap, SI5341_DEVICE_REV, &revision);
res               938 drivers/clk/clk-si5341.c 	if (res < 0)
res               939 drivers/clk/clk-si5341.c 		return res;
res               942 drivers/clk/clk-si5341.c 	res = regmap_write(data->regmap, 0xB24, revision < 2 ? 0xD8 : 0xC0);
res               943 drivers/clk/clk-si5341.c 	if (res < 0)
res               944 drivers/clk/clk-si5341.c 		return res;
res               945 drivers/clk/clk-si5341.c 	res = si5341_write_multiple(data,
res               947 drivers/clk/clk-si5341.c 	if (res < 0)
res               948 drivers/clk/clk-si5341.c 		return res;
res               959 drivers/clk/clk-si5341.c 	int res;
res               962 drivers/clk/clk-si5341.c 	res = regmap_read(data->regmap, SI5341_DEVICE_REV, &revision);
res               963 drivers/clk/clk-si5341.c 	if (res < 0)
res               964 drivers/clk/clk-si5341.c 		return res;
res               968 drivers/clk/clk-si5341.c 	res = regmap_write(data->regmap, SI5341_SOFT_RST, 0x01);
res               969 drivers/clk/clk-si5341.c 	if (res < 0)
res               970 drivers/clk/clk-si5341.c 		return res;
res               973 drivers/clk/clk-si5341.c 	res = regmap_write(data->regmap, 0xB24, revision < 2 ? 0xDB : 0xC3);
res               974 drivers/clk/clk-si5341.c 	if (res < 0)
res               975 drivers/clk/clk-si5341.c 		return res;
res               976 drivers/clk/clk-si5341.c 	res = regmap_write(data->regmap, 0x0B25, 0x02);
res               977 drivers/clk/clk-si5341.c 	if (res < 0)
res               978 drivers/clk/clk-si5341.c 		return res;
res               226 drivers/clk/clk-si544.c 	u8 res;
res               235 drivers/clk/clk-si544.c 		res = 1;
res               240 drivers/clk/clk-si544.c 			++res;
res               243 drivers/clk/clk-si544.c 		settings->ls_div_bits = res;
res               244 drivers/clk/clk-si544.c 		ls_freq = frequency << res;
res               382 drivers/clk/clk-xgene.c 	struct resource res;
res               393 drivers/clk/clk-xgene.c 	rc = of_address_to_resource(np, 0, &res);
res               670 drivers/clk/clk-xgene.c 	struct resource res;
res               684 drivers/clk/clk-xgene.c 		rc = of_address_to_resource(np, i, &res);
res               697 drivers/clk/clk-xgene.c 		if (strcmp(res.name, "div-reg") == 0)
res              3961 drivers/clk/clk.c static void devm_clk_release(struct device *dev, void *res)
res              3963 drivers/clk/clk.c 	clk_unregister(*(struct clk **)res);
res              3966 drivers/clk/clk.c static void devm_clk_hw_release(struct device *dev, void *res)
res              3968 drivers/clk/clk.c 	clk_hw_unregister(*(struct clk_hw **)res);
res              4032 drivers/clk/clk.c static int devm_clk_match(struct device *dev, void *res, void *data)
res              4034 drivers/clk/clk.c 	struct clk *c = res;
res              4040 drivers/clk/clk.c static int devm_clk_hw_match(struct device *dev, void *res, void *data)
res              4042 drivers/clk/clk.c 	struct clk_hw *hw = res;
res              4376 drivers/clk/clk.c static void devm_of_clk_release_provider(struct device *dev, void *res)
res              4378 drivers/clk/clk.c 	of_clk_del_provider(*(struct device_node **)res);
res              4461 drivers/clk/clk.c static int devm_clk_provider_match(struct device *dev, void *res, void *data)
res              4463 drivers/clk/clk.c 	struct device_node **np = res;
res               377 drivers/clk/clkdev.c static void devm_clkdev_release(struct device *dev, void *res)
res               379 drivers/clk/clkdev.c 	clkdev_drop(*(struct clk_lookup **)res);
res               382 drivers/clk/clkdev.c static int devm_clk_match_clkdev(struct device *dev, void *res, void *data)
res               384 drivers/clk/clkdev.c 	struct clk_lookup **l = res;
res               913 drivers/clk/davinci/pll.c 	struct resource *res;
res               933 drivers/clk/davinci/pll.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               934 drivers/clk/davinci/pll.c 	base = devm_ioremap_resource(dev, res);
res               534 drivers/clk/davinci/psc.c 	struct resource *res;
res               549 drivers/clk/davinci/psc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               550 drivers/clk/davinci/psc.c 	base = devm_ioremap_resource(dev, res);
res               127 drivers/clk/hisilicon/clk-hi3660-stub.c 	struct resource *res;
res               142 drivers/clk/hisilicon/clk-hi3660-stub.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               143 drivers/clk/hisilicon/clk-hi3660-stub.c 	if (!res)
res               145 drivers/clk/hisilicon/clk-hi3660-stub.c 	freq_reg = devm_ioremap(dev, res->start, resource_size(res));
res                30 drivers/clk/hisilicon/clk.c 	struct resource *res;
res                37 drivers/clk/hisilicon/clk.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                38 drivers/clk/hisilicon/clk.c 	if (!res)
res                41 drivers/clk/hisilicon/clk.c 				res->start, resource_size(res));
res                93 drivers/clk/hisilicon/reset.c 	struct resource *res;
res                99 drivers/clk/hisilicon/reset.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               100 drivers/clk/hisilicon/reset.c 	rstc->membase = devm_ioremap_resource(&pdev->dev, res);
res               167 drivers/clk/imx/clk-imx8qxp-lpcg.c 	struct resource *res;
res               176 drivers/clk/imx/clk-imx8qxp-lpcg.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               177 drivers/clk/imx/clk-imx8qxp-lpcg.c 	if (!res)
res               179 drivers/clk/imx/clk-imx8qxp-lpcg.c 	base = devm_ioremap(dev, res->start, resource_size(res));
res               192 drivers/clk/imx/clk-scu.c 	struct arm_smccc_res res;
res               202 drivers/clk/imx/clk-scu.c 		      cluster_id, rate, 0, 0, 0, 0, &res);
res               671 drivers/clk/mediatek/clk-mt2701.c 	struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               673 drivers/clk/mediatek/clk-mt2701.c 	base = devm_ioremap_resource(&pdev->dev, res);
res               892 drivers/clk/mediatek/clk-mt2701.c 	struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               894 drivers/clk/mediatek/clk-mt2701.c 	base = devm_ioremap_resource(&pdev->dev, res);
res              1309 drivers/clk/mediatek/clk-mt2712.c 	struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1311 drivers/clk/mediatek/clk-mt2712.c 	base = devm_ioremap_resource(&pdev->dev, res);
res              1397 drivers/clk/mediatek/clk-mt2712.c 	struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1399 drivers/clk/mediatek/clk-mt2712.c 	base = devm_ioremap_resource(&pdev->dev, res);
res              1228 drivers/clk/mediatek/clk-mt6779.c 	struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1233 drivers/clk/mediatek/clk-mt6779.c 	base = devm_ioremap_resource(&pdev->dev, res);
res               388 drivers/clk/mediatek/clk-mt6797.c 	struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               390 drivers/clk/mediatek/clk-mt6797.c 	base = devm_ioremap_resource(&pdev->dev, res);
res               617 drivers/clk/mediatek/clk-mt7622.c 	struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               619 drivers/clk/mediatek/clk-mt7622.c 	base = devm_ioremap_resource(&pdev->dev, res);
res               698 drivers/clk/mediatek/clk-mt7622.c 	struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               700 drivers/clk/mediatek/clk-mt7622.c 	base = devm_ioremap_resource(&pdev->dev, res);
res               577 drivers/clk/mediatek/clk-mt7629.c 	struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               579 drivers/clk/mediatek/clk-mt7629.c 	base = devm_ioremap_resource(&pdev->dev, res);
res               629 drivers/clk/mediatek/clk-mt7629.c 	struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               631 drivers/clk/mediatek/clk-mt7629.c 	base = devm_ioremap_resource(&pdev->dev, res);
res              1192 drivers/clk/mediatek/clk-mt8183.c 	struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1196 drivers/clk/mediatek/clk-mt8183.c 	base = devm_ioremap_resource(&pdev->dev, res);
res              1265 drivers/clk/mediatek/clk-mt8183.c 	struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1267 drivers/clk/mediatek/clk-mt8183.c 	base = devm_ioremap_resource(&pdev->dev, res);
res              1019 drivers/clk/meson/axg-audio.c 	struct resource *res;
res              1028 drivers/clk/meson/axg-audio.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1029 drivers/clk/meson/axg-audio.c 	regs = devm_ioremap_resource(dev, res);
res               726 drivers/clk/mvebu/armada-37xx-periph.c 	struct resource *res;
res               747 drivers/clk/mvebu/armada-37xx-periph.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               748 drivers/clk/mvebu/armada-37xx-periph.c 	driver_data->reg = devm_ioremap_resource(dev, res);
res                87 drivers/clk/mvebu/armada-37xx-tbg.c 	struct resource *res;
res               108 drivers/clk/mvebu/armada-37xx-tbg.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               109 drivers/clk/mvebu/armada-37xx-tbg.c 	reg = devm_ioremap_resource(dev, res);
res                41 drivers/clk/qcom/a53-pll.c 	struct resource *res;
res                51 drivers/clk/qcom/a53-pll.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                52 drivers/clk/qcom/a53-pll.c 	base = devm_ioremap_resource(dev, res);
res                76 drivers/clk/qcom/common.c 	struct resource *res;
res                79 drivers/clk/qcom/common.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                80 drivers/clk/qcom/common.c 	base = devm_ioremap_resource(dev, res);
res               316 drivers/clk/qcom/common.c 	struct resource *res;
res               319 drivers/clk/qcom/common.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, index);
res               320 drivers/clk/qcom/common.c 	base = devm_ioremap_resource(&pdev->dev, res);
res                50 drivers/clk/qcom/hfpll.c 	struct resource *res;
res                65 drivers/clk/qcom/hfpll.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                66 drivers/clk/qcom/hfpll.c 	base = devm_ioremap_resource(dev, res);
res                36 drivers/clk/qcom/kpss-xcc.c 	struct resource *res;
res                44 drivers/clk/qcom/kpss-xcc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                45 drivers/clk/qcom/kpss-xcc.c 	base = devm_ioremap_resource(&pdev->dev, res);
res                34 drivers/clk/rockchip/clk-ddr.c 	struct arm_smccc_res res;
res                39 drivers/clk/rockchip/clk-ddr.c 		      0, 0, 0, 0, &res);
res                42 drivers/clk/rockchip/clk-ddr.c 	return res.a0;
res                49 drivers/clk/rockchip/clk-ddr.c 	struct arm_smccc_res res;
res                53 drivers/clk/rockchip/clk-ddr.c 		      0, 0, 0, 0, &res);
res                55 drivers/clk/rockchip/clk-ddr.c 	return res.a0;
res                62 drivers/clk/rockchip/clk-ddr.c 	struct arm_smccc_res res;
res                66 drivers/clk/rockchip/clk-ddr.c 		      0, 0, 0, 0, &res);
res                68 drivers/clk/rockchip/clk-ddr.c 	return res.a0;
res               132 drivers/clk/samsung/clk-exynos-audss.c 	struct resource *res;
res               140 drivers/clk/samsung/clk-exynos-audss.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               141 drivers/clk/samsung/clk-exynos-audss.c 	reg_base = devm_ioremap_resource(dev, res);
res               113 drivers/clk/samsung/clk-exynos4412-isp.c 	struct resource *res;
res               116 drivers/clk/samsung/clk-exynos4412-isp.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               117 drivers/clk/samsung/clk-exynos4412-isp.c 	reg_base = devm_ioremap_resource(dev, res);
res              5560 drivers/clk/samsung/clk-exynos5433.c 	struct resource *res;
res              5573 drivers/clk/samsung/clk-exynos5433.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              5574 drivers/clk/samsung/clk-exynos5433.c 	reg_base = devm_ioremap_resource(dev, res);
res                66 drivers/clk/samsung/clk-s5pv210-audss.c 	struct resource *res;
res                73 drivers/clk/samsung/clk-s5pv210-audss.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                74 drivers/clk/samsung/clk-s5pv210-audss.c 	reg_base = devm_ioremap_resource(&pdev->dev, res);
res               585 drivers/clk/sifive/fu540-prci.c 	struct resource *res;
res               593 drivers/clk/sifive/fu540-prci.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               594 drivers/clk/sifive/fu540-prci.c 	pd->va = devm_ioremap_resource(dev, res);
res               279 drivers/clk/socfpga/clk-s10.c 	struct resource *res;
res               282 drivers/clk/socfpga/clk-s10.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               283 drivers/clk/socfpga/clk-s10.c 	base = devm_ioremap_resource(dev, res);
res                45 drivers/clk/sprd/common.c 	struct resource *res;
res                54 drivers/clk/sprd/common.c 		res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                55 drivers/clk/sprd/common.c 		base = devm_ioremap_resource(&pdev->dev, res);
res               565 drivers/clk/st/clkgen-fsyn.c 	uint64_t res;
res               577 drivers/clk/st/clkgen-fsyn.c 	res = (P20 * (32 + fs->mdiv) + 32 * fs->pe) * s * ns;
res               578 drivers/clk/st/clkgen-fsyn.c 	*rate = (unsigned long)div64_u64(input * P20 * 32, res);
res               940 drivers/clk/sunxi-ng/ccu-sun50i-a64.c 	struct resource *res;
res               945 drivers/clk/sunxi-ng/ccu-sun50i-a64.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               946 drivers/clk/sunxi-ng/ccu-sun50i-a64.c 	reg = devm_ioremap_resource(&pdev->dev, res);
res              1177 drivers/clk/sunxi-ng/ccu-sun50i-h6.c 	struct resource *res;
res              1182 drivers/clk/sunxi-ng/ccu-sun50i-h6.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1183 drivers/clk/sunxi-ng/ccu-sun50i-h6.c 	reg = devm_ioremap_resource(&pdev->dev, res);
res               890 drivers/clk/sunxi-ng/ccu-sun8i-a83t.c 	struct resource *res;
res               894 drivers/clk/sunxi-ng/ccu-sun8i-a83t.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               895 drivers/clk/sunxi-ng/ccu-sun8i-a83t.c 	reg = devm_ioremap_resource(&pdev->dev, res);
res               254 drivers/clk/sunxi-ng/ccu-sun8i-de2.c 	struct resource *res;
res               265 drivers/clk/sunxi-ng/ccu-sun8i-de2.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               266 drivers/clk/sunxi-ng/ccu-sun8i-de2.c 	reg = devm_ioremap_resource(&pdev->dev, res);
res              1299 drivers/clk/sunxi-ng/ccu-sun8i-r40.c 	struct resource *res;
res              1305 drivers/clk/sunxi-ng/ccu-sun8i-r40.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1306 drivers/clk/sunxi-ng/ccu-sun8i-r40.c 	reg = devm_ioremap_resource(&pdev->dev, res);
res               206 drivers/clk/sunxi-ng/ccu-sun9i-a80-de.c 	struct resource *res;
res               212 drivers/clk/sunxi-ng/ccu-sun9i-a80-de.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               213 drivers/clk/sunxi-ng/ccu-sun9i-a80-de.c 	reg = devm_ioremap_resource(&pdev->dev, res);
res                95 drivers/clk/sunxi-ng/ccu-sun9i-a80-usb.c 	struct resource *res;
res               100 drivers/clk/sunxi-ng/ccu-sun9i-a80-usb.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               101 drivers/clk/sunxi-ng/ccu-sun9i-a80-usb.c 	reg = devm_ioremap_resource(&pdev->dev, res);
res              1216 drivers/clk/sunxi-ng/ccu-sun9i-a80.c 	struct resource *res;
res              1220 drivers/clk/sunxi-ng/ccu-sun9i-a80.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1221 drivers/clk/sunxi-ng/ccu-sun9i-a80.c 	reg = devm_ioremap_resource(&pdev->dev, res);
res                25 drivers/clk/sunxi/clk-simple-gates.c 	struct resource res;
res                84 drivers/clk/sunxi/clk-simple-gates.c 	of_address_to_resource(node, 0, &res);
res                85 drivers/clk/sunxi/clk-simple-gates.c 	release_mem_region(res.start, resource_size(&res));
res               109 drivers/clk/sunxi/clk-sun4i-display.c 	struct resource res;
res               218 drivers/clk/sunxi/clk-sun4i-display.c 	of_address_to_resource(node, 0, &res);
res               219 drivers/clk/sunxi/clk-sun4i-display.c 	release_mem_region(res.start, resource_size(&res));
res                26 drivers/clk/sunxi/clk-sun4i-pll3.c 	struct resource res;
res                85 drivers/clk/sunxi/clk-sun4i-pll3.c 	of_address_to_resource(node, 0, &res);
res                86 drivers/clk/sunxi/clk-sun4i-pll3.c 	release_mem_region(res.start, resource_size(&res));
res               230 drivers/clk/sunxi/clk-sun4i-tcon-ch1.c 	struct resource res;
res               283 drivers/clk/sunxi/clk-sun4i-tcon-ch1.c 	of_address_to_resource(node, 0, &res);
res               284 drivers/clk/sunxi/clk-sun4i-tcon-ch1.c 	release_mem_region(res.start, resource_size(&res));
res                57 drivers/clk/sunxi/clk-sun8i-apb0.c 	struct resource res;
res                81 drivers/clk/sunxi/clk-sun8i-apb0.c 	of_address_to_resource(node, 0, &res);
res                82 drivers/clk/sunxi/clk-sun8i-apb0.c 	release_mem_region(res.start, resource_size(&res));
res                28 drivers/clk/sunxi/clk-sun8i-bus-gates.c 	struct resource res;
res               102 drivers/clk/sunxi/clk-sun8i-bus-gates.c 	of_address_to_resource(node, 0, &res);
res               103 drivers/clk/sunxi/clk-sun8i-bus-gates.c 	release_mem_region(res.start, resource_size(&res));
res                29 drivers/clk/sunxi/clk-sun8i-mbus.c 	struct resource res;
res               104 drivers/clk/sunxi/clk-sun8i-mbus.c 	of_address_to_resource(node, 0, &res);
res               105 drivers/clk/sunxi/clk-sun8i-mbus.c 	release_mem_region(res.start, resource_size(&res));
res               187 drivers/clk/sunxi/clk-sun9i-cpus.c 	struct resource res;
res               236 drivers/clk/sunxi/clk-sun9i-cpus.c 	of_address_to_resource(node, 0, &res);
res               237 drivers/clk/sunxi/clk-sun9i-cpus.c 	release_mem_region(res.start, resource_size(&res));
res               882 drivers/clk/ti/adpll.c 	struct resource *res;
res               900 drivers/clk/ti/adpll.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               901 drivers/clk/ti/adpll.c 	if (!res)
res               903 drivers/clk/ti/adpll.c 	d->pa = res->start;
res               905 drivers/clk/ti/adpll.c 	d->iobase = devm_ioremap_resource(dev, res);
res               585 drivers/clk/zynq/clkc.c 	struct resource res;
res               593 drivers/clk/zynq/clkc.c 	if (of_address_to_resource(np, 0, &res)) {
res               601 drivers/clk/zynq/clkc.c 		zynq_clkc_base = (__force void __iomem *)slcr->data + res.start;
res              1415 drivers/clocksource/arm_arch_timer.c 	struct resource res;
res              1423 drivers/clocksource/arm_arch_timer.c 	if (of_address_to_resource(np, 0, &res))
res              1425 drivers/clocksource/arm_arch_timer.c 	timer_mem->cntctlbase = res.start;
res              1426 drivers/clocksource/arm_arch_timer.c 	timer_mem->size = resource_size(&res);
res              1451 drivers/clocksource/arm_arch_timer.c 		if (of_address_to_resource(frame_node, 0, &res)) {
res              1455 drivers/clocksource/arm_arch_timer.c 		frame->cntbase = res.start;
res              1456 drivers/clocksource/arm_arch_timer.c 		frame->size = resource_size(&res);
res               282 drivers/clocksource/em_sti.c 	struct resource *res;
res               298 drivers/clocksource/em_sti.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               299 drivers/clocksource/em_sti.c 	p->base = devm_ioremap_resource(&pdev->dev, res);
res                47 drivers/clocksource/mips-gic-timer.c 	int res;
res                57 drivers/clocksource/mips-gic-timer.c 	res = ((int)(gic_read_count() - cnt) >= 0) ? -ETIME : 0;
res                58 drivers/clocksource/mips-gic-timer.c 	return res;
res               368 drivers/clocksource/sh_mtu2.c 	struct resource *res;
res               370 drivers/clocksource/sh_mtu2.c 	res = platform_get_resource(mtu->pdev, IORESOURCE_MEM, 0);
res               371 drivers/clocksource/sh_mtu2.c 	if (!res) {
res               376 drivers/clocksource/sh_mtu2.c 	mtu->mapbase = ioremap_nocache(res->start, resource_size(res));
res               477 drivers/clocksource/sh_tmu.c 	struct resource *res;
res               479 drivers/clocksource/sh_tmu.c 	res = platform_get_resource(tmu->pdev, IORESOURCE_MEM, 0);
res               480 drivers/clocksource/sh_tmu.c 	if (!res) {
res               485 drivers/clocksource/sh_tmu.c 	tmu->mapbase = ioremap_nocache(res->start, resource_size(res));
res               246 drivers/clocksource/timer-armada-370-xp.c 	int res;
res               297 drivers/clocksource/timer-armada-370-xp.c 	res = clocksource_mmio_init(timer_base + TIMER0_VAL_OFF,
res               300 drivers/clocksource/timer-armada-370-xp.c 	if (res) {
res               302 drivers/clocksource/timer-armada-370-xp.c 		return res;
res               312 drivers/clocksource/timer-armada-370-xp.c 	res = request_percpu_irq(armada_370_xp_clkevt_irq,
res               317 drivers/clocksource/timer-armada-370-xp.c 	if (res) {
res               319 drivers/clocksource/timer-armada-370-xp.c 		return res;
res               322 drivers/clocksource/timer-armada-370-xp.c 	res = cpuhp_setup_state(CPUHP_AP_ARMADA_TIMER_STARTING,
res               326 drivers/clocksource/timer-armada-370-xp.c 	if (res) {
res               328 drivers/clocksource/timer-armada-370-xp.c 		return res;
res               156 drivers/clocksource/timer-qcom.c 	int res = 0;
res               168 drivers/clocksource/timer-qcom.c 		res = request_percpu_irq(irq, msm_timer_interrupt,
res               171 drivers/clocksource/timer-qcom.c 	if (res) {
res               175 drivers/clocksource/timer-qcom.c 		res = cpuhp_setup_state(CPUHP_AP_QCOM_TIMER_STARTING,
res               179 drivers/clocksource/timer-qcom.c 		if (res) {
res               187 drivers/clocksource/timer-qcom.c 	res = clocksource_register_hz(cs, dgt_hz);
res               188 drivers/clocksource/timer-qcom.c 	if (res)
res               194 drivers/clocksource/timer-qcom.c 	return res;
res               201 drivers/clocksource/timer-qcom.c 	struct resource res;
res               223 drivers/clocksource/timer-qcom.c 	ret = of_address_to_resource(np, 0, &res);
res               229 drivers/clocksource/timer-qcom.c 	cpu0_base = ioremap(res.start + percpu_offset, resource_size(&res));
res               120 drivers/clocksource/timer-zevio.c 	struct resource res;
res               145 drivers/clocksource/timer-zevio.c 	of_address_to_resource(node, 0, &res);
res               148 drivers/clocksource/timer-zevio.c 			(unsigned long long)res.start, node);
res               152 drivers/clocksource/timer-zevio.c 			(unsigned long long)res.start, node);
res              1480 drivers/counter/counter.c static void devm_counter_unreg(struct device *dev, void *res)
res              1482 drivers/counter/counter.c 	counter_unregister(*(struct counter_device **)res);
res              1522 drivers/counter/counter.c static int devm_counter_match(struct device *dev, void *res, void *data)
res              1524 drivers/counter/counter.c 	struct counter_device **r = res;
res               105 drivers/cpufreq/kirkwood-cpufreq.c 	struct resource *res;
res               110 drivers/cpufreq/kirkwood-cpufreq.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               111 drivers/cpufreq/kirkwood-cpufreq.c 	priv.base = devm_ioremap_resource(&pdev->dev, res);
res                29 drivers/cpufreq/mvebu-cpufreq.c 	struct resource res;
res                47 drivers/cpufreq/mvebu-cpufreq.c 	ret = of_address_to_resource(np, 1, &res);
res               129 drivers/cpufreq/pasemi-cpufreq.c 	struct resource res;
res               153 drivers/cpufreq/pasemi-cpufreq.c 	err = of_address_to_resource(dn, 0, &res);
res               157 drivers/cpufreq/pasemi-cpufreq.c 	sdcasr_mapbase = ioremap(res.start + SDCASR_OFFSET, 0x2000);
res               171 drivers/cpufreq/pasemi-cpufreq.c 	err = of_address_to_resource(dn, 0, &res);
res               175 drivers/cpufreq/pasemi-cpufreq.c 	sdcpwr_mapbase = ioremap(res.start, 0x1000);
res               886 drivers/cpufreq/powernow-k8.c 	int res;
res               919 drivers/cpufreq/powernow-k8.c 	res = transition_fid_vid(data, fid, vid);
res               920 drivers/cpufreq/powernow-k8.c 	cpufreq_freq_transition_end(policy, &freqs, res);
res               922 drivers/cpufreq/powernow-k8.c 	return res;
res               181 drivers/cpufreq/qcom-cpufreq-hw.c 	struct resource *res;
res               204 drivers/cpufreq/qcom-cpufreq-hw.c 	res = platform_get_resource(global_pdev, IORESOURCE_MEM, index);
res               205 drivers/cpufreq/qcom-cpufreq-hw.c 	if (!res)
res               208 drivers/cpufreq/qcom-cpufreq-hw.c 	base = devm_ioremap(dev, res->start, resource_size(res));
res                17 drivers/cpufreq/tango-cpufreq.c 	void *res;
res                34 drivers/cpufreq/tango-cpufreq.c 	res = platform_device_register_data(NULL, "cpufreq-dt", -1, NULL, 0);
res                36 drivers/cpufreq/tango-cpufreq.c 	return PTR_ERR_OR_ZERO(res);
res               190 drivers/cpufreq/tegra186-cpufreq.c 	struct resource *res;
res               208 drivers/cpufreq/tegra186-cpufreq.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               209 drivers/cpufreq/tegra186-cpufreq.c 	data->regs = devm_ioremap_resource(&pdev->dev, res);
res                40 drivers/cpuidle/cpuidle-clps711x.c 	struct resource *res;
res                42 drivers/cpuidle/cpuidle-clps711x.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                43 drivers/cpuidle/cpuidle-clps711x.c 	clps711x_halt = devm_ioremap_resource(&pdev->dev, res);
res                58 drivers/cpuidle/cpuidle-kirkwood.c 	struct resource *res;
res                60 drivers/cpuidle/cpuidle-kirkwood.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                61 drivers/cpuidle/cpuidle-kirkwood.c 	ddr_operation_base = devm_ioremap_resource(&pdev->dev, res);
res              1377 drivers/crypto/amcc/crypto4xx_core.c 	struct resource res;
res              1383 drivers/crypto/amcc/crypto4xx_core.c 	rc = of_address_to_resource(ofdev->dev.of_node, 0, &res);
res              3154 drivers/crypto/caam/caamalg_qi2.c 	struct split_key_sh_result *res = cbk_ctx;
res              3156 drivers/crypto/caam/caamalg_qi2.c 	dev_dbg(res->dev, "%s %d: err 0x%x\n", __func__, __LINE__, err);
res              3158 drivers/crypto/caam/caamalg_qi2.c 	res->err = err ? caam_qi2_strstatus(res->dev, err) : 0;
res              3159 drivers/crypto/caam/caamalg_qi2.c 	complete(&res->completion);
res                17 drivers/crypto/caam/key_gen.c 	struct split_key_result *res = context;
res                25 drivers/crypto/caam/key_gen.c 	res->err = ecode;
res                27 drivers/crypto/caam/key_gen.c 	complete(&res->completion);
res                92 drivers/crypto/ccp/sp-platform.c 		struct resource *res = &pdev->resource[i];
res                94 drivers/crypto/ccp/sp-platform.c 		if (resource_type(res) == IORESOURCE_IRQ)
res               198 drivers/crypto/chelsio/chcr_ipsec.c 	int res = 0;
res               255 drivers/crypto/chelsio/chcr_ipsec.c 		res = -ENOMEM;
res               266 drivers/crypto/chelsio/chcr_ipsec.c 	return res;
res               230 drivers/crypto/hisilicon/sec/sec_drv.c 	struct resource *res;
res               232 drivers/crypto/hisilicon/sec/sec_drv.c 	res = platform_get_resource(to_platform_device(dev),
res               235 drivers/crypto/hisilicon/sec/sec_drv.c 	if (!res) {
res               240 drivers/crypto/hisilicon/sec/sec_drv.c 	queue->regs = ioremap(res->start, resource_size(res));
res              1011 drivers/crypto/hisilicon/sec/sec_drv.c 	struct resource *res;
res              1015 drivers/crypto/hisilicon/sec/sec_drv.c 		res = platform_get_resource(pdev, IORESOURCE_MEM, i);
res              1017 drivers/crypto/hisilicon/sec/sec_drv.c 		if (!res) {
res              1022 drivers/crypto/hisilicon/sec/sec_drv.c 		info->regs[i] = devm_ioremap(info->dev, res->start,
res              1023 drivers/crypto/hisilicon/sec/sec_drv.c 					     resource_size(res));
res               500 drivers/crypto/img-hash.c 	int err = 0, res = 0;
res               505 drivers/crypto/img-hash.c 		res = ahash_enqueue_request(&hdev->queue, req);
res               509 drivers/crypto/img-hash.c 		return res;
res               520 drivers/crypto/img-hash.c 		return res;
res               542 drivers/crypto/img-hash.c 	return res;
res                79 drivers/crypto/marvell/cesa.c 	int res;
res                83 drivers/crypto/marvell/cesa.c 	res = ctx->ops->process(req, status);
res                85 drivers/crypto/marvell/cesa.c 	if (res == 0) {
res                88 drivers/crypto/marvell/cesa.c 	} else if (res == -EINPROGRESS) {
res                92 drivers/crypto/marvell/cesa.c 	return res;
res               105 drivers/crypto/marvell/cesa.c 		     int res)
res               109 drivers/crypto/marvell/cesa.c 	req->complete(req, res);
res               122 drivers/crypto/marvell/cesa.c 		int res;
res               138 drivers/crypto/marvell/cesa.c 		res = mv_cesa_int_process(engine, status & mask);
res               143 drivers/crypto/marvell/cesa.c 		if (res != -EINPROGRESS)
res               149 drivers/crypto/marvell/cesa.c 		if (res && res != -EINPROGRESS)
res               150 drivers/crypto/marvell/cesa.c 			mv_cesa_complete_req(ctx, req, res);
res               379 drivers/crypto/marvell/cesa.c 	struct resource *res;
res               401 drivers/crypto/marvell/cesa.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
res               403 drivers/crypto/marvell/cesa.c 	if (!res || resource_size(res) < cesa->sram_size)
res               406 drivers/crypto/marvell/cesa.c 	engine->sram = devm_ioremap_resource(cesa->dev, res);
res               410 drivers/crypto/marvell/cesa.c 	engine->sram_dma = dma_map_resource(cesa->dev, res->start,
res               440 drivers/crypto/marvell/cesa.c 	struct resource *res;
res               478 drivers/crypto/marvell/cesa.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "regs");
res               479 drivers/crypto/marvell/cesa.c 	cesa->regs = devm_ioremap_resource(dev, res);
res               126 drivers/crypto/marvell/tdma.c 	int res = 0;
res               163 drivers/crypto/marvell/tdma.c 			res = ctx->ops->process(req, current_status);
res               166 drivers/crypto/marvell/tdma.c 			if (res == 0)
res               174 drivers/crypto/marvell/tdma.c 		if (res || tdma->cur_dma == tdma_cur)
res               180 drivers/crypto/marvell/tdma.c 	if (res) {
res               186 drivers/crypto/marvell/tdma.c 	return res;
res               280 drivers/crypto/mediatek/mtk-aes.c 	struct mtk_desc *cmd = NULL, *res = NULL;
res               307 drivers/crypto/mediatek/mtk-aes.c 		res = ring->res_next;
res               308 drivers/crypto/mediatek/mtk-aes.c 		res->hdr = MTK_DESC_BUF_LEN(dsg->length);
res               309 drivers/crypto/mediatek/mtk-aes.c 		res->buf = cpu_to_le32(sg_dma_address(dsg));
res               312 drivers/crypto/mediatek/mtk-aes.c 			res->hdr |= MTK_DESC_FIRST;
res               318 drivers/crypto/mediatek/mtk-aes.c 	res->hdr |= MTK_DESC_LAST;
res               321 drivers/crypto/mediatek/mtk-aes.c 	ring->res_prev = res;
res               325 drivers/crypto/mediatek/mtk-aes.c 		res->hdr += AES_BLOCK_SIZE;
res               427 drivers/crypto/mediatek/mtk-sha.c 	struct mtk_desc *cmd, *res;
res               435 drivers/crypto/mediatek/mtk-sha.c 	mtk_sha_ring_shift(ring, &cmd, &res, &count);
res               437 drivers/crypto/mediatek/mtk-sha.c 	res->hdr = MTK_DESC_FIRST | MTK_DESC_BUF_LEN(len1);
res               446 drivers/crypto/mediatek/mtk-sha.c 		mtk_sha_ring_shift(ring, &cmd, &res, &count);
res               448 drivers/crypto/mediatek/mtk-sha.c 		res->hdr = MTK_DESC_BUF_LEN(len2);
res               454 drivers/crypto/mediatek/mtk-sha.c 	res->hdr |= MTK_DESC_LAST;
res               166 drivers/crypto/omap-aes-gcm.c 	struct omap_aes_gcm_result *res = req->data;
res               171 drivers/crypto/omap-aes-gcm.c 	res->err = err;
res               172 drivers/crypto/omap-aes-gcm.c 	complete(&res->completion);
res               982 drivers/crypto/omap-aes.c 		struct device *dev, struct resource *res)
res               994 drivers/crypto/omap-aes.c 	err = of_address_to_resource(node, 0, res);
res              1010 drivers/crypto/omap-aes.c 		struct device *dev, struct resource *res)
res              1017 drivers/crypto/omap-aes.c 		struct platform_device *pdev, struct resource *res)
res              1030 drivers/crypto/omap-aes.c 	memcpy(res, r, sizeof(*res));
res              1126 drivers/crypto/omap-aes.c 	struct resource res;
res              1140 drivers/crypto/omap-aes.c 	err = (dev->of_node) ? omap_aes_get_res_of(dd, dev, &res) :
res              1141 drivers/crypto/omap-aes.c 			       omap_aes_get_res_pdev(dd, pdev, &res);
res              1145 drivers/crypto/omap-aes.c 	dd->io_base = devm_ioremap_resource(dev, &res);
res              1150 drivers/crypto/omap-aes.c 	dd->phys_base = res.start;
res               980 drivers/crypto/omap-des.c 	struct resource *res;
res               992 drivers/crypto/omap-des.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               993 drivers/crypto/omap-des.c 	if (!res) {
res              1003 drivers/crypto/omap-des.c 	dd->io_base = devm_ioremap_resource(dev, res);
res              1008 drivers/crypto/omap-des.c 	dd->phys_base = res->start;
res              1932 drivers/crypto/omap-sham.c 		struct device *dev, struct resource *res)
res              1944 drivers/crypto/omap-sham.c 	err = of_address_to_resource(node, 0, res);
res              1967 drivers/crypto/omap-sham.c 		struct device *dev, struct resource *res)
res              1974 drivers/crypto/omap-sham.c 		struct platform_device *pdev, struct resource *res)
res              1987 drivers/crypto/omap-sham.c 	memcpy(res, r, sizeof(*res));
res              2086 drivers/crypto/omap-sham.c 	struct resource res;
res              2105 drivers/crypto/omap-sham.c 	err = (dev->of_node) ? omap_sham_get_res_of(dd, dev, &res) :
res              2106 drivers/crypto/omap-sham.c 			       omap_sham_get_res_pdev(dd, pdev, &res);
res              2110 drivers/crypto/omap-sham.c 	dd->io_base = devm_ioremap_resource(dev, &res);
res              2115 drivers/crypto/omap-sham.c 	dd->phys_base = res.start;
res               827 drivers/crypto/qat/qat_common/qat_algs.c 	int res = 0, qat_res = ICP_QAT_FW_COMN_RESP_CRYPTO_STAT_GET(stat_filed);
res               831 drivers/crypto/qat/qat_common/qat_algs.c 		res = -EBADMSG;
res               832 drivers/crypto/qat/qat_common/qat_algs.c 	areq->base.complete(&areq->base, res);
res               843 drivers/crypto/qat/qat_common/qat_algs.c 	int res = 0, qat_res = ICP_QAT_FW_COMN_RESP_CRYPTO_STAT_GET(stat_filed);
res               847 drivers/crypto/qat/qat_common/qat_algs.c 		res = -EINVAL;
res               853 drivers/crypto/qat/qat_common/qat_algs.c 	areq->base.complete(&areq->base, res);
res               319 drivers/crypto/s5p-sss.c 	struct resource			*res;
res              2199 drivers/crypto/s5p-sss.c 	struct resource *res;
res              2210 drivers/crypto/s5p-sss.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              2220 drivers/crypto/s5p-sss.c 			res->end += 0x300;
res              2225 drivers/crypto/s5p-sss.c 	pdata->res = res;
res              2226 drivers/crypto/s5p-sss.c 	pdata->ioaddr = devm_ioremap_resource(&pdev->dev, res);
res              2231 drivers/crypto/s5p-sss.c 		res->end -= 0x300;
res              2233 drivers/crypto/s5p-sss.c 		pdata->ioaddr = devm_ioremap_resource(&pdev->dev, res);
res              2333 drivers/crypto/s5p-sss.c 	res->end -= 0x300;
res              2372 drivers/crypto/s5p-sss.c 		pdata->res->end -= 0x300;
res              1434 drivers/crypto/stm32/stm32-hash.c 	struct resource *res;
res              1441 drivers/crypto/stm32/stm32-hash.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1442 drivers/crypto/stm32/stm32-hash.c 	hdev->io_base = devm_ioremap_resource(dev, res);
res              1446 drivers/crypto/stm32/stm32-hash.c 	hdev->phys_base = res->start;
res               140 drivers/crypto/sunxi-ss/sun4i-ss.h 	struct resource *res;
res              3296 drivers/crypto/talitos.c 	struct resource *res;
res              3310 drivers/crypto/talitos.c 	res = platform_get_resource(ofdev, IORESOURCE_MEM, 0);
res              3311 drivers/crypto/talitos.c 	if (!res)
res              3313 drivers/crypto/talitos.c 	priv->reg = devm_ioremap(dev, res->start, resource_size(res));
res                25 drivers/crypto/talitos.h 			__be16 res;
res              1327 drivers/crypto/ux500/cryp/cryp_core.c 	struct resource *res;
res              1351 drivers/crypto/ux500/cryp/cryp_core.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1352 drivers/crypto/ux500/cryp/cryp_core.c 	if (!res) {
res              1359 drivers/crypto/ux500/cryp/cryp_core.c 	device_data->phybase = res->start;
res              1360 drivers/crypto/ux500/cryp/cryp_core.c 	device_data->base = devm_ioremap_resource(dev, res);
res              1654 drivers/crypto/ux500/hash/hash_core.c 	struct resource		*res = NULL;
res              1667 drivers/crypto/ux500/hash/hash_core.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1668 drivers/crypto/ux500/hash/hash_core.c 	if (!res) {
res              1674 drivers/crypto/ux500/hash/hash_core.c 	device_data->phybase = res->start;
res              1675 drivers/crypto/ux500/hash/hash_core.c 	device_data->base = devm_ioremap_resource(dev, res);
res               174 drivers/dax/bus.c 			resource_size(&dax_region->res));
res               229 drivers/dax/bus.c 		struct resource *res, int target_node, unsigned int align,
res               244 drivers/dax/bus.c 	if (!IS_ALIGNED(res->start, align)
res               245 drivers/dax/bus.c 			|| !IS_ALIGNED(resource_size(res), align))
res               253 drivers/dax/bus.c 	memcpy(&dax_region->res, res, sizeof(*res));
res               276 drivers/dax/bus.c 	unsigned long long size = resource_size(&dev_dax->region->res);
res               302 drivers/dax/bus.c 	return dax_region->res.start;
res                13 drivers/dax/bus.h 		struct resource *res, int target_node, unsigned int align,
res                34 drivers/dax/dax-private.h 	struct resource res;
res                66 drivers/dax/device.c 	struct resource *res = &dev_dax->region->res;
res                69 drivers/dax/device.c 	phys = pgoff * PAGE_SIZE + res->start;
res                70 drivers/dax/device.c 	if (phys >= res->start && phys <= res->end) {
res                71 drivers/dax/device.c 		if (phys + size - 1 <= res->end)
res               418 drivers/dax/device.c 	struct resource *res = &dev_dax->region->res;
res               425 drivers/dax/device.c 	if (!devm_request_mem_region(dev, res->start, resource_size(res),
res               427 drivers/dax/device.c 		dev_warn(dev, "could not reserve region %pR\n", res);
res                20 drivers/dax/kmem.c 	struct resource *res = &dev_dax->region->res;
res                38 drivers/dax/kmem.c 			 res, numa_node);
res                43 drivers/dax/kmem.c 	kmem_start = ALIGN(res->start, memory_block_size_bytes());
res                45 drivers/dax/kmem.c 	kmem_size = resource_size(res);
res                47 drivers/dax/kmem.c 	kmem_size -= kmem_start - res->start;
res                89 drivers/dax/kmem.c 	struct resource *res = dev_dax->dax_kmem_res;
res                90 drivers/dax/kmem.c 	resource_size_t kmem_start = res->start;
res                91 drivers/dax/kmem.c 	resource_size_t kmem_size = resource_size(res);
res                92 drivers/dax/kmem.c 	const char *res_name = res->name;
res               105 drivers/dax/kmem.c 			res);
res               110 drivers/dax/kmem.c 	release_resource(res);
res               111 drivers/dax/kmem.c 	kfree(res);
res                12 drivers/dax/pmem/core.c 	struct resource res;
res                42 drivers/dax/pmem/core.c 	if (!devm_request_mem_region(dev, nsio->res.start, offset,
res                53 drivers/dax/pmem/core.c 	memcpy(&res, &pgmap.res, sizeof(res));
res                54 drivers/dax/pmem/core.c 	res.start += offset;
res                55 drivers/dax/pmem/core.c 	dax_region = alloc_dax_region(dev, region_id, &res,
res               370 drivers/devfreq/devfreq-event.c static int devm_devfreq_event_match(struct device *dev, void *res, void *data)
res               372 drivers/devfreq/devfreq-event.c 	struct devfreq_event_dev **r = res;
res               380 drivers/devfreq/devfreq-event.c static void devm_devfreq_event_release(struct device *dev, void *res)
res               382 drivers/devfreq/devfreq-event.c 	devfreq_event_remove_edev(*(struct devfreq_event_dev **)res);
res               771 drivers/devfreq/devfreq.c static int devm_devfreq_dev_match(struct device *dev, void *res, void *data)
res               773 drivers/devfreq/devfreq.c 	struct devfreq **r = res;
res               781 drivers/devfreq/devfreq.c static void devm_devfreq_dev_release(struct device *dev, void *res)
res               783 drivers/devfreq/devfreq.c 	devfreq_remove_device(*(struct devfreq **)res);
res              1557 drivers/devfreq/devfreq.c static void devm_devfreq_opp_release(struct device *dev, void *res)
res              1559 drivers/devfreq/devfreq.c 	devfreq_unregister_opp_notifier(dev, *(struct devfreq **)res);
res              1667 drivers/devfreq/devfreq.c static void devm_devfreq_notifier_release(struct device *dev, void *res)
res              1669 drivers/devfreq/devfreq.c 	struct devfreq_notifier_devres *this = res;
res               204 drivers/devfreq/event/exynos-nocp.c 	struct resource *res;
res               217 drivers/devfreq/event/exynos-nocp.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               218 drivers/devfreq/event/exynos-nocp.c 	base = devm_ioremap_resource(dev, res);
res               222 drivers/devfreq/event/exynos-nocp.c 	exynos_nocp_regmap_config.max_register = resource_size(res) - 4;
res               608 drivers/devfreq/event/exynos-ppmu.c 	struct resource *res;
res               618 drivers/devfreq/event/exynos-ppmu.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               619 drivers/devfreq/event/exynos-ppmu.c 	base = devm_ioremap_resource(dev, res);
res               623 drivers/devfreq/event/exynos-ppmu.c 	exynos_ppmu_regmap_config.max_register = resource_size(res) - 4;
res               180 drivers/devfreq/event/rockchip-dfi.c 	struct resource *res;
res               188 drivers/devfreq/event/rockchip-dfi.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               189 drivers/devfreq/event/rockchip-dfi.c 	data->regs = devm_ioremap_resource(&pdev->dev, res);
res                81 drivers/devfreq/rk3399_dmc.c 	struct arm_smccc_res res;
res               109 drivers/devfreq/rk3399_dmc.c 		      odt_enable, 0, 0, 0, &res);
res               308 drivers/devfreq/rk3399_dmc.c 	struct arm_smccc_res res;
res               363 drivers/devfreq/rk3399_dmc.c 				      0, 0, 0, 0, &res);
res               364 drivers/devfreq/rk3399_dmc.c 			if (res.a0) {
res               366 drivers/devfreq/rk3399_dmc.c 					res.a0);
res               399 drivers/devfreq/rk3399_dmc.c 		      0, 0, 0, 0, &res);
res                59 drivers/dma/acpi-dma.c 		if (resource_type(rentry->res) == IORESOURCE_MEM)
res                60 drivers/dma/acpi-dma.c 			mem = rentry->res->start;
res                61 drivers/dma/acpi-dma.c 		else if (resource_type(rentry->res) == IORESOURCE_IRQ)
res                62 drivers/dma/acpi-dma.c 			irq = rentry->res->start;
res               225 drivers/dma/acpi-dma.c static void devm_acpi_dma_release(struct device *dev, void *res)
res               248 drivers/dma/acpi-dma.c 	void *res;
res               251 drivers/dma/acpi-dma.c 	res = devres_alloc(devm_acpi_dma_release, 0, GFP_KERNEL);
res               252 drivers/dma/acpi-dma.c 	if (!res)
res               257 drivers/dma/acpi-dma.c 		devres_free(res);
res               260 drivers/dma/acpi-dma.c 	devres_add(dev, res);
res               331 drivers/dma/acpi-dma.c static int acpi_dma_parse_fixed_dma(struct acpi_resource *res, void *data)
res               335 drivers/dma/acpi-dma.c 	if (res->type == ACPI_RESOURCE_TYPE_FIXED_DMA) {
res               336 drivers/dma/acpi-dma.c 		struct acpi_resource_fixed_dma *dma = &res->data.fixed_dma;
res               757 drivers/dma/altera-msgdma.c 			   struct resource **res, void __iomem **ptr)
res               762 drivers/dma/altera-msgdma.c 	*res = platform_get_resource_byname(pdev, IORESOURCE_MEM, name);
res               763 drivers/dma/altera-msgdma.c 	if (*res == NULL) {
res               768 drivers/dma/altera-msgdma.c 	region = devm_request_mem_region(device, (*res)->start,
res               769 drivers/dma/altera-msgdma.c 					 resource_size(*res), dev_name(device));
res              2730 drivers/dma/amba-pl08x.c 	pl08x->base = ioremap(adev->res.start, resource_size(&adev->res));
res              2965 drivers/dma/amba-pl08x.c 		 (unsigned long long)adev->res.start, adev->irq[0]);
res              1960 drivers/dma/at_xdmac.c 	struct resource	*res;
res              1966 drivers/dma/at_xdmac.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1967 drivers/dma/at_xdmac.c 	if (!res)
res              1974 drivers/dma/at_xdmac.c 	base = devm_ioremap_resource(&pdev->dev, res);
res               886 drivers/dma/bcm2835-dma.c 	struct resource *res;
res               911 drivers/dma/bcm2835-dma.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               912 drivers/dma/bcm2835-dma.c 	base = devm_ioremap_resource(&pdev->dev, res);
res               832 drivers/dma/dma-axi-dmac.c 	struct resource *res;
res               846 drivers/dma/dma-axi-dmac.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               847 drivers/dma/dma-axi-dmac.c 	dmac->base = devm_ioremap_resource(&pdev->dev, res);
res               841 drivers/dma/dma-jz4780.c 	struct resource *res;
res               861 drivers/dma/dma-jz4780.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               862 drivers/dma/dma-jz4780.c 	if (!res) {
res               867 drivers/dma/dma-jz4780.c 	jzdma->chn_base = devm_ioremap_resource(dev, res);
res               871 drivers/dma/dma-jz4780.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res               872 drivers/dma/dma-jz4780.c 	if (res) {
res               873 drivers/dma/dma-jz4780.c 		jzdma->ctrl_base = devm_ioremap_resource(dev, res);
res              1133 drivers/dma/dmaengine.c static void dmam_device_release(struct device *dev, void *res)
res              1137 drivers/dma/dmaengine.c 	device = *(struct dma_device **)res;
res               259 drivers/dma/fsl-edma.c 	struct resource *res;
res               285 drivers/dma/fsl-edma.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               286 drivers/dma/fsl-edma.c 	fsl_edma->membase = devm_ioremap_resource(&pdev->dev, res);
res               310 drivers/dma/fsl-edma.c 		res = platform_get_resource(pdev, IORESOURCE_MEM, 1 + i);
res               311 drivers/dma/fsl-edma.c 		fsl_edma->muxbase[i] = devm_ioremap_resource(&pdev->dev, res);
res              1071 drivers/dma/fsl-qdma.c 	struct resource *res;
res              1135 drivers/dma/fsl-qdma.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1136 drivers/dma/fsl-qdma.c 	fsl_qdma->ctrl_base = devm_ioremap_resource(&pdev->dev, res);
res              1140 drivers/dma/fsl-qdma.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res              1141 drivers/dma/fsl-qdma.c 	fsl_qdma->status_base = devm_ioremap_resource(&pdev->dev, res);
res              1145 drivers/dma/fsl-qdma.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 2);
res              1146 drivers/dma/fsl-qdma.c 	fsl_qdma->block_base = devm_ioremap_resource(&pdev->dev, res);
res               755 drivers/dma/fsl_raid.c 	struct resource *res;
res               763 drivers/dma/fsl_raid.c 	res = platform_get_resource(ofdev, IORESOURCE_MEM, 0);
res               764 drivers/dma/fsl_raid.c 	if (!res)
res               768 drivers/dma/fsl_raid.c 	re_priv->re_regs = devm_ioremap(dev, res->start, resource_size(res));
res              1109 drivers/dma/fsldma.c 	struct resource res;
res              1127 drivers/dma/fsldma.c 	err = of_address_to_resource(node, 0, &res);
res              1144 drivers/dma/fsldma.c 	chan->id = (res.start & 0xfff) < 0x300 ?
res              1145 drivers/dma/fsldma.c 		   ((res.start - 0x100) & 0xfff) >> 7 :
res              1146 drivers/dma/fsldma.c 		   ((res.start - 0x200) & 0xfff) >> 7;
res               889 drivers/dma/img-mdc-dma.c 	struct resource *res;
res               901 drivers/dma/img-mdc-dma.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               902 drivers/dma/img-mdc-dma.c 	mdma->regs = devm_ioremap_resource(&pdev->dev, res);
res              1059 drivers/dma/imx-dma.c 	struct resource *res;
res              1075 drivers/dma/imx-dma.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1076 drivers/dma/imx-dma.c 	imxdma->base = devm_ioremap_resource(&pdev->dev, res);
res                72 drivers/dma/ioat/dca.c 	int res;
res                75 drivers/dma/ioat/dca.c 	res = test_bit(0, &cpuid_level_9);
res                76 drivers/dma/ioat/dca.c 	if (!res)
res                79 drivers/dma/ioat/dca.c 	return res;
res               729 drivers/dma/ioat/dma.c 			struct dmaengine_result res;
res               733 drivers/dma/ioat/dma.c 			res.result = DMA_TRANS_ABORTED;
res               734 drivers/dma/ioat/dma.c 			dmaengine_desc_get_callback_invoke(tx, &res);
res               770 drivers/dma/ioat/dma.c 	struct dmaengine_result res;
res               808 drivers/dma/ioat/dma.c 			res.result = DMA_TRANS_READ_FAILED;
res               811 drivers/dma/ioat/dma.c 			res.result = DMA_TRANS_WRITE_FAILED;
res               817 drivers/dma/ioat/dma.c 		res.result = DMA_TRANS_NOERROR;
res               836 drivers/dma/ioat/dma.c 		dmaengine_desc_get_callback_invoke(tx, &res);
res              1267 drivers/dma/iop-adma.c 	struct resource *res;
res              1274 drivers/dma/iop-adma.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1275 drivers/dma/iop-adma.c 	if (!res)
res              1278 drivers/dma/iop-adma.c 	if (!devm_request_mem_region(&pdev->dev, res->start,
res              1279 drivers/dma/iop-adma.c 				resource_size(res), pdev->name))
res              1349 drivers/dma/iop-adma.c 	iop_chan->mmr_base = devm_ioremap(&pdev->dev, res->start,
res              1350 drivers/dma/iop-adma.c 					resource_size(res));
res                97 drivers/dma/mcf-edma.c 	struct resource *res;
res                99 drivers/dma/mcf-edma.c 	res = platform_get_resource_byname(pdev,
res               101 drivers/dma/mcf-edma.c 	if (!res)
res               104 drivers/dma/mcf-edma.c 	for (ret = 0, i = res->start; i <= res->end; ++i)
res               109 drivers/dma/mcf-edma.c 	res = platform_get_resource_byname(pdev,
res               111 drivers/dma/mcf-edma.c 	if (!res)
res               114 drivers/dma/mcf-edma.c 	for (ret = 0, i = res->start; i <= res->end; ++i)
res               142 drivers/dma/mcf-edma.c 	struct resource *res;
res               144 drivers/dma/mcf-edma.c 	res = platform_get_resource_byname(pdev,
res               146 drivers/dma/mcf-edma.c 	if (res) {
res               147 drivers/dma/mcf-edma.c 		for (irq = res->start; irq <= res->end; irq++)
res               151 drivers/dma/mcf-edma.c 	res = platform_get_resource_byname(pdev,
res               153 drivers/dma/mcf-edma.c 	if (res) {
res               154 drivers/dma/mcf-edma.c 		for (irq = res->start; irq <= res->end; irq++)
res               178 drivers/dma/mcf-edma.c 	struct resource *res;
res               206 drivers/dma/mcf-edma.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               208 drivers/dma/mcf-edma.c 	mcf_edma->membase = devm_ioremap_resource(&pdev->dev, res);
res               754 drivers/dma/mediatek/mtk-cqdma.c 	struct resource *res;
res               823 drivers/dma/mediatek/mtk-cqdma.c 		res = platform_get_resource(pdev, IORESOURCE_MEM, i);
res               824 drivers/dma/mediatek/mtk-cqdma.c 		if (!res) {
res               830 drivers/dma/mediatek/mtk-cqdma.c 		cqdma->pc[i]->base = devm_ioremap_resource(&pdev->dev, res);
res               835 drivers/dma/mediatek/mtk-cqdma.c 		res = platform_get_resource(pdev, IORESOURCE_IRQ, i);
res               836 drivers/dma/mediatek/mtk-cqdma.c 		if (!res) {
res               841 drivers/dma/mediatek/mtk-cqdma.c 		cqdma->pc[i]->irq = res->start;
res               899 drivers/dma/mediatek/mtk-hsdma.c 	struct resource *res;
res               908 drivers/dma/mediatek/mtk-hsdma.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               909 drivers/dma/mediatek/mtk-hsdma.c 	hsdma->base = devm_ioremap_resource(&pdev->dev, res);
res               926 drivers/dma/mediatek/mtk-hsdma.c 	res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
res               927 drivers/dma/mediatek/mtk-hsdma.c 	if (!res) {
res               932 drivers/dma/mediatek/mtk-hsdma.c 	hsdma->irq = res->start;
res               478 drivers/dma/mediatek/mtk-uart-apdma.c 	struct resource *res;
res               535 drivers/dma/mediatek/mtk-uart-apdma.c 		res = platform_get_resource(pdev, IORESOURCE_MEM, i);
res               536 drivers/dma/mediatek/mtk-uart-apdma.c 		if (!res) {
res               541 drivers/dma/mediatek/mtk-uart-apdma.c 		c->base = devm_ioremap_resource(&pdev->dev, res);
res               570 drivers/dma/moxart-dma.c 	struct resource *res;
res               587 drivers/dma/moxart-dma.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               588 drivers/dma/moxart-dma.c 	dma_base_addr = devm_ioremap_resource(dev, res);
res               676 drivers/dma/mpc512x_dma.c 	u8 res;
res               678 drivers/dma/mpc512x_dma.c 	for (res = 0; buswidth > 1; buswidth /= 2)
res               679 drivers/dma/mpc512x_dma.c 		res++;
res               680 drivers/dma/mpc512x_dma.c 	return res;
res               904 drivers/dma/mpc512x_dma.c 	struct resource res;
res               932 drivers/dma/mpc512x_dma.c 	retval = of_address_to_resource(dn, 0, &res);
res               938 drivers/dma/mpc512x_dma.c 	regs_start = res.start;
res               939 drivers/dma/mpc512x_dma.c 	regs_size = resource_size(&res);
res              1296 drivers/dma/mv_xor.c 	struct resource *res;
res              1306 drivers/dma/mv_xor.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1307 drivers/dma/mv_xor.c 	if (!res)
res              1310 drivers/dma/mv_xor.c 	xordev->xor_base = devm_ioremap(&pdev->dev, res->start,
res              1311 drivers/dma/mv_xor.c 					resource_size(res));
res              1315 drivers/dma/mv_xor.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res              1316 drivers/dma/mv_xor.c 	if (!res)
res              1319 drivers/dma/mv_xor.c 	xordev->xor_high_base = devm_ioremap(&pdev->dev, res->start,
res              1320 drivers/dma/mv_xor.c 					     resource_size(res));
res               712 drivers/dma/mv_xor_v2.c 	struct resource *res;
res               725 drivers/dma/mv_xor_v2.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               726 drivers/dma/mv_xor_v2.c 	xor_dev->dma_base = devm_ioremap_resource(&pdev->dev, res);
res               730 drivers/dma/mv_xor_v2.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res               731 drivers/dma/mv_xor_v2.c 	xor_dev->glob_base = devm_ioremap_resource(&pdev->dev, res);
res              1046 drivers/dma/owl-dma.c 	struct resource *res;
res              1053 drivers/dma/owl-dma.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1054 drivers/dma/owl-dma.c 	if (!res)
res              1057 drivers/dma/owl-dma.c 	od->base = devm_ioremap_resource(&pdev->dev, res);
res              3001 drivers/dma/pl330.c 	struct resource *res;
res              3025 drivers/dma/pl330.c 	res = &adev->res;
res              3026 drivers/dma/pl330.c 	pl330->base = devm_ioremap_resource(&adev->dev, res);
res              4010 drivers/dma/ppc4xx/adma.c 	struct resource res;
res              4053 drivers/dma/ppc4xx/adma.c 	if (of_address_to_resource(np, 0, &res)) {
res              4060 drivers/dma/ppc4xx/adma.c 	if (!request_mem_region(res.start, resource_size(&res),
res              4063 drivers/dma/ppc4xx/adma.c 			&res);
res              4094 drivers/dma/ppc4xx/adma.c 	regs = ioremap(res.start, resource_size(&res));
res              4226 drivers/dma/ppc4xx/adma.c 	release_mem_region(res.start, resource_size(&res));
res              4241 drivers/dma/ppc4xx/adma.c 	struct resource res;
res              4282 drivers/dma/ppc4xx/adma.c 	of_address_to_resource(np, 0, &res);
res              4283 drivers/dma/ppc4xx/adma.c 	release_mem_region(res.start, resource_size(&res));
res               165 drivers/dma/qcom/hidma_mgmt.c 	struct resource *res;
res               177 drivers/dma/qcom/hidma_mgmt.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               178 drivers/dma/qcom/hidma_mgmt.c 	virtaddr = devm_ioremap_resource(&pdev->dev, res);
res               197 drivers/dma/qcom/hidma_mgmt.c 	mgmtdev->addrsize = resource_size(res);
res               309 drivers/dma/qcom/hidma_mgmt.c 		 &res->start, mgmtdev->dma_channels);
res               352 drivers/dma/qcom/hidma_mgmt.c 	struct resource *res;
res               356 drivers/dma/qcom/hidma_mgmt.c 	res = kcalloc(3, sizeof(*res), GFP_KERNEL);
res               357 drivers/dma/qcom/hidma_mgmt.c 	if (!res)
res               363 drivers/dma/qcom/hidma_mgmt.c 		ret = of_address_to_resource(child, 0, &res[0]);
res               367 drivers/dma/qcom/hidma_mgmt.c 		ret = of_address_to_resource(child, 1, &res[1]);
res               371 drivers/dma/qcom/hidma_mgmt.c 		ret = of_irq_to_resource(child, 0, &res[2]);
res               380 drivers/dma/qcom/hidma_mgmt.c 		pdevinfo.res = res;
res               399 drivers/dma/qcom/hidma_mgmt.c 	kfree(res);
res               405 drivers/dma/qcom/hidma_mgmt.c 	kfree(res);
res              1190 drivers/dma/s3c24xx-dma.c 	struct resource *res;
res              1218 drivers/dma/s3c24xx-dma.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1219 drivers/dma/s3c24xx-dma.c 	s3cdma->base = devm_ioremap_resource(&pdev->dev, res);
res               904 drivers/dma/sa11x0-dma.c 	struct resource *res;
res               908 drivers/dma/sa11x0-dma.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               909 drivers/dma/sa11x0-dma.c 	if (!res)
res               925 drivers/dma/sa11x0-dma.c 	d->base = ioremap(res->start, resource_size(res));
res               847 drivers/dma/sirf-dma.c 	struct resource res;
res               879 drivers/dma/sirf-dma.c 	ret = of_address_to_resource(dn, 0, &res);
res               885 drivers/dma/sirf-dma.c 	regs_start = res.start;
res               886 drivers/dma/sirf-dma.c 	regs_size = resource_size(&res);
res              1083 drivers/dma/sprd-dma.c 	struct resource *res;
res              1129 drivers/dma/sprd-dma.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1130 drivers/dma/sprd-dma.c 	sdev->glb_base = devm_ioremap_resource(&pdev->dev, res);
res              1416 drivers/dma/ste_dma40.c 	int res = 0;
res              1430 drivers/dma/ste_dma40.c 	res = d40_channel_execute_command(d40c, D40_DMA_SUSPEND_REQ);
res              1435 drivers/dma/ste_dma40.c 	return res;
res              1441 drivers/dma/ste_dma40.c 	int res = 0;
res              1457 drivers/dma/ste_dma40.c 		res = d40_channel_execute_command(d40c, D40_DMA_RUN);
res              1462 drivers/dma/ste_dma40.c 	return res;
res              1705 drivers/dma/ste_dma40.c 	int res = 0;
res              1710 drivers/dma/ste_dma40.c 		res = -EINVAL;
res              1717 drivers/dma/ste_dma40.c 		res = -EINVAL;
res              1726 drivers/dma/ste_dma40.c 		res = -EINVAL;
res              1739 drivers/dma/ste_dma40.c 		res = -EINVAL;
res              1742 drivers/dma/ste_dma40.c 	return res;
res              1992 drivers/dma/ste_dma40.c 	int res = 0;
res              2022 drivers/dma/ste_dma40.c 	res = d40_channel_execute_command(d40c, D40_DMA_STOP);
res              2023 drivers/dma/ste_dma40.c 	if (res) {
res              2046 drivers/dma/ste_dma40.c 	return res;
res              3110 drivers/dma/ste_dma40.c 	struct resource *res;
res              3134 drivers/dma/ste_dma40.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "base");
res              3135 drivers/dma/ste_dma40.c 	if (!res)
res              3138 drivers/dma/ste_dma40.c 	if (request_mem_region(res->start, resource_size(res),
res              3142 drivers/dma/ste_dma40.c 	virtbase = ioremap(res->start, resource_size(res));
res              3148 drivers/dma/ste_dma40.c 		pid |= (readl(virtbase + resource_size(res) - 0x20 + 4 * i)
res              3151 drivers/dma/ste_dma40.c 		cid |= (readl(virtbase + resource_size(res) - 0x10 + 4 * i)
res              3195 drivers/dma/ste_dma40.c 		 rev, &res->start, num_phy_chans, num_log_chans);
res              3209 drivers/dma/ste_dma40.c 	base->phy_start = res->start;
res              3210 drivers/dma/ste_dma40.c 	base->phy_size = resource_size(res);
res              3309 drivers/dma/ste_dma40.c 	release_mem_region(res->start, resource_size(res));
res              3513 drivers/dma/ste_dma40.c 	struct resource *res;
res              3541 drivers/dma/ste_dma40.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "lcpa");
res              3542 drivers/dma/ste_dma40.c 	if (!res) {
res              3547 drivers/dma/ste_dma40.c 	base->lcpa_size = resource_size(res);
res              3548 drivers/dma/ste_dma40.c 	base->phy_lcpa = res->start;
res              3550 drivers/dma/ste_dma40.c 	if (request_mem_region(res->start, resource_size(res),
res              3553 drivers/dma/ste_dma40.c 		d40_err(&pdev->dev, "Failed to request LCPA region %pR\n", res);
res              3559 drivers/dma/ste_dma40.c 	if (res->start != val && val != 0) {
res              3562 drivers/dma/ste_dma40.c 			 __func__, val, &res->start);
res              3564 drivers/dma/ste_dma40.c 		writel(res->start, base->virtbase + D40_DREG_LCPA);
res              3566 drivers/dma/ste_dma40.c 	base->lcpa_base = ioremap(res->start, resource_size(res));
res              3574 drivers/dma/ste_dma40.c 		res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
res              3576 drivers/dma/ste_dma40.c 		if (!res) {
res              3582 drivers/dma/ste_dma40.c 		base->lcla_pool.base = ioremap(res->start,
res              3583 drivers/dma/ste_dma40.c 						resource_size(res));
res              3589 drivers/dma/ste_dma40.c 		writel(res->start, base->virtbase + D40_DREG_LCLA);
res              1277 drivers/dma/stm32-dma.c 	struct resource *res;
res              1292 drivers/dma/stm32-dma.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1293 drivers/dma/stm32-dma.c 	dmadev->base = devm_ioremap_resource(&pdev->dev, res);
res               180 drivers/dma/stm32-dmamux.c 	struct resource *res;
res               244 drivers/dma/stm32-dmamux.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               245 drivers/dma/stm32-dmamux.c 	iomem = devm_ioremap_resource(&pdev->dev, res);
res              1534 drivers/dma/stm32-mdma.c 	struct resource *res;
res              1574 drivers/dma/stm32-mdma.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1575 drivers/dma/stm32-mdma.c 	dmadev->base = devm_ioremap_resource(&pdev->dev, res);
res              1122 drivers/dma/sun4i-dma.c 	struct resource *res;
res              1129 drivers/dma/sun4i-dma.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1130 drivers/dma/sun4i-dma.c 	priv->base = devm_ioremap_resource(&pdev->dev, res);
res              1237 drivers/dma/sun6i-dma.c 	struct resource *res;
res              1248 drivers/dma/sun6i-dma.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1249 drivers/dma/sun6i-dma.c 	sdc->base = devm_ioremap_resource(&pdev->dev, res);
res              1379 drivers/dma/tegra20-apb-dma.c 	struct resource *res;
res              1401 drivers/dma/tegra20-apb-dma.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1402 drivers/dma/tegra20-apb-dma.c 	tdma->base_addr = devm_ioremap_resource(&pdev->dev, res);
res              1451 drivers/dma/tegra20-apb-dma.c 		res = platform_get_resource(pdev, IORESOURCE_IRQ, i);
res              1452 drivers/dma/tegra20-apb-dma.c 		if (!res) {
res              1457 drivers/dma/tegra20-apb-dma.c 		tdc->irq = res->start;
res               820 drivers/dma/tegra210-adma.c 	struct resource	*res;
res               840 drivers/dma/tegra210-adma.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               841 drivers/dma/tegra210-adma.c 	tdma->base_addr = devm_ioremap_resource(&pdev->dev, res);
res               136 drivers/dma/ti/dma-crossbar.c 	struct resource *res;
res               176 drivers/dma/ti/dma-crossbar.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               177 drivers/dma/ti/dma-crossbar.c 	iomem = devm_ioremap_resource(&pdev->dev, res);
res               326 drivers/dma/ti/dma-crossbar.c 	struct resource *res;
res               406 drivers/dma/ti/dma-crossbar.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               407 drivers/dma/ti/dma-crossbar.c 	iomem = devm_ioremap_resource(&pdev->dev, res);
res              2057 drivers/dma/ti/edma.c 	struct resource res;
res              2068 drivers/dma/ti/edma.c 	ret = of_address_to_resource(dev->of_node, 1, &res);
res              2072 drivers/dma/ti/edma.c 	xbar = devm_ioremap(dev, res.start, resource_size(&res));
res              1463 drivers/dma/ti/omap-dma.c 	struct resource *res;
res              1471 drivers/dma/ti/omap-dma.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1472 drivers/dma/ti/omap-dma.c 	od->base = devm_ioremap_resource(&pdev->dev, res);
res               385 drivers/dma/uniphier-mdmac.c 	struct resource *res;
res               401 drivers/dma/uniphier-mdmac.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               402 drivers/dma/uniphier-mdmac.c 	mdev->reg_base = devm_ioremap_resource(dev, res);
res              1618 drivers/dma/xgene-dma.c 	struct resource *res;
res              1622 drivers/dma/xgene-dma.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1623 drivers/dma/xgene-dma.c 	if (!res) {
res              1628 drivers/dma/xgene-dma.c 	pdma->csr_dma = devm_ioremap(&pdev->dev, res->start,
res              1629 drivers/dma/xgene-dma.c 				     resource_size(res));
res              1636 drivers/dma/xgene-dma.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res              1637 drivers/dma/xgene-dma.c 	if (!res) {
res              1642 drivers/dma/xgene-dma.c 	pdma->csr_ring =  devm_ioremap(&pdev->dev, res->start,
res              1643 drivers/dma/xgene-dma.c 				       resource_size(res));
res              1650 drivers/dma/xgene-dma.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 2);
res              1651 drivers/dma/xgene-dma.c 	if (!res) {
res              1656 drivers/dma/xgene-dma.c 	pdma->csr_ring_cmd = devm_ioremap(&pdev->dev, res->start,
res              1657 drivers/dma/xgene-dma.c 					  resource_size(res));
res              1666 drivers/dma/xgene-dma.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 3);
res              1667 drivers/dma/xgene-dma.c 	if (!res) {
res              1672 drivers/dma/xgene-dma.c 	pdma->csr_efuse = devm_ioremap(&pdev->dev, res->start,
res              1673 drivers/dma/xgene-dma.c 				       resource_size(res));
res               874 drivers/dma/xilinx/zynqmp_dma.c 	struct resource *res;
res               884 drivers/dma/xilinx/zynqmp_dma.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               885 drivers/dma/xilinx/zynqmp_dma.c 	chan->regs = devm_ioremap_resource(&pdev->dev, res);
res               207 drivers/edac/altera_edac.c 	struct resource res;
res               212 drivers/edac/altera_edac.c 		ret = of_address_to_resource(np, 0, &res);
res               216 drivers/edac/altera_edac.c 		total_mem += resource_size(&res);
res               289 drivers/edac/altera_edac.c 	int irq, irq2, res = 0;
res               378 drivers/edac/altera_edac.c 		res = -ENOMEM;
res               397 drivers/edac/altera_edac.c 	res = edac_mc_add_mc(mci);
res               398 drivers/edac/altera_edac.c 	if (res < 0)
res               404 drivers/edac/altera_edac.c 		res = a10_init(mc_vbase);
res               405 drivers/edac/altera_edac.c 		if (res < 0)
res               408 drivers/edac/altera_edac.c 		res = devm_request_irq(&pdev->dev, irq2,
res               411 drivers/edac/altera_edac.c 		if (res < 0) {
res               414 drivers/edac/altera_edac.c 			res = -ENODEV;
res               418 drivers/edac/altera_edac.c 		res = a10_unmask_irq(pdev, A10_DDR0_IRQ_MASK);
res               419 drivers/edac/altera_edac.c 		if (res < 0)
res               425 drivers/edac/altera_edac.c 	res = devm_request_irq(&pdev->dev, irq, altr_sdram_mc_err_handler,
res               427 drivers/edac/altera_edac.c 	if (res < 0) {
res               430 drivers/edac/altera_edac.c 		res = -ENODEV;
res               439 drivers/edac/altera_edac.c 		res = -ENODEV;
res               456 drivers/edac/altera_edac.c 		    "EDAC Probe Failed; Error %d\n", res);
res               458 drivers/edac/altera_edac.c 	return res;
res               773 drivers/edac/altera_edac.c 	int res = 0;
res               788 drivers/edac/altera_edac.c 		res = -ENODEV;
res               796 drivers/edac/altera_edac.c 		res = -EBUSY;
res               807 drivers/edac/altera_edac.c 		res = -ENOMEM;
res               818 drivers/edac/altera_edac.c 		res = -ENOMEM;
res               827 drivers/edac/altera_edac.c 		res = drvdata->data->setup(drvdata);
res               828 drivers/edac/altera_edac.c 		if (res)
res               833 drivers/edac/altera_edac.c 	res = devm_request_irq(&pdev->dev, drvdata->sb_irq,
res               836 drivers/edac/altera_edac.c 	if (res)
res               840 drivers/edac/altera_edac.c 	res = devm_request_irq(&pdev->dev, drvdata->db_irq,
res               843 drivers/edac/altera_edac.c 	if (res)
res               849 drivers/edac/altera_edac.c 	res = edac_device_add_device(dci);
res               850 drivers/edac/altera_edac.c 	if (res)
res               864 drivers/edac/altera_edac.c 		    "%s:Error setting up EDAC device: %d\n", ecc_name, res);
res               866 drivers/edac/altera_edac.c 	return res;
res              1042 drivers/edac/altera_edac.c 		struct resource res;
res              1053 drivers/edac/altera_edac.c 		if (of_address_to_resource(sysmgr_np, 0, &res)) {
res              1059 drivers/edac/altera_edac.c 		base = res.start;
res              1929 drivers/edac/altera_edac.c 				       struct resource *res)
res              1938 drivers/edac/altera_edac.c 	ret = of_address_to_resource(parent, 0, res);
res              1950 drivers/edac/altera_edac.c 	struct resource res;
res              1972 drivers/edac/altera_edac.c 		rc = get_s10_sdram_edac_resource(np, &res);
res              1974 drivers/edac/altera_edac.c 		rc = of_address_to_resource(np, 0, &res);
res              2007 drivers/edac/altera_edac.c 	altdev->base = devm_ioremap_resource(edac->dev, &res);
res              2188 drivers/edac/altera_edac.c 		struct resource res;
res              2199 drivers/edac/altera_edac.c 		if (of_address_to_resource(sysmgr_np, 0, &res))
res              2203 drivers/edac/altera_edac.c 		base = res.start;
res               614 drivers/edac/armada_xp_edac.c 	int res;
res               619 drivers/edac/armada_xp_edac.c 	res = platform_register_drivers(drivers, ARRAY_SIZE(drivers));
res               620 drivers/edac/armada_xp_edac.c 	if (res)
res               284 drivers/edac/aspeed_edac.c 	struct resource *res;
res               289 drivers/edac/aspeed_edac.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               290 drivers/edac/aspeed_edac.c 	if (!res)
res               293 drivers/edac/aspeed_edac.c 	regs = devm_ioremap_resource(dev, res);
res                82 drivers/edac/bluefield_edac.c 	struct arm_smccc_res res;
res                84 drivers/edac/bluefield_edac.c 	arm_smccc_smc(smc_op, smc_arg, 0, 0, 0, 0, 0, 0, &res);
res                86 drivers/edac/bluefield_edac.c 	return res.a0;
res               914 drivers/edac/cpc925_edac.c 	int res = 0, nr_channels;
res               919 drivers/edac/cpc925_edac.c 		res = -ENOMEM;
res               926 drivers/edac/cpc925_edac.c 		res = -ENOENT;
res               935 drivers/edac/cpc925_edac.c 		res = -EBUSY;
res               942 drivers/edac/cpc925_edac.c 		res = -ENOMEM;
res               958 drivers/edac/cpc925_edac.c 		res = -ENOMEM;
res               999 drivers/edac/cpc925_edac.c 	res = 0;
res              1010 drivers/edac/cpc925_edac.c 	return res;
res               483 drivers/edac/fsl_ddr_edac.c 	int res;
res               515 drivers/edac/fsl_ddr_edac.c 	res = of_address_to_resource(op->dev.of_node, 0, &r);
res               516 drivers/edac/fsl_ddr_edac.c 	if (res) {
res               526 drivers/edac/fsl_ddr_edac.c 		res = -EBUSY;
res               533 drivers/edac/fsl_ddr_edac.c 		res = -ENOMEM;
res               541 drivers/edac/fsl_ddr_edac.c 		res = -ENODEV;
res               570 drivers/edac/fsl_ddr_edac.c 	res = edac_mc_add_mc_with_groups(mci, fsl_ddr_dev_groups);
res               571 drivers/edac/fsl_ddr_edac.c 	if (res) {
res               589 drivers/edac/fsl_ddr_edac.c 		res = devm_request_irq(&op->dev, pdata->irq,
res               593 drivers/edac/fsl_ddr_edac.c 		if (res < 0) {
res               596 drivers/edac/fsl_ddr_edac.c 			res = -ENODEV;
res               615 drivers/edac/fsl_ddr_edac.c 	return res;
res                53 drivers/edac/highbank_l2_edac.c 	int res = 0;
res                70 drivers/edac/highbank_l2_edac.c 		res = -ENODEV;
res                77 drivers/edac/highbank_l2_edac.c 		res = -EBUSY;
res                84 drivers/edac/highbank_l2_edac.c 		res = -ENOMEM;
res                97 drivers/edac/highbank_l2_edac.c 	res = devm_request_irq(&pdev->dev, drvdata->db_irq,
res               100 drivers/edac/highbank_l2_edac.c 	if (res < 0)
res               104 drivers/edac/highbank_l2_edac.c 	res = devm_request_irq(&pdev->dev, drvdata->sb_irq,
res               107 drivers/edac/highbank_l2_edac.c 	if (res < 0)
res               117 drivers/edac/highbank_l2_edac.c 	return res;
res               156 drivers/edac/highbank_mc_edac.c 	int res = 0;
res               183 drivers/edac/highbank_mc_edac.c 		res = -ENODEV;
res               190 drivers/edac/highbank_mc_edac.c 		res = -EBUSY;
res               197 drivers/edac/highbank_mc_edac.c 		res = -ENOMEM;
res               208 drivers/edac/highbank_mc_edac.c 		res = -ENODEV;
res               228 drivers/edac/highbank_mc_edac.c 	res = edac_mc_add_mc_with_groups(mci, highbank_dev_groups);
res               229 drivers/edac/highbank_mc_edac.c 	if (res < 0)
res               233 drivers/edac/highbank_mc_edac.c 	res = devm_request_irq(&pdev->dev, irq, highbank_mc_err_handler,
res               235 drivers/edac/highbank_mc_edac.c 	if (res < 0) {
res               247 drivers/edac/highbank_mc_edac.c 	return res;
res                39 drivers/edac/layerscape_edac.c 	int res;
res                51 drivers/edac/layerscape_edac.c 	res = platform_driver_register(&fsl_ddr_mc_err_driver);
res                52 drivers/edac/layerscape_edac.c 	if (res) {
res                54 drivers/edac/layerscape_edac.c 		return res;
res               151 drivers/edac/mpc85xx_edac.c 	int res = 0;
res               176 drivers/edac/mpc85xx_edac.c 		res = -ENXIO;
res               199 drivers/edac/mpc85xx_edac.c 	res = of_address_to_resource(of_node, 0, &r);
res               200 drivers/edac/mpc85xx_edac.c 	if (res) {
res               211 drivers/edac/mpc85xx_edac.c 		res = -EBUSY;
res               218 drivers/edac/mpc85xx_edac.c 		res = -ENOMEM;
res               256 drivers/edac/mpc85xx_edac.c 		res = devm_request_irq(&op->dev, pdata->irq,
res               260 drivers/edac/mpc85xx_edac.c 		if (res < 0) {
res               264 drivers/edac/mpc85xx_edac.c 			res = -ENODEV;
res               299 drivers/edac/mpc85xx_edac.c 	return res;
res               494 drivers/edac/mpc85xx_edac.c 	int res;
res               514 drivers/edac/mpc85xx_edac.c 	res = of_address_to_resource(op->dev.of_node, 0, &r);
res               515 drivers/edac/mpc85xx_edac.c 	if (res) {
res               526 drivers/edac/mpc85xx_edac.c 		res = -EBUSY;
res               533 drivers/edac/mpc85xx_edac.c 		res = -ENOMEM;
res               560 drivers/edac/mpc85xx_edac.c 		res = devm_request_irq(&op->dev, pdata->irq,
res               563 drivers/edac/mpc85xx_edac.c 		if (res < 0) {
res               567 drivers/edac/mpc85xx_edac.c 			res = -ENODEV;
res               590 drivers/edac/mpc85xx_edac.c 	return res;
res               692 drivers/edac/mpc85xx_edac.c 	int res = 0;
res               707 drivers/edac/mpc85xx_edac.c 	res = platform_register_drivers(drivers, ARRAY_SIZE(drivers));
res               708 drivers/edac/mpc85xx_edac.c 	if (res)
res               107 drivers/edac/mv64x60_edac.c 	int res = 0;
res               135 drivers/edac/mv64x60_edac.c 		res = -ENOENT;
res               145 drivers/edac/mv64x60_edac.c 		res = -EBUSY;
res               154 drivers/edac/mv64x60_edac.c 		res = -ENOMEM;
res               158 drivers/edac/mv64x60_edac.c 	res = mv64x60_pci_fixup(pdev);
res               159 drivers/edac/mv64x60_edac.c 	if (res < 0) {
res               176 drivers/edac/mv64x60_edac.c 		res = devm_request_irq(&pdev->dev,
res               182 drivers/edac/mv64x60_edac.c 		if (res < 0) {
res               185 drivers/edac/mv64x60_edac.c 			res = -ENODEV;
res               204 drivers/edac/mv64x60_edac.c 	return res;
res               277 drivers/edac/mv64x60_edac.c 	int res = 0;
res               300 drivers/edac/mv64x60_edac.c 		res = -ENOENT;
res               310 drivers/edac/mv64x60_edac.c 		res = -EBUSY;
res               320 drivers/edac/mv64x60_edac.c 		res = -ENOMEM;
res               342 drivers/edac/mv64x60_edac.c 		res = devm_request_irq(&pdev->dev,
res               348 drivers/edac/mv64x60_edac.c 		if (res < 0) {
res               352 drivers/edac/mv64x60_edac.c 			res = -ENODEV;
res               372 drivers/edac/mv64x60_edac.c 	return res;
res               444 drivers/edac/mv64x60_edac.c 	int res = 0;
res               467 drivers/edac/mv64x60_edac.c 		res = -ENOENT;
res               477 drivers/edac/mv64x60_edac.c 		res = -EBUSY;
res               486 drivers/edac/mv64x60_edac.c 		res = -ENOMEM;
res               494 drivers/edac/mv64x60_edac.c 		res = -ENOENT;
res               504 drivers/edac/mv64x60_edac.c 		res = -EBUSY;
res               513 drivers/edac/mv64x60_edac.c 		res = -ENOMEM;
res               536 drivers/edac/mv64x60_edac.c 		res = devm_request_irq(&pdev->dev,
res               542 drivers/edac/mv64x60_edac.c 		if (res < 0) {
res               546 drivers/edac/mv64x60_edac.c 			res = -ENODEV;
res               566 drivers/edac/mv64x60_edac.c 	return res;
res               703 drivers/edac/mv64x60_edac.c 	int res = 0;
res               733 drivers/edac/mv64x60_edac.c 		res = -ENOENT;
res               743 drivers/edac/mv64x60_edac.c 		res = -EBUSY;
res               752 drivers/edac/mv64x60_edac.c 		res = -ENOMEM;
res               760 drivers/edac/mv64x60_edac.c 		res = -ENODEV;
res               786 drivers/edac/mv64x60_edac.c 	res = edac_mc_add_mc(mci);
res               787 drivers/edac/mv64x60_edac.c 	if (res) {
res               795 drivers/edac/mv64x60_edac.c 		res = devm_request_irq(&pdev->dev,
res               801 drivers/edac/mv64x60_edac.c 		if (res < 0) {
res               804 drivers/edac/mv64x60_edac.c 			res = -ENODEV;
res               822 drivers/edac/mv64x60_edac.c 	return res;
res                63 drivers/edac/octeon_edac-pci.c 	int res = 0;
res                87 drivers/edac/octeon_edac-pci.c 	return res;
res               215 drivers/edac/skx_base.c static bool skx_sad_decode(struct decoded_addr *res)
res               218 drivers/edac/skx_base.c 	u64 addr = res->addr;
res               314 drivers/edac/skx_base.c 	res->dev = d;
res               315 drivers/edac/skx_base.c 	res->socket = d->imc[0].src_id;
res               316 drivers/edac/skx_base.c 	res->imc = GET_BITFIELD(d->mcroute, lchan * 3, lchan * 3 + 2);
res               317 drivers/edac/skx_base.c 	res->channel = GET_BITFIELD(d->mcroute, lchan * 2 + 18, lchan * 2 + 19);
res               320 drivers/edac/skx_base.c 		 res->addr, res->socket, res->imc, res->channel);
res               353 drivers/edac/skx_base.c static bool skx_tad_decode(struct decoded_addr *res)
res               361 drivers/edac/skx_base.c 		SKX_GET_TADBASE(res->dev, res->imc, i, base);
res               362 drivers/edac/skx_base.c 		SKX_GET_TADWAYNESS(res->dev, res->imc, i, wayness);
res               363 drivers/edac/skx_base.c 		if (SKX_TAD_BASE(base) <= res->addr && res->addr <= SKX_TAD_LIMIT(wayness))
res               366 drivers/edac/skx_base.c 	edac_dbg(0, "No TAD entry for 0x%llx\n", res->addr);
res               370 drivers/edac/skx_base.c 	res->sktways = SKX_TAD_SKTWAYS(wayness);
res               371 drivers/edac/skx_base.c 	res->chanways = SKX_TAD_CHNWAYS(wayness);
res               375 drivers/edac/skx_base.c 	SKX_GET_TADCHNILVOFFSET(res->dev, res->imc, res->channel, i, chnilvoffset);
res               376 drivers/edac/skx_base.c 	channel_addr = res->addr - SKX_TAD_OFFSET(chnilvoffset);
res               378 drivers/edac/skx_base.c 	if (res->chanways == 3 && skt_interleave_bit > chn_interleave_bit) {
res               381 drivers/edac/skx_base.c 						 res->chanways, channel_addr);
res               383 drivers/edac/skx_base.c 						 res->sktways, channel_addr);
res               387 drivers/edac/skx_base.c 						 res->sktways, res->addr);
res               389 drivers/edac/skx_base.c 						 res->chanways, res->addr);
res               392 drivers/edac/skx_base.c 	res->chan_addr = channel_addr;
res               395 drivers/edac/skx_base.c 		 res->addr, res->chan_addr, res->sktways, res->chanways);
res               414 drivers/edac/skx_base.c static bool skx_rir_decode(struct decoded_addr *res)
res               421 drivers/edac/skx_base.c 	if (res->dev->imc[res->imc].chan[res->channel].dimms[0].close_pg)
res               427 drivers/edac/skx_base.c 		SKX_GET_RIRWAYNESS(res->dev, res->imc, res->channel, i, rirway);
res               430 drivers/edac/skx_base.c 			if (prev_limit <= res->chan_addr &&
res               431 drivers/edac/skx_base.c 			    res->chan_addr <= limit)
res               436 drivers/edac/skx_base.c 	edac_dbg(0, "No RIR entry for 0x%llx\n", res->addr);
res               440 drivers/edac/skx_base.c 	rank_addr = res->chan_addr >> shift;
res               443 drivers/edac/skx_base.c 	rank_addr |= res->chan_addr & GENMASK_ULL(shift - 1, 0);
res               445 drivers/edac/skx_base.c 	res->rank_address = rank_addr;
res               446 drivers/edac/skx_base.c 	idx = (res->chan_addr >> shift) % SKX_RIR_WAYS(rirway);
res               448 drivers/edac/skx_base.c 	SKX_GET_RIRILV(res->dev, res->imc, res->channel, idx, i, rirlv);
res               449 drivers/edac/skx_base.c 	res->rank_address = rank_addr - SKX_RIR_OFFSET(rirlv);
res               451 drivers/edac/skx_base.c 	res->channel_rank = chan_rank;
res               452 drivers/edac/skx_base.c 	res->dimm = chan_rank / 4;
res               453 drivers/edac/skx_base.c 	res->rank = chan_rank % 4;
res               456 drivers/edac/skx_base.c 		 res->addr, res->dimm, res->rank,
res               457 drivers/edac/skx_base.c 		 res->channel_rank, res->rank_address);
res               483 drivers/edac/skx_base.c 	int i, res = 0;
res               486 drivers/edac/skx_base.c 		res |= ((addr >> bits[i]) & 1) << i;
res               487 drivers/edac/skx_base.c 	return res;
res               528 drivers/edac/skx_base.c static bool skx_decode(struct decoded_addr *res)
res               530 drivers/edac/skx_base.c 	return skx_sad_decode(res) && skx_tad_decode(res) &&
res               531 drivers/edac/skx_base.c 		skx_rir_decode(res) && skx_mad_decode(res);
res               101 drivers/edac/skx_common.c static bool skx_adxl_decode(struct decoded_addr *res)
res               105 drivers/edac/skx_common.c 	if (res->addr >= skx_tohm || (res->addr >= skx_tolm &&
res               106 drivers/edac/skx_common.c 				      res->addr < BIT_ULL(32))) {
res               107 drivers/edac/skx_common.c 		edac_dbg(0, "Address 0x%llx out of range\n", res->addr);
res               111 drivers/edac/skx_common.c 	if (adxl_decode(res->addr, adxl_values)) {
res               112 drivers/edac/skx_common.c 		edac_dbg(0, "Failed to decode 0x%llx\n", res->addr);
res               116 drivers/edac/skx_common.c 	res->socket  = (int)adxl_values[component_indices[INDEX_SOCKET]];
res               117 drivers/edac/skx_common.c 	res->imc     = (int)adxl_values[component_indices[INDEX_MEMCTRL]];
res               118 drivers/edac/skx_common.c 	res->channel = (int)adxl_values[component_indices[INDEX_CHANNEL]];
res               119 drivers/edac/skx_common.c 	res->dimm    = (int)adxl_values[component_indices[INDEX_DIMM]];
res               475 drivers/edac/skx_common.c 				 struct decoded_addr *res)
res               552 drivers/edac/skx_common.c 			 res->socket, res->imc, res->rank,
res               553 drivers/edac/skx_common.c 			 res->bank_group, res->bank_address, res->row, res->column);
res               561 drivers/edac/skx_common.c 			     res->channel, res->dimm, -1,
res               569 drivers/edac/skx_common.c 	struct decoded_addr res;
res               580 drivers/edac/skx_common.c 	memset(&res, 0, sizeof(res));
res               581 drivers/edac/skx_common.c 	res.addr = mce->addr;
res               584 drivers/edac/skx_common.c 		if (!skx_adxl_decode(&res))
res               587 drivers/edac/skx_common.c 		mci = get_mci(res.socket, res.imc);
res               589 drivers/edac/skx_common.c 		if (!skx_decode || !skx_decode(&res))
res               592 drivers/edac/skx_common.c 		mci = res.dev->imc[res.imc].mci;
res               616 drivers/edac/skx_common.c 	skx_mce_output_error(mci, mce, &res);
res               115 drivers/edac/skx_common.h typedef bool (*skx_decode_f)(struct decoded_addr *res);
res              1294 drivers/edac/synopsys_edac.c 	struct resource *res;
res              1297 drivers/edac/synopsys_edac.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1298 drivers/edac/synopsys_edac.c 	baseaddr = devm_ioremap_resource(&pdev->dev, res);
res               246 drivers/edac/thunderx_edac.c 	int res;							    \
res               248 drivers/edac/thunderx_edac.c 	res = kstrtoull_from_user(data, count, 0, &pdata->_field);	    \
res               250 drivers/edac/thunderx_edac.c 	return res ? res : count;					    \
res               276 drivers/edac/thunderx_edac.c 	int res;							    \
res               278 drivers/edac/thunderx_edac.c 	res = kstrtoull_from_user(data, count, 0, &val);		    \
res               280 drivers/edac/thunderx_edac.c 	if (!res) {							    \
res               282 drivers/edac/thunderx_edac.c 		res = count;						    \
res               285 drivers/edac/thunderx_edac.c 	return res;							    \
res               309 drivers/edac/thunderx_edac.c 	int res;
res               311 drivers/edac/thunderx_edac.c 	res = kstrtoull_from_user(data, count, 0, &val);
res               313 drivers/edac/thunderx_edac.c 	if (!res) {
res               316 drivers/edac/thunderx_edac.c 		res = count;
res               319 drivers/edac/thunderx_edac.c 	return res;
res               233 drivers/edac/ti_edac.c 	struct resource *res;
res               245 drivers/edac/ti_edac.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               246 drivers/edac/ti_edac.c 	reg = devm_ioremap_resource(dev, res);
res               348 drivers/edac/xgene_edac.c 	struct resource res;
res               357 drivers/edac/xgene_edac.c 	rc = of_address_to_resource(np, 0, &res);
res               362 drivers/edac/xgene_edac.c 	tmp_ctx.mcu_csr = devm_ioremap_resource(edac->dev, &res);
res               891 drivers/edac/xgene_edac.c 	struct resource res;
res               935 drivers/edac/xgene_edac.c 	rc = of_address_to_resource(np, 0, &res);
res               940 drivers/edac/xgene_edac.c 	ctx->pmd_csr = devm_ioremap_resource(edac->dev, &res);
res              1188 drivers/edac/xgene_edac.c 	struct resource res;
res              1196 drivers/edac/xgene_edac.c 	rc = of_address_to_resource(np, 0, &res);
res              1201 drivers/edac/xgene_edac.c 	dev_csr = devm_ioremap_resource(edac->dev, &res);
res              1732 drivers/edac/xgene_edac.c 	struct resource res;
res              1739 drivers/edac/xgene_edac.c 	rc = of_address_to_resource(np, 0, &res);
res              1744 drivers/edac/xgene_edac.c 	dev_csr = devm_ioremap_resource(edac->dev, &res);
res              1851 drivers/edac/xgene_edac.c 	struct resource *res;
res              1909 drivers/edac/xgene_edac.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1910 drivers/edac/xgene_edac.c 	edac->pcp_csr = devm_ioremap_resource(&pdev->dev, res);
res               216 drivers/eisa/eisa-bus.c 		edev->res[i].name = edev->pretty_name;
res               218 drivers/eisa/eisa-bus.c 		edev->res[i].name = edev->id.sig;
res               274 drivers/eisa/eisa-bus.c 			edev->res[i].start = edev->res[i].end = 0;
res               279 drivers/eisa/eisa-bus.c 			edev->res[i].name  = NULL;
res               280 drivers/eisa/eisa-bus.c 			edev->res[i].start = SLOT_ADDRESS(root, slot)
res               282 drivers/eisa/eisa-bus.c 			edev->res[i].end   = edev->res[i].start + 0xff;
res               283 drivers/eisa/eisa-bus.c 			edev->res[i].flags = IORESOURCE_IO;
res               285 drivers/eisa/eisa-bus.c 			edev->res[i].name  = NULL;
res               286 drivers/eisa/eisa-bus.c 			edev->res[i].start = SLOT_ADDRESS(root, slot)
res               288 drivers/eisa/eisa-bus.c 			edev->res[i].end   = edev->res[i].start + 3;
res               289 drivers/eisa/eisa-bus.c 			edev->res[i].flags = IORESOURCE_IO | IORESOURCE_BUSY;
res               292 drivers/eisa/eisa-bus.c 		if (request_resource(root->res, &edev->res[i]))
res               300 drivers/eisa/eisa-bus.c 		release_resource(&edev->res[i]);
res               310 drivers/eisa/eisa-bus.c 		if (edev->res[i].start || edev->res[i].end)
res               311 drivers/eisa/eisa-bus.c 			release_resource(&edev->res[i]);
res               424 drivers/eisa/eisa-bus.c 	root->eisa_root_res.start = root->res->start;
res               425 drivers/eisa/eisa-bus.c 	root->eisa_root_res.end   = root->res->end;
res                24 drivers/eisa/pci_eisa.c 	struct resource *res, *bus_res = NULL;
res                41 drivers/eisa/pci_eisa.c 	pci_bus_for_each_resource(pdev->bus, res, i)
res                42 drivers/eisa/pci_eisa.c 		if (res && (res->flags & IORESOURCE_IO)) {
res                43 drivers/eisa/pci_eisa.c 			bus_res = res;
res                53 drivers/eisa/pci_eisa.c 	pci_eisa_root.res		= bus_res;
res                39 drivers/eisa/virtual_root.c 	.res		= &ioport_resource,
res                11 drivers/extcon/devres.c static int devm_extcon_dev_match(struct device *dev, void *res, void *data)
res                13 drivers/extcon/devres.c 	struct extcon_dev **r = res;
res                21 drivers/extcon/devres.c static void devm_extcon_dev_release(struct device *dev, void *res)
res                23 drivers/extcon/devres.c 	extcon_dev_free(*(struct extcon_dev **)res);
res                27 drivers/extcon/devres.c static void devm_extcon_dev_unreg(struct device *dev, void *res)
res                29 drivers/extcon/devres.c 	extcon_dev_unregister(*(struct extcon_dev **)res);
res                38 drivers/extcon/devres.c static void devm_extcon_dev_notifier_unreg(struct device *dev, void *res)
res                40 drivers/extcon/devres.c 	struct extcon_dev_notifier_devres *this = res;
res                45 drivers/extcon/devres.c static void devm_extcon_dev_notifier_all_unreg(struct device *dev, void *res)
res                47 drivers/extcon/devres.c 	struct extcon_dev_notifier_devres *this = res;
res               726 drivers/firmware/arm_scmi/driver.c 	struct resource res;
res               759 drivers/firmware/arm_scmi/driver.c 	ret = of_address_to_resource(shmem, 0, &res);
res               766 drivers/firmware/arm_scmi/driver.c 	size = resource_size(&res);
res               767 drivers/firmware/arm_scmi/driver.c 	cinfo->payload = devm_ioremap(info->dev, res.start, size);
res               903 drivers/firmware/arm_scpi.c 	struct resource res;
res               936 drivers/firmware/arm_scpi.c 		ret = of_address_to_resource(shmem, 0, &res);
res               943 drivers/firmware/arm_scpi.c 		size = resource_size(&res);
res               944 drivers/firmware/arm_scpi.c 		pchan->rx_payload = devm_ioremap(dev, res.start, size);
res                42 drivers/firmware/arm_sdei.c 		      unsigned long arg4, struct arm_smccc_res *res);
res               125 drivers/firmware/arm_sdei.c static int sdei_is_err(struct arm_smccc_res *res)
res               127 drivers/firmware/arm_sdei.c 	switch (res->a0) {
res               145 drivers/firmware/arm_sdei.c 	struct arm_smccc_res res;
res               149 drivers/firmware/arm_sdei.c 				   &res);
res               150 drivers/firmware/arm_sdei.c 		if (sdei_is_err(&res))
res               151 drivers/firmware/arm_sdei.c 			err = sdei_to_linux_errno(res.a0);
res               160 drivers/firmware/arm_sdei.c 		res.a0 = SDEI_NOT_SUPPORTED;
res               164 drivers/firmware/arm_sdei.c 		*result = res.a0;
res               877 drivers/firmware/arm_sdei.c 			   unsigned long arg4, struct arm_smccc_res *res)
res               879 drivers/firmware/arm_sdei.c 	arm_smccc_smc(function_id, arg0, arg1, arg2, arg3, arg4, 0, 0, res);
res               886 drivers/firmware/arm_sdei.c 			   unsigned long arg4, struct arm_smccc_res *res)
res               888 drivers/firmware/arm_sdei.c 	arm_smccc_hvc(function_id, arg0, arg1, arg2, arg3, arg4, 0, 0, res);
res               975 drivers/firmware/efi/efi.c 	struct resource *res, *parent;
res               977 drivers/firmware/efi/efi.c 	res = kzalloc(sizeof(struct resource), GFP_ATOMIC);
res               978 drivers/firmware/efi/efi.c 	if (!res)
res               981 drivers/firmware/efi/efi.c 	res->name	= "reserved";
res               982 drivers/firmware/efi/efi.c 	res->flags	= IORESOURCE_MEM;
res               983 drivers/firmware/efi/efi.c 	res->start	= addr;
res               984 drivers/firmware/efi/efi.c 	res->end	= addr + size - 1;
res               987 drivers/firmware/efi/efi.c 	parent = request_resource_conflict(&iomem_resource, res);
res               988 drivers/firmware/efi/efi.c 	return parent ? request_resource(parent, res) : 0;
res               125 drivers/firmware/google/coreboot_table.c 	struct resource *res;
res               130 drivers/firmware/google/coreboot_table.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               131 drivers/firmware/google/coreboot_table.c 	if (!res)
res               134 drivers/firmware/google/coreboot_table.c 	len = resource_size(res);
res               135 drivers/firmware/google/coreboot_table.c 	if (!res->start || !len)
res               139 drivers/firmware/google/coreboot_table.c 	header = memremap(res->start, sizeof(*header), MEMREMAP_WB);
res               151 drivers/firmware/google/coreboot_table.c 	ptr = memremap(res->start, len, MEMREMAP_WB);
res                31 drivers/firmware/google/framebuffer-coreboot.c 	struct resource res;
res                54 drivers/firmware/google/framebuffer-coreboot.c 	memset(&res, 0, sizeof(res));
res                55 drivers/firmware/google/framebuffer-coreboot.c 	res.flags = IORESOURCE_MEM | IORESOURCE_BUSY;
res                56 drivers/firmware/google/framebuffer-coreboot.c 	res.name = "Coreboot Framebuffer";
res                57 drivers/firmware/google/framebuffer-coreboot.c 	res.start = fb->physical_address;
res                59 drivers/firmware/google/framebuffer-coreboot.c 	res.end = res.start + length - 1;
res                60 drivers/firmware/google/framebuffer-coreboot.c 	if (res.end <= res.start)
res                65 drivers/firmware/google/framebuffer-coreboot.c 						 &res, 1, &pdata,
res                73 drivers/firmware/meson/meson_sm.c 	struct arm_smccc_res res;
res                75 drivers/firmware/meson/meson_sm.c 	arm_smccc_smc(cmd, arg0, arg1, arg2, arg3, arg4, 0, 0, &res);
res                76 drivers/firmware/meson/meson_sm.c 	return res.a0;
res               119 drivers/firmware/psci/psci.c 	struct arm_smccc_res res;
res               121 drivers/firmware/psci/psci.c 	arm_smccc_hvc(function_id, arg0, arg1, arg2, 0, 0, 0, 0, &res);
res               122 drivers/firmware/psci/psci.c 	return res.a0;
res               129 drivers/firmware/psci/psci.c 	struct arm_smccc_res res;
res               131 drivers/firmware/psci/psci.c 	arm_smccc_smc(function_id, arg0, arg1, arg2, 0, 0, 0, 0, &res);
res               132 drivers/firmware/psci/psci.c 	return res.a0;
res                77 drivers/firmware/qcom_scm-64.c 			 struct arm_smccc_res *res)
res               132 drivers/firmware/qcom_scm-64.c 				      quirk.state.a6, 0, res, &quirk);
res               134 drivers/firmware/qcom_scm-64.c 			if (res->a0 == QCOM_SCM_INTERRUPTED)
res               135 drivers/firmware/qcom_scm-64.c 				cmd = res->a0;
res               137 drivers/firmware/qcom_scm-64.c 		} while (res->a0 == QCOM_SCM_INTERRUPTED);
res               141 drivers/firmware/qcom_scm-64.c 		if (res->a0 == QCOM_SCM_V2_EBUSY) {
res               146 drivers/firmware/qcom_scm-64.c 	}  while (res->a0 == QCOM_SCM_V2_EBUSY);
res               153 drivers/firmware/qcom_scm-64.c 	if ((long)res->a0 < 0)
res               154 drivers/firmware/qcom_scm-64.c 		return qcom_scm_remap_error(res->a0);
res               203 drivers/firmware/qcom_scm-64.c 	struct arm_smccc_res res;
res               210 drivers/firmware/qcom_scm-64.c 			    &desc, &res);
res               212 drivers/firmware/qcom_scm-64.c 	return ret ? : res.a1;
res               220 drivers/firmware/qcom_scm-64.c 	struct arm_smccc_res res;
res               238 drivers/firmware/qcom_scm-64.c 			    &res);
res               239 drivers/firmware/qcom_scm-64.c 	*resp = res.a1;
res               247 drivers/firmware/qcom_scm-64.c 	struct arm_smccc_res res;
res               255 drivers/firmware/qcom_scm-64.c 		      0, 0, 0, 0, 0, &res);
res               257 drivers/firmware/qcom_scm-64.c 	if (!res.a0 && res.a1)
res               267 drivers/firmware/qcom_scm-64.c 	struct arm_smccc_res res;
res               274 drivers/firmware/qcom_scm-64.c 				&desc, &res);
res               276 drivers/firmware/qcom_scm-64.c 	return ret ? false : !!res.a1;
res               284 drivers/firmware/qcom_scm-64.c 	struct arm_smccc_res res;
res               291 drivers/firmware/qcom_scm-64.c 				&desc, &res);
res               293 drivers/firmware/qcom_scm-64.c 	return ret ? : res.a1;
res               301 drivers/firmware/qcom_scm-64.c 	struct arm_smccc_res res;
res               309 drivers/firmware/qcom_scm-64.c 				&desc, &res);
res               311 drivers/firmware/qcom_scm-64.c 	return ret ? : res.a1;
res               318 drivers/firmware/qcom_scm-64.c 	struct arm_smccc_res res;
res               325 drivers/firmware/qcom_scm-64.c 				&desc, &res);
res               327 drivers/firmware/qcom_scm-64.c 	return ret ? : res.a1;
res               334 drivers/firmware/qcom_scm-64.c 	struct arm_smccc_res res;
res               340 drivers/firmware/qcom_scm-64.c 			&desc, &res);
res               342 drivers/firmware/qcom_scm-64.c 	return ret ? : res.a1;
res               348 drivers/firmware/qcom_scm-64.c 	struct arm_smccc_res res;
res               356 drivers/firmware/qcom_scm-64.c 			    &res);
res               358 drivers/firmware/qcom_scm-64.c 	return ret ? : res.a1;
res               364 drivers/firmware/qcom_scm-64.c 	struct arm_smccc_res res;
res               372 drivers/firmware/qcom_scm-64.c 			    &desc, &res);
res               374 drivers/firmware/qcom_scm-64.c 	return ret ? : res.a1;
res               383 drivers/firmware/qcom_scm-64.c 	struct arm_smccc_res res;
res               399 drivers/firmware/qcom_scm-64.c 			    &desc, &res);
res               401 drivers/firmware/qcom_scm-64.c 	return ret ? : res.a1;
res               407 drivers/firmware/qcom_scm-64.c 	struct arm_smccc_res res;
res               415 drivers/firmware/qcom_scm-64.c 			    &desc, &res);
res               417 drivers/firmware/qcom_scm-64.c 	return ret ? : res.a1;
res               424 drivers/firmware/qcom_scm-64.c 	struct arm_smccc_res res;
res               431 drivers/firmware/qcom_scm-64.c 			    QCOM_SCM_IOMMU_SECURE_PTBL_SIZE, &desc, &res);
res               434 drivers/firmware/qcom_scm-64.c 		*size = res.a1;
res               436 drivers/firmware/qcom_scm-64.c 	return ret ? : res.a2;
res               443 drivers/firmware/qcom_scm-64.c 	struct arm_smccc_res res;
res               453 drivers/firmware/qcom_scm-64.c 			    QCOM_SCM_IOMMU_SECURE_PTBL_INIT, &desc, &res);
res               465 drivers/firmware/qcom_scm-64.c 	struct arm_smccc_res res;
res               472 drivers/firmware/qcom_scm-64.c 			     &desc, &res);
res               479 drivers/firmware/qcom_scm-64.c 	struct arm_smccc_res res;
res               486 drivers/firmware/qcom_scm-64.c 			    &desc, &res);
res               488 drivers/firmware/qcom_scm-64.c 		*val = res.a1;
res               496 drivers/firmware/qcom_scm-64.c 	struct arm_smccc_res res;
res               503 drivers/firmware/qcom_scm-64.c 			     &desc, &res);
res               386 drivers/firmware/qcom_scm.c 	struct resource res;
res               394 drivers/firmware/qcom_scm.c 	ret = of_address_to_resource(tcsr, 0, &res);
res               403 drivers/firmware/qcom_scm.c 	*addr = res.start + offset;
res               800 drivers/firmware/qemu_fw_cfg.c 	struct resource res[4] = {};
res               835 drivers/firmware/qemu_fw_cfg.c 	res[0].start = base;
res               836 drivers/firmware/qemu_fw_cfg.c 	res[0].end = base + size - 1;
res               837 drivers/firmware/qemu_fw_cfg.c 	res[0].flags = !strcmp(kp->name, "mmio") ? IORESOURCE_MEM :
res               842 drivers/firmware/qemu_fw_cfg.c 		res[1].name = "ctrl";
res               843 drivers/firmware/qemu_fw_cfg.c 		res[1].start = ctrl_off;
res               844 drivers/firmware/qemu_fw_cfg.c 		res[1].flags = IORESOURCE_REG;
res               845 drivers/firmware/qemu_fw_cfg.c 		res[2].name = "data";
res               846 drivers/firmware/qemu_fw_cfg.c 		res[2].start = data_off;
res               847 drivers/firmware/qemu_fw_cfg.c 		res[2].flags = IORESOURCE_REG;
res               850 drivers/firmware/qemu_fw_cfg.c 		res[3].name = "dma";
res               851 drivers/firmware/qemu_fw_cfg.c 		res[3].start = dma_off;
res               852 drivers/firmware/qemu_fw_cfg.c 		res[3].flags = IORESOURCE_REG;
res               859 drivers/firmware/qemu_fw_cfg.c 					PLATFORM_DEVID_NONE, res, processed);
res                74 drivers/firmware/stratix10-rsu.c 	struct arm_smccc_res *res = (struct arm_smccc_res *)data->kaddr1;
res                78 drivers/firmware/stratix10-rsu.c 						 res->a2);
res                79 drivers/firmware/stratix10-rsu.c 		priv->status.state = FIELD_GET(RSU_STATE_MASK, res->a2);
res                80 drivers/firmware/stratix10-rsu.c 		priv->status.fail_image = res->a1;
res                81 drivers/firmware/stratix10-rsu.c 		priv->status.current_image = res->a0;
res                83 drivers/firmware/stratix10-rsu.c 			FIELD_GET(RSU_ERROR_LOCATION_MASK, res->a3);
res                85 drivers/firmware/stratix10-rsu.c 			FIELD_GET(RSU_ERROR_DETAIL_MASK, res->a3);
res                88 drivers/firmware/stratix10-rsu.c 			res->a0);
res               201 drivers/firmware/stratix10-svc.c 	struct arm_smccc_res res;
res               210 drivers/firmware/stratix10-svc.c 				0, 0, 0, 0, 0, 0, 0, &res);
res               212 drivers/firmware/stratix10-svc.c 		if (res.a0 == INTEL_SIP_SMC_STATUS_OK) {
res               213 drivers/firmware/stratix10-svc.c 			if (!res.a1) {
res               218 drivers/firmware/stratix10-svc.c 			cb_data->kaddr1 = svc_pa_to_va(res.a1);
res               219 drivers/firmware/stratix10-svc.c 			cb_data->kaddr2 = (res.a2) ?
res               220 drivers/firmware/stratix10-svc.c 					  svc_pa_to_va(res.a2) : NULL;
res               221 drivers/firmware/stratix10-svc.c 			cb_data->kaddr3 = (res.a3) ?
res               222 drivers/firmware/stratix10-svc.c 					  svc_pa_to_va(res.a3) : NULL;
res               229 drivers/firmware/stratix10-svc.c 	} while (res.a0 == INTEL_SIP_SMC_STATUS_OK ||
res               230 drivers/firmware/stratix10-svc.c 		 res.a0 == INTEL_SIP_SMC_FPGA_CONFIG_STATUS_BUSY ||
res               247 drivers/firmware/stratix10-svc.c 	struct arm_smccc_res res;
res               260 drivers/firmware/stratix10-svc.c 				0, 0, 0, 0, 0, 0, 0, &res);
res               261 drivers/firmware/stratix10-svc.c 		if ((res.a0 == INTEL_SIP_SMC_STATUS_OK) ||
res               262 drivers/firmware/stratix10-svc.c 		    (res.a0 == INTEL_SIP_SMC_FPGA_CONFIG_STATUS_ERROR))
res               273 drivers/firmware/stratix10-svc.c 	if (res.a0 == INTEL_SIP_SMC_STATUS_OK && count_in_sec)
res               289 drivers/firmware/stratix10-svc.c 				      struct arm_smccc_res res)
res               304 drivers/firmware/stratix10-svc.c 		cb_data->kaddr1 = svc_pa_to_va(res.a1);
res               315 drivers/firmware/stratix10-svc.c 		cb_data->kaddr1 = &res.a1;
res               342 drivers/firmware/stratix10-svc.c 	struct arm_smccc_res res;
res               423 drivers/firmware/stratix10-svc.c 		ctrl->invoke_fn(a0, a1, a2, 0, 0, 0, 0, 0, &res);
res               426 drivers/firmware/stratix10-svc.c 			 __func__, (unsigned int)res.a0);
res               428 drivers/firmware/stratix10-svc.c 			 (unsigned int)res.a1, (unsigned int)res.a2);
res               429 drivers/firmware/stratix10-svc.c 		pr_debug(" res.a3=0x%016x\n", (unsigned int)res.a3);
res               432 drivers/firmware/stratix10-svc.c 			if (res.a0 == INTEL_SIP_SMC_RSU_ERROR)
res               437 drivers/firmware/stratix10-svc.c 			cbdata->kaddr1 = &res;
res               444 drivers/firmware/stratix10-svc.c 		switch (res.a0) {
res               446 drivers/firmware/stratix10-svc.c 			svc_thread_recv_status_ok(pdata, cbdata, res);
res               524 drivers/firmware/stratix10-svc.c 	struct arm_smccc_res res;
res               528 drivers/firmware/stratix10-svc.c 			  0, 0, 0, 0, 0, 0, 0, &res);
res               529 drivers/firmware/stratix10-svc.c 	if (res.a0 == INTEL_SIP_SMC_STATUS_OK) {
res               530 drivers/firmware/stratix10-svc.c 		sh_mem->addr = res.a1;
res               531 drivers/firmware/stratix10-svc.c 		sh_mem->size = res.a2;
res               534 drivers/firmware/stratix10-svc.c 		       (unsigned int)res.a0);
res               664 drivers/firmware/stratix10-svc.c 			  struct arm_smccc_res *res)
res               666 drivers/firmware/stratix10-svc.c 	arm_smccc_smc(a0, a1, a2, a3, a4, a5, a6, a7, res);
res               685 drivers/firmware/stratix10-svc.c 			  struct arm_smccc_res *res)
res               687 drivers/firmware/stratix10-svc.c 	arm_smccc_hvc(a0, a1, a2, a3, a4, a5, a6, a7, res);
res               165 drivers/firmware/tegra/bpmp-tegra210.c 	struct resource *res;
res               175 drivers/firmware/tegra/bpmp-tegra210.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               176 drivers/firmware/tegra/bpmp-tegra210.c 	priv->atomics = devm_ioremap_resource(&pdev->dev, res);
res               180 drivers/firmware/tegra/bpmp-tegra210.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res               181 drivers/firmware/tegra/bpmp-tegra210.c 	priv->arb_sema = devm_ioremap_resource(&pdev->dev, res);
res               181 drivers/firmware/ti_sci.c 	struct resource *res;
res               185 drivers/firmware/ti_sci.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
res               187 drivers/firmware/ti_sci.c 	info->debug_region = devm_ioremap_resource(dev, res);
res               190 drivers/firmware/ti_sci.c 	info->debug_region_size = resource_size(res);
res               207 drivers/firmware/ti_sci.c 		info->debug_region, info->debug_region_size, res);
res              3071 drivers/firmware/ti_sci.c static void devm_ti_sci_release(struct device *dev, void *res)
res              3073 drivers/firmware/ti_sci.c 	const struct ti_sci_handle **ptr = res;
res              3203 drivers/firmware/ti_sci.c u16 ti_sci_get_free_resource(struct ti_sci_resource *res)
res              3208 drivers/firmware/ti_sci.c 	raw_spin_lock_irqsave(&res->lock, flags);
res              3209 drivers/firmware/ti_sci.c 	for (set = 0; set < res->sets; set++) {
res              3210 drivers/firmware/ti_sci.c 		free_bit = find_first_zero_bit(res->desc[set].res_map,
res              3211 drivers/firmware/ti_sci.c 					       res->desc[set].num);
res              3212 drivers/firmware/ti_sci.c 		if (free_bit != res->desc[set].num) {
res              3213 drivers/firmware/ti_sci.c 			set_bit(free_bit, res->desc[set].res_map);
res              3214 drivers/firmware/ti_sci.c 			raw_spin_unlock_irqrestore(&res->lock, flags);
res              3215 drivers/firmware/ti_sci.c 			return res->desc[set].start + free_bit;
res              3218 drivers/firmware/ti_sci.c 	raw_spin_unlock_irqrestore(&res->lock, flags);
res              3229 drivers/firmware/ti_sci.c void ti_sci_release_resource(struct ti_sci_resource *res, u16 id)
res              3234 drivers/firmware/ti_sci.c 	raw_spin_lock_irqsave(&res->lock, flags);
res              3235 drivers/firmware/ti_sci.c 	for (set = 0; set < res->sets; set++) {
res              3236 drivers/firmware/ti_sci.c 		if (res->desc[set].start <= id &&
res              3237 drivers/firmware/ti_sci.c 		    (res->desc[set].num + res->desc[set].start) > id)
res              3238 drivers/firmware/ti_sci.c 			clear_bit(id - res->desc[set].start,
res              3239 drivers/firmware/ti_sci.c 				  res->desc[set].res_map);
res              3241 drivers/firmware/ti_sci.c 	raw_spin_unlock_irqrestore(&res->lock, flags);
res              3251 drivers/firmware/ti_sci.c u32 ti_sci_get_num_resources(struct ti_sci_resource *res)
res              3255 drivers/firmware/ti_sci.c 	for (set = 0; set < res->sets; set++)
res              3256 drivers/firmware/ti_sci.c 		count += res->desc[set].num;
res              3276 drivers/firmware/ti_sci.c 	struct ti_sci_resource *res;
res              3281 drivers/firmware/ti_sci.c 	res = devm_kzalloc(dev, sizeof(*res), GFP_KERNEL);
res              3282 drivers/firmware/ti_sci.c 	if (!res)
res              3291 drivers/firmware/ti_sci.c 	res->sets = ret;
res              3293 drivers/firmware/ti_sci.c 	res->desc = devm_kcalloc(dev, res->sets, sizeof(*res->desc),
res              3295 drivers/firmware/ti_sci.c 	if (!res->desc)
res              3298 drivers/firmware/ti_sci.c 	for (i = 0; i < res->sets; i++) {
res              3306 drivers/firmware/ti_sci.c 							&res->desc[i].start,
res              3307 drivers/firmware/ti_sci.c 							&res->desc[i].num);
res              3311 drivers/firmware/ti_sci.c 			res->desc[i].start = 0;
res              3312 drivers/firmware/ti_sci.c 			res->desc[i].num = 0;
res              3317 drivers/firmware/ti_sci.c 			dev_id, resource_subtype, res->desc[i].start,
res              3318 drivers/firmware/ti_sci.c 			res->desc[i].num);
res              3321 drivers/firmware/ti_sci.c 		res->desc[i].res_map =
res              3322 drivers/firmware/ti_sci.c 			devm_kzalloc(dev, BITS_TO_LONGS(res->desc[i].num) *
res              3323 drivers/firmware/ti_sci.c 				     sizeof(*res->desc[i].res_map), GFP_KERNEL);
res              3324 drivers/firmware/ti_sci.c 		if (!res->desc[i].res_map)
res              3327 drivers/firmware/ti_sci.c 	raw_spin_lock_init(&res->lock);
res              3330 drivers/firmware/ti_sci.c 		return res;
res                85 drivers/firmware/xilinx/zynqmp.c 	struct arm_smccc_res res;
res                87 drivers/firmware/xilinx/zynqmp.c 	arm_smccc_smc(arg0, arg1, arg2, 0, 0, 0, 0, 0, &res);
res                90 drivers/firmware/xilinx/zynqmp.c 		ret_payload[0] = lower_32_bits(res.a0);
res                91 drivers/firmware/xilinx/zynqmp.c 		ret_payload[1] = upper_32_bits(res.a0);
res                92 drivers/firmware/xilinx/zynqmp.c 		ret_payload[2] = lower_32_bits(res.a1);
res                93 drivers/firmware/xilinx/zynqmp.c 		ret_payload[3] = upper_32_bits(res.a1);
res                96 drivers/firmware/xilinx/zynqmp.c 	return zynqmp_pm_ret_code((enum pm_ret_status)res.a0);
res               115 drivers/firmware/xilinx/zynqmp.c 	struct arm_smccc_res res;
res               117 drivers/firmware/xilinx/zynqmp.c 	arm_smccc_hvc(arg0, arg1, arg2, 0, 0, 0, 0, 0, &res);
res               120 drivers/firmware/xilinx/zynqmp.c 		ret_payload[0] = lower_32_bits(res.a0);
res               121 drivers/firmware/xilinx/zynqmp.c 		ret_payload[1] = upper_32_bits(res.a0);
res               122 drivers/firmware/xilinx/zynqmp.c 		ret_payload[2] = lower_32_bits(res.a1);
res               123 drivers/firmware/xilinx/zynqmp.c 		ret_payload[3] = upper_32_bits(res.a1);
res               126 drivers/firmware/xilinx/zynqmp.c 	return zynqmp_pm_ret_code((enum pm_ret_status)res.a0);
res               214 drivers/fpga/altera-freeze-bridge.c 	struct resource *res;
res               220 drivers/fpga/altera-freeze-bridge.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               221 drivers/fpga/altera-freeze-bridge.c 	base_addr = devm_ioremap_resource(dev, res);
res                18 drivers/fpga/altera-pr-ip-core-plat.c 	struct resource *res;
res                21 drivers/fpga/altera-pr-ip-core-plat.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                23 drivers/fpga/altera-pr-ip-core-plat.c 	reg_base = devm_ioremap_resource(dev, res);
res               493 drivers/fpga/dfl-afu-main.c 	struct resource *res = &pdev->resource[feature->resource_index];
res               497 drivers/fpga/dfl-afu-main.c 				   resource_size(res), res->start,
res               514 drivers/fpga/dfl-afu-main.c 	struct resource *res = &pdev->resource[feature->resource_index];
res               518 drivers/fpga/dfl-afu-main.c 				   resource_size(res), res->start,
res               289 drivers/fpga/dfl-fme-mgr.c 	struct resource *res;
res               299 drivers/fpga/dfl-fme-mgr.c 		res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               300 drivers/fpga/dfl-fme-mgr.c 		priv->ioaddr = devm_ioremap_resource(dev, res);
res               388 drivers/fpga/fpga-bridge.c static void devm_fpga_bridge_release(struct device *dev, void *res)
res               390 drivers/fpga/fpga-bridge.c 	struct fpga_bridge *bridge = *(struct fpga_bridge **)res;
res               628 drivers/fpga/fpga-mgr.c static void devm_fpga_mgr_release(struct device *dev, void *res)
res               630 drivers/fpga/fpga-mgr.c 	struct fpga_manager *mgr = *(struct fpga_manager **)res;
res               247 drivers/fpga/fpga-region.c static void devm_fpga_region_release(struct device *dev, void *res)
res               249 drivers/fpga/fpga-region.c 	struct fpga_region *region = *(struct fpga_region **)res;
res               474 drivers/fpga/socfpga-a10.c 	struct resource *res;
res               482 drivers/fpga/socfpga-a10.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               483 drivers/fpga/socfpga-a10.c 	reg_base = devm_ioremap_resource(dev, res);
res               488 drivers/fpga/socfpga-a10.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res               489 drivers/fpga/socfpga-a10.c 	priv->fpga_data_addr = devm_ioremap_resource(dev, res);
res               548 drivers/fpga/socfpga.c 	struct resource *res;
res               555 drivers/fpga/socfpga.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               556 drivers/fpga/socfpga.c 	priv->fpga_base_addr = devm_ioremap_resource(dev, res);
res               560 drivers/fpga/socfpga.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res               561 drivers/fpga/socfpga.c 	priv->fpga_data_addr = devm_ioremap_resource(dev, res);
res               112 drivers/fpga/ts73xx-fpga.c 	struct resource *res;
res               120 drivers/fpga/ts73xx-fpga.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               121 drivers/fpga/ts73xx-fpga.c 	priv->io_base = devm_ioremap_resource(kdev, res);
res                91 drivers/fpga/xilinx-pr-decoupler.c 	struct resource *res;
res                97 drivers/fpga/xilinx-pr-decoupler.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                98 drivers/fpga/xilinx-pr-decoupler.c 	priv->io_base = devm_ioremap_resource(&pdev->dev, res);
res               558 drivers/fpga/zynq-fpga.c 	struct resource *res;
res               566 drivers/fpga/zynq-fpga.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               567 drivers/fpga/zynq-fpga.c 	priv->io_base = devm_ioremap_resource(dev, res);
res              1218 drivers/fsi/fsi-master-ast-cf.c 	struct resource res;
res              1293 drivers/fsi/fsi-master-ast-cf.c 	rc = of_address_to_resource(np, 0, &res);
res              1300 drivers/fsi/fsi-master-ast-cf.c 	master->cf_mem_size = resource_size(&res);
res              1301 drivers/fsi/fsi-master-ast-cf.c 	master->cf_mem_addr = (uint32_t)res.start;
res              1308 drivers/fsi/fsi-master-ast-cf.c 	master->cf_mem = devm_ioremap_resource(&pdev->dev, &res);
res               229 drivers/gpio/gpio-ath79.c 	struct resource *res;
res               259 drivers/gpio/gpio-ath79.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               260 drivers/gpio/gpio-ath79.c 	if (!res)
res               262 drivers/gpio/gpio-ath79.c 	ctrl->base = devm_ioremap_nocache(dev, res->start, resource_size(res));
res               267 drivers/gpio/gpio-bcm-kona.c 	u32 val, res;
res               284 drivers/gpio/gpio-bcm-kona.c 		res = fls(debounce) - 1;
res               286 drivers/gpio/gpio-bcm-kona.c 		if (res > 0 && (debounce & BIT(res - 1)))
res               287 drivers/gpio/gpio-bcm-kona.c 			res++;
res               301 drivers/gpio/gpio-bcm-kona.c 		    (res << GPIO_GPCTR0_DBR_SHIFT);
res               370 drivers/gpio/gpio-brcmstb.c 		struct device_node *np, struct resource *res)
res               372 drivers/gpio/gpio-brcmstb.c 	int res_num_banks = resource_size(res) / GIO_BANK_SIZE;
res               612 drivers/gpio/gpio-brcmstb.c 	struct resource *res;
res               628 drivers/gpio/gpio-brcmstb.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               629 drivers/gpio/gpio-brcmstb.c 	reg_base = devm_ioremap_resource(dev, res);
res               645 drivers/gpio/gpio-brcmstb.c 	if (brcmstb_gpio_sanity_check_banks(dev, np, res))
res               306 drivers/gpio/gpio-cs5535.c 	struct resource *res;
res               317 drivers/gpio/gpio-cs5535.c 	res = platform_get_resource(pdev, IORESOURCE_IO, 0);
res               318 drivers/gpio/gpio-cs5535.c 	if (!res) {
res               323 drivers/gpio/gpio-cs5535.c 	if (!devm_request_region(&pdev->dev, res->start, resource_size(res),
res               330 drivers/gpio/gpio-cs5535.c 	cs5535_gpio_chip.base = res->start;
res               334 drivers/gpio/gpio-cs5535.c 	dev_info(&pdev->dev, "reserved resource region %pR\n", res);
res               212 drivers/gpio/gpio-hlwd.c 	int res;
res               233 drivers/gpio/gpio-hlwd.c 	res = bgpio_init(&hlwd->gpioc, &pdev->dev, 4,
res               237 drivers/gpio/gpio-hlwd.c 	if (res < 0) {
res               238 drivers/gpio/gpio-hlwd.c 		dev_warn(&pdev->dev, "bgpio_init failed: %d\n", res);
res               239 drivers/gpio/gpio-hlwd.c 		return res;
res               242 drivers/gpio/gpio-hlwd.c 	res = of_property_read_u32(pdev->dev.of_node, "ngpios", &ngpios);
res               243 drivers/gpio/gpio-hlwd.c 	if (res)
res               263 drivers/gpio/gpio-htc-egpio.c 	struct resource   *res;
res               279 drivers/gpio/gpio-htc-egpio.c 	res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
res               280 drivers/gpio/gpio-htc-egpio.c 	if (res)
res               281 drivers/gpio/gpio-htc-egpio.c 		ei->chained_irq = res->start;
res               284 drivers/gpio/gpio-htc-egpio.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               285 drivers/gpio/gpio-htc-egpio.c 	if (!res)
res               287 drivers/gpio/gpio-htc-egpio.c 	ei->base_addr = devm_ioremap_nocache(&pdev->dev, res->start,
res               288 drivers/gpio/gpio-htc-egpio.c 					     resource_size(res));
res               291 drivers/gpio/gpio-htc-egpio.c 	pr_debug("EGPIO phys=%08x virt=%p\n", (u32)res->start, ei->base_addr);
res               195 drivers/gpio/gpio-ixp4xx.c 	struct resource *res;
res               205 drivers/gpio/gpio-ixp4xx.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               206 drivers/gpio/gpio-ixp4xx.c 	g->base = devm_ioremap_resource(dev, res);
res               232 drivers/gpio/gpio-ixp4xx.c 		g->fwnode = irq_domain_alloc_fwnode(&res->start);
res               210 drivers/gpio/gpio-lpc18xx.c 	struct resource res;
res               233 drivers/gpio/gpio-lpc18xx.c 	ret = of_address_to_resource(dev->of_node, index, &res);
res               237 drivers/gpio/gpio-lpc18xx.c 	ic->base = devm_ioremap_resource(dev, &res);
res               345 drivers/gpio/gpio-lpc18xx.c 		struct resource res;
res               347 drivers/gpio/gpio-lpc18xx.c 		ret = of_address_to_resource(dev->of_node, index, &res);
res               351 drivers/gpio/gpio-lpc18xx.c 		gc->base = devm_ioremap_resource(dev, &res);
res               776 drivers/gpio/gpio-mvebu.c 	struct resource *res;
res               789 drivers/gpio/gpio-mvebu.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "pwm");
res               790 drivers/gpio/gpio-mvebu.c 	if (!res)
res               815 drivers/gpio/gpio-mvebu.c 	mvpwm->membase = devm_ioremap_resource(dev, res);
res               293 drivers/gpio/gpio-pl061.c 	pl061->base = devm_ioremap_resource(dev, &adev->res);
res               146 drivers/gpio/gpio-sch.c 	struct resource *res;
res               152 drivers/gpio/gpio-sch.c 	res = platform_get_resource(pdev, IORESOURCE_IO, 0);
res               153 drivers/gpio/gpio-sch.c 	if (!res)
res               156 drivers/gpio/gpio-sch.c 	if (!devm_request_region(&pdev->dev, res->start, resource_size(res),
res               161 drivers/gpio/gpio-sch.c 	sch->iobase = res->start;
res               410 drivers/gpio/gpio-tegra186.c 	struct resource *res;
res               420 drivers/gpio/gpio-tegra186.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "gpio");
res               421 drivers/gpio/gpio-tegra186.c 	gpio->base = devm_ioremap_resource(&pdev->dev, res);
res               235 drivers/gpio/gpio-tqmx86.c 	struct resource *res;
res               242 drivers/gpio/gpio-tqmx86.c 	res = platform_get_resource(pdev, IORESOURCE_IO, 0);
res               243 drivers/gpio/gpio-tqmx86.c 	if (!res) {
res               248 drivers/gpio/gpio-tqmx86.c 	io_base = devm_ioport_map(&pdev->dev, res->start, resource_size(res));
res               320 drivers/gpio/gpio-ts5500.c 	struct resource *res;
res               324 drivers/gpio/gpio-ts5500.c 	res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
res               325 drivers/gpio/gpio-ts5500.c 	if (!res) {
res               335 drivers/gpio/gpio-ts5500.c 	priv->hwirq = res->start;
res               158 drivers/gpio/gpio-xgene.c 	struct resource *res;
res               168 drivers/gpio/gpio-xgene.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               169 drivers/gpio/gpio-xgene.c 	if (!res) {
res               174 drivers/gpio/gpio-xgene.c 	gpio->base = devm_ioremap_nocache(&pdev->dev, res->start,
res               175 drivers/gpio/gpio-xgene.c 							resource_size(res));
res               464 drivers/gpio/gpiolib-acpi.c static void devm_acpi_dev_release_driver_gpios(struct device *dev, void *res)
res               472 drivers/gpio/gpiolib-acpi.c 	void *res;
res               475 drivers/gpio/gpiolib-acpi.c 	res = devres_alloc(devm_acpi_dev_release_driver_gpios, 0, GFP_KERNEL);
res               476 drivers/gpio/gpiolib-acpi.c 	if (!res)
res               481 drivers/gpio/gpiolib-acpi.c 		devres_free(res);
res               484 drivers/gpio/gpiolib-acpi.c 	devres_add(dev, res);
res                18 drivers/gpio/gpiolib-devres.c static void devm_gpiod_release(struct device *dev, void *res)
res                20 drivers/gpio/gpiolib-devres.c 	struct gpio_desc **desc = res;
res                25 drivers/gpio/gpiolib-devres.c static int devm_gpiod_match(struct device *dev, void *res, void *data)
res                27 drivers/gpio/gpiolib-devres.c 	struct gpio_desc **this = res, **gpio = data;
res                32 drivers/gpio/gpiolib-devres.c static void devm_gpiod_release_array(struct device *dev, void *res)
res                34 drivers/gpio/gpiolib-devres.c 	struct gpio_descs **descs = res;
res                39 drivers/gpio/gpiolib-devres.c static int devm_gpiod_match_array(struct device *dev, void *res, void *data)
res                41 drivers/gpio/gpiolib-devres.c 	struct gpio_descs **this = res, **gpios = data;
res               398 drivers/gpio/gpiolib-devres.c static void devm_gpio_release(struct device *dev, void *res)
res               400 drivers/gpio/gpiolib-devres.c 	unsigned *gpio = res;
res               405 drivers/gpio/gpiolib-devres.c static int devm_gpio_match(struct device *dev, void *res, void *data)
res               407 drivers/gpio/gpiolib-devres.c 	unsigned *this = res, *gpio = data;
res              1543 drivers/gpio/gpiolib.c static void devm_gpio_chip_release(struct device *dev, void *res)
res              1545 drivers/gpio/gpiolib.c 	struct gpio_chip *chip = *(struct gpio_chip **)res;
res                90 drivers/gpu/drm/amd/amdgpu/amdgpu_afmt.c 	struct amdgpu_afmt_acr res;
res               100 drivers/gpu/drm/amd/amdgpu/amdgpu_afmt.c 	amdgpu_afmt_calc_cts(clock, &res.cts_32khz, &res.n_32khz, 32000);
res               101 drivers/gpu/drm/amd/amdgpu/amdgpu_afmt.c 	amdgpu_afmt_calc_cts(clock, &res.cts_44_1khz, &res.n_44_1khz, 44100);
res               102 drivers/gpu/drm/amd/amdgpu/amdgpu_afmt.c 	amdgpu_afmt_calc_cts(clock, &res.cts_48khz, &res.n_48khz, 48000);
res               104 drivers/gpu/drm/amd/amdgpu/amdgpu_afmt.c 	return res;
res               757 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	struct resource *res;
res               771 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	pci_bus_for_each_resource(root, res, i) {
res               772 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		if (res && res->flags & (IORESOURCE_MEM | IORESOURCE_MEM_64) &&
res               773 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		    res->start > 0x100000000ull)
res               778 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	if (!res)
res              1340 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 				int res = -1;
res              1345 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 					res = kstrtol(pciaddname_tmp, 10,
res              1348 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 				if (!res) {
res               676 drivers/gpu/drm/amd/amdgpu/smu_v11_0_i2c.c 	int res;
res               685 drivers/gpu/drm/amd/amdgpu/smu_v11_0_i2c.c 	res = i2c_add_adapter(control);
res               686 drivers/gpu/drm/amd/amdgpu/smu_v11_0_i2c.c 	if (res)
res               687 drivers/gpu/drm/amd/amdgpu/smu_v11_0_i2c.c 		DRM_ERROR("Failed to register hw i2c, err: %d\n", res);
res               689 drivers/gpu/drm/amd/amdgpu/smu_v11_0_i2c.c 	return res;
res               974 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c 	struct scheduling_resources res;
res               976 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c 	res.vmid_mask = dqm->dev->shared_resources.compute_vmid_bitmap;
res               978 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c 	res.queue_mask = 0;
res               994 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c 		if (WARN_ON(i >= (sizeof(res.queue_mask)*8))) {
res               999 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c 		res.queue_mask |= (1ull << i);
res              1001 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c 	res.gws_mask = ~0ull;
res              1002 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c 	res.oac_mask = res.gds_heap_base = res.gds_heap_size = 0;
res              1007 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c 			res.vmid_mask, res.queue_mask);
res              1009 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c 	return pm_send_set_resources(&dqm->packets, &res);
res               148 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c 				struct scheduling_resources *res)
res               160 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c 	packet->bitfields2.vmid_mask = res->vmid_mask;
res               162 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c 	packet->bitfields7.oac_mask = res->oac_mask;
res               163 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c 	packet->bitfields8.gds_heap_base = res->gds_heap_base;
res               164 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c 	packet->bitfields8.gds_heap_size = res->gds_heap_size;
res               166 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c 	packet->gws_mask_lo = lower_32_bits(res->gws_mask);
res               167 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c 	packet->gws_mask_hi = upper_32_bits(res->gws_mask);
res               169 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c 	packet->queue_mask_lo = lower_32_bits(res->queue_mask);
res               170 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c 	packet->queue_mask_hi = upper_32_bits(res->queue_mask);
res               155 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c 				struct scheduling_resources *res)
res               167 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c 	packet->bitfields2.vmid_mask = res->vmid_mask;
res               169 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c 	packet->bitfields7.oac_mask = res->oac_mask;
res               170 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c 	packet->bitfields8.gds_heap_base = res->gds_heap_base;
res               171 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c 	packet->bitfields8.gds_heap_size = res->gds_heap_size;
res               173 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c 	packet->gws_mask_lo = lower_32_bits(res->gws_mask);
res               174 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c 	packet->gws_mask_hi = upper_32_bits(res->gws_mask);
res               176 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c 	packet->queue_mask_lo = lower_32_bits(res->queue_mask);
res               177 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c 	packet->queue_mask_hi = upper_32_bits(res->queue_mask);
res               273 drivers/gpu/drm/amd/amdkfd/kfd_packet_manager.c 				struct scheduling_resources *res)
res               289 drivers/gpu/drm/amd/amdkfd/kfd_packet_manager.c 	retval = pm->pmf->set_resources(pm, buffer, res);
res               950 drivers/gpu/drm/amd/amdkfd/kfd_priv.h 			struct scheduling_resources *res);
res               979 drivers/gpu/drm/amd/amdkfd/kfd_priv.h 				struct scheduling_resources *res);
res               994 drivers/gpu/drm/amd/amdkfd/kfd_priv.h 			struct scheduling_resources *res);
res              1195 drivers/gpu/drm/amd/amdkfd/kfd_topology.c 	int res = 0;
res              1218 drivers/gpu/drm/amd/amdkfd/kfd_topology.c 		res = kfd_create_crat_image_virtual(&crat_image, &image_size,
res              1221 drivers/gpu/drm/amd/amdkfd/kfd_topology.c 		if (res) {
res              1224 drivers/gpu/drm/amd/amdkfd/kfd_topology.c 			return res;
res              1226 drivers/gpu/drm/amd/amdkfd/kfd_topology.c 		res = kfd_parse_crat_table(crat_image,
res              1229 drivers/gpu/drm/amd/amdkfd/kfd_topology.c 		if (res) {
res              1242 drivers/gpu/drm/amd/amdkfd/kfd_topology.c 		res = kfd_topology_update_sysfs();
res              1245 drivers/gpu/drm/amd/amdkfd/kfd_topology.c 		if (!res)
res              1249 drivers/gpu/drm/amd/amdkfd/kfd_topology.c 						gpu_id, res);
res              1252 drivers/gpu/drm/amd/amdkfd/kfd_topology.c 			res = -ENODEV;
res              1367 drivers/gpu/drm/amd/amdkfd/kfd_topology.c 	if (!res)
res              1371 drivers/gpu/drm/amd/amdkfd/kfd_topology.c 	return res;
res              1378 drivers/gpu/drm/amd/amdkfd/kfd_topology.c 	int res = -ENODEV;
res              1388 drivers/gpu/drm/amd/amdkfd/kfd_topology.c 			res = 0;
res              1396 drivers/gpu/drm/amd/amdkfd/kfd_topology.c 	if (!res)
res              1399 drivers/gpu/drm/amd/amdkfd/kfd_topology.c 	return res;
res              4740 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	int res = -EPERM;
res              4745 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	res = drm_universal_plane_init(dm->adev->ddev, plane, possible_crtcs,
res              4748 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	if (res)
res              4749 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 		return res;
res              4788 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	int res = -ENOMEM;
res              4795 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	res = amdgpu_dm_plane_init(dm, cursor_plane, 0, NULL);
res              4801 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	res = drm_crtc_init_with_planes(
res              4808 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	if (res)
res              4834 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	return res;
res              5161 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	   int *res)
res              5191 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	int res = 0;
res              5201 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	i2c = create_i2c(link->ddc, link->link_index, &res);
res              5208 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	res = i2c_add_adapter(&i2c->base);
res              5210 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	if (res) {
res              5217 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	res = drm_connector_init(
res              5223 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	if (res) {
res              5255 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	if (res) {
res              5259 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	return res;
res              5287 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	int res = drm_encoder_init(dev,
res              5295 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	if (!res)
res              5302 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	return res;
res               198 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c 	bool res;
res               210 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c 	res = mod_color_calculate_regamma_params(func, gamma, true, has_rom,
res               213 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c 	return res ? 0 : -ENOMEM;
res               222 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c 	bool res;
res               240 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c 		res = mod_color_calculate_degamma_params(func, gamma, true);
res               247 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c 		res = mod_color_calculate_regamma_params(func, gamma, false,
res               253 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c 	return res ? 0 : -ENOMEM;
res               261 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c 	bool res;
res               272 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c 	res = mod_color_calculate_degamma_params(func, gamma, true);
res               275 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c 	return res ? 0 : -ENOMEM;
res               687 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 	int res = -ENODEV;
res               730 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 	res = 0;
res               739 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 	return res;
res                65 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c 		     bool res)
res                74 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c 			res ? "OK" : "Fail");
res                76 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c 	if (res) {
res                69 drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c 	struct fixed31_32 res;
res               111 drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c 	res.value = (long long)res_value;
res               114 drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c 		res.value = -res.value;
res               116 drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c 	return res;
res               121 drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c 	struct fixed31_32 res;
res               137 drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c 	res.value = arg1_int * arg2_int;
res               139 drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c 	ASSERT(res.value <= LONG_MAX);
res               141 drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c 	res.value <<= FIXED31_32_BITS_PER_FRACTIONAL_PART;
res               145 drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c 	ASSERT(tmp <= (unsigned long long)(LLONG_MAX - res.value));
res               147 drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c 	res.value += tmp;
res               151 drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c 	ASSERT(tmp <= (unsigned long long)(LLONG_MAX - res.value));
res               153 drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c 	res.value += tmp;
res               160 drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c 	ASSERT(tmp <= (unsigned long long)(LLONG_MAX - res.value));
res               162 drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c 	res.value += tmp;
res               165 drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c 		res.value = -res.value;
res               167 drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c 	return res;
res               172 drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c 	struct fixed31_32 res;
res               182 drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c 	res.value = arg_int * arg_int;
res               184 drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c 	ASSERT(res.value <= LONG_MAX);
res               186 drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c 	res.value <<= FIXED31_32_BITS_PER_FRACTIONAL_PART;
res               190 drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c 	ASSERT(tmp <= (unsigned long long)(LLONG_MAX - res.value));
res               192 drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c 	res.value += tmp;
res               194 drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c 	ASSERT(tmp <= (unsigned long long)(LLONG_MAX - res.value));
res               196 drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c 	res.value += tmp;
res               203 drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c 	ASSERT(tmp <= (unsigned long long)(LLONG_MAX - res.value));
res               205 drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c 	res.value += tmp;
res               207 drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c 	return res;
res               228 drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c 	struct fixed31_32 res = dc_fixpt_one;
res               249 drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c 		res = dc_fixpt_sub(
res               254 drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c 					res),
res               261 drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c 		res = dc_fixpt_div(
res               262 drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c 			dc_fixpt_mul(res, arg_norm),
res               265 drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c 	return res;
res               281 drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c 	struct fixed31_32 res = dc_fixpt_one;
res               286 drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c 		res = dc_fixpt_sub(
res               291 drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c 					res),
res               297 drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c 	return res;
res               311 drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c 	struct fixed31_32 res = dc_fixpt_from_fraction(
res               319 drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c 		res = dc_fixpt_add(
res               324 drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c 					res),
res               332 drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c 			res));
res               380 drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c 	struct fixed31_32 res = dc_fixpt_neg(dc_fixpt_one);
res               392 drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c 				res,
res               396 drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c 				dc_fixpt_exp(res)));
res               399 drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c 			res,
res               402 drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c 		res = res1;
res               406 drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c 	return res;
res                51 drivers/gpu/drm/amd/display/dc/calcs/bw_fixed.c 	struct bw_fixed res;
res                53 drivers/gpu/drm/amd/display/dc/calcs/bw_fixed.c 	res.value = value << BW_FIXED_BITS_PER_FRACTIONAL_PART;
res                54 drivers/gpu/drm/amd/display/dc/calcs/bw_fixed.c 	return res;
res                59 drivers/gpu/drm/amd/display/dc/calcs/bw_fixed.c 	struct bw_fixed res;
res               104 drivers/gpu/drm/amd/display/dc/calcs/bw_fixed.c 	res.value = (int64_t)(res_value);
res               107 drivers/gpu/drm/amd/display/dc/calcs/bw_fixed.c 		res.value = -res.value;
res               108 drivers/gpu/drm/amd/display/dc/calcs/bw_fixed.c 	return res;
res               144 drivers/gpu/drm/amd/display/dc/calcs/bw_fixed.c 	struct bw_fixed res;
res               160 drivers/gpu/drm/amd/display/dc/calcs/bw_fixed.c 	res.value = arg1_int * arg2_int;
res               162 drivers/gpu/drm/amd/display/dc/calcs/bw_fixed.c 	ASSERT(res.value <= BW_FIXED_MAX_I32);
res               164 drivers/gpu/drm/amd/display/dc/calcs/bw_fixed.c 	res.value <<= BW_FIXED_BITS_PER_FRACTIONAL_PART;
res               168 drivers/gpu/drm/amd/display/dc/calcs/bw_fixed.c 	ASSERT(tmp <= (uint64_t)(MAX_I64 - res.value));
res               170 drivers/gpu/drm/amd/display/dc/calcs/bw_fixed.c 	res.value += tmp;
res               174 drivers/gpu/drm/amd/display/dc/calcs/bw_fixed.c 	ASSERT(tmp <= (uint64_t)(MAX_I64 - res.value));
res               176 drivers/gpu/drm/amd/display/dc/calcs/bw_fixed.c 	res.value += tmp;
res               183 drivers/gpu/drm/amd/display/dc/calcs/bw_fixed.c 	ASSERT(tmp <= (uint64_t)(MAX_I64 - res.value));
res               185 drivers/gpu/drm/amd/display/dc/calcs/bw_fixed.c 	res.value += tmp;
res               188 drivers/gpu/drm/amd/display/dc/calcs/bw_fixed.c 		res.value = -res.value;
res               189 drivers/gpu/drm/amd/display/dc/calcs/bw_fixed.c 	return res;
res              1440 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c 	bool res;
res              1444 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c 	res = dm_pp_get_clock_levels_by_type_with_voltage(
res              1449 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c 	if (res)
res              1450 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c 		res = verify_clock_values(&fclks);
res              1452 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c 	if (res) {
res              1480 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c 	res = dm_pp_get_clock_levels_by_type_with_voltage(
res              1485 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c 	if (res)
res              1486 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c 		res = verify_clock_values(&dcfclks);
res              1488 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c 	if (res && dcfclks.num_levels >= 3) {
res               966 drivers/gpu/drm/amd/display/dc/core/dc_resource.c 	bool res = false;
res               998 drivers/gpu/drm/amd/display/dc/core/dc_resource.c 		res = pipe_ctx->plane_res.xfm->funcs->transform_get_optimal_number_of_taps(
res              1002 drivers/gpu/drm/amd/display/dc/core/dc_resource.c 		res = pipe_ctx->plane_res.dpp->funcs->dpp_get_optimal_number_of_taps(
res              1005 drivers/gpu/drm/amd/display/dc/core/dc_resource.c 	if (res &&
res              1013 drivers/gpu/drm/amd/display/dc/core/dc_resource.c 	if (!res) {
res              1018 drivers/gpu/drm/amd/display/dc/core/dc_resource.c 			res = pipe_ctx->plane_res.xfm->funcs->transform_get_optimal_number_of_taps(
res              1024 drivers/gpu/drm/amd/display/dc/core/dc_resource.c 			res = pipe_ctx->plane_res.dpp->funcs->dpp_get_optimal_number_of_taps(
res              1030 drivers/gpu/drm/amd/display/dc/core/dc_resource.c 	if (res)
res              1048 drivers/gpu/drm/amd/display/dc/core/dc_resource.c 	return res;
res              1689 drivers/gpu/drm/amd/display/dc/core/dc_resource.c 	enum dc_status res;
res              1701 drivers/gpu/drm/amd/display/dc/core/dc_resource.c 	res = dc->res_pool->funcs->add_stream_to_ctx(dc, new_ctx, stream);
res              1702 drivers/gpu/drm/amd/display/dc/core/dc_resource.c 	if (res != DC_OK)
res              1703 drivers/gpu/drm/amd/display/dc/core/dc_resource.c 		DC_LOG_WARNING("Adding stream %p to context failed with err %d!\n", stream, res);
res              1705 drivers/gpu/drm/amd/display/dc/core/dc_resource.c 	return res;
res              2750 drivers/gpu/drm/amd/display/dc/core/dc_resource.c 	enum dc_status res = DC_OK;
res              2755 drivers/gpu/drm/amd/display/dc/core/dc_resource.c 		res = DC_FAIL_CONTROLLER_VALIDATE;
res              2757 drivers/gpu/drm/amd/display/dc/core/dc_resource.c 	if (res == DC_OK) {
res              2760 drivers/gpu/drm/amd/display/dc/core/dc_resource.c 			res = DC_FAIL_ENC_VALIDATE;
res              2765 drivers/gpu/drm/amd/display/dc/core/dc_resource.c 	if (res == DC_OK)
res              2766 drivers/gpu/drm/amd/display/dc/core/dc_resource.c 		res = dc_link_validate_mode_timing(stream,
res              2770 drivers/gpu/drm/amd/display/dc/core/dc_resource.c 	return res;
res              2775 drivers/gpu/drm/amd/display/dc/core/dc_resource.c 	enum dc_status res = DC_OK;
res              2781 drivers/gpu/drm/amd/display/dc/core/dc_resource.c 	return res;
res               460 drivers/gpu/drm/amd/display/dc/dce/dce_aux.c 	int res = -1;
res               493 drivers/gpu/drm/amd/display/dc/dce/dce_aux.c 		res = returned_bytes;
res               495 drivers/gpu/drm/amd/display/dc/dce/dce_aux.c 		res = -1;
res               499 drivers/gpu/drm/amd/display/dc/dce/dce_aux.c 	return res;
res                72 drivers/gpu/drm/amd/display/dc/inc/bw_fixed.h 		struct bw_fixed res;
res                74 drivers/gpu/drm/amd/display/dc/inc/bw_fixed.h 		res.value = value << BW_FIXED_BITS_PER_FRACTIONAL_PART;
res                75 drivers/gpu/drm/amd/display/dc/inc/bw_fixed.h 		return res;
res               104 drivers/gpu/drm/amd/display/dc/inc/bw_fixed.h 	struct bw_fixed res;
res               106 drivers/gpu/drm/amd/display/dc/inc/bw_fixed.h 	res.value = arg1.value + arg2.value;
res               108 drivers/gpu/drm/amd/display/dc/inc/bw_fixed.h 	return res;
res               113 drivers/gpu/drm/amd/display/dc/inc/bw_fixed.h 	struct bw_fixed res;
res               115 drivers/gpu/drm/amd/display/dc/inc/bw_fixed.h 	res.value = arg1.value - arg2.value;
res               117 drivers/gpu/drm/amd/display/dc/inc/bw_fixed.h 	return res;
res               128 drivers/gpu/drm/amd/display/dc/inc/bw_fixed.h 	struct bw_fixed res;
res               129 drivers/gpu/drm/amd/display/dc/inc/bw_fixed.h 	div64_u64_rem(arg1.value, arg2.value, (uint64_t *)&res.value);
res               130 drivers/gpu/drm/amd/display/dc/inc/bw_fixed.h 	return res;
res                95 drivers/gpu/drm/amd/display/include/fixed31_32.h 	struct fixed31_32 res;
res                97 drivers/gpu/drm/amd/display/include/fixed31_32.h 	res.value = (long long) arg << FIXED31_32_BITS_PER_FRACTIONAL_PART;
res                99 drivers/gpu/drm/amd/display/include/fixed31_32.h 	return res;
res               113 drivers/gpu/drm/amd/display/include/fixed31_32.h 	struct fixed31_32 res;
res               115 drivers/gpu/drm/amd/display/include/fixed31_32.h 	res.value = -arg.value;
res               117 drivers/gpu/drm/amd/display/include/fixed31_32.h 	return res;
res               253 drivers/gpu/drm/amd/display/include/fixed31_32.h 	struct fixed31_32 res;
res               258 drivers/gpu/drm/amd/display/include/fixed31_32.h 	res.value = arg1.value + arg2.value;
res               260 drivers/gpu/drm/amd/display/include/fixed31_32.h 	return res;
res               278 drivers/gpu/drm/amd/display/include/fixed31_32.h 	struct fixed31_32 res;
res               283 drivers/gpu/drm/amd/display/include/fixed31_32.h 	res.value = arg1.value - arg2.value;
res               285 drivers/gpu/drm/amd/display/include/fixed31_32.h 	return res;
res               896 drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c 	int res = 0;
res               932 drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c 			res = func(hwmgr, &ps->hardware, i, pclock_info);
res               933 drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c 			if ((0 == result) && (0 != res))
res               934 drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c 				result = res;
res               959 drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c 			int res = func(hwmgr, &ps->hardware, i, pclock_info);
res               961 drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c 			if ((0 == result) && (0 != res))
res               962 drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c 					result = res;
res              4142 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c 	int res;
res              4148 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c 	res = smum_send_msg_to_smc_with_parameter(hwmgr,
res              4154 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c 	PP_ASSERT_WITH_CODE(!res, "[SmuI2CAccessBus] Failed to access bus!", return res);
res              4155 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c 	return res;
res              1791 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c 	int res;
res              1795 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c 		res = ci_convert_mc_reg_table_entry_to_smc(
res              1801 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c 		if (0 != res)
res              1802 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c 			result = res;
res              2131 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c 	int res;
res              2193 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c 	res = ci_copy_bytes_to_smc(hwmgr, ci_data->fan_table_start, (uint8_t *)&fan_table, (uint32_t)sizeof(fan_table), SMC_RAM_END);
res              2142 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c 	int res;
res              2217 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c 	res = smu7_copy_bytes_to_smc(hwmgr, smu_data->smu7_data.fan_table_start,
res              2221 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c 	if (!res && hwmgr->thermal_controller.
res              2223 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c 		res = smum_send_msg_to_smc_with_parameter(hwmgr,
res              2228 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c 	if (!res && hwmgr->thermal_controller.
res              2230 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c 		res = smum_send_msg_to_smc_with_parameter(hwmgr,
res              2235 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c 	if (res)
res              1758 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c 	int res;
res              1762 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c 		res = iceland_convert_mc_reg_table_entry_to_smc(
res              1768 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c 		if (0 != res)
res              1769 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c 			result = res;
res              2093 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c 	int res;
res              2157 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c 	res = smu7_copy_bytes_to_smc(hwmgr, smu7_data->fan_table_start, (uint8_t *)&fan_table, (uint32_t)sizeof(fan_table), SMC_RAM_END);
res              2073 drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c 	int res;
res              2152 drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c 	res = smu7_copy_bytes_to_smc(hwmgr, smu_data->smu7_data.fan_table_start,
res              2156 drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c 	if (!res && hwmgr->thermal_controller.
res              2158 drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c 		res = smum_send_msg_to_smc_with_parameter(hwmgr,
res              2163 drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c 	if (!res && hwmgr->thermal_controller.
res              2165 drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c 		res = smum_send_msg_to_smc_with_parameter(hwmgr,
res              2170 drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c 	if (res)
res              2137 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c 	int res;
res              2141 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c 		res = tonga_convert_mc_reg_table_entry_to_smc(
res              2147 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c 		if (0 != res)
res              2148 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c 			result = res;
res              2469 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c 	int res;
res              2542 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c 	res = smu7_copy_bytes_to_smc(hwmgr,
res                49 drivers/gpu/drm/arc/arcpgu_drv.c 	struct resource *res;
res                64 drivers/gpu/drm/arc/arcpgu_drv.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                65 drivers/gpu/drm/arc/arcpgu_drv.c 	arcpgu->regs = devm_ioremap_resource(&pdev->dev, res);
res                45 drivers/gpu/drm/arm/hdlcd_drv.c 	struct resource *res;
res                60 drivers/gpu/drm/arm/hdlcd_drv.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                61 drivers/gpu/drm/arm/hdlcd_drv.c 	hdlcd->mmio = devm_ioremap_resource(drm->dev, res);
res               645 drivers/gpu/drm/arm/malidp_drv.c static bool malidp_has_sufficient_address_space(const struct resource *res,
res               648 drivers/gpu/drm/arm/malidp_drv.c 	resource_size_t res_size = resource_size(res);
res               724 drivers/gpu/drm/arm/malidp_drv.c 	struct resource *res;
res               747 drivers/gpu/drm/arm/malidp_drv.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               748 drivers/gpu/drm/arm/malidp_drv.c 	hwdev->regs = devm_ioremap_resource(dev, res);
res               797 drivers/gpu/drm/arm/malidp_drv.c 	if (!malidp_has_sufficient_address_space(res, dev_id)) {
res               105 drivers/gpu/drm/armada/armada_510.c 	struct armada_clk_result res;
res               108 drivers/gpu/drm/armada/armada_510.c 	idx = armada_crtc_select_clock(dcrtc, &res, &armada510_clocking,
res               114 drivers/gpu/drm/armada/armada_510.c 	ret = clk_prepare_enable(res.clk);
res               119 drivers/gpu/drm/armada/armada_510.c 		clk_set_rate(res.clk, res.desired_clk_hz);
res               121 drivers/gpu/drm/armada/armada_510.c 		*sclk = res.div | armada510_clk_sels[idx];
res               124 drivers/gpu/drm/armada/armada_510.c 		v->sel_clk = res.clk;
res               125 drivers/gpu/drm/armada/armada_510.c 		swap(dcrtc->clk, res.clk);
res               128 drivers/gpu/drm/armada/armada_510.c 	clk_disable_unprepare(res.clk);
res               824 drivers/gpu/drm/armada/armada_crtc.c 			     struct armada_clk_result *res,
res               893 drivers/gpu/drm/armada/armada_crtc.c 	res->desired_clk_hz = desired_clk_hz;
res               894 drivers/gpu/drm/armada/armada_crtc.c 	res->clk = clk;
res               895 drivers/gpu/drm/armada/armada_crtc.c 	res->div = div;
res               901 drivers/gpu/drm/armada/armada_crtc.c 	struct resource *res, int irq, const struct armada_variant *variant,
res               910 drivers/gpu/drm/armada/armada_crtc.c 	base = devm_ioremap_resource(dev, res);
res              1003 drivers/gpu/drm/armada/armada_crtc.c 	struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1040 drivers/gpu/drm/armada/armada_crtc.c 	return armada_drm_crtc_create(drm, dev, res, irq, variant, port);
res                89 drivers/gpu/drm/armada/armada_crtc.h 			     struct armada_clk_result *res,
res               100 drivers/gpu/drm/aspeed/aspeed_gfx_drv.c 	struct resource *res;
res               108 drivers/gpu/drm/aspeed/aspeed_gfx_drv.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               109 drivers/gpu/drm/aspeed/aspeed_gfx_drv.c 	priv->base = devm_ioremap_resource(drm->dev, res);
res              1642 drivers/gpu/drm/bridge/analogix/analogix_dp_core.c 	struct resource *res;
res              1696 drivers/gpu/drm/bridge/analogix/analogix_dp_core.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1698 drivers/gpu/drm/bridge/analogix/analogix_dp_core.c 	dp->reg_base = devm_ioremap_resource(&pdev->dev, res);
res              1172 drivers/gpu/drm/bridge/cdns-dsi.c 	struct resource *res;
res              1184 drivers/gpu/drm/bridge/cdns-dsi.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1185 drivers/gpu/drm/bridge/cdns-dsi.c 	dsi->regs = devm_ioremap_resource(&pdev->dev, res);
res               204 drivers/gpu/drm/bridge/panel.c static void devm_drm_panel_bridge_release(struct device *dev, void *res)
res               206 drivers/gpu/drm/bridge/panel.c 	struct drm_bridge **bridge = res;
res              1398 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c 	dw_hdmi_phy_i2c_write(hdmi, mpll_config->res[0].cpce,
res              1400 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c 	dw_hdmi_phy_i2c_write(hdmi, mpll_config->res[0].gmp,
res               984 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c 	struct resource *res;
res              1000 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c 		res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1001 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c 		if (!res)
res              1004 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c 		dsi->base = devm_ioremap_resource(dev, res);
res               333 drivers/gpu/drm/drm_context.c 	struct drm_ctx_res *res = data;
res               341 drivers/gpu/drm/drm_context.c 	if (res->count >= DRM_RESERVED_CONTEXTS) {
res               345 drivers/gpu/drm/drm_context.c 			if (copy_to_user(&res->contexts[i], &ctx, sizeof(ctx)))
res               349 drivers/gpu/drm/drm_context.c 	res->count = DRM_RESERVED_CONTEXTS;
res               108 drivers/gpu/drm/drm_dp_aux_dev.c 	ssize_t res;
res               115 drivers/gpu/drm/drm_dp_aux_dev.c 	res = sprintf(buf, "%s\n", aux_dev->aux->name);
res               118 drivers/gpu/drm/drm_dp_aux_dev.c 	return res;
res               150 drivers/gpu/drm/drm_dp_aux_dev.c 	ssize_t res = 0;
res               162 drivers/gpu/drm/drm_dp_aux_dev.c 			res = -ERESTARTSYS;
res               167 drivers/gpu/drm/drm_dp_aux_dev.c 			res = drm_dp_mst_dpcd_read(aux_dev->aux, pos, buf,
res               170 drivers/gpu/drm/drm_dp_aux_dev.c 			res = drm_dp_dpcd_read(aux_dev->aux, pos, buf, todo);
res               172 drivers/gpu/drm/drm_dp_aux_dev.c 		if (res <= 0)
res               175 drivers/gpu/drm/drm_dp_aux_dev.c 		if (copy_to_iter(buf, res, to) != res) {
res               176 drivers/gpu/drm/drm_dp_aux_dev.c 			res = -EFAULT;
res               180 drivers/gpu/drm/drm_dp_aux_dev.c 		pos += res;
res               184 drivers/gpu/drm/drm_dp_aux_dev.c 		res = pos - iocb->ki_pos;
res               190 drivers/gpu/drm/drm_dp_aux_dev.c 	return res;
res               197 drivers/gpu/drm/drm_dp_aux_dev.c 	ssize_t res = 0;
res               209 drivers/gpu/drm/drm_dp_aux_dev.c 			res = -ERESTARTSYS;
res               214 drivers/gpu/drm/drm_dp_aux_dev.c 			res = -EFAULT;
res               219 drivers/gpu/drm/drm_dp_aux_dev.c 			res = drm_dp_mst_dpcd_write(aux_dev->aux, pos, buf,
res               222 drivers/gpu/drm/drm_dp_aux_dev.c 			res = drm_dp_dpcd_write(aux_dev->aux, pos, buf, todo);
res               224 drivers/gpu/drm/drm_dp_aux_dev.c 		if (res <= 0)
res               227 drivers/gpu/drm/drm_dp_aux_dev.c 		pos += res;
res               231 drivers/gpu/drm/drm_dp_aux_dev.c 		res = pos - iocb->ki_pos;
res               237 drivers/gpu/drm/drm_dp_aux_dev.c 	return res;
res               308 drivers/gpu/drm/drm_dp_aux_dev.c 	int res;
res               318 drivers/gpu/drm/drm_dp_aux_dev.c 		res = PTR_ERR(aux_dev->dev);
res               328 drivers/gpu/drm/drm_dp_aux_dev.c 	return res;
res               333 drivers/gpu/drm/drm_dp_aux_dev.c 	int res;
res               341 drivers/gpu/drm/drm_dp_aux_dev.c 	res = register_chrdev(0, "aux", &auxdev_fops);
res               342 drivers/gpu/drm/drm_dp_aux_dev.c 	if (res < 0)
res               344 drivers/gpu/drm/drm_dp_aux_dev.c 	drm_dev_major = res;
res               349 drivers/gpu/drm/drm_dp_aux_dev.c 	return res;
res               555 drivers/gpu/drm/drm_ioc32.c 	struct drm_ctx_res res;
res               561 drivers/gpu/drm/drm_ioc32.c 	res.count = res32.count;
res               562 drivers/gpu/drm/drm_ioc32.c 	res.contexts = compat_ptr(res32.contexts);
res               563 drivers/gpu/drm/drm_ioc32.c 	err = drm_ioctl_kernel(file, drm_legacy_resctx, &res, DRM_AUTH);
res               567 drivers/gpu/drm/drm_ioc32.c 	res32.count = res.count;
res               642 drivers/gpu/drm/etnaviv/etnaviv_gem.c 	const struct etnaviv_gem_ops *ops, struct etnaviv_gem_object **res)
res               653 drivers/gpu/drm/etnaviv/etnaviv_gem.c 	*res = to_etnaviv_bo(obj);
res               117 drivers/gpu/drm/etnaviv/etnaviv_gem.h 	const struct etnaviv_gem_ops *ops, struct etnaviv_gem_object **res);
res               792 drivers/gpu/drm/exynos/exynos5433_drm_decon.c 	struct resource *res;
res               817 drivers/gpu/drm/exynos/exynos5433_drm_decon.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               818 drivers/gpu/drm/exynos/exynos5433_drm_decon.c 	ctx->addr = devm_ioremap_resource(dev, res);
res               675 drivers/gpu/drm/exynos/exynos7_drm_decon.c 	struct resource *res;
res               725 drivers/gpu/drm/exynos/exynos7_drm_decon.c 	res = platform_get_resource_byname(pdev, IORESOURCE_IRQ,
res               727 drivers/gpu/drm/exynos/exynos7_drm_decon.c 	if (!res) {
res               733 drivers/gpu/drm/exynos/exynos7_drm_decon.c 	ret = devm_request_irq(dev, res->start, decon_irq_handler,
res              1723 drivers/gpu/drm/exynos/exynos_drm_dsi.c 	struct resource *res;
res              1780 drivers/gpu/drm/exynos/exynos_drm_dsi.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1781 drivers/gpu/drm/exynos/exynos_drm_dsi.c 	dsi->reg_base = devm_ioremap_resource(dev, res);
res              1266 drivers/gpu/drm/exynos/exynos_drm_fimc.c 	struct resource *res;
res              1330 drivers/gpu/drm/exynos/exynos_drm_fimc.c 	res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
res              1331 drivers/gpu/drm/exynos/exynos_drm_fimc.c 	if (!res) {
res              1336 drivers/gpu/drm/exynos/exynos_drm_fimc.c 	ret = devm_request_irq(dev, res->start, fimc_irq_handler,
res              1120 drivers/gpu/drm/exynos/exynos_drm_fimd.c 	struct resource *res;
res              1189 drivers/gpu/drm/exynos/exynos_drm_fimd.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1191 drivers/gpu/drm/exynos/exynos_drm_fimd.c 	ctx->regs = devm_ioremap_resource(dev, res);
res              1195 drivers/gpu/drm/exynos/exynos_drm_fimd.c 	res = platform_get_resource_byname(pdev, IORESOURCE_IRQ,
res              1197 drivers/gpu/drm/exynos/exynos_drm_fimd.c 	if (!res) {
res              1202 drivers/gpu/drm/exynos/exynos_drm_fimd.c 	ret = devm_request_irq(dev, res->start, fimd_irq_handler,
res              1449 drivers/gpu/drm/exynos/exynos_drm_g2d.c 	struct resource *res;
res              1491 drivers/gpu/drm/exynos/exynos_drm_g2d.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1493 drivers/gpu/drm/exynos/exynos_drm_g2d.c 	g2d->regs = devm_ioremap_resource(dev, res);
res              1219 drivers/gpu/drm/exynos/exynos_drm_gsc.c 	struct resource *res;
res              1276 drivers/gpu/drm/exynos/exynos_drm_gsc.c 	res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
res              1277 drivers/gpu/drm/exynos/exynos_drm_gsc.c 	if (!res) {
res              1282 drivers/gpu/drm/exynos/exynos_drm_gsc.c 	ctx->irq = res->start;
res               431 drivers/gpu/drm/exynos/exynos_drm_ipp.c 			     struct drm_ipp_limit *res)
res               436 drivers/gpu/drm/exynos/exynos_drm_ipp.c 	memset(res, 0, sizeof(*res));
res               444 drivers/gpu/drm/exynos/exynos_drm_ipp.c 			__limit_set_val(&res->h.min, l->h.min);
res               445 drivers/gpu/drm/exynos/exynos_drm_ipp.c 			__limit_set_val(&res->h.max, l->h.max);
res               446 drivers/gpu/drm/exynos/exynos_drm_ipp.c 			__limit_set_val(&res->h.align, l->h.align);
res               447 drivers/gpu/drm/exynos/exynos_drm_ipp.c 			__limit_set_val(&res->v.min, l->v.min);
res               448 drivers/gpu/drm/exynos/exynos_drm_ipp.c 			__limit_set_val(&res->v.max, l->v.max);
res               449 drivers/gpu/drm/exynos/exynos_drm_ipp.c 			__limit_set_val(&res->v.align, l->v.align);
res               379 drivers/gpu/drm/exynos/exynos_drm_mic.c 	struct resource res;
res               392 drivers/gpu/drm/exynos/exynos_drm_mic.c 	ret = of_address_to_resource(dev->of_node, 0, &res);
res               397 drivers/gpu/drm/exynos/exynos_drm_mic.c 	mic->reg = devm_ioremap(dev, res.start, resource_size(&res));
res              1949 drivers/gpu/drm/exynos/exynos_hdmi.c 	struct resource *res;
res              1971 drivers/gpu/drm/exynos/exynos_hdmi.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1972 drivers/gpu/drm/exynos/exynos_hdmi.c 	hdata->regs = devm_ioremap_resource(dev, res);
res               777 drivers/gpu/drm/exynos/exynos_mixer.c 	struct resource *res;
res               799 drivers/gpu/drm/exynos/exynos_mixer.c 	res = platform_get_resource(mixer_ctx->pdev, IORESOURCE_MEM, 0);
res               800 drivers/gpu/drm/exynos/exynos_mixer.c 	if (res == NULL) {
res               805 drivers/gpu/drm/exynos/exynos_mixer.c 	mixer_ctx->mixer_regs = devm_ioremap(dev, res->start,
res               806 drivers/gpu/drm/exynos/exynos_mixer.c 							resource_size(res));
res               812 drivers/gpu/drm/exynos/exynos_mixer.c 	res = platform_get_resource(mixer_ctx->pdev, IORESOURCE_IRQ, 0);
res               813 drivers/gpu/drm/exynos/exynos_mixer.c 	if (res == NULL) {
res               818 drivers/gpu/drm/exynos/exynos_mixer.c 	ret = devm_request_irq(dev, res->start, mixer_irq_handler,
res               824 drivers/gpu/drm/exynos/exynos_mixer.c 	mixer_ctx->irq = res->start;
res               832 drivers/gpu/drm/exynos/exynos_mixer.c 	struct resource *res;
res               857 drivers/gpu/drm/exynos/exynos_mixer.c 	res = platform_get_resource(mixer_ctx->pdev, IORESOURCE_MEM, 1);
res               858 drivers/gpu/drm/exynos/exynos_mixer.c 	if (res == NULL) {
res               863 drivers/gpu/drm/exynos/exynos_mixer.c 	mixer_ctx->vp_regs = devm_ioremap(dev, res->start,
res               864 drivers/gpu/drm/exynos/exynos_mixer.c 							resource_size(res));
res               244 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c 	struct resource *res;
res               263 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               264 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c 	base = devm_ioremap_resource(dev, res);
res                44 drivers/gpu/drm/fsl-dcu/fsl_tcon.c 	struct resource res;
res                47 drivers/gpu/drm/fsl-dcu/fsl_tcon.c 	if (of_address_to_resource(np, 0, &res))
res                50 drivers/gpu/drm/fsl-dcu/fsl_tcon.c 	regs = devm_ioremap_resource(dev, &res);
res               824 drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c 	struct resource *res;
res               841 drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               842 drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c 	ctx->base = devm_ioremap_resource(&pdev->dev, res);
res               843 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c 	struct resource *res;
res               855 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               856 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c 	ctx->base = devm_ioremap_resource(dev, res);
res               111 drivers/gpu/drm/i915/display/intel_lpe_audio.c 	pinfo.res = rsc;
res               361 drivers/gpu/drm/i915/gvt/kvmgt.c 	struct kvmgt_pgfn *p, *res = NULL;
res               365 drivers/gpu/drm/i915/gvt/kvmgt.c 			res = p;
res               370 drivers/gpu/drm/i915/gvt/kvmgt.c 	return res;
res                49 drivers/gpu/drm/i915/i915_sysfs.c 	u64 res = 0;
res                52 drivers/gpu/drm/i915/i915_sysfs.c 		res = intel_rc6_residency_us(dev_priv, reg);
res                54 drivers/gpu/drm/i915/i915_sysfs.c 	return DIV_ROUND_CLOSEST_ULL(res, 1000);
res               543 drivers/gpu/drm/imx/imx-tve.c 	struct resource *res;
res               586 drivers/gpu/drm/imx/imx-tve.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               587 drivers/gpu/drm/imx/imx-tve.c 	base = devm_ioremap_resource(dev, res);
res               293 drivers/gpu/drm/lima/lima_device.c 	struct resource *res;
res               324 drivers/gpu/drm/lima/lima_device.c 	res = platform_get_resource(ldev->pdev, IORESOURCE_MEM, 0);
res               325 drivers/gpu/drm/lima/lima_device.c 	ldev->iomem = devm_ioremap_resource(ldev->dev, res);
res               321 drivers/gpu/drm/mcde/mcde_drv.c 	struct resource *res;
res               403 drivers/gpu/drm/mcde/mcde_drv.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               404 drivers/gpu/drm/mcde/mcde_drv.c 	mcde->regs = devm_ioremap_resource(dev, res);
res              1004 drivers/gpu/drm/mcde/mcde_dsi.c 	struct resource *res;
res              1022 drivers/gpu/drm/mcde/mcde_dsi.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1023 drivers/gpu/drm/mcde/mcde_dsi.c 	d->regs = devm_ioremap_resource(dev, res);
res               185 drivers/gpu/drm/mediatek/mtk_cec.c 	struct resource *res;
res               195 drivers/gpu/drm/mediatek/mtk_cec.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               196 drivers/gpu/drm/mediatek/mtk_cec.c 	cec->regs = devm_ioremap_resource(dev, res);
res               231 drivers/gpu/drm/mediatek/mtk_hdmi.c 	struct arm_smccc_res res;
res               246 drivers/gpu/drm/mediatek/mtk_hdmi.c 			      0x80000000, 0, 0, 0, 0, 0, &res);
res               189 drivers/gpu/drm/meson/meson_drv.c 	struct resource *res;
res               214 drivers/gpu/drm/meson/meson_drv.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "vpu");
res               215 drivers/gpu/drm/meson/meson_drv.c 	regs = devm_ioremap_resource(dev, res);
res               223 drivers/gpu/drm/meson/meson_drv.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "hhi");
res               224 drivers/gpu/drm/meson/meson_drv.c 	if (!res) {
res               229 drivers/gpu/drm/meson/meson_drv.c 	regs = devm_ioremap(dev, res->start, resource_size(res));
res               815 drivers/gpu/drm/meson/meson_dw_hdmi.c 	struct resource *res;
res               875 drivers/gpu/drm/meson/meson_dw_hdmi.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               876 drivers/gpu/drm/meson/meson_dw_hdmi.c 	meson_dw_hdmi->hdmitx = devm_ioremap_resource(dev, res);
res              1192 drivers/gpu/drm/msm/adreno/a6xx_gmu.c 	struct resource *res = platform_get_resource_byname(pdev,
res              1195 drivers/gpu/drm/msm/adreno/a6xx_gmu.c 	if (!res) {
res              1200 drivers/gpu/drm/msm/adreno/a6xx_gmu.c 	ret = ioremap(res->start, resource_size(res));
res               321 drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c 	struct resource *res;
res               348 drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c 	res = platform_get_resource_byname(gpu->pdev, IORESOURCE_MEM,
res               351 drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c 	if (res)
res               352 drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c 		cxdbg = ioremap(res->start, resource_size(res));
res               382 drivers/gpu/drm/msm/adreno/adreno_device.c 		.res = NULL,
res                55 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c 	struct resource *res;
res                57 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, name);
res                58 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c 	if (!res) {
res                63 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c 	return resource_size(res);
res               239 drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c 	struct resource *res;
res               255 drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "mdss");
res               256 drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c 	if (!res) {
res               260 drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c 	dpu_mdss->mmio_len = resource_size(res);
res              1783 drivers/gpu/drm/msm/dsi/dsi_host.c 	struct resource *res;
res              1786 drivers/gpu/drm/msm/dsi/dsi_host.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "dsi_ctrl");
res              1787 drivers/gpu/drm/msm/dsi/dsi_host.c 	if (!res)
res              1791 drivers/gpu/drm/msm/dsi/dsi_host.c 		if (cfg->io_start[i] == res->start)
res               521 drivers/gpu/drm/msm/dsi/phy/dsi_phy.c 	struct resource *res;
res               524 drivers/gpu/drm/msm/dsi/phy/dsi_phy.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "dsi_phy");
res               525 drivers/gpu/drm/msm/dsi/phy/dsi_phy.c 	if (!res)
res               529 drivers/gpu/drm/msm/dsi/phy/dsi_phy.c 		if (cfg->io_start[i] == res->start)
res               118 drivers/gpu/drm/msm/hdmi/hdmi.c 	struct resource *res;
res               138 drivers/gpu/drm/msm/hdmi/hdmi.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
res               140 drivers/gpu/drm/msm/hdmi/hdmi.c 	hdmi->mmio_phy_addr = res->start;
res               125 drivers/gpu/drm/msm/msm_drv.c 	struct resource *res;
res               130 drivers/gpu/drm/msm/msm_drv.c 		res = platform_get_resource_byname(pdev, IORESOURCE_MEM, name);
res               132 drivers/gpu/drm/msm/msm_drv.c 		res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               134 drivers/gpu/drm/msm/msm_drv.c 	if (!res) {
res               139 drivers/gpu/drm/msm/msm_drv.c 	size = resource_size(res);
res               141 drivers/gpu/drm/msm/msm_drv.c 	ptr = devm_ioremap_nocache(&pdev->dev, res->start, size);
res               179 drivers/gpu/drm/mxsfb/mxsfb_drv.c 	struct resource *res;
res               189 drivers/gpu/drm/mxsfb/mxsfb_drv.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               190 drivers/gpu/drm/mxsfb/mxsfb_drv.c 	mxsfb->base = devm_ioremap_resource(drm->dev, res);
res               493 drivers/gpu/drm/nouveau/nouveau_dmem.c 	struct resource *res;
res               523 drivers/gpu/drm/nouveau/nouveau_dmem.c 	res = devm_request_free_mem_region(device, &iomem_resource, size);
res               524 drivers/gpu/drm/nouveau/nouveau_dmem.c 	if (IS_ERR(res))
res               527 drivers/gpu/drm/nouveau/nouveau_dmem.c 	drm->dmem->pagemap.res = *res;
res               532 drivers/gpu/drm/nouveau/nouveau_dmem.c 	pfn_first = res->start >> PAGE_SHIFT;
res               202 drivers/gpu/drm/nouveau/nvkm/engine/device/tegra.c 	struct resource *res = nvkm_device_tegra_resource(device, bar);
res               203 drivers/gpu/drm/nouveau/nvkm/engine/device/tegra.c 	return res ? res->start : 0;
res               209 drivers/gpu/drm/nouveau/nvkm/engine/device/tegra.c 	struct resource *res = nvkm_device_tegra_resource(device, bar);
res               210 drivers/gpu/drm/nouveau/nvkm/engine/device/tegra.c 	return res ? resource_size(res) : 0;
res               118 drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c 		int res;
res               122 drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c 		res = rail->read(iccsense, rail);
res               123 drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c 		if (res < 0)
res               124 drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c 			return res;
res               125 drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c 		result += res;
res               261 drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c 			struct pwr_rail_resistor_t *res = &pwr_rail->resistors[r];
res               265 drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c 			if (!res->mohm || !res->enabled)
res               289 drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c 			rail->mohm = res->mohm;
res               166 drivers/gpu/drm/nouveau/nvkm/subdev/pmu/memx.c nvkm_memx_train_result(struct nvkm_pmu *pmu, u32 *res, int rsize)
res               186 drivers/gpu/drm/nouveau/nvkm/subdev/pmu/memx.c 		res[i] = nvkm_rd32(device, 0x10a1c4);
res              5269 drivers/gpu/drm/omapdrm/dss/dsi.c 	struct resource *res;
res              5304 drivers/gpu/drm/omapdrm/dss/dsi.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "phy");
res              5305 drivers/gpu/drm/omapdrm/dss/dsi.c 	dsi->phy_base = devm_ioremap_resource(dev, res);
res              5309 drivers/gpu/drm/omapdrm/dss/dsi.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "pll");
res              5310 drivers/gpu/drm/omapdrm/dss/dsi.c 	dsi->pll_base = devm_ioremap_resource(dev, res);
res               913 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	struct resource *res;
res               924 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "core");
res               925 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	core->base = devm_ioremap_resource(&pdev->dev, res);
res               898 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c 	struct resource *res;
res               900 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "core");
res               901 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c 	core->base = devm_ioremap_resource(&pdev->dev, res);
res               185 drivers/gpu/drm/omapdrm/dss/hdmi_phy.c 	struct resource *res;
res               192 drivers/gpu/drm/omapdrm/dss/hdmi_phy.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "phy");
res               193 drivers/gpu/drm/omapdrm/dss/hdmi_phy.c 	phy->base = devm_ioremap_resource(&pdev->dev, res);
res               165 drivers/gpu/drm/omapdrm/dss/hdmi_pll.c 	struct resource *res;
res               170 drivers/gpu/drm/omapdrm/dss/hdmi_pll.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "pll");
res               171 drivers/gpu/drm/omapdrm/dss/hdmi_pll.c 	pll->base = devm_ioremap_resource(&pdev->dev, res);
res               281 drivers/gpu/drm/omapdrm/dss/hdmi_wp.c 	struct resource *res;
res               283 drivers/gpu/drm/omapdrm/dss/hdmi_wp.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "wp");
res               284 drivers/gpu/drm/omapdrm/dss/hdmi_wp.c 	wp->base = devm_ioremap_resource(&pdev->dev, res);
res               288 drivers/gpu/drm/omapdrm/dss/hdmi_wp.c 	wp->phys_base = res->start;
res               140 drivers/gpu/drm/omapdrm/dss/video-pll.c 	struct resource *res;
res               149 drivers/gpu/drm/omapdrm/dss/video-pll.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, reg_name[id]);
res               150 drivers/gpu/drm/omapdrm/dss/video-pll.c 	pll_base = devm_ioremap_resource(&pdev->dev, res);
res               156 drivers/gpu/drm/omapdrm/dss/video-pll.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
res               158 drivers/gpu/drm/omapdrm/dss/video-pll.c 	clkctrl_base = devm_ioremap_resource(&pdev->dev, res);
res               136 drivers/gpu/drm/omapdrm/tcm.h 	s32 res = tcm  == NULL ? -ENODEV :
res               142 drivers/gpu/drm/omapdrm/tcm.h 	if (!res) {
res               144 drivers/gpu/drm/omapdrm/tcm.h 		res = tcm->reserve_2d(tcm, height, width, align, offset,
res               146 drivers/gpu/drm/omapdrm/tcm.h 		area->tcm = res ? NULL : tcm;
res               149 drivers/gpu/drm/omapdrm/tcm.h 	return res;
res               169 drivers/gpu/drm/omapdrm/tcm.h 	s32 res = tcm  == NULL ? -ENODEV :
res               173 drivers/gpu/drm/omapdrm/tcm.h 	if (!res) {
res               175 drivers/gpu/drm/omapdrm/tcm.h 		res = tcm->reserve_1d(tcm, slots, area);
res               176 drivers/gpu/drm/omapdrm/tcm.h 		area->tcm = res ? NULL : tcm;
res               179 drivers/gpu/drm/omapdrm/tcm.h 	return res;
res               197 drivers/gpu/drm/omapdrm/tcm.h 	s32 res = 0; /* free succeeds by default */
res               200 drivers/gpu/drm/omapdrm/tcm.h 		res = area->tcm->free(area->tcm, area);
res               201 drivers/gpu/drm/omapdrm/tcm.h 		if (res == 0)
res               205 drivers/gpu/drm/omapdrm/tcm.h 	return res;
res               116 drivers/gpu/drm/panfrost/panfrost_device.c 	struct resource *res;
res               143 drivers/gpu/drm/panfrost/panfrost_device.c 	res = platform_get_resource(pfdev->pdev, IORESOURCE_MEM, 0);
res               144 drivers/gpu/drm/panfrost/panfrost_device.c 	pfdev->iomem = devm_ioremap_resource(pfdev->dev, res);
res               294 drivers/gpu/drm/pl111/pl111_drv.c 	priv->regs = devm_ioremap_resource(dev, &amba_dev->res);
res               588 drivers/gpu/drm/radeon/radeon_audio.c 	static struct radeon_hdmi_acr res;
res               612 drivers/gpu/drm/radeon/radeon_audio.c 	radeon_audio_calc_cts(clock, &res.cts_32khz, &res.n_32khz, 32000);
res               613 drivers/gpu/drm/radeon/radeon_audio.c 	radeon_audio_calc_cts(clock, &res.cts_44_1khz, &res.n_44_1khz, 44100);
res               614 drivers/gpu/drm/radeon/radeon_audio.c 	radeon_audio_calc_cts(clock, &res.cts_48khz, &res.n_48khz, 48000);
res               616 drivers/gpu/drm/radeon/radeon_audio.c 	return &res;
res               189 drivers/gpu/drm/rcar-du/rcar_du_of.c 	struct resource res;
res               274 drivers/gpu/drm/rcar-du/rcar_du_of.c 		of_address_to_resource(du_node, index, &lvds->res);
res               285 drivers/gpu/drm/rcar-du/rcar_du_of.c 		struct resource res;
res               291 drivers/gpu/drm/rcar-du/rcar_du_of.c 		ret = of_address_to_resource(lvds_node, 0, &res);
res               296 drivers/gpu/drm/rcar-du/rcar_du_of.c 			if (lvds_data[i].res.start == res.start)
res               701 drivers/gpu/drm/rockchip/cdn-dp-core.c 	struct resource *res;
res               709 drivers/gpu/drm/rockchip/cdn-dp-core.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               710 drivers/gpu/drm/rockchip/cdn-dp-core.c 	dp->regs = devm_ioremap_resource(dev, res);
res               892 drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c 	struct resource *res;
res               901 drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               902 drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c 	dsi->base = devm_ioremap_resource(dev, res);
res               910 drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c 		if (cdata[i].reg == res->start) {
res              1830 drivers/gpu/drm/rockchip/rockchip_drm_vop.c 	struct resource *res;
res              1850 drivers/gpu/drm/rockchip/rockchip_drm_vop.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1851 drivers/gpu/drm/rockchip/rockchip_drm_vop.c 	vop->len = resource_size(res);
res              1852 drivers/gpu/drm/rockchip/rockchip_drm_vop.c 	vop->regs = devm_ioremap_resource(dev, res);
res               492 drivers/gpu/drm/rockchip/rockchip_lvds.c 	struct resource *res;
res               508 drivers/gpu/drm/rockchip/rockchip_lvds.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               509 drivers/gpu/drm/rockchip/rockchip_lvds.c 	lvds->regs = devm_ioremap_resource(&pdev->dev, res);
res               207 drivers/gpu/drm/shmobile/shmob_drm_drv.c 	struct resource *res;
res               230 drivers/gpu/drm/shmobile/shmob_drm_drv.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               231 drivers/gpu/drm/shmobile/shmob_drm_drv.c 	sdev->mmio = devm_ioremap_resource(&pdev->dev, res);
res               183 drivers/gpu/drm/sti/sti_compositor.c 	struct resource *res;
res               202 drivers/gpu/drm/sti/sti_compositor.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               203 drivers/gpu/drm/sti/sti_compositor.c 	if (res == NULL) {
res               207 drivers/gpu/drm/sti/sti_compositor.c 	compo->regs = devm_ioremap(dev, res->start, resource_size(res));
res               349 drivers/gpu/drm/sti/sti_crtc.c 	int res;
res               351 drivers/gpu/drm/sti/sti_crtc.c 	res = drm_crtc_init_with_planes(drm_dev, crtc, primary, cursor,
res               353 drivers/gpu/drm/sti/sti_crtc.c 	if (res) {
res               365 drivers/gpu/drm/sti/sti_cursor.c 	int res;
res               390 drivers/gpu/drm/sti/sti_cursor.c 	res = drm_universal_plane_init(drm_dev, &cursor->plane.drm_plane,
res               396 drivers/gpu/drm/sti/sti_cursor.c 	if (res) {
res               518 drivers/gpu/drm/sti/sti_dvo.c 	struct resource *res;
res               531 drivers/gpu/drm/sti/sti_dvo.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "dvo-reg");
res               532 drivers/gpu/drm/sti/sti_dvo.c 	if (!res) {
res               536 drivers/gpu/drm/sti/sti_dvo.c 	dvo->regs = devm_ioremap_nocache(dev, res->start,
res               537 drivers/gpu/drm/sti/sti_dvo.c 			resource_size(res));
res               663 drivers/gpu/drm/sti/sti_gdp.c 		int res;
res               677 drivers/gpu/drm/sti/sti_gdp.c 		res = clk_set_rate(gdp->clk_pix, rate);
res               678 drivers/gpu/drm/sti/sti_gdp.c 		if (res < 0) {
res               918 drivers/gpu/drm/sti/sti_gdp.c 	int res;
res               935 drivers/gpu/drm/sti/sti_gdp.c 	res = drm_universal_plane_init(drm_dev, &gdp->plane.drm_plane,
res               941 drivers/gpu/drm/sti/sti_gdp.c 	if (res) {
res               745 drivers/gpu/drm/sti/sti_hda.c 	struct resource *res;
res               756 drivers/gpu/drm/sti/sti_hda.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "hda-reg");
res               757 drivers/gpu/drm/sti/sti_hda.c 	if (!res) {
res               761 drivers/gpu/drm/sti/sti_hda.c 	hda->regs = devm_ioremap_nocache(dev, res->start, resource_size(res));
res               765 drivers/gpu/drm/sti/sti_hda.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
res               767 drivers/gpu/drm/sti/sti_hda.c 	if (res) {
res               768 drivers/gpu/drm/sti/sti_hda.c 		hda->video_dacs_ctrl = devm_ioremap_nocache(dev, res->start,
res               769 drivers/gpu/drm/sti/sti_hda.c 				resource_size(res));
res              1356 drivers/gpu/drm/sti/sti_hdmi.c 	struct resource *res;
res              1377 drivers/gpu/drm/sti/sti_hdmi.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "hdmi-reg");
res              1378 drivers/gpu/drm/sti/sti_hdmi.c 	if (!res) {
res              1383 drivers/gpu/drm/sti/sti_hdmi.c 	hdmi->regs = devm_ioremap_nocache(dev, res->start, resource_size(res));
res              1294 drivers/gpu/drm/sti/sti_hqvdp.c 	int res;
res              1301 drivers/gpu/drm/sti/sti_hqvdp.c 	res = drm_universal_plane_init(drm_dev, &hqvdp->plane.drm_plane, 1,
res              1306 drivers/gpu/drm/sti/sti_hqvdp.c 	if (res) {
res              1352 drivers/gpu/drm/sti/sti_hqvdp.c 	struct resource *res;
res              1365 drivers/gpu/drm/sti/sti_hqvdp.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1366 drivers/gpu/drm/sti/sti_hqvdp.c 	if (!res) {
res              1370 drivers/gpu/drm/sti/sti_hqvdp.c 	hqvdp->regs = devm_ioremap(dev, res->start, resource_size(res));
res               844 drivers/gpu/drm/sti/sti_tvout.c 	struct resource *res;
res               858 drivers/gpu/drm/sti/sti_tvout.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "tvout-reg");
res               859 drivers/gpu/drm/sti/sti_tvout.c 	if (!res) {
res               863 drivers/gpu/drm/sti/sti_tvout.c 	tvout->regs = devm_ioremap_nocache(dev, res->start, resource_size(res));
res               383 drivers/gpu/drm/sti/sti_vtg.c 	struct resource *res;
res               391 drivers/gpu/drm/sti/sti_vtg.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               392 drivers/gpu/drm/sti/sti_vtg.c 	if (!res) {
res               396 drivers/gpu/drm/sti/sti_vtg.c 	vtg->regs = devm_ioremap_nocache(dev, res->start, resource_size(res));
res               332 drivers/gpu/drm/stm/dw_mipi_dsi-stm.c 	struct resource *res;
res               339 drivers/gpu/drm/stm/dw_mipi_dsi-stm.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               340 drivers/gpu/drm/stm/dw_mipi_dsi-stm.c 	dsi->base = devm_ioremap_resource(dev, res);
res              1152 drivers/gpu/drm/stm/ltdc.c 	struct resource *res;
res              1197 drivers/gpu/drm/stm/ltdc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1198 drivers/gpu/drm/stm/ltdc.c 	ldev->regs = devm_ioremap_resource(dev, res);
res               787 drivers/gpu/drm/sun4i/sun4i_backend.c 	struct resource *res;
res               828 drivers/gpu/drm/sun4i/sun4i_backend.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               829 drivers/gpu/drm/sun4i/sun4i_backend.c 	regs = devm_ioremap_resource(dev, res);
res               562 drivers/gpu/drm/sun4i/sun4i_frontend.c 	struct resource *res;
res               577 drivers/gpu/drm/sun4i/sun4i_frontend.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               578 drivers/gpu/drm/sun4i/sun4i_frontend.c 	regs = devm_ioremap_resource(dev, res);
res               495 drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c 	struct resource *res;
res               510 drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               511 drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c 	hdmi->base = devm_ioremap_resource(dev, res);
res               815 drivers/gpu/drm/sun4i/sun4i_tcon.c 	struct resource *res;
res               818 drivers/gpu/drm/sun4i/sun4i_tcon.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               819 drivers/gpu/drm/sun4i/sun4i_tcon.c 	regs = devm_ioremap_resource(dev, res);
res               549 drivers/gpu/drm/sun4i/sun4i_tv.c 	struct resource *res;
res               559 drivers/gpu/drm/sun4i/sun4i_tv.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               560 drivers/gpu/drm/sun4i/sun4i_tv.c 	regs = devm_ioremap_resource(dev, res);
res              1084 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c 	struct resource *res;
res              1096 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1097 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c 	base = devm_ioremap_resource(dev, res);
res               612 drivers/gpu/drm/sun4i/sun8i_hdmi_phy.c 	struct resource res;
res               628 drivers/gpu/drm/sun4i/sun8i_hdmi_phy.c 	ret = of_address_to_resource(node, 0, &res);
res               634 drivers/gpu/drm/sun4i/sun8i_hdmi_phy.c 	regs = devm_ioremap_resource(dev, &res);
res               429 drivers/gpu/drm/sun4i/sun8i_mixer.c 	struct resource *res;
res               469 drivers/gpu/drm/sun4i/sun8i_mixer.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               470 drivers/gpu/drm/sun4i/sun8i_mixer.c 	regs = devm_ioremap_resource(dev, res);
res               131 drivers/gpu/drm/sun4i/sun8i_tcon_top.c 	struct resource *res;
res               161 drivers/gpu/drm/sun4i/sun8i_tcon_top.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               162 drivers/gpu/drm/sun4i/sun8i_tcon_top.c 	regs = devm_ioremap_resource(dev, res);
res               227 drivers/gpu/drm/tilcdc/tilcdc_drv.c 	struct resource *res;
res               252 drivers/gpu/drm/tilcdc/tilcdc_drv.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               253 drivers/gpu/drm/tilcdc/tilcdc_drv.c 	if (!res) {
res               259 drivers/gpu/drm/tilcdc/tilcdc_drv.c 	priv->mmio = ioremap_nocache(res->start, resource_size(res));
res               541 drivers/gpu/drm/ttm/ttm_page_alloc_dma.c static void ttm_dma_pool_release(struct device *dev, void *res)
res               543 drivers/gpu/drm/ttm/ttm_page_alloc_dma.c 	struct dma_pool *pool = *(struct dma_pool **)res;
res               549 drivers/gpu/drm/ttm/ttm_page_alloc_dma.c static int ttm_dma_pool_match(struct device *dev, void *res, void *match_data)
res               551 drivers/gpu/drm/ttm/ttm_page_alloc_dma.c 	return *(struct dma_pool **)res == match_data;
res               168 drivers/gpu/drm/tve200/tve200_drv.c 	struct resource *res;
res               204 drivers/gpu/drm/tve200/tve200_drv.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               205 drivers/gpu/drm/tve200/tve200_drv.c 	priv->regs = devm_ioremap_resource(dev, res);
res               231 drivers/gpu/drm/v3d/v3d_drv.c 	struct resource *res =
res               234 drivers/gpu/drm/v3d/v3d_drv.c 	*regs = devm_ioremap_resource(v3d->dev, res);
res                54 drivers/gpu/drm/vc4/vc4_drv.c 	struct resource *res;
res                57 drivers/gpu/drm/vc4/vc4_drv.c 	res = platform_get_resource(dev, IORESOURCE_MEM, index);
res                58 drivers/gpu/drm/vc4/vc4_drv.c 	map = devm_ioremap_resource(&dev->dev, res);
res               335 drivers/gpu/drm/vmwgfx/vmwgfx_binding.c 	if (bi->res != NULL) {
res               338 drivers/gpu/drm/vmwgfx/vmwgfx_binding.c 		list_add_tail(&loc->res_list, &loc->res->binding_head);
res               472 drivers/gpu/drm/vmwgfx/vmwgfx_binding.c 		if ((entry->res == NULL || entry->res->id ==
res               510 drivers/gpu/drm/vmwgfx/vmwgfx_binding.c 	cmd->body.shid = ((rebind) ? bi->res->id : SVGA3D_INVALID_ID);
res               542 drivers/gpu/drm/vmwgfx/vmwgfx_binding.c 	cmd->body.target.sid = ((rebind) ? bi->res->id : SVGA3D_INVALID_ID);
res               582 drivers/gpu/drm/vmwgfx/vmwgfx_binding.c 	cmd->body.s1.value = ((rebind) ? bi->res->id : SVGA3D_INVALID_ID);
res               611 drivers/gpu/drm/vmwgfx/vmwgfx_binding.c 	cmd->body.shaderId = ((rebind) ? bi->res->id : SVGA3D_INVALID_ID);
res               644 drivers/gpu/drm/vmwgfx/vmwgfx_binding.c 		cmd->body.sid = bi->res->id;
res               686 drivers/gpu/drm/vmwgfx/vmwgfx_binding.c 			 SVGA3D_INVALID_ID : biv->bi.res->id);
res               722 drivers/gpu/drm/vmwgfx/vmwgfx_binding.c 			 SVGA3D_INVALID_ID : biv->bi.res->id);
res               801 drivers/gpu/drm/vmwgfx/vmwgfx_binding.c 		cmd->body.depthStencilViewId = cbs->ds_view.bi.res->id;
res               845 drivers/gpu/drm/vmwgfx/vmwgfx_binding.c 			so_buffer->sid = biso->bi.res->id;
res               954 drivers/gpu/drm/vmwgfx/vmwgfx_binding.c 			vbs->sid = biv->bi.res->id;
res              1151 drivers/gpu/drm/vmwgfx/vmwgfx_binding.c 		cmd->body.sid = bi->res->id;
res                73 drivers/gpu/drm/vmwgfx/vmwgfx_binding.h 	struct vmw_resource *res;
res                44 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c 	struct vmw_resource *res;
res                92 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c 	return drm_hash_entry(hash, struct vmw_cmdbuf_res, hash)->res;
res               109 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c 	vmw_resource_unreference(&entry->res);
res               129 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c 		if (entry->res->func->commit_notify)
res               130 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c 			entry->res->func->commit_notify(entry->res,
res               138 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c 			vmw_resource_unreference(&entry->res);
res               200 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c 		       struct vmw_resource *res,
res               218 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c 	cres->res = vmw_resource_reference(res);
res               269 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c 		*res_p = entry->res;
res                36 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	struct vmw_resource res;
res                44 drivers/gpu/drm/vmwgfx/vmwgfx_context.c static void vmw_user_context_free(struct vmw_resource *res);
res                48 drivers/gpu/drm/vmwgfx/vmwgfx_context.c static int vmw_gb_context_create(struct vmw_resource *res);
res                49 drivers/gpu/drm/vmwgfx/vmwgfx_context.c static int vmw_gb_context_bind(struct vmw_resource *res,
res                51 drivers/gpu/drm/vmwgfx/vmwgfx_context.c static int vmw_gb_context_unbind(struct vmw_resource *res,
res                54 drivers/gpu/drm/vmwgfx/vmwgfx_context.c static int vmw_gb_context_destroy(struct vmw_resource *res);
res                55 drivers/gpu/drm/vmwgfx/vmwgfx_context.c static int vmw_dx_context_create(struct vmw_resource *res);
res                56 drivers/gpu/drm/vmwgfx/vmwgfx_context.c static int vmw_dx_context_bind(struct vmw_resource *res,
res                58 drivers/gpu/drm/vmwgfx/vmwgfx_context.c static int vmw_dx_context_unbind(struct vmw_resource *res,
res                61 drivers/gpu/drm/vmwgfx/vmwgfx_context.c static int vmw_dx_context_destroy(struct vmw_resource *res);
res               121 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	struct vmw_resource *res;
res               126 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 		res = uctx->cotables[i];
res               130 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 		if (res)
res               131 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 			vmw_resource_unreference(&res);
res               135 drivers/gpu/drm/vmwgfx/vmwgfx_context.c static void vmw_hw_context_destroy(struct vmw_resource *res)
res               138 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 		container_of(res, struct vmw_user_context, res);
res               139 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	struct vmw_private *dev_priv = res->dev_priv;
res               146 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	if (res->func->destroy == vmw_gb_context_destroy ||
res               147 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	    res->func->destroy == vmw_dx_context_destroy) {
res               152 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 		(void) res->func->destroy(res);
res               169 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	cmd->body.cid = res->id;
res               177 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 			       struct vmw_resource *res,
res               178 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 			       void (*res_free)(struct vmw_resource *res))
res               182 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 		container_of(res, struct vmw_user_context, res);
res               184 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	res->backup_size = (dx ? sizeof(SVGADXContextMobFormat) :
res               186 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	ret = vmw_resource_init(dev_priv, res, true,
res               213 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 							      &uctx->res, i);
res               221 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	res->hw_destroy = vmw_hw_context_destroy;
res               228 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 		res_free(res);
res               230 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 		kfree(res);
res               235 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 			    struct vmw_resource *res,
res               236 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 			    void (*res_free)(struct vmw_resource *res),
res               247 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 		return vmw_gb_context_init(dev_priv, dx, res, res_free);
res               249 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	ret = vmw_resource_init(dev_priv, res, false,
res               257 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	if (unlikely(res->id >= SVGA3D_MAX_CONTEXT_IDS)) {
res               259 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 		vmw_resource_unreference(&res);
res               265 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 		vmw_resource_unreference(&res);
res               271 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	cmd->body.cid = res->id;
res               275 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	res->hw_destroy = vmw_hw_context_destroy;
res               280 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 		kfree(res);
res               282 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 		res_free(res);
res               291 drivers/gpu/drm/vmwgfx/vmwgfx_context.c static int vmw_gb_context_create(struct vmw_resource *res)
res               293 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	struct vmw_private *dev_priv = res->dev_priv;
res               300 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	if (likely(res->id != -1))
res               303 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	ret = vmw_resource_alloc_id(res);
res               309 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	if (unlikely(res->id >= VMWGFX_NUM_GB_CONTEXT)) {
res               322 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	cmd->body.cid = res->id;
res               329 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	vmw_resource_release_id(res);
res               334 drivers/gpu/drm/vmwgfx/vmwgfx_context.c static int vmw_gb_context_bind(struct vmw_resource *res,
res               337 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	struct vmw_private *dev_priv = res->dev_priv;
res               352 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	cmd->body.cid = res->id;
res               354 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	cmd->body.validContents = res->backup_dirty;
res               355 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	res->backup_dirty = false;
res               361 drivers/gpu/drm/vmwgfx/vmwgfx_context.c static int vmw_gb_context_unbind(struct vmw_resource *res,
res               365 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	struct vmw_private *dev_priv = res->dev_priv;
res               369 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 		container_of(res, struct vmw_user_context, res);
res               401 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 		cmd1->body.cid = res->id;
res               406 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	cmd2->body.cid = res->id;
res               427 drivers/gpu/drm/vmwgfx/vmwgfx_context.c static int vmw_gb_context_destroy(struct vmw_resource *res)
res               429 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	struct vmw_private *dev_priv = res->dev_priv;
res               435 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	if (likely(res->id == -1))
res               444 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	cmd->body.cid = res->id;
res               446 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	if (dev_priv->query_cid == res->id)
res               448 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	vmw_resource_release_id(res);
res               458 drivers/gpu/drm/vmwgfx/vmwgfx_context.c static int vmw_dx_context_create(struct vmw_resource *res)
res               460 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	struct vmw_private *dev_priv = res->dev_priv;
res               467 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	if (likely(res->id != -1))
res               470 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	ret = vmw_resource_alloc_id(res);
res               476 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	if (unlikely(res->id >= VMWGFX_NUM_DXCONTEXT)) {
res               489 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	cmd->body.cid = res->id;
res               496 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	vmw_resource_release_id(res);
res               501 drivers/gpu/drm/vmwgfx/vmwgfx_context.c static int vmw_dx_context_bind(struct vmw_resource *res,
res               504 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	struct vmw_private *dev_priv = res->dev_priv;
res               519 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	cmd->body.cid = res->id;
res               521 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	cmd->body.validContents = res->backup_dirty;
res               522 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	res->backup_dirty = false;
res               547 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 		container_of(ctx, struct vmw_user_context, res);
res               552 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 		struct vmw_resource *res;
res               556 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 		res = uctx->cotables[vmw_cotable_scrub_order[i]];
res               557 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 		if (res)
res               558 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 			res = vmw_resource_reference_unless_doomed(res);
res               560 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 		if (!res)
res               563 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 		WARN_ON(vmw_cotable_scrub(res, readback));
res               564 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 		vmw_resource_unreference(&res);
res               568 drivers/gpu/drm/vmwgfx/vmwgfx_context.c static int vmw_dx_context_unbind(struct vmw_resource *res,
res               572 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	struct vmw_private *dev_priv = res->dev_priv;
res               576 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 		container_of(res, struct vmw_user_context, res);
res               593 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	vmw_dx_context_scrub_cotables(res, readback);
res               597 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 		WARN_ON(uctx->dx_query_mob->dx_query_ctx != res);
res               615 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 		cmd1->body.cid = res->id;
res               620 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	cmd2->body.cid = res->id;
res               641 drivers/gpu/drm/vmwgfx/vmwgfx_context.c static int vmw_dx_context_destroy(struct vmw_resource *res)
res               643 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	struct vmw_private *dev_priv = res->dev_priv;
res               649 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	if (likely(res->id == -1))
res               658 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	cmd->body.cid = res->id;
res               660 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	if (dev_priv->query_cid == res->id)
res               662 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	vmw_resource_release_id(res);
res               675 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	return &(container_of(base, struct vmw_user_context, base)->res);
res               678 drivers/gpu/drm/vmwgfx/vmwgfx_context.c static void vmw_user_context_free(struct vmw_resource *res)
res               681 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	    container_of(res, struct vmw_user_context, res);
res               682 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	struct vmw_private *dev_priv = res->dev_priv;
res               687 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	(void) vmw_context_bind_dx_query(res, NULL);
res               704 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	struct vmw_resource *res = &ctx->res;
res               707 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	vmw_resource_unreference(&res);
res               724 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	struct vmw_resource *res;
res               766 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	res = &ctx->res;
res               774 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	ret = vmw_context_init(dev_priv, res, vmw_user_context_free, dx);
res               778 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	tmp = vmw_resource_reference(&ctx->res);
res               789 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	vmw_resource_unreference(&res);
res               829 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 		container_of(ctx, struct vmw_user_context, res);
res               836 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	return container_of(ctx, struct vmw_user_context, res)->man;
res               845 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	return container_of(ctx, struct vmw_user_context, res)->
res               861 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	return container_of(ctx, struct vmw_user_context, res)->cbs;
res               880 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 		container_of(ctx_res, struct vmw_user_context, res);
res               913 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 		container_of(ctx_res, struct vmw_user_context, res);
res                51 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c 	struct vmw_resource res;
res               107 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c static int vmw_cotable_bind(struct vmw_resource *res,
res               109 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c static int vmw_cotable_unbind(struct vmw_resource *res,
res               112 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c static int vmw_cotable_create(struct vmw_resource *res);
res               113 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c static int vmw_cotable_destroy(struct vmw_resource *res);
res               135 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c static struct vmw_cotable *vmw_cotable(struct vmw_resource *res)
res               137 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c 	return container_of(res, struct vmw_cotable, res);
res               148 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c static int vmw_cotable_destroy(struct vmw_resource *res)
res               150 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c 	res->id = -1;
res               163 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c static int vmw_cotable_unscrub(struct vmw_resource *res)
res               165 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c 	struct vmw_cotable *vcotbl = vmw_cotable(res);
res               166 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c 	struct vmw_private *dev_priv = res->dev_priv;
res               167 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c 	struct ttm_buffer_object *bo = &res->backup->base;
res               205 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c static int vmw_cotable_bind(struct vmw_resource *res,
res               215 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c 	val_buf->bo = &res->backup->base;
res               217 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c 	return vmw_cotable_unscrub(res);
res               238 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c int vmw_cotable_scrub(struct vmw_resource *res, bool readback)
res               240 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c 	struct vmw_cotable *vcotbl = vmw_cotable(res);
res               241 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c 	struct vmw_private *dev_priv = res->dev_priv;
res               276 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c 		vcotbl->size_read_back = res->backup_size;
res               288 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c 	res->id = -1;
res               303 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c static int vmw_cotable_unbind(struct vmw_resource *res,
res               307 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c 	struct vmw_cotable *vcotbl = vmw_cotable(res);
res               308 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c 	struct vmw_private *dev_priv = res->dev_priv;
res               312 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c 	if (!vmw_resource_mob_attached(res))
res               338 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c static int vmw_cotable_readback(struct vmw_resource *res)
res               340 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c 	struct vmw_cotable *vcotbl = vmw_cotable(res);
res               341 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c 	struct vmw_private *dev_priv = res->dev_priv;
res               358 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c 		vcotbl->size_read_back = res->backup_size;
res               363 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c 	vmw_bo_fence_single(&res->backup->base, fence);
res               381 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c static int vmw_cotable_resize(struct vmw_resource *res, size_t new_size)
res               384 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c 	struct vmw_private *dev_priv = res->dev_priv;
res               385 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c 	struct vmw_cotable *vcotbl = vmw_cotable(res);
res               386 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c 	struct vmw_buffer_object *buf, *old_buf = res->backup;
res               387 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c 	struct ttm_buffer_object *bo, *old_bo = &res->backup->base;
res               388 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c 	size_t old_size = res->backup_size;
res               395 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c 	ret = vmw_cotable_readback(res);
res               458 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c 	vmw_resource_mob_detach(res);
res               459 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c 	res->backup = buf;
res               460 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c 	res->backup_size = new_size;
res               467 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c 	ret = vmw_cotable_unscrub(res);
res               470 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c 		res->backup = old_buf;
res               471 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c 		res->backup_size = old_size;
res               473 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c 		vmw_resource_mob_attach(res);
res               477 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c 	vmw_resource_mob_attach(res);
res               480 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c 	res->id = vcotbl->type;
res               505 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c static int vmw_cotable_create(struct vmw_resource *res)
res               507 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c 	struct vmw_cotable *vcotbl = vmw_cotable(res);
res               508 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c 	size_t new_size = res->backup_size;
res               517 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c 	if (likely(new_size <= res->backup_size)) {
res               518 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c 		if (vcotbl->scrubbed && vmw_resource_mob_attached(res)) {
res               519 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c 			ret = vmw_cotable_unscrub(res);
res               523 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c 		res->id = vcotbl->type;
res               527 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c 	return vmw_cotable_resize(res, new_size);
res               537 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c static void vmw_hw_cotable_destroy(struct vmw_resource *res)
res               539 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c 	(void) vmw_cotable_destroy(res);
res               549 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c static void vmw_cotable_free(struct vmw_resource *res)
res               551 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c 	struct vmw_private *dev_priv = res->dev_priv;
res               553 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c 	kfree(res);
res               591 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c 	ret = vmw_resource_init(dev_priv, &vcotbl->res, true,
res               597 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c 	vcotbl->res.id = type;
res               598 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c 	vcotbl->res.backup_size = PAGE_SIZE;
res               601 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c 		vcotbl->res.backup_size = co_info[type].min_initial_entries *
res               603 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c 		vcotbl->res.backup_size =
res               604 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c 			(vcotbl->res.backup_size + PAGE_SIZE - 1) & PAGE_MASK;
res               612 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c 	vcotbl->res.hw_destroy = vmw_hw_cotable_destroy;
res               614 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c 	return &vcotbl->res;
res               629 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c int vmw_cotable_notify(struct vmw_resource *res, int id)
res               631 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c 	struct vmw_cotable *vcotbl = vmw_cotable(res);
res               641 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c 		res->id = -1;
res               655 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c void vmw_cotable_add_resource(struct vmw_resource *res, struct list_head *head)
res               658 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c 		container_of(res, struct vmw_cotable, res);
res               180 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h 	void (*res_free) (struct vmw_resource *res);
res               181 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h 	void (*hw_destroy) (struct vmw_resource *res);
res               218 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h 	struct vmw_resource res;
res               271 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h 	struct vmw_resource *res;
res               610 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h static inline struct vmw_surface *vmw_res_to_srf(struct vmw_resource *res)
res               612 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h 	return container_of(res, struct vmw_surface, res);
res               674 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h extern struct vmw_resource *vmw_resource_reference(struct vmw_resource *res);
res               676 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h vmw_resource_reference_unless_doomed(struct vmw_resource *res);
res               677 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h extern int vmw_resource_validate(struct vmw_resource *res, bool intr);
res               678 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h extern int vmw_resource_reserve(struct vmw_resource *res, bool interruptible,
res               680 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h extern bool vmw_resource_needs_backup(const struct vmw_resource *res);
res               706 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h extern void vmw_resource_unreserve(struct vmw_resource *res,
res               717 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h void vmw_resource_mob_attach(struct vmw_resource *res);
res               718 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h void vmw_resource_mob_detach(struct vmw_resource *res);
res               726 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h static inline bool vmw_resource_mob_attached(const struct vmw_resource *res)
res               728 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h 	return !list_empty(&res->mob_head);
res              1115 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h extern int vmw_resource_pin(struct vmw_resource *res, bool interruptible);
res              1116 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h extern void vmw_resource_unpin(struct vmw_resource *res);
res              1117 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h extern enum vmw_res_type vmw_res_type(const struct vmw_resource *res);
res              1207 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h extern void vmw_surface_res_free(struct vmw_resource *res);
res              1291 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h 			      struct vmw_resource *res,
res              1297 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h 				 struct vmw_resource **res);
res              1306 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h extern int vmw_cotable_notify(struct vmw_resource *res, int id);
res              1307 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h extern int vmw_cotable_scrub(struct vmw_resource *res, bool readback);
res              1421 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h 	struct vmw_resource *res = &tmp_srf->res;
res              1424 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h 	vmw_resource_unreference(&res);
res              1429 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h 	(void) vmw_resource_reference(&srf->res);
res               102 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	const struct vmw_resource *res;
res               210 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				   struct vmw_resource *res,
res               215 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	ret = vmw_resource_context_res_add(dev_priv, sw_context, res);
res               240 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	node->ctx = res;
res               241 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	node->cur = vmw_context_binding_state(res);
res               279 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				      struct vmw_resource *res,
res               282 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	rcache->res = res;
res               300 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 					 struct vmw_resource *res,
res               303 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	struct vmw_private *dev_priv = res->dev_priv;
res               305 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	enum vmw_res_type res_type = vmw_res_type(res);
res               312 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	if (likely(rcache->valid && rcache->res == res)) {
res               321 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	ret = vmw_validation_add_resource(sw_context->ctx, res, priv_size,
res               329 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		ret = vmw_cmd_ctx_first_setup(dev_priv, sw_context, res,
res               337 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	vmw_execbuf_rcache_update(rcache, res, ctx_info);
res               352 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 					 struct vmw_resource *res,
res               356 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	enum vmw_res_type res_type = vmw_res_type(res);
res               361 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	if (likely(rcache->valid && rcache->res == res)) {
res               368 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	ret = vmw_validation_add_resource(sw_context->ctx, res, 0, dirty,
res               373 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	vmw_execbuf_rcache_update(rcache, res, ptr);
res               460 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	struct vmw_resource *res;
res               466 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 			res = vmw_context_cotable(ctx, i);
res               467 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 			if (IS_ERR(res))
res               470 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 			ret = vmw_execbuf_res_noctx_val_add(sw_context, res,
res               482 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		if (vmw_res_type(entry->res) == vmw_res_view)
res               483 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 			ret = vmw_view_res_val_add(sw_context, entry->res);
res               486 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				(sw_context, entry->res,
res               515 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				       const struct vmw_resource *res,
res               528 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	rel->res = res;
res               568 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 			*addr = rel->res->id;
res               574 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 			if (rel->res->id == -1)
res               651 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	struct vmw_resource *res;
res               666 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		res = rcache->res;
res               677 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		res = vmw_user_resource_noref_lookup_handle
res               679 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		if (IS_ERR(res)) {
res               682 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 			return PTR_ERR(res);
res               685 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		ret = vmw_execbuf_res_noref_val_add(sw_context, res, dirty);
res               689 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		if (rcache->valid && rcache->res == res) {
res               695 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	ret = vmw_resource_relocation_add(sw_context, res,
res               700 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		*p_res = res;
res               807 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		binding.bi.res = view;
res               856 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 			  struct vmw_resource *res)
res               859 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		&sw_context->res_cache[vmw_res_type(res)];
res               861 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	if (rcache->valid && rcache->res == res)
res               874 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	struct vmw_resource *res;
res               893 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				&cmd->body.target.sid, &res);
res               906 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		binding.bi.res = res;
res              1037 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	sw_context->last_query_ctx = ctx_entry->res;
res              1097 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		ctx = ctx_entry->res;
res              1561 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	srf = vmw_res_to_srf(sw_context->res_cache[vmw_res_surface].res);
res              1630 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	struct vmw_resource *res;
res              1654 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 					&cur_state->value, &res);
res              1667 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 			binding.bi.res = res;
res              1710 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				     struct vmw_resource *res, uint32_t *buf_id,
res              1717 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	info = vmw_execbuf_info_from_res(sw_context, res);
res              1753 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	struct vmw_resource *res;
res              1757 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				VMW_RES_DIRTY_NONE, converter, res_id, &res);
res              1761 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	return vmw_cmd_res_switch_backup(dev_priv, sw_context, res, buf_id,
res              1991 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	struct vmw_resource *ctx, *res = NULL;
res              2018 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		res = vmw_shader_lookup(vmw_context_res_man(ctx),
res              2020 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		if (!IS_ERR(res)) {
res              2021 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 			ret = vmw_execbuf_res_noctx_val_add(sw_context, res,
res              2027 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				(sw_context, res,
res              2036 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	if (IS_ERR_OR_NULL(res)) {
res              2040 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 					&res);
res              2050 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	binding.bi.res = res;
res              2119 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	struct vmw_resource *res = NULL;
res              2130 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				&cmd->body.sid, &res);
res              2135 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	binding.bi.res = res;
res              2199 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	struct vmw_resource *res = NULL;
res              2217 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		res = vmw_shader_lookup(sw_context->man, cmd->body.shaderId, 0);
res              2218 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		if (IS_ERR(res)) {
res              2220 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 			return PTR_ERR(res);
res              2223 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		ret = vmw_execbuf_res_noctx_val_add(sw_context, res,
res              2230 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	binding.bi.res = res;
res              2253 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	struct vmw_resource *res;
res              2277 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 					&cmd->buf[i].sid, &res);
res              2283 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		binding.bi.res = res;
res              2308 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	struct vmw_resource *res;
res              2318 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				&cmd->body.sid, &res);
res              2323 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	binding.bi.res = res;
res              2410 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	struct vmw_resource *res;
res              2441 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	res = vmw_context_cotable(ctx_node->ctx, vmw_view_cotables[view_type]);
res              2442 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	ret = vmw_cotable_notify(res, cmd->defined_id);
res              2465 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	struct vmw_resource *res;
res              2488 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 					&cmd->targets[i].sid, &res);
res              2493 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		binding.bi.res = res;
res              2510 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	struct vmw_resource *res;
res              2526 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	res = vmw_context_cotable(ctx_node->ctx, vmw_so_cotables[so_type]);
res              2528 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	ret = vmw_cotable_notify(res, cmd->defined_id);
res              2637 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	struct vmw_resource *res;
res              2645 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	res = vmw_context_cotable(ctx_node->ctx, SVGA_COTABLE_DXSHADER);
res              2646 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	ret = vmw_cotable_notify(res, cmd->body.shaderId);
res              2692 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	struct vmw_resource *res;
res              2714 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	res = vmw_shader_lookup(vmw_context_res_man(ctx), cmd->body.shid, 0);
res              2715 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	if (IS_ERR(res)) {
res              2717 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		return PTR_ERR(res);
res              2720 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	ret = vmw_execbuf_res_noctx_val_add(sw_context, res,
res              2727 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	return vmw_cmd_res_switch_backup(dev_priv, sw_context, res,
res              3599 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	struct vmw_resource *res;
res              3611 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	res = vmw_user_resource_noref_lookup_handle
res              3614 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	if (IS_ERR(res)) {
res              3617 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		return PTR_ERR(res);
res              3620 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	ret = vmw_execbuf_res_noref_val_add(sw_context, res, VMW_RES_DIRTY_SET);
res              3624 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	sw_context->dx_ctx_node = vmw_execbuf_info_from_res(sw_context, res);
res              3625 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	sw_context->man = vmw_context_res_man(res);
res               260 drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c 	struct vmw_resource *res;
res               306 drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c 					      &res);
res               310 drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c 	surface = vmw_res_to_srf(res);
res               306 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c 			vmw_resource_unpin(&vps->surf->res);
res              1076 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c 		vmw_framebuffer_to_vfbs(&vfb->base)->surface->res.backup;
res              1119 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c 		vmw_framebuffer_to_vfbs(&vfb->base)->surface->res.backup;
res              1149 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c 	struct vmw_resource *res;
res              1199 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c 	res = &(*srf_out)->res;
res              1202 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c 	mutex_lock(&res->dev_priv->cmdbuf_mutex);
res              1203 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c 	(void) vmw_resource_reserve(res, false, true);
res              1204 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c 	vmw_bo_unreference(&res->backup);
res              1205 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c 	res->backup = vmw_bo_reference(bo_mob);
res              1206 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c 	res->backup_offset = 0;
res              1207 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c 	vmw_resource_unreserve(res, false, false, false, NULL, 0);
res              1208 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c 	mutex_unlock(&res->dev_priv->cmdbuf_mutex);
res              1741 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c 					    &surface->res, destX, destY,
res              1760 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c 						 &surface->res, destX, destY,
res              2594 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c int vmw_kms_update_proxy(struct vmw_resource *res,
res              2599 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c 	struct vmw_private *dev_priv = res->dev_priv;
res              2600 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c 	struct drm_vmw_size *size = &vmw_res_to_srf(res)->base_size;
res              2621 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c 		cmd->body.image.sid = res->id;
res              2831 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c 		ret = vmw_validation_add_resource(&val_ctx, &vfbs->surface->res,
res               376 drivers/gpu/drm/vmwgfx/vmwgfx_kms.h 	struct vmw_resource *res;
res               502 drivers/gpu/drm/vmwgfx/vmwgfx_kms.h int vmw_kms_update_proxy(struct vmw_resource *res,
res               468 drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c 	struct vmw_resource *res;
res               474 drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c 	ret = vmw_user_stream_lookup(dev_priv, tfile, &arg->stream_id, &res);
res               495 drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c 	vmw_resource_unreference(&res);
res                40 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c void vmw_resource_mob_attach(struct vmw_resource *res)
res                42 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	struct vmw_buffer_object *backup = res->backup;
res                44 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	dma_resv_assert_held(res->backup->base.base.resv);
res                45 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	res->used_prio = (res->res_dirty) ? res->func->dirty_prio :
res                46 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 		res->func->prio;
res                47 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	list_add_tail(&res->mob_head, &backup->res_list);
res                48 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	vmw_bo_prio_add(backup, res->used_prio);
res                55 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c void vmw_resource_mob_detach(struct vmw_resource *res)
res                57 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	struct vmw_buffer_object *backup = res->backup;
res                60 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	if (vmw_resource_mob_attached(res)) {
res                61 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 		list_del_init(&res->mob_head);
res                62 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 		vmw_bo_prio_del(backup, res->used_prio);
res                66 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c struct vmw_resource *vmw_resource_reference(struct vmw_resource *res)
res                68 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	kref_get(&res->kref);
res                69 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	return res;
res                73 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c vmw_resource_reference_unless_doomed(struct vmw_resource *res)
res                75 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	return kref_get_unless_zero(&res->kref) ? res : NULL;
res                85 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c void vmw_resource_release_id(struct vmw_resource *res)
res                87 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	struct vmw_private *dev_priv = res->dev_priv;
res                88 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	struct idr *idr = &dev_priv->res_idr[res->func->res_type];
res                91 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	if (res->id != -1)
res                92 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 		idr_remove(idr, res->id);
res                93 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	res->id = -1;
res                99 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	struct vmw_resource *res =
res               101 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	struct vmw_private *dev_priv = res->dev_priv;
res               103 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	struct idr *idr = &dev_priv->res_idr[res->func->res_type];
res               106 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	list_del_init(&res->lru_head);
res               108 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	if (res->backup) {
res               109 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 		struct ttm_buffer_object *bo = &res->backup->base;
res               112 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 		if (vmw_resource_mob_attached(res) &&
res               113 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 		    res->func->unbind != NULL) {
res               118 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 			res->func->unbind(res, false, &val_buf);
res               120 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 		res->backup_dirty = false;
res               121 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 		vmw_resource_mob_detach(res);
res               123 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 		vmw_bo_unreference(&res->backup);
res               126 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	if (likely(res->hw_destroy != NULL)) {
res               128 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 		vmw_binding_res_list_kill(&res->binding_head);
res               130 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 		res->hw_destroy(res);
res               133 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	id = res->id;
res               134 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	if (res->res_free != NULL)
res               135 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 		res->res_free(res);
res               137 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 		kfree(res);
res               147 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	struct vmw_resource *res = *p_res;
res               150 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	kref_put(&res->kref, vmw_resource_release);
res               162 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c int vmw_resource_alloc_id(struct vmw_resource *res)
res               164 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	struct vmw_private *dev_priv = res->dev_priv;
res               166 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	struct idr *idr = &dev_priv->res_idr[res->func->res_type];
res               168 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	BUG_ON(res->id != -1);
res               173 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	ret = idr_alloc(idr, res, 1, 0, GFP_NOWAIT);
res               175 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 		res->id = ret;
res               193 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c int vmw_resource_init(struct vmw_private *dev_priv, struct vmw_resource *res,
res               195 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 		      void (*res_free) (struct vmw_resource *res),
res               198 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	kref_init(&res->kref);
res               199 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	res->hw_destroy = NULL;
res               200 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	res->res_free = res_free;
res               201 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	res->dev_priv = dev_priv;
res               202 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	res->func = func;
res               203 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	INIT_LIST_HEAD(&res->lru_head);
res               204 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	INIT_LIST_HEAD(&res->mob_head);
res               205 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	INIT_LIST_HEAD(&res->binding_head);
res               206 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	res->id = -1;
res               207 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	res->backup = NULL;
res               208 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	res->backup_offset = 0;
res               209 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	res->backup_dirty = false;
res               210 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	res->res_dirty = false;
res               211 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	res->used_prio = 3;
res               215 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 		return vmw_resource_alloc_id(res);
res               241 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	struct vmw_resource *res;
res               251 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	res = converter->base_obj_to_res(base);
res               252 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	kref_get(&res->kref);
res               254 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	*p_res = res;
res               309 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	struct vmw_resource *res;
res               316 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 					      &res);
res               318 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 		*out_surf = vmw_res_to_srf(res);
res               334 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c static int vmw_resource_buf_alloc(struct vmw_resource *res,
res               338 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 		(res->backup_size + PAGE_SIZE - 1) & PAGE_MASK;
res               342 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	if (likely(res->backup)) {
res               343 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 		BUG_ON(res->backup->base.num_pages * PAGE_SIZE < size);
res               351 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	ret = vmw_bo_init(res->dev_priv, backup, res->backup_size,
res               352 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 			      res->func->backup_placement,
res               358 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	res->backup = backup;
res               375 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c static int vmw_resource_do_validate(struct vmw_resource *res,
res               379 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	const struct vmw_res_func *func = res->func;
res               381 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	if (unlikely(res->id == -1)) {
res               382 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 		ret = func->create(res);
res               388 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	    ((func->needs_backup && !vmw_resource_mob_attached(res) &&
res               391 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 		ret = func->bind(res, val_buf);
res               395 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 			vmw_resource_mob_attach(res);
res               401 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	func->destroy(res);
res               421 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c void vmw_resource_unreserve(struct vmw_resource *res,
res               428 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	struct vmw_private *dev_priv = res->dev_priv;
res               430 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	if (!list_empty(&res->lru_head))
res               433 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	if (switch_backup && new_backup != res->backup) {
res               434 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 		if (res->backup) {
res               435 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 			vmw_resource_mob_detach(res);
res               436 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 			vmw_bo_unreference(&res->backup);
res               440 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 			res->backup = vmw_bo_reference(new_backup);
res               441 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 			vmw_resource_mob_attach(res);
res               443 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 			res->backup = NULL;
res               447 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 		res->backup_offset = new_backup_offset;
res               450 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 		res->res_dirty = dirty;
res               452 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	if (!res->func->may_evict || res->id == -1 || res->pin_count)
res               456 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	list_add_tail(&res->lru_head,
res               457 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 		      &res->dev_priv->res_lru[res->func->res_type]);
res               475 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 			  struct vmw_resource *res,
res               484 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	if (unlikely(res->backup == NULL)) {
res               485 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 		ret = vmw_resource_buf_alloc(res, interruptible);
res               491 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	ttm_bo_get(&res->backup->base);
res               492 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	val_buf->bo = &res->backup->base;
res               500 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	if (res->func->needs_backup && !vmw_resource_mob_attached(res))
res               503 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	backup_dirty = res->backup_dirty;
res               504 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	ret = ttm_bo_validate(&res->backup->base,
res               505 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 			      res->func->backup_placement,
res               519 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 		vmw_bo_unreference(&res->backup);
res               534 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c int vmw_resource_reserve(struct vmw_resource *res, bool interruptible,
res               537 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	struct vmw_private *dev_priv = res->dev_priv;
res               541 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	list_del_init(&res->lru_head);
res               544 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	if (res->func->needs_backup && res->backup == NULL &&
res               546 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 		ret = vmw_resource_buf_alloc(res, interruptible);
res               550 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 				  (unsigned long) res->backup_size);
res               590 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 				 struct vmw_resource *res, bool interruptible)
res               593 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	const struct vmw_res_func *func = res->func;
res               600 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	ret = vmw_resource_check_buffer(ticket, res, interruptible, &val_buf);
res               605 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 		     (!func->needs_backup || vmw_resource_mob_attached(res)))) {
res               606 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 		ret = func->unbind(res, res->res_dirty, &val_buf);
res               609 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 		vmw_resource_mob_detach(res);
res               611 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	ret = func->destroy(res);
res               612 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	res->backup_dirty = true;
res               613 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	res->res_dirty = false;
res               635 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c int vmw_resource_validate(struct vmw_resource *res, bool intr)
res               639 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	struct vmw_private *dev_priv = res->dev_priv;
res               640 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	struct list_head *lru_list = &dev_priv->res_lru[res->func->res_type];
res               644 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	if (!res->func->create)
res               649 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	if (res->backup)
res               650 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 		val_buf.bo = &res->backup->base;
res               652 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 		ret = vmw_resource_do_validate(res, &val_buf);
res               657 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 		if (list_empty(lru_list) || !res->func->may_evict) {
res               659 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 				  "for %s.\n", res->func->type_name);
res               690 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	else if (!res->func->needs_backup && res->backup) {
res               691 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 		WARN_ON_ONCE(vmw_resource_mob_attached(res));
res               692 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 		vmw_bo_unreference(&res->backup);
res               716 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	struct vmw_resource *res, *next;
res               723 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	list_for_each_entry_safe(res, next, &vbo->res_list, mob_head) {
res               724 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 		if (!res->func->unbind)
res               727 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 		(void) res->func->unbind(res, res->res_dirty, &val_buf);
res               728 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 		res->backup_dirty = true;
res               729 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 		res->res_dirty = false;
res               730 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 		vmw_resource_mob_detach(res);
res               832 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c bool vmw_resource_needs_backup(const struct vmw_resource *res)
res               834 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	return res->func->needs_backup;
res               918 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c int vmw_resource_pin(struct vmw_resource *res, bool interruptible)
res               921 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	struct vmw_private *dev_priv = res->dev_priv;
res               926 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	ret = vmw_resource_reserve(res, interruptible, false);
res               930 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	if (res->pin_count == 0) {
res               933 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 		if (res->backup) {
res               934 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 			vbo = res->backup;
res               940 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 					 res->func->backup_placement,
res               951 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 		ret = vmw_resource_validate(res, interruptible);
res               957 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	res->pin_count++;
res               960 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	vmw_resource_unreserve(res, false, false, false, NULL, 0UL);
res               976 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c void vmw_resource_unpin(struct vmw_resource *res)
res               978 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	struct vmw_private *dev_priv = res->dev_priv;
res               984 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	ret = vmw_resource_reserve(res, false, true);
res               987 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	WARN_ON(res->pin_count == 0);
res               988 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	if (--res->pin_count == 0 && res->backup) {
res               989 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 		struct vmw_buffer_object *vbo = res->backup;
res               996 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	vmw_resource_unreserve(res, false, false, false, NULL, 0UL);
res              1007 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c enum vmw_res_type vmw_res_type(const struct vmw_resource *res)
res              1009 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	return res->func->res_type;
res                54 drivers/gpu/drm/vmwgfx/vmwgfx_resource_priv.h 	void (*res_free) (struct vmw_resource *res);
res                84 drivers/gpu/drm/vmwgfx/vmwgfx_resource_priv.h 	int (*create) (struct vmw_resource *res);
res                85 drivers/gpu/drm/vmwgfx/vmwgfx_resource_priv.h 	int (*destroy) (struct vmw_resource *res);
res                86 drivers/gpu/drm/vmwgfx/vmwgfx_resource_priv.h 	int (*bind) (struct vmw_resource *res,
res                88 drivers/gpu/drm/vmwgfx/vmwgfx_resource_priv.h 	int (*unbind) (struct vmw_resource *res,
res                91 drivers/gpu/drm/vmwgfx/vmwgfx_resource_priv.h 	void (*commit_notify)(struct vmw_resource *res,
res               109 drivers/gpu/drm/vmwgfx/vmwgfx_resource_priv.h 	int (*init)(struct vmw_resource *res, void *data);
res               110 drivers/gpu/drm/vmwgfx/vmwgfx_resource_priv.h 	void (*hw_destroy)(struct vmw_resource *res);
res               120 drivers/gpu/drm/vmwgfx/vmwgfx_resource_priv.h 	struct vmw_resource res;
res               124 drivers/gpu/drm/vmwgfx/vmwgfx_resource_priv.h int vmw_resource_alloc_id(struct vmw_resource *res);
res               125 drivers/gpu/drm/vmwgfx/vmwgfx_resource_priv.h void vmw_resource_release_id(struct vmw_resource *res);
res               126 drivers/gpu/drm/vmwgfx/vmwgfx_resource_priv.h int vmw_resource_init(struct vmw_private *dev_priv, struct vmw_resource *res,
res               128 drivers/gpu/drm/vmwgfx/vmwgfx_resource_priv.h 		      void (*res_free) (struct vmw_resource *res),
res               600 drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c 	blit->body.srcImage.sid = vfbs->surface->res.id;
res              1143 drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c 		srf = &vfbs->surface->res;
res                35 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	struct vmw_resource res;
res                48 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	struct vmw_resource res;
res                60 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c static void vmw_user_shader_free(struct vmw_resource *res);
res                64 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c static int vmw_gb_shader_create(struct vmw_resource *res);
res                65 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c static int vmw_gb_shader_bind(struct vmw_resource *res,
res                67 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c static int vmw_gb_shader_unbind(struct vmw_resource *res,
res                70 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c static int vmw_gb_shader_destroy(struct vmw_resource *res);
res                72 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c static int vmw_dx_shader_create(struct vmw_resource *res);
res                73 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c static int vmw_dx_shader_bind(struct vmw_resource *res,
res                75 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c static int vmw_dx_shader_unbind(struct vmw_resource *res,
res                78 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c static void vmw_dx_shader_commit_notify(struct vmw_resource *res,
res               133 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c vmw_res_to_shader(struct vmw_resource *res)
res               135 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	return container_of(res, struct vmw_shader, res);
res               145 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c vmw_res_to_dx_shader(struct vmw_resource *res)
res               147 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	return container_of(res, struct vmw_dx_shader, res);
res               150 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c static void vmw_hw_shader_destroy(struct vmw_resource *res)
res               152 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	if (likely(res->func->destroy))
res               153 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 		(void) res->func->destroy(res);
res               155 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 		res->id = -1;
res               160 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 			      struct vmw_resource *res,
res               167 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 			      void (*res_free) (struct vmw_resource *res))
res               169 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	struct vmw_shader *shader = vmw_res_to_shader(res);
res               172 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	ret = vmw_resource_init(dev_priv, res, true, res_free,
res               177 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 			res_free(res);
res               179 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 			kfree(res);
res               183 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	res->backup_size = size;
res               185 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 		res->backup = vmw_bo_reference(byte_code);
res               186 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 		res->backup_offset = offset;
res               193 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	res->hw_destroy = vmw_hw_shader_destroy;
res               201 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c static int vmw_gb_shader_create(struct vmw_resource *res)
res               203 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	struct vmw_private *dev_priv = res->dev_priv;
res               204 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	struct vmw_shader *shader = vmw_res_to_shader(res);
res               211 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	if (likely(res->id != -1))
res               214 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	ret = vmw_resource_alloc_id(res);
res               220 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	if (unlikely(res->id >= VMWGFX_NUM_GB_SHADER)) {
res               233 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	cmd->body.shid = res->id;
res               242 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	vmw_resource_release_id(res);
res               247 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c static int vmw_gb_shader_bind(struct vmw_resource *res,
res               250 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	struct vmw_private *dev_priv = res->dev_priv;
res               265 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	cmd->body.shid = res->id;
res               267 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	cmd->body.offsetInBytes = res->backup_offset;
res               268 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	res->backup_dirty = false;
res               274 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c static int vmw_gb_shader_unbind(struct vmw_resource *res,
res               278 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	struct vmw_private *dev_priv = res->dev_priv;
res               285 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	BUG_ON(res->backup->base.mem.mem_type != VMW_PL_MOB);
res               293 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	cmd->body.shid = res->id;
res               313 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c static int vmw_gb_shader_destroy(struct vmw_resource *res)
res               315 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	struct vmw_private *dev_priv = res->dev_priv;
res               321 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	if (likely(res->id == -1))
res               325 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	vmw_binding_res_list_scrub(&res->binding_head);
res               335 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	cmd->body.shid = res->id;
res               338 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	vmw_resource_release_id(res);
res               356 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c static void vmw_dx_shader_commit_notify(struct vmw_resource *res,
res               359 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	struct vmw_dx_shader *shader = vmw_res_to_dx_shader(res);
res               360 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	struct vmw_private *dev_priv = res->dev_priv;
res               367 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 		res->id = shader->id;
res               373 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 		res->id = -1;
res               385 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c static int vmw_dx_shader_unscrub(struct vmw_resource *res)
res               387 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	struct vmw_dx_shader *shader = vmw_res_to_dx_shader(res);
res               388 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	struct vmw_private *dev_priv = res->dev_priv;
res               405 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	cmd->body.mobid = res->backup->base.mem.start;
res               406 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	cmd->body.offsetInBytes = res->backup_offset;
res               422 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c static int vmw_dx_shader_create(struct vmw_resource *res)
res               424 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	struct vmw_private *dev_priv = res->dev_priv;
res               425 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	struct vmw_dx_shader *shader = vmw_res_to_dx_shader(res);
res               430 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	if (vmw_resource_mob_attached(res)) {
res               432 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 		ret = vmw_dx_shader_unscrub(res);
res               436 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	res->id = shader->id;
res               447 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c static int vmw_dx_shader_bind(struct vmw_resource *res,
res               450 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	struct vmw_private *dev_priv = res->dev_priv;
res               455 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	vmw_dx_shader_unscrub(res);
res               471 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c static int vmw_dx_shader_scrub(struct vmw_resource *res)
res               473 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	struct vmw_dx_shader *shader = vmw_res_to_dx_shader(res);
res               474 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	struct vmw_private *dev_priv = res->dev_priv;
res               491 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	cmd->body.shid = res->id;
res               495 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	res->id = -1;
res               508 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c static int vmw_dx_shader_unbind(struct vmw_resource *res,
res               512 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	struct vmw_private *dev_priv = res->dev_priv;
res               516 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	BUG_ON(res->backup->base.mem.mem_type != VMW_PL_MOB);
res               519 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	ret = vmw_dx_shader_scrub(res);
res               555 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 		WARN_ON(vmw_dx_shader_scrub(&entry->res));
res               568 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c static void vmw_dx_shader_res_free(struct vmw_resource *res)
res               570 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	struct vmw_private *dev_priv = res->dev_priv;
res               571 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	struct vmw_dx_shader *shader = vmw_res_to_dx_shader(res);
res               595 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	struct vmw_resource *res;
res               624 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	res = &shader->res;
res               631 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	ret = vmw_resource_init(dev_priv, res, true,
res               642 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 				 res, list);
res               646 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	res->id = shader->id;
res               647 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	res->hw_destroy = vmw_hw_shader_destroy;
res               650 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	vmw_resource_unreference(&res);
res               665 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 		 shader.res);
res               668 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c static void vmw_user_shader_free(struct vmw_resource *res)
res               671 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 		container_of(res, struct vmw_user_shader, shader.res);
res               672 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	struct vmw_private *dev_priv = res->dev_priv;
res               679 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c static void vmw_shader_free(struct vmw_resource *res)
res               681 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	struct vmw_shader *shader = vmw_res_to_shader(res);
res               682 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	struct vmw_private *dev_priv = res->dev_priv;
res               697 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	struct vmw_resource *res = vmw_user_shader_base_to_res(base);
res               700 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	vmw_resource_unreference(&res);
res               724 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	struct vmw_resource *res, *tmp;
res               754 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	res = &ushader->shader.res;
res               762 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	ret = vmw_gb_shader_init(dev_priv, res, shader_size,
res               769 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	tmp = vmw_resource_reference(res);
res               782 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	vmw_resource_unreference(&res);
res               795 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	struct vmw_resource *res;
res               825 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	res = &shader->res;
res               830 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	ret = vmw_gb_shader_init(dev_priv, res, shader_size,
res               835 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	return ret ? ERR_PTR(ret) : res;
res               971 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	struct vmw_resource *res;
res              1006 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	res = vmw_shader_alloc(dev_priv, buf, size, 0, shader_type);
res              1012 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 				 res, list);
res              1013 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 	vmw_resource_unreference(&res);
res                65 drivers/gpu/drm/vmwgfx/vmwgfx_simple_resource.c 				    void (*res_free)(struct vmw_resource *res))
res                67 drivers/gpu/drm/vmwgfx/vmwgfx_simple_resource.c 	struct vmw_resource *res = &simple->res;
res                70 drivers/gpu/drm/vmwgfx/vmwgfx_simple_resource.c 	ret = vmw_resource_init(dev_priv, res, false, res_free,
res                74 drivers/gpu/drm/vmwgfx/vmwgfx_simple_resource.c 		res_free(res);
res                78 drivers/gpu/drm/vmwgfx/vmwgfx_simple_resource.c 	ret = simple->func->init(res, data);
res                80 drivers/gpu/drm/vmwgfx/vmwgfx_simple_resource.c 		vmw_resource_unreference(&res);
res                84 drivers/gpu/drm/vmwgfx/vmwgfx_simple_resource.c 	simple->res.hw_destroy = simple->func->hw_destroy;
res                96 drivers/gpu/drm/vmwgfx/vmwgfx_simple_resource.c static void vmw_simple_resource_free(struct vmw_resource *res)
res                99 drivers/gpu/drm/vmwgfx/vmwgfx_simple_resource.c 		container_of(res, struct vmw_user_simple_resource,
res               100 drivers/gpu/drm/vmwgfx/vmwgfx_simple_resource.c 			     simple.res);
res               101 drivers/gpu/drm/vmwgfx/vmwgfx_simple_resource.c 	struct vmw_private *dev_priv = res->dev_priv;
res               122 drivers/gpu/drm/vmwgfx/vmwgfx_simple_resource.c 	struct vmw_resource *res = &usimple->simple.res;
res               125 drivers/gpu/drm/vmwgfx/vmwgfx_simple_resource.c 	vmw_resource_unreference(&res);
res               149 drivers/gpu/drm/vmwgfx/vmwgfx_simple_resource.c 	struct vmw_resource *res;
res               190 drivers/gpu/drm/vmwgfx/vmwgfx_simple_resource.c 	res = &usimple->simple.res;
res               202 drivers/gpu/drm/vmwgfx/vmwgfx_simple_resource.c 	tmp = vmw_resource_reference(res);
res               214 drivers/gpu/drm/vmwgfx/vmwgfx_simple_resource.c 	vmw_resource_unreference(&res);
res               238 drivers/gpu/drm/vmwgfx/vmwgfx_simple_resource.c 	struct vmw_resource *res;
res               257 drivers/gpu/drm/vmwgfx/vmwgfx_simple_resource.c 	res = vmw_resource_reference(&usimple->simple.res);
res               260 drivers/gpu/drm/vmwgfx/vmwgfx_simple_resource.c 	return res;
res                62 drivers/gpu/drm/vmwgfx/vmwgfx_so.c 	struct vmw_resource res;
res                75 drivers/gpu/drm/vmwgfx/vmwgfx_so.c static int vmw_view_create(struct vmw_resource *res);
res                76 drivers/gpu/drm/vmwgfx/vmwgfx_so.c static int vmw_view_destroy(struct vmw_resource *res);
res                77 drivers/gpu/drm/vmwgfx/vmwgfx_so.c static void vmw_hw_view_destroy(struct vmw_resource *res);
res                78 drivers/gpu/drm/vmwgfx/vmwgfx_so.c static void vmw_view_commit_notify(struct vmw_resource *res,
res               112 drivers/gpu/drm/vmwgfx/vmwgfx_so.c static struct vmw_view *vmw_view(struct vmw_resource *res)
res               114 drivers/gpu/drm/vmwgfx/vmwgfx_so.c 	return container_of(res, struct vmw_view, res);
res               125 drivers/gpu/drm/vmwgfx/vmwgfx_so.c static void vmw_view_commit_notify(struct vmw_resource *res,
res               128 drivers/gpu/drm/vmwgfx/vmwgfx_so.c 	struct vmw_view *view = vmw_view(res);
res               129 drivers/gpu/drm/vmwgfx/vmwgfx_so.c 	struct vmw_private *dev_priv = res->dev_priv;
res               138 drivers/gpu/drm/vmwgfx/vmwgfx_so.c 		res->id = view->view_id;
res               144 drivers/gpu/drm/vmwgfx/vmwgfx_so.c 		res->id = -1;
res               157 drivers/gpu/drm/vmwgfx/vmwgfx_so.c static int vmw_view_create(struct vmw_resource *res)
res               159 drivers/gpu/drm/vmwgfx/vmwgfx_so.c 	struct vmw_view *view = vmw_view(res);
res               161 drivers/gpu/drm/vmwgfx/vmwgfx_so.c 	struct vmw_private *dev_priv = res->dev_priv;
res               173 drivers/gpu/drm/vmwgfx/vmwgfx_so.c 	cmd = VMW_FIFO_RESERVE_DX(res->dev_priv, view->cmd_size, view->ctx->id);
res               184 drivers/gpu/drm/vmwgfx/vmwgfx_so.c 	vmw_fifo_commit(res->dev_priv, view->cmd_size);
res               185 drivers/gpu/drm/vmwgfx/vmwgfx_so.c 	res->id = view->view_id;
res               201 drivers/gpu/drm/vmwgfx/vmwgfx_so.c static int vmw_view_destroy(struct vmw_resource *res)
res               203 drivers/gpu/drm/vmwgfx/vmwgfx_so.c 	struct vmw_private *dev_priv = res->dev_priv;
res               204 drivers/gpu/drm/vmwgfx/vmwgfx_so.c 	struct vmw_view *view = vmw_view(res);
res               211 drivers/gpu/drm/vmwgfx/vmwgfx_so.c 	vmw_binding_res_list_scrub(&res->binding_head);
res               213 drivers/gpu/drm/vmwgfx/vmwgfx_so.c 	if (!view->committed || res->id == -1)
res               224 drivers/gpu/drm/vmwgfx/vmwgfx_so.c 	res->id = -1;
res               238 drivers/gpu/drm/vmwgfx/vmwgfx_so.c static void vmw_hw_view_destroy(struct vmw_resource *res)
res               240 drivers/gpu/drm/vmwgfx/vmwgfx_so.c 	struct vmw_private *dev_priv = res->dev_priv;
res               243 drivers/gpu/drm/vmwgfx/vmwgfx_so.c 	WARN_ON(vmw_view_destroy(res));
res               244 drivers/gpu/drm/vmwgfx/vmwgfx_so.c 	res->id = -1;
res               283 drivers/gpu/drm/vmwgfx/vmwgfx_so.c static void vmw_view_res_free(struct vmw_resource *res)
res               285 drivers/gpu/drm/vmwgfx/vmwgfx_so.c 	struct vmw_view *view = vmw_view(res);
res               287 drivers/gpu/drm/vmwgfx/vmwgfx_so.c 	struct vmw_private *dev_priv = res->dev_priv;
res               326 drivers/gpu/drm/vmwgfx/vmwgfx_so.c 	struct vmw_resource *res;
res               361 drivers/gpu/drm/vmwgfx/vmwgfx_so.c 	res = &view->res;
res               373 drivers/gpu/drm/vmwgfx/vmwgfx_so.c 	ret = vmw_resource_init(dev_priv, res, true,
res               380 drivers/gpu/drm/vmwgfx/vmwgfx_so.c 				 res, list);
res               384 drivers/gpu/drm/vmwgfx/vmwgfx_so.c 	res->id = view->view_id;
res               385 drivers/gpu/drm/vmwgfx/vmwgfx_so.c 	res->hw_destroy = vmw_hw_view_destroy;
res               388 drivers/gpu/drm/vmwgfx/vmwgfx_so.c 	vmw_resource_unreference(&res);
res               441 drivers/gpu/drm/vmwgfx/vmwgfx_so.c 		WARN_ON(vmw_view_destroy(&entry->res));
res               461 drivers/gpu/drm/vmwgfx/vmwgfx_so.c 		WARN_ON(vmw_view_destroy(&entry->res));
res               473 drivers/gpu/drm/vmwgfx/vmwgfx_so.c struct vmw_resource *vmw_view_srf(struct vmw_resource *res)
res               475 drivers/gpu/drm/vmwgfx/vmwgfx_so.c 	return vmw_view(res)->srf;
res               507 drivers/gpu/drm/vmwgfx/vmwgfx_so.c u32 vmw_view_dirtying(struct vmw_resource *res)
res               516 drivers/gpu/drm/vmwgfx/vmwgfx_so.c 	return view_is_dirtying[vmw_view(res)->view_type];
res               156 drivers/gpu/drm/vmwgfx/vmwgfx_so.h extern struct vmw_resource *vmw_view_srf(struct vmw_resource *res);
res               160 drivers/gpu/drm/vmwgfx/vmwgfx_so.h extern u32 vmw_view_dirtying(struct vmw_resource *res);
res               213 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c 			    const struct vmw_resource *res)
res               230 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c 	image.sid = res ? res->id : SVGA3D_INVALID_ID;
res               510 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c 	cmd->body.host.sid = stdu->display_srf->res.id;
res               527 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c 	stdu->display_srf->res.res_dirty = true;
res               594 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c 	dst_bo = &stdu->display_srf->res.backup->base;
res               624 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c 		ret = vmw_kms_update_proxy(&stdu->display_srf->res, &region,
res               755 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c 	if (sdirty->sid != stdu->display_srf->res.id) {
res               802 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c 	if (sdirty->sid != stdu->display_srf->res.id) {
res               808 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c 		cmd->body.dest.sid = stdu->display_srf->res.id;
res               811 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c 		stdu->display_srf->res.res_dirty = true;
res               866 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c 		srf = &vfbs->surface->res;
res              1158 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c 		ret = vmw_resource_pin(&vps->surf->res, false);
res              1215 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c 	cmd_dma->body.host.sid = stdu->display_srf->res.id;
res              1310 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c 	dst_bo = &stdu->display_srf->res.backup->base;
res              1328 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c 		cmd_img->body.image.sid = stdu->display_srf->res.id;
res              1457 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c 		cmd_update->body.image.sid = vfbs->surface->res.id;
res              1489 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c 	cmd_copy->body.src.sid = vfbs->surface->res.id;
res              1490 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c 	cmd_copy->body.dest.sid = stdu->display_srf->res.id;
res              1564 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c 	if (vfbs->surface->res.id != stdu->display_srf->res.id) {
res              1611 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c 		ret = vmw_stdu_bind_st(dev_priv, stdu, &stdu->display_srf->res);
res                71 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c static void vmw_user_surface_free(struct vmw_resource *res);
res                74 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c static int vmw_legacy_srf_bind(struct vmw_resource *res,
res                76 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c static int vmw_legacy_srf_unbind(struct vmw_resource *res,
res                79 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c static int vmw_legacy_srf_create(struct vmw_resource *res);
res                80 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c static int vmw_legacy_srf_destroy(struct vmw_resource *res);
res                81 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c static int vmw_gb_surface_create(struct vmw_resource *res);
res                82 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c static int vmw_gb_surface_bind(struct vmw_resource *res,
res                84 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c static int vmw_gb_surface_unbind(struct vmw_resource *res,
res                87 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c static int vmw_gb_surface_destroy(struct vmw_resource *res);
res               243 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 	cmd->body.sid = srf->res.id;
res               299 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 		body->host.sid = srf->res.id;
res               335 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c static void vmw_hw_surface_destroy(struct vmw_resource *res)
res               338 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 	struct vmw_private *dev_priv = res->dev_priv;
res               342 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 	if (res->func->destroy == vmw_gb_surface_destroy) {
res               343 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 		(void) vmw_gb_surface_destroy(res);
res               347 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 	if (res->id != -1) {
res               353 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 		vmw_surface_destroy_encode(res->id, cmd);
res               363 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 		srf = vmw_res_to_srf(res);
res               364 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 		dev_priv->used_memory_size -= res->backup_size;
res               382 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c static int vmw_legacy_srf_create(struct vmw_resource *res)
res               384 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 	struct vmw_private *dev_priv = res->dev_priv;
res               390 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 	if (likely(res->id != -1))
res               393 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 	srf = vmw_res_to_srf(res);
res               394 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 	if (unlikely(dev_priv->used_memory_size + res->backup_size >=
res               402 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 	ret = vmw_resource_alloc_id(res);
res               408 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 	if (unlikely(res->id >= SVGA3D_MAX_SURFACE_IDS)) {
res               432 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 	dev_priv->used_memory_size += res->backup_size;
res               436 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 	vmw_resource_release_id(res);
res               457 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c static int vmw_legacy_srf_dma(struct vmw_resource *res,
res               464 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 	struct vmw_surface *srf = vmw_res_to_srf(res);
res               466 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 	struct vmw_private *dev_priv = res->dev_priv;
res               506 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c static int vmw_legacy_srf_bind(struct vmw_resource *res,
res               509 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 	if (!res->backup_dirty)
res               512 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 	return vmw_legacy_srf_dma(res, val_buf, true);
res               527 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c static int vmw_legacy_srf_unbind(struct vmw_resource *res,
res               532 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 		return vmw_legacy_srf_dma(res, val_buf, false);
res               543 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c static int vmw_legacy_srf_destroy(struct vmw_resource *res)
res               545 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 	struct vmw_private *dev_priv = res->dev_priv;
res               549 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 	BUG_ON(res->id == -1);
res               560 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 	vmw_surface_destroy_encode(res->id, cmd);
res               567 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 	dev_priv->used_memory_size -= res->backup_size;
res               573 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 	vmw_resource_release_id(res);
res               590 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 			    void (*res_free) (struct vmw_resource *res))
res               593 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 	struct vmw_resource *res = &srf->res;
res               596 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 	ret = vmw_resource_init(dev_priv, res, true, res_free,
res               601 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 		res_free(res);
res               611 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 	res->hw_destroy = vmw_hw_surface_destroy;
res               628 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 			      prime.base)->srf.res);
res               636 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c static void vmw_user_surface_free(struct vmw_resource *res)
res               638 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 	struct vmw_surface *srf = vmw_res_to_srf(res);
res               641 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 	struct vmw_private *dev_priv = srf->res.dev_priv;
res               667 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 	struct vmw_resource *res = &user_srf->srf.res;
res               672 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 	vmw_resource_unreference(&res);
res               706 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 	struct vmw_resource *res;
res               771 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 	res = &srf->res;
res               820 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 	res->backup_size = cur_bo_offset;
res               859 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 					res->backup_size,
res               862 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 					&res->backup,
res               865 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 			vmw_resource_unreference(&res);
res               870 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 	tmp = vmw_resource_reference(&srf->res);
res               871 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 	ret = ttm_prime_object_init(tfile, res->backup_size, &user_srf->prime,
res               877 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 		vmw_resource_unreference(&res);
res               882 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 	vmw_resource_unreference(&res);
res              1028 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c static int vmw_gb_surface_create(struct vmw_resource *res)
res              1030 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 	struct vmw_private *dev_priv = res->dev_priv;
res              1031 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 	struct vmw_surface *srf = vmw_res_to_srf(res);
res              1047 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 	if (likely(res->id != -1))
res              1051 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 	ret = vmw_resource_alloc_id(res);
res              1057 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 	if (unlikely(res->id >= VMWGFX_NUM_GB_SURFACE)) {
res              1088 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 		cmd3->body.sid = srf->res.id;
res              1103 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 		cmd2->body.sid = srf->res.id;
res              1116 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 		cmd->body.sid = srf->res.id;
res              1132 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 	vmw_resource_release_id(res);
res              1139 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c static int vmw_gb_surface_bind(struct vmw_resource *res,
res              1142 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 	struct vmw_private *dev_priv = res->dev_priv;
res              1156 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 	submit_size = sizeof(*cmd1) + (res->backup_dirty ? sizeof(*cmd2) : 0);
res              1164 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 	cmd1->body.sid = res->id;
res              1166 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 	if (res->backup_dirty) {
res              1170 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 		cmd2->body.sid = res->id;
res              1171 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 		res->backup_dirty = false;
res              1178 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c static int vmw_gb_surface_unbind(struct vmw_resource *res,
res              1182 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 	struct vmw_private *dev_priv = res->dev_priv;
res              1213 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 		cmd1->body.sid = res->id;
res              1219 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 		cmd2->body.sid = res->id;
res              1225 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 	cmd3->body.sid = res->id;
res              1245 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c static int vmw_gb_surface_destroy(struct vmw_resource *res)
res              1247 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 	struct vmw_private *dev_priv = res->dev_priv;
res              1248 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 	struct vmw_surface *srf = vmw_res_to_srf(res);
res              1254 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 	if (likely(res->id == -1))
res              1259 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 	vmw_binding_res_list_scrub(&res->binding_head);
res              1269 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 	cmd->body.sid = res->id;
res              1272 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 	vmw_resource_release_id(res);
res              1459 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 	srf->res.backup_size   =
res              1467 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 		srf->res.backup_size += sizeof(SVGA3dDXSOState);
res              1555 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 	struct vmw_resource *res;
res              1621 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 	res = &user_srf->srf.res;
res              1625 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 					 &res->backup,
res              1628 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 			if (res->backup->base.num_pages * PAGE_SIZE <
res              1629 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 			    res->backup_size) {
res              1631 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 				vmw_bo_unreference(&res->backup);
res              1641 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 					res->backup_size,
res              1645 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 					&res->backup,
res              1649 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 		vmw_resource_unreference(&res);
res              1653 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 	tmp = vmw_resource_reference(res);
res              1654 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 	ret = ttm_prime_object_init(tfile, res->backup_size, &user_srf->prime,
res              1662 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 		vmw_resource_unreference(&res);
res              1667 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 	rep->backup_size = res->backup_size;
res              1668 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 	if (res->backup) {
res              1670 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 			drm_vma_node_offset_addr(&res->backup->base.base.vma_node);
res              1671 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 		rep->buffer_size = res->backup->base.num_pages * PAGE_SIZE;
res              1679 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 	vmw_resource_unreference(&res);
res              1716 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 	if (!srf->res.backup) {
res              1722 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 	ret = vmw_user_bo_reference(tfile, srf->res.backup, &backup_handle);
res              1743 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 	rep->crep.backup_size = srf->res.backup_size;
res              1746 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 		drm_vma_node_offset_addr(&srf->res.backup->base.base.vma_node);
res              1747 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 	rep->crep.buffer_size = srf->res.backup->base.num_pages * PAGE_SIZE;
res                48 drivers/gpu/drm/vmwgfx/vmwgfx_va.c vmw_stream(struct vmw_resource *res)
res                50 drivers/gpu/drm/vmwgfx/vmwgfx_va.c 	return container_of(res, struct vmw_stream, sres.res);
res                56 drivers/gpu/drm/vmwgfx/vmwgfx_va.c static void vmw_stream_hw_destroy(struct vmw_resource *res)
res                58 drivers/gpu/drm/vmwgfx/vmwgfx_va.c 	struct vmw_private *dev_priv = res->dev_priv;
res                59 drivers/gpu/drm/vmwgfx/vmwgfx_va.c 	struct vmw_stream *stream = vmw_stream(res);
res                66 drivers/gpu/drm/vmwgfx/vmwgfx_va.c static int vmw_stream_init(struct vmw_resource *res, void *data)
res                68 drivers/gpu/drm/vmwgfx/vmwgfx_va.c 	struct vmw_stream *stream = vmw_stream(res);
res                70 drivers/gpu/drm/vmwgfx/vmwgfx_va.c 	return vmw_overlay_claim(res->dev_priv, &stream->stream_id);
res               157 drivers/gpu/drm/vmwgfx/vmwgfx_va.c 	struct vmw_resource *res =
res               160 drivers/gpu/drm/vmwgfx/vmwgfx_va.c 	if (IS_ERR(res))
res               161 drivers/gpu/drm/vmwgfx/vmwgfx_va.c 		return PTR_ERR(res);
res               163 drivers/gpu/drm/vmwgfx/vmwgfx_va.c 	stream = vmw_stream(res);
res               165 drivers/gpu/drm/vmwgfx/vmwgfx_va.c 	*out = res;
res                72 drivers/gpu/drm/vmwgfx/vmwgfx_validation.c 	struct vmw_resource *res;
res               212 drivers/gpu/drm/vmwgfx/vmwgfx_validation.c 			    struct vmw_resource *res)
res               222 drivers/gpu/drm/vmwgfx/vmwgfx_validation.c 		if (!drm_ht_find_item(ctx->ht, (unsigned long) res, &hash))
res               228 drivers/gpu/drm/vmwgfx/vmwgfx_validation.c 			if (entry->res == res) {
res               235 drivers/gpu/drm/vmwgfx/vmwgfx_validation.c 			if (entry->res == res) {
res               311 drivers/gpu/drm/vmwgfx/vmwgfx_validation.c 				struct vmw_resource *res,
res               320 drivers/gpu/drm/vmwgfx/vmwgfx_validation.c 	node = vmw_validation_find_res_dup(ctx, res);
res               333 drivers/gpu/drm/vmwgfx/vmwgfx_validation.c 		node->hash.key = (unsigned long) res;
res               341 drivers/gpu/drm/vmwgfx/vmwgfx_validation.c 	node->res = vmw_resource_reference_unless_doomed(res);
res               342 drivers/gpu/drm/vmwgfx/vmwgfx_validation.c 	if (!node->res)
res               346 drivers/gpu/drm/vmwgfx/vmwgfx_validation.c 	if (!res->dev_priv->has_mob) {
res               349 drivers/gpu/drm/vmwgfx/vmwgfx_validation.c 		switch (vmw_res_type(res)) {
res               446 drivers/gpu/drm/vmwgfx/vmwgfx_validation.c 		struct vmw_resource *res = val->res;
res               448 drivers/gpu/drm/vmwgfx/vmwgfx_validation.c 		ret = vmw_resource_reserve(res, intr, val->no_buffer_needed);
res               453 drivers/gpu/drm/vmwgfx/vmwgfx_validation.c 		if (res->backup) {
res               454 drivers/gpu/drm/vmwgfx/vmwgfx_validation.c 			struct vmw_buffer_object *vbo = res->backup;
res               457 drivers/gpu/drm/vmwgfx/vmwgfx_validation.c 				(ctx, vbo, vmw_resource_needs_backup(res),
res               487 drivers/gpu/drm/vmwgfx/vmwgfx_validation.c 				vmw_resource_unreserve(val->res,
res               494 drivers/gpu/drm/vmwgfx/vmwgfx_validation.c 				vmw_resource_unreserve(val->res,
res               601 drivers/gpu/drm/vmwgfx/vmwgfx_validation.c 		struct vmw_resource *res = val->res;
res               602 drivers/gpu/drm/vmwgfx/vmwgfx_validation.c 		struct vmw_buffer_object *backup = res->backup;
res               604 drivers/gpu/drm/vmwgfx/vmwgfx_validation.c 		ret = vmw_resource_validate(res, intr);
res               612 drivers/gpu/drm/vmwgfx/vmwgfx_validation.c 		if (backup && res->backup && (backup != res->backup)) {
res               613 drivers/gpu/drm/vmwgfx/vmwgfx_validation.c 			struct vmw_buffer_object *vbo = res->backup;
res               616 drivers/gpu/drm/vmwgfx/vmwgfx_validation.c 				(ctx, vbo, vmw_resource_needs_backup(res),
res               677 drivers/gpu/drm/vmwgfx/vmwgfx_validation.c 		vmw_resource_unreference(&val->res);
res               243 drivers/gpu/drm/vmwgfx/vmwgfx_validation.h 				struct vmw_resource *res,
res               644 drivers/gpu/drm/zte/zx_hdmi.c 	struct resource *res;
res               658 drivers/gpu/drm/zte/zx_hdmi.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               659 drivers/gpu/drm/zte/zx_hdmi.c 	hdmi->mmio = devm_ioremap_resource(dev, res);
res               335 drivers/gpu/drm/zte/zx_tvenc.c 	struct resource *res;
res               346 drivers/gpu/drm/zte/zx_tvenc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               347 drivers/gpu/drm/zte/zx_tvenc.c 	tvenc->mmio = devm_ioremap_resource(dev, res);
res               427 drivers/gpu/drm/zte/zx_vga.c 	struct resource *res;
res               439 drivers/gpu/drm/zte/zx_vga.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               440 drivers/gpu/drm/zte/zx_vga.c 	vga->mmio = devm_ioremap_resource(dev, res);
res               767 drivers/gpu/drm/zte/zx_vou.c 	struct resource *res;
res               775 drivers/gpu/drm/zte/zx_vou.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "osd");
res               776 drivers/gpu/drm/zte/zx_vou.c 	vou->osd = devm_ioremap_resource(dev, res);
res               783 drivers/gpu/drm/zte/zx_vou.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "timing_ctrl");
res               784 drivers/gpu/drm/zte/zx_vou.c 	vou->timing = devm_ioremap_resource(dev, res);
res               792 drivers/gpu/drm/zte/zx_vou.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "dtrc");
res               793 drivers/gpu/drm/zte/zx_vou.c 	vou->dtrc = devm_ioremap_resource(dev, res);
res               800 drivers/gpu/drm/zte/zx_vou.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "vou_ctrl");
res               801 drivers/gpu/drm/zte/zx_vou.c 	vou->vouctl = devm_ioremap_resource(dev, res);
res               809 drivers/gpu/drm/zte/zx_vou.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "otfppu");
res               810 drivers/gpu/drm/zte/zx_vou.c 	vou->otfppu = devm_ioremap_resource(dev, res);
res               501 drivers/gpu/host1x/mipi.c 	struct resource *res;
res               515 drivers/gpu/host1x/mipi.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               516 drivers/gpu/host1x/mipi.c 	mipi->regs = devm_ioremap_resource(&pdev->dev, res);
res              1377 drivers/gpu/ipu-v3/ipu-common.c 	struct resource *res;
res              1388 drivers/gpu/ipu-v3/ipu-common.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1393 drivers/gpu/ipu-v3/ipu-common.c 	if (!res || irq_sync < 0 || irq_err < 0)
res              1396 drivers/gpu/ipu-v3/ipu-common.c 	ipu_base = res->start;
res                15 drivers/gpu/ipu-v3/ipu-cpmem.c 	u32 res[3];
res               274 drivers/gpu/ipu-v3/ipu-pre.c 	struct resource *res;
res               281 drivers/gpu/ipu-v3/ipu-pre.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               282 drivers/gpu/ipu-v3/ipu-pre.c 	pre->regs = devm_ioremap_resource(&pdev->dev, res);
res               361 drivers/gpu/ipu-v3/ipu-prg.c 	struct resource *res;
res               370 drivers/gpu/ipu-v3/ipu-prg.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               371 drivers/gpu/ipu-v3/ipu-prg.c 	prg->regs = devm_ioremap_resource(&pdev->dev, res);
res              1535 drivers/hid/hid-logitech-hidpp.c 	u16 res;
res              1582 drivers/hid/hid-logitech-hidpp.c 	raw_info->res = get_unaligned_be16(&params[13]) * 2 / 51;
res              2387 drivers/hid/hid-logitech-hidpp.c 	wd->resolution = raw_info.res;
res               189 drivers/hid/intel-ish-hid/ishtp/bus.c 	int i, res = -ENOENT;
res               195 drivers/hid/intel-ish-hid/ishtp/bus.c 			res = i;
res               201 drivers/hid/intel-ish-hid/ishtp/bus.c 	return res;
res               683 drivers/hid/usbhid/hid-core.c 	int res;
res               690 drivers/hid/usbhid/hid-core.c 		res = 0;
res               694 drivers/hid/usbhid/hid-core.c 	res = usb_autopm_get_interface(usbhid->intf);
res               696 drivers/hid/usbhid/hid-core.c 	if (res < 0) {
res               698 drivers/hid/usbhid/hid-core.c 		res = -EIO;
res               707 drivers/hid/usbhid/hid-core.c 	res = hid_start_in(hid);
res               708 drivers/hid/usbhid/hid-core.c 	if (res) {
res               709 drivers/hid/usbhid/hid-core.c 		if (res != -ENOSPC) {
res               711 drivers/hid/usbhid/hid-core.c 			res = 0;
res               714 drivers/hid/usbhid/hid-core.c 			res = -EBUSY;
res               729 drivers/hid/usbhid/hid-core.c 	if (res == 0)
res               736 drivers/hid/usbhid/hid-core.c 	return res;
res               292 drivers/hid/usbhid/hiddev.c 	int res;
res               302 drivers/hid/usbhid/hiddev.c 	res = hiddev->exist ? __hiddev_open(hiddev, file) : -ENODEV;
res               305 drivers/hid/usbhid/hiddev.c 	return res;
res               851 drivers/hid/wacom_sys.c static void wacom_remove_shared_data(void *res)
res               853 drivers/hid/wacom_sys.c 	struct wacom *wacom = res;
res              1229 drivers/hid/wacom_sys.c static void wacom_devm_sysfs_group_release(struct device *dev, void *res)
res              1231 drivers/hid/wacom_sys.c 	struct wacom_sysfs_group_devres *devres = res;
res               321 drivers/hsi/clients/cmt_speech.c 	int res = 0;
res               325 drivers/hsi/clients/cmt_speech.c 		res = -ENOMEM;
res               334 drivers/hsi/clients/cmt_speech.c 		res = -ENOMEM;
res               349 drivers/hsi/clients/cmt_speech.c 	return res;
res               857 drivers/hv/hv_balloon.c 	unsigned long res = 0, flags;
res               923 drivers/hv/hv_balloon.c 		res = has->covered_end_pfn - old_covered_state;
res               928 drivers/hv/hv_balloon.c 	return res;
res              1896 drivers/hv/vmbus_drv.c static acpi_status vmbus_walk_resources(struct acpi_resource *res, void *ctx)
res              1904 drivers/hv/vmbus_drv.c 	switch (res->type) {
res              1912 drivers/hv/vmbus_drv.c 		start = res->data.address32.address.minimum;
res              1913 drivers/hv/vmbus_drv.c 		end = res->data.address32.address.maximum;
res              1917 drivers/hv/vmbus_drv.c 		start = res->data.address64.address.minimum;
res              1918 drivers/hv/vmbus_drv.c 		end = res->data.address64.address.maximum;
res              1137 drivers/hwmon/abituguru.c 	int res = 0;
res              1139 drivers/hwmon/abituguru.c 		res = 2;
res              1140 drivers/hwmon/abituguru.c 	return sprintf(buf, "%d\n", res);
res              1260 drivers/hwmon/abituguru.c 	int i, j, used, sysfs_names_free, sysfs_attr_i, res = -ENODEV;
res              1333 drivers/hwmon/abituguru.c 		res = abituguru_detect_bank1_sensor_type(data, probe_order[i]);
res              1334 drivers/hwmon/abituguru.c 		if (res < 0)
res              1336 drivers/hwmon/abituguru.c 		if (res == ABIT_UGURU_NC)
res              1340 drivers/hwmon/abituguru.c 		for (j = 0; j < (res ? 7 : 9); j++) {
res              1342 drivers/hwmon/abituguru.c 				abituguru_sysfs_bank1_templ[res][j].dev_attr.
res              1343 drivers/hwmon/abituguru.c 				attr.name, data->bank1_sensors[res] + res)
res              1346 drivers/hwmon/abituguru.c 				abituguru_sysfs_bank1_templ[res][j];
res              1355 drivers/hwmon/abituguru.c 			abituguru_bank1_max_value[res];
res              1356 drivers/hwmon/abituguru.c 		data->bank1_address[res][data->bank1_sensors[res]] =
res              1358 drivers/hwmon/abituguru.c 		data->bank1_sensors[res]++;
res              1398 drivers/hwmon/abituguru.c 		res = -ENAMETOOLONG;
res              1405 drivers/hwmon/abituguru.c 		res = device_create_file(&pdev->dev,
res              1407 drivers/hwmon/abituguru.c 		if (res)
res              1411 drivers/hwmon/abituguru.c 		res = device_create_file(&pdev->dev,
res              1413 drivers/hwmon/abituguru.c 		if (res)
res              1421 drivers/hwmon/abituguru.c 	res = PTR_ERR(data->hwmon_dev);
res              1428 drivers/hwmon/abituguru.c 	return res;
res              1577 drivers/hwmon/abituguru.c 	struct resource res = { .flags = IORESOURCE_IO };
res              1600 drivers/hwmon/abituguru.c 	res.start = address;
res              1601 drivers/hwmon/abituguru.c 	res.end = address + ABIT_UGURU_REGION_LENGTH - 1;
res              1602 drivers/hwmon/abituguru.c 	res.name = ABIT_UGURU_NAME;
res              1604 drivers/hwmon/abituguru.c 	err = platform_device_add_resources(abituguru_pdev, &res, 1);
res               963 drivers/hwmon/abituguru3.c 	int i, j, type, used, sysfs_names_free, sysfs_attr_i, res = -ENODEV;
res              1010 drivers/hwmon/abituguru3.c 			res = -ENAMETOOLONG;
res              1033 drivers/hwmon/abituguru3.c 		res = -ENAMETOOLONG;
res              1049 drivers/hwmon/abituguru3.c 		res = PTR_ERR(data->hwmon_dev);
res              1061 drivers/hwmon/abituguru3.c 	return res;
res              1238 drivers/hwmon/abituguru3.c 	struct resource res = { .flags = IORESOURCE_IO };
res              1271 drivers/hwmon/abituguru3.c 	res.start = ABIT_UGURU3_BASE;
res              1272 drivers/hwmon/abituguru3.c 	res.end = ABIT_UGURU3_BASE + ABIT_UGURU3_REGION_LENGTH - 1;
res              1273 drivers/hwmon/abituguru3.c 	res.name = ABIT_UGURU3_NAME;
res              1275 drivers/hwmon/abituguru3.c 	err = platform_device_add_resources(abituguru3_pdev, &res, 1);
res               162 drivers/hwmon/abx500.c 	int res = kstrtol(buf, 10, &val);
res               163 drivers/hwmon/abx500.c 	if (res < 0)
res               164 drivers/hwmon/abx500.c 		return res;
res               182 drivers/hwmon/abx500.c 	int res = kstrtol(buf, 10, &val);
res               183 drivers/hwmon/abx500.c 	if (res < 0)
res               184 drivers/hwmon/abx500.c 		return res;
res               203 drivers/hwmon/abx500.c 	int res = kstrtoul(buf, 10, &val);
res               204 drivers/hwmon/abx500.c 	if (res < 0)
res               205 drivers/hwmon/abx500.c 		return res;
res               147 drivers/hwmon/acpi_power_meter.c 	int res;
res               152 drivers/hwmon/acpi_power_meter.c 	res = kstrtoul(buf, 10, &temp);
res               153 drivers/hwmon/acpi_power_meter.c 	if (res)
res               154 drivers/hwmon/acpi_power_meter.c 		return res;
res               218 drivers/hwmon/acpi_power_meter.c 	int res;
res               223 drivers/hwmon/acpi_power_meter.c 	res = kstrtoul(buf, 10, &temp);
res               224 drivers/hwmon/acpi_power_meter.c 	if (res)
res               225 drivers/hwmon/acpi_power_meter.c 		return res;
res               290 drivers/hwmon/acpi_power_meter.c 	int res;
res               293 drivers/hwmon/acpi_power_meter.c 	res = kstrtoul(buf, 10, &temp);
res               294 drivers/hwmon/acpi_power_meter.c 	if (res)
res               295 drivers/hwmon/acpi_power_meter.c 		return res;
res               301 drivers/hwmon/acpi_power_meter.c 	res = set_acpi_trip(resource);
res               304 drivers/hwmon/acpi_power_meter.c 	if (res)
res               305 drivers/hwmon/acpi_power_meter.c 		return res;
res               540 drivers/hwmon/acpi_power_meter.c 	int res = 0;
res               558 drivers/hwmon/acpi_power_meter.c 		res = -EFAULT;
res               569 drivers/hwmon/acpi_power_meter.c 		res = -ENOMEM;
res               576 drivers/hwmon/acpi_power_meter.c 		res = -ENOMEM;
res               599 drivers/hwmon/acpi_power_meter.c 		res = sysfs_create_link(resource->holders_dir, &obj->dev.kobj,
res               601 drivers/hwmon/acpi_power_meter.c 		if (res) {
res               607 drivers/hwmon/acpi_power_meter.c 	res = 0;
res               614 drivers/hwmon/acpi_power_meter.c 	return res;
res               624 drivers/hwmon/acpi_power_meter.c 	int res = 0;
res               638 drivers/hwmon/acpi_power_meter.c 		res = device_create_file(dev, &sensors->dev_attr);
res               639 drivers/hwmon/acpi_power_meter.c 		if (res) {
res               649 drivers/hwmon/acpi_power_meter.c 	return res;
res               670 drivers/hwmon/acpi_power_meter.c 	int res = 0;
res               672 drivers/hwmon/acpi_power_meter.c 	res = read_domain_devices(resource);
res               673 drivers/hwmon/acpi_power_meter.c 	if (res)
res               674 drivers/hwmon/acpi_power_meter.c 		return res;
res               677 drivers/hwmon/acpi_power_meter.c 		res = register_attrs(resource, meter_attrs);
res               678 drivers/hwmon/acpi_power_meter.c 		if (res)
res               690 drivers/hwmon/acpi_power_meter.c 			res = register_attrs(resource, rw_cap_attrs);
res               692 drivers/hwmon/acpi_power_meter.c 			res = register_attrs(resource, ro_cap_attrs);
res               694 drivers/hwmon/acpi_power_meter.c 		if (res)
res               697 drivers/hwmon/acpi_power_meter.c 		res = register_attrs(resource, misc_cap_attrs);
res               698 drivers/hwmon/acpi_power_meter.c 		if (res)
res               704 drivers/hwmon/acpi_power_meter.c 		res = register_attrs(resource, trip_attrs);
res               705 drivers/hwmon/acpi_power_meter.c 		if (res)
res               709 drivers/hwmon/acpi_power_meter.c 	res = register_attrs(resource, misc_attrs);
res               710 drivers/hwmon/acpi_power_meter.c 	if (res)
res               713 drivers/hwmon/acpi_power_meter.c 	return res;
res               716 drivers/hwmon/acpi_power_meter.c 	return res;
res               731 drivers/hwmon/acpi_power_meter.c 	int res = 0;
res               753 drivers/hwmon/acpi_power_meter.c 		res = -EFAULT;
res               764 drivers/hwmon/acpi_power_meter.c 		res = -EFAULT;
res               772 drivers/hwmon/acpi_power_meter.c 		res = -EINVAL;
res               783 drivers/hwmon/acpi_power_meter.c 			res = -EINVAL;
res               790 drivers/hwmon/acpi_power_meter.c 			res = -ENOMEM;
res               806 drivers/hwmon/acpi_power_meter.c 	return res;
res               813 drivers/hwmon/acpi_power_meter.c 	int res;
res               824 drivers/hwmon/acpi_power_meter.c 		res = read_capabilities(resource);
res               825 drivers/hwmon/acpi_power_meter.c 		if (res)
res               859 drivers/hwmon/acpi_power_meter.c 	int res;
res               878 drivers/hwmon/acpi_power_meter.c 	res = read_capabilities(resource);
res               879 drivers/hwmon/acpi_power_meter.c 	if (res)
res               884 drivers/hwmon/acpi_power_meter.c 	res = setup_attrs(resource);
res               885 drivers/hwmon/acpi_power_meter.c 	if (res)
res               890 drivers/hwmon/acpi_power_meter.c 		res = PTR_ERR(resource->hwmon_dev);
res               894 drivers/hwmon/acpi_power_meter.c 	res = 0;
res               902 drivers/hwmon/acpi_power_meter.c 	return res;
res               293 drivers/hwmon/adm1026.c 	int res;
res               297 drivers/hwmon/adm1026.c 		res = i2c_smbus_read_byte_data(client, reg) & 0xff;
res               300 drivers/hwmon/adm1026.c 		res = 0;
res               302 drivers/hwmon/adm1026.c 	return res;
res               307 drivers/hwmon/adm1026.c 	int res;
res               311 drivers/hwmon/adm1026.c 		res = i2c_smbus_write_byte_data(client, reg, value);
res               314 drivers/hwmon/adm1026.c 		res = 0;
res               316 drivers/hwmon/adm1026.c 	return res;
res               517 drivers/hwmon/adm1031.c 	int res = 0;
res               526 drivers/hwmon/adm1031.c 			res = data->temp[chan+1] >=
res               530 drivers/hwmon/adm1031.c 			res =
res               535 drivers/hwmon/adm1031.c 			res =
res               540 drivers/hwmon/adm1031.c 			res =
res               551 drivers/hwmon/adm1031.c 		res = data->pwm[chan] > 0;
res               553 drivers/hwmon/adm1031.c 	return res;
res               193 drivers/hwmon/adt7470.c 	unsigned long res;
res               221 drivers/hwmon/adt7470.c 	res = msleep_interruptible((data->num_temp_sensors >= 0 ?
res               234 drivers/hwmon/adt7470.c 	if (res) {
res               848 drivers/hwmon/asb100.c 	int res, bank;
res               858 drivers/hwmon/asb100.c 		res = i2c_smbus_read_byte_data(client, reg & 0xff);
res               866 drivers/hwmon/asb100.c 			res = i2c_smbus_read_word_swapped(cl, 0);
res               869 drivers/hwmon/asb100.c 			res = i2c_smbus_read_byte_data(cl, 1);
res               872 drivers/hwmon/asb100.c 			res = i2c_smbus_read_word_swapped(cl, 2);
res               876 drivers/hwmon/asb100.c 			res = i2c_smbus_read_word_swapped(cl, 3);
res               886 drivers/hwmon/asb100.c 	return res;
res               123 drivers/hwmon/asc7621.c 	int res = i2c_smbus_read_byte_data(client, reg);
res               124 drivers/hwmon/asc7621.c 	if (res < 0) {
res               129 drivers/hwmon/asc7621.c 	return res & 0xff;
res               134 drivers/hwmon/asc7621.c 	int res = i2c_smbus_write_byte_data(client, reg, data);
res               135 drivers/hwmon/asc7621.c 	if (res < 0) {
res               140 drivers/hwmon/asc7621.c 	return res;
res               894 drivers/hwmon/aspeed-pwm-tacho.c 	struct resource *res;
res               901 drivers/hwmon/aspeed-pwm-tacho.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               902 drivers/hwmon/aspeed-pwm-tacho.c 	if (!res)
res               904 drivers/hwmon/aspeed-pwm-tacho.c 	regs = devm_ioremap_resource(dev, res);
res               262 drivers/hwmon/dme1737.c static inline int IN_FROM_REG(int reg, int nominal, int res)
res               264 drivers/hwmon/dme1737.c 	return (reg * nominal + (3 << (res - 3))) / (3 << (res - 2));
res               279 drivers/hwmon/dme1737.c static inline int TEMP_FROM_REG(int reg, int res)
res               281 drivers/hwmon/dme1737.c 	return (reg * 1000) >> (res - 8);
res               576 drivers/hwmon/dme1737.c 	s32 res = 0;
res               579 drivers/hwmon/dme1737.c 		res = i2c_smbus_write_byte_data(client, reg, val);
res               581 drivers/hwmon/dme1737.c 		if (res < 0) {
res               591 drivers/hwmon/dme1737.c 	return res;
res               807 drivers/hwmon/dme1737.c 	int res;
res               811 drivers/hwmon/dme1737.c 		res = IN_FROM_REG(data->in[ix], data->in_nominal[ix], 16);
res               814 drivers/hwmon/dme1737.c 		res = IN_FROM_REG(data->in_min[ix], data->in_nominal[ix], 8);
res               817 drivers/hwmon/dme1737.c 		res = IN_FROM_REG(data->in_max[ix], data->in_nominal[ix], 8);
res               820 drivers/hwmon/dme1737.c 		res = (data->alarms >> DME1737_BIT_ALARM_IN[ix]) & 0x01;
res               823 drivers/hwmon/dme1737.c 		res = 0;
res               827 drivers/hwmon/dme1737.c 	return sprintf(buf, "%d\n", res);
res               885 drivers/hwmon/dme1737.c 	int res;
res               889 drivers/hwmon/dme1737.c 		res = TEMP_FROM_REG(data->temp[ix], 16);
res               892 drivers/hwmon/dme1737.c 		res = TEMP_FROM_REG(data->temp_min[ix], 8);
res               895 drivers/hwmon/dme1737.c 		res = TEMP_FROM_REG(data->temp_max[ix], 8);
res               898 drivers/hwmon/dme1737.c 		res = TEMP_FROM_REG(data->temp_offset[ix], 8);
res               901 drivers/hwmon/dme1737.c 		res = (data->alarms >> DME1737_BIT_ALARM_TEMP[ix]) & 0x01;
res               904 drivers/hwmon/dme1737.c 		res = (((u16)data->temp[ix] & 0xff00) == 0x8000);
res               907 drivers/hwmon/dme1737.c 		res = 0;
res               911 drivers/hwmon/dme1737.c 	return sprintf(buf, "%d\n", res);
res               973 drivers/hwmon/dme1737.c 	int res;
res               979 drivers/hwmon/dme1737.c 			res = 4;
res               981 drivers/hwmon/dme1737.c 			res = 1 << ix;
res               984 drivers/hwmon/dme1737.c 		res = TEMP_FROM_REG(data->zone_low[ix], 8) -
res               988 drivers/hwmon/dme1737.c 		res = TEMP_FROM_REG(data->zone_low[ix], 8);
res               992 drivers/hwmon/dme1737.c 		res = TEMP_FROM_REG(data->zone_low[ix], 8) +
res               996 drivers/hwmon/dme1737.c 		res = TEMP_FROM_REG(data->zone_abs[ix], 8);
res               999 drivers/hwmon/dme1737.c 		res = 0;
res              1003 drivers/hwmon/dme1737.c 	return sprintf(buf, "%d\n", res);
res              1088 drivers/hwmon/dme1737.c 	int res;
res              1092 drivers/hwmon/dme1737.c 		res = FAN_FROM_REG(data->fan[ix],
res              1097 drivers/hwmon/dme1737.c 		res = FAN_FROM_REG(data->fan_min[ix],
res              1103 drivers/hwmon/dme1737.c 		res = FAN_MAX_FROM_REG(data->fan_max[ix - 4]);
res              1106 drivers/hwmon/dme1737.c 		res = (data->alarms >> DME1737_BIT_ALARM_FAN[ix]) & 0x01;
res              1110 drivers/hwmon/dme1737.c 		res = FAN_TYPE_FROM_REG(data->fan_opt[ix]);
res              1113 drivers/hwmon/dme1737.c 		res = 0;
res              1117 drivers/hwmon/dme1737.c 	return sprintf(buf, "%d\n", res);
res              1204 drivers/hwmon/dme1737.c 	int res;
res              1209 drivers/hwmon/dme1737.c 			res = 255;
res              1211 drivers/hwmon/dme1737.c 			res = data->pwm[ix];
res              1214 drivers/hwmon/dme1737.c 		res = PWM_FREQ_FROM_REG(data->pwm_freq[ix]);
res              1218 drivers/hwmon/dme1737.c 			res = 1; /* pwm[5-6] hard-wired to manual mode */
res              1220 drivers/hwmon/dme1737.c 			res = PWM_EN_FROM_REG(data->pwm_config[ix]);
res              1224 drivers/hwmon/dme1737.c 		res = PWM_RR_FROM_REG(data->pwm_rr[ix > 0], ix);
res              1229 drivers/hwmon/dme1737.c 			res = PWM_ACZ_FROM_REG(data->pwm_config[ix]);
res              1231 drivers/hwmon/dme1737.c 			res = data->pwm_acz[ix];
res              1236 drivers/hwmon/dme1737.c 			res = data->pwm_min[ix];
res              1238 drivers/hwmon/dme1737.c 			res = 0;
res              1242 drivers/hwmon/dme1737.c 		res = data->pwm_min[ix];
res              1246 drivers/hwmon/dme1737.c 		res = 255; /* hard-wired */
res              1249 drivers/hwmon/dme1737.c 		res = 0;
res              1253 drivers/hwmon/dme1737.c 	return sprintf(buf, "%d\n", res);
res              2586 drivers/hwmon/dme1737.c 	struct resource res = {
res              2594 drivers/hwmon/dme1737.c 	err = acpi_check_resource_conflict(&res);
res              2605 drivers/hwmon/dme1737.c 	err = platform_device_add_resources(pdev, &res, 1);
res              2629 drivers/hwmon/dme1737.c 	struct resource *res;
res              2634 drivers/hwmon/dme1737.c 	res = platform_get_resource(pdev, IORESOURCE_IO, 0);
res              2635 drivers/hwmon/dme1737.c 	if (!devm_request_region(dev, res->start, DME1737_EXTENT, "dme1737")) {
res              2637 drivers/hwmon/dme1737.c 			(unsigned short)res->start,
res              2638 drivers/hwmon/dme1737.c 			(unsigned short)res->start + DME1737_EXTENT - 1);
res              2646 drivers/hwmon/dme1737.c 	data->addr = res->start;
res               105 drivers/hwmon/ds620.c 		int res;
res               110 drivers/hwmon/ds620.c 			res = i2c_smbus_read_word_swapped(client,
res               112 drivers/hwmon/ds620.c 			if (res < 0) {
res               113 drivers/hwmon/ds620.c 				ret = ERR_PTR(res);
res               117 drivers/hwmon/ds620.c 			data->temp[i] = res;
res               144 drivers/hwmon/ds620.c 	int res;
res               151 drivers/hwmon/ds620.c 	res = kstrtol(buf, 10, &val);
res               153 drivers/hwmon/ds620.c 	if (res)
res               154 drivers/hwmon/ds620.c 		return res;
res               173 drivers/hwmon/ds620.c 	int res;
res               181 drivers/hwmon/ds620.c 	res = i2c_smbus_read_word_swapped(client, DS620_REG_CONF);
res               182 drivers/hwmon/ds620.c 	if (res < 0)
res               183 drivers/hwmon/ds620.c 		return res;
res               185 drivers/hwmon/ds620.c 	new_conf = conf = res;
res               188 drivers/hwmon/ds620.c 		res = i2c_smbus_write_word_swapped(client, DS620_REG_CONF,
res               190 drivers/hwmon/ds620.c 		if (res < 0)
res               191 drivers/hwmon/ds620.c 			return res;
res              1373 drivers/hwmon/f71805f.c 	struct resource *res;
res              1386 drivers/hwmon/f71805f.c 	res = platform_get_resource(pdev, IORESOURCE_IO, 0);
res              1387 drivers/hwmon/f71805f.c 	if (!devm_request_region(&pdev->dev, res->start + ADDR_REG_OFFSET, 2,
res              1390 drivers/hwmon/f71805f.c 			(unsigned long)(res->start + ADDR_REG_OFFSET),
res              1391 drivers/hwmon/f71805f.c 			(unsigned long)(res->start + ADDR_REG_OFFSET + 1));
res              1394 drivers/hwmon/f71805f.c 	data->addr = res->start;
res              1508 drivers/hwmon/f71805f.c 	struct resource res = {
res              1522 drivers/hwmon/f71805f.c 	res.name = pdev->name;
res              1523 drivers/hwmon/f71805f.c 	err = acpi_check_resource_conflict(&res);
res              1527 drivers/hwmon/f71805f.c 	err = platform_device_add_resources(pdev, &res, 1);
res              2715 drivers/hwmon/f71882fg.c 	struct resource res = {
res              2726 drivers/hwmon/f71882fg.c 	res.name = f71882fg_pdev->name;
res              2727 drivers/hwmon/f71882fg.c 	err = acpi_check_resource_conflict(&res);
res              2731 drivers/hwmon/f71882fg.c 	err = platform_device_add_resources(f71882fg_pdev, &res, 1);
res               782 drivers/hwmon/hwmon.c static void devm_hwmon_release(struct device *dev, void *res)
res               784 drivers/hwmon/hwmon.c 	struct device *hwdev = *(struct device **)res;
res               869 drivers/hwmon/hwmon.c static int devm_hwmon_match(struct device *dev, void *res, void *data)
res               871 drivers/hwmon/hwmon.c 	struct device **hwdev = res;
res               254 drivers/hwmon/i5k_amb.c 	int res = 0;
res               290 drivers/hwmon/i5k_amb.c 			res = device_create_file(&pdev->dev,
res               292 drivers/hwmon/i5k_amb.c 			if (res)
res               305 drivers/hwmon/i5k_amb.c 			res = device_create_file(&pdev->dev,
res               307 drivers/hwmon/i5k_amb.c 			if (res)
res               321 drivers/hwmon/i5k_amb.c 			res = device_create_file(&pdev->dev,
res               323 drivers/hwmon/i5k_amb.c 			if (res)
res               337 drivers/hwmon/i5k_amb.c 			res = device_create_file(&pdev->dev,
res               339 drivers/hwmon/i5k_amb.c 			if (res)
res               353 drivers/hwmon/i5k_amb.c 			res = device_create_file(&pdev->dev,
res               355 drivers/hwmon/i5k_amb.c 			if (res)
res               368 drivers/hwmon/i5k_amb.c 			res = device_create_file(&pdev->dev,
res               370 drivers/hwmon/i5k_amb.c 			if (res)
res               376 drivers/hwmon/i5k_amb.c 	res = device_create_file(&pdev->dev, &dev_attr_name);
res               377 drivers/hwmon/i5k_amb.c 	if (res)
res               382 drivers/hwmon/i5k_amb.c 		res = PTR_ERR(data->hwmon_dev);
res               386 drivers/hwmon/i5k_amb.c 	return res;
res               394 drivers/hwmon/i5k_amb.c 	return res;
res               399 drivers/hwmon/i5k_amb.c 	int res = -ENODEV;
res               406 drivers/hwmon/i5k_amb.c 	res = platform_device_add(amb_pdev);
res               407 drivers/hwmon/i5k_amb.c 	if (res)
res               413 drivers/hwmon/i5k_amb.c 	return res;
res               421 drivers/hwmon/i5k_amb.c 	int res = -ENODEV;
res               444 drivers/hwmon/i5k_amb.c 	res = 0;
res               447 drivers/hwmon/i5k_amb.c 	return res;
res               454 drivers/hwmon/i5k_amb.c 	int res = -ENODEV;
res               469 drivers/hwmon/i5k_amb.c 	res = 0;
res               473 drivers/hwmon/i5k_amb.c 	return res;
res               498 drivers/hwmon/i5k_amb.c 	int i, res;
res               507 drivers/hwmon/i5k_amb.c 		res = i5k_find_amb_registers(data, chipset_ids[i].err);
res               508 drivers/hwmon/i5k_amb.c 		if (res == 0)
res               513 drivers/hwmon/i5k_amb.c 	if (res)
res               517 drivers/hwmon/i5k_amb.c 	res = i5k_channel_probe(&data->amb_present[0], chipset_ids[i].fbd0);
res               518 drivers/hwmon/i5k_amb.c 	if (res)
res               527 drivers/hwmon/i5k_amb.c 		res = -EBUSY;
res               533 drivers/hwmon/i5k_amb.c 		res = -EBUSY;
res               539 drivers/hwmon/i5k_amb.c 	res = i5k_amb_hwmon_init(pdev);
res               540 drivers/hwmon/i5k_amb.c 	if (res)
res               543 drivers/hwmon/i5k_amb.c 	return res;
res               551 drivers/hwmon/i5k_amb.c 	return res;
res               580 drivers/hwmon/i5k_amb.c 	int res;
res               582 drivers/hwmon/i5k_amb.c 	res = platform_driver_register(&i5k_amb_driver);
res               583 drivers/hwmon/i5k_amb.c 	if (res)
res               584 drivers/hwmon/i5k_amb.c 		return res;
res               586 drivers/hwmon/i5k_amb.c 	res = i5k_amb_add();
res               587 drivers/hwmon/i5k_amb.c 	if (res)
res               590 drivers/hwmon/i5k_amb.c 	return res;
res               352 drivers/hwmon/ibmaem.c 	int rs_size, res;
res               386 drivers/hwmon/ibmaem.c 	res = wait_for_completion_timeout(&ipmi->read_complete, IPMI_TIMEOUT);
res               387 drivers/hwmon/ibmaem.c 	if (!res) {
res               388 drivers/hwmon/ibmaem.c 		res = -ETIMEDOUT;
res               394 drivers/hwmon/ibmaem.c 		res = -ENOENT;
res               420 drivers/hwmon/ibmaem.c 	res = 0;
res               423 drivers/hwmon/ibmaem.c 	return res;
res               494 drivers/hwmon/ibmaem.c 	int res;
res               511 drivers/hwmon/ibmaem.c 	res = wait_for_completion_timeout(&data->read_complete, IPMI_TIMEOUT);
res               512 drivers/hwmon/ibmaem.c 	if (!res)
res               527 drivers/hwmon/ibmaem.c 	int res = -ENOMEM;
res               531 drivers/hwmon/ibmaem.c 		return res;
res               551 drivers/hwmon/ibmaem.c 	res = platform_device_add(data->pdev);
res               552 drivers/hwmon/ibmaem.c 	if (res)
res               558 drivers/hwmon/ibmaem.c 	res = aem_init_ipmi_data(&data->ipmi, probe->interface,
res               560 drivers/hwmon/ibmaem.c 	if (res)
res               569 drivers/hwmon/ibmaem.c 		res = PTR_ERR(data->hwmon_dev);
res               576 drivers/hwmon/ibmaem.c 		res = -ENOMEM;
res               581 drivers/hwmon/ibmaem.c 	res = aem1_find_sensors(data);
res               582 drivers/hwmon/ibmaem.c 	if (res)
res               607 drivers/hwmon/ibmaem.c 	return res;
res               633 drivers/hwmon/ibmaem.c 	int res;
res               649 drivers/hwmon/ibmaem.c 	res = wait_for_completion_timeout(&data->read_complete, IPMI_TIMEOUT);
res               650 drivers/hwmon/ibmaem.c 	if (!res)
res               667 drivers/hwmon/ibmaem.c 	int res = -ENOMEM;
res               671 drivers/hwmon/ibmaem.c 		return res;
res               691 drivers/hwmon/ibmaem.c 	res = platform_device_add(data->pdev);
res               692 drivers/hwmon/ibmaem.c 	if (res)
res               698 drivers/hwmon/ibmaem.c 	res = aem_init_ipmi_data(&data->ipmi, probe->interface,
res               700 drivers/hwmon/ibmaem.c 	if (res)
res               709 drivers/hwmon/ibmaem.c 		res = PTR_ERR(data->hwmon_dev);
res               716 drivers/hwmon/ibmaem.c 		res = -ENOMEM;
res               721 drivers/hwmon/ibmaem.c 	res = aem2_find_sensors(data);
res               722 drivers/hwmon/ibmaem.c 	if (res)
res               747 drivers/hwmon/ibmaem.c 	return res;
res               891 drivers/hwmon/ibmaem.c 	int res;
res               893 drivers/hwmon/ibmaem.c 	res = kstrtoul(buf, 10, &temp);
res               894 drivers/hwmon/ibmaem.c 	if (res)
res               895 drivers/hwmon/ibmaem.c 		return res;
res              1061 drivers/hwmon/ibmaem.c 	int res;
res              1063 drivers/hwmon/ibmaem.c 	res = driver_register(&aem_driver.driver);
res              1064 drivers/hwmon/ibmaem.c 	if (res) {
res              1066 drivers/hwmon/ibmaem.c 		return res;
res              1069 drivers/hwmon/ibmaem.c 	res = ipmi_smi_watcher_register(&driver_data.bmc_events);
res              1070 drivers/hwmon/ibmaem.c 	if (res)
res              1076 drivers/hwmon/ibmaem.c 	return res;
res              3037 drivers/hwmon/it87.c 	struct resource *res;
res              3043 drivers/hwmon/it87.c 	res = platform_get_resource(pdev, IORESOURCE_IO, 0);
res              3044 drivers/hwmon/it87.c 	if (!devm_request_region(&pdev->dev, res->start, IT87_EC_EXTENT,
res              3047 drivers/hwmon/it87.c 			(unsigned long)res->start,
res              3048 drivers/hwmon/it87.c 			(unsigned long)(res->start + IT87_EC_EXTENT - 1));
res              3056 drivers/hwmon/it87.c 	data->addr = res->start;
res              3255 drivers/hwmon/it87.c 	struct resource res = {
res              3263 drivers/hwmon/it87.c 	err = acpi_check_resource_conflict(&res);
res              3271 drivers/hwmon/it87.c 	err = platform_device_add_resources(pdev, &res, 1);
res               104 drivers/hwmon/lm73.c 	int res = 0;
res               116 drivers/hwmon/lm73.c 	while (res < (ARRAY_SIZE(lm73_convrates) - 1) &&
res               117 drivers/hwmon/lm73.c 			convrate > lm73_convrates[res])
res               118 drivers/hwmon/lm73.c 		res++;
res               122 drivers/hwmon/lm73.c 	data->ctrl |= res << LM73_CTRL_RES_SHIFT;
res               137 drivers/hwmon/lm73.c 	int res;
res               139 drivers/hwmon/lm73.c 	res = (data->ctrl & LM73_CTRL_RES_MASK) >> LM73_CTRL_RES_SHIFT;
res               140 drivers/hwmon/lm73.c 	return scnprintf(buf, PAGE_SIZE, "%hu\n", lm73_convrates[res]);
res               683 drivers/hwmon/lm78.c 		int res;
res               686 drivers/hwmon/lm78.c 		res = inb_p(data->isa_addr + LM78_DATA_REG_OFFSET);
res               688 drivers/hwmon/lm78.c 		return res;
res               790 drivers/hwmon/lm78.c 	struct resource *res;
res               793 drivers/hwmon/lm78.c 	res = platform_get_resource(pdev, IORESOURCE_IO, 0);
res               794 drivers/hwmon/lm78.c 	if (!devm_request_region(dev, res->start + LM78_ADDR_REG_OFFSET,
res               803 drivers/hwmon/lm78.c 	data->isa_addr = res->start;
res               919 drivers/hwmon/lm78.c 	struct resource res = {
res               934 drivers/hwmon/lm78.c 	err = platform_device_add_resources(pdev, &res, 1);
res               957 drivers/hwmon/lm78.c 	int res;
res               960 drivers/hwmon/lm78.c 		res = platform_driver_register(&lm78_isa_driver);
res               961 drivers/hwmon/lm78.c 		if (res)
res               965 drivers/hwmon/lm78.c 		res = lm78_isa_device_add(isa_address);
res               966 drivers/hwmon/lm78.c 		if (res)
res               975 drivers/hwmon/lm78.c 	return res;
res               999 drivers/hwmon/lm78.c 	int res;
res              1005 drivers/hwmon/lm78.c 	res = lm78_isa_register();
res              1006 drivers/hwmon/lm78.c 	if (res)
res              1009 drivers/hwmon/lm78.c 	res = i2c_add_driver(&lm78_driver);
res              1010 drivers/hwmon/lm78.c 	if (res)
res              1018 drivers/hwmon/lm78.c 	return res;
res               323 drivers/hwmon/lm85.c 	int res;
res               336 drivers/hwmon/lm85.c 		res = i2c_smbus_read_byte_data(client, reg) & 0xff;
res               337 drivers/hwmon/lm85.c 		res |= i2c_smbus_read_byte_data(client, reg + 1) << 8;
res               340 drivers/hwmon/lm85.c 		res = i2c_smbus_read_byte_data(client, reg);
res               344 drivers/hwmon/lm85.c 	return res;
res               103 drivers/hwmon/max6639.c 		int res;
res               117 drivers/hwmon/max6639.c 			res = i2c_smbus_read_byte_data(client,
res               119 drivers/hwmon/max6639.c 			if (res < 0) {
res               120 drivers/hwmon/max6639.c 				ret = ERR_PTR(res);
res               123 drivers/hwmon/max6639.c 			data->fan[i] = res;
res               125 drivers/hwmon/max6639.c 			res = i2c_smbus_read_byte_data(client,
res               127 drivers/hwmon/max6639.c 			if (res < 0) {
res               128 drivers/hwmon/max6639.c 				ret = ERR_PTR(res);
res               131 drivers/hwmon/max6639.c 			data->temp[i] = res >> 5;
res               132 drivers/hwmon/max6639.c 			data->temp_fault[i] = res & 0x01;
res               134 drivers/hwmon/max6639.c 			res = i2c_smbus_read_byte_data(client,
res               136 drivers/hwmon/max6639.c 			if (res < 0) {
res               137 drivers/hwmon/max6639.c 				ret = ERR_PTR(res);
res               140 drivers/hwmon/max6639.c 			data->temp[i] |= res << 3;
res               195 drivers/hwmon/max6639.c 	int res;
res               197 drivers/hwmon/max6639.c 	res = kstrtoul(buf, 10, &val);
res               198 drivers/hwmon/max6639.c 	if (res)
res               199 drivers/hwmon/max6639.c 		return res;
res               227 drivers/hwmon/max6639.c 	int res;
res               229 drivers/hwmon/max6639.c 	res = kstrtoul(buf, 10, &val);
res               230 drivers/hwmon/max6639.c 	if (res)
res               231 drivers/hwmon/max6639.c 		return res;
res               260 drivers/hwmon/max6639.c 	int res;
res               262 drivers/hwmon/max6639.c 	res = kstrtoul(buf, 10, &val);
res               263 drivers/hwmon/max6639.c 	if (res)
res               264 drivers/hwmon/max6639.c 		return res;
res               292 drivers/hwmon/max6639.c 	int res;
res               294 drivers/hwmon/max6639.c 	res = kstrtoul(buf, 10, &val);
res               295 drivers/hwmon/max6639.c 	if (res)
res               296 drivers/hwmon/max6639.c 		return res;
res               498 drivers/hwmon/nct6683.c 	int res;
res               503 drivers/hwmon/nct6683.c 	res = inb_p(data->addr + EC_DATA_REG);
res               504 drivers/hwmon/nct6683.c 	return res;
res              1195 drivers/hwmon/nct6683.c 	struct resource *res;
res              1199 drivers/hwmon/nct6683.c 	res = platform_get_resource(pdev, IORESOURCE_IO, 0);
res              1200 drivers/hwmon/nct6683.c 	if (!devm_request_region(dev, res->start, IOREGION_LENGTH, DRVNAME))
res              1209 drivers/hwmon/nct6683.c 	data->addr = res->start;
res              1402 drivers/hwmon/nct6683.c 	struct resource res;
res              1436 drivers/hwmon/nct6683.c 		memset(&res, 0, sizeof(res));
res              1437 drivers/hwmon/nct6683.c 		res.name = DRVNAME;
res              1438 drivers/hwmon/nct6683.c 		res.start = address + IOREGION_OFFSET;
res              1439 drivers/hwmon/nct6683.c 		res.end = address + IOREGION_OFFSET + IOREGION_LENGTH - 1;
res              1440 drivers/hwmon/nct6683.c 		res.flags = IORESOURCE_IO;
res              1442 drivers/hwmon/nct6683.c 		err = acpi_check_resource_conflict(&res);
res              1449 drivers/hwmon/nct6683.c 		err = platform_device_add_resources(pdev[i], &res, 1);
res              1429 drivers/hwmon/nct6775.c 	int res, word_sized = is_word_sized(data, reg);
res              1433 drivers/hwmon/nct6775.c 	res = inb_p(data->addr + DATA_REG_OFFSET);
res              1437 drivers/hwmon/nct6775.c 		res = (res << 8) + inb_p(data->addr + DATA_REG_OFFSET);
res              1439 drivers/hwmon/nct6775.c 	return res;
res              1460 drivers/hwmon/nct6775.c 	u16 res;
res              1462 drivers/hwmon/nct6775.c 	res = nct6775_read_value(data, reg);
res              1464 drivers/hwmon/nct6775.c 		res <<= 8;
res              1466 drivers/hwmon/nct6775.c 	return res;
res              3796 drivers/hwmon/nct6775.c 	struct resource *res;
res              3808 drivers/hwmon/nct6775.c 	res = platform_get_resource(pdev, IORESOURCE_IO, 0);
res              3809 drivers/hwmon/nct6775.c 	if (!devm_request_region(&pdev->dev, res->start, IOREGION_LENGTH,
res              3820 drivers/hwmon/nct6775.c 	data->addr = res->start;
res              4829 drivers/hwmon/nct6775.c 	struct resource res;
res              4862 drivers/hwmon/nct6775.c 		memset(&res, 0, sizeof(res));
res              4863 drivers/hwmon/nct6775.c 		res.name = DRVNAME;
res              4864 drivers/hwmon/nct6775.c 		res.start = address + IOREGION_OFFSET;
res              4865 drivers/hwmon/nct6775.c 		res.end = address + IOREGION_OFFSET + IOREGION_LENGTH - 1;
res              4866 drivers/hwmon/nct6775.c 		res.flags = IORESOURCE_IO;
res              4868 drivers/hwmon/nct6775.c 		err = acpi_check_resource_conflict(&res);
res              4875 drivers/hwmon/nct6775.c 		err = platform_device_add_resources(pdev[i], &res, 1);
res               913 drivers/hwmon/npcm750-pwm-fan.c 	struct resource *res;
res               926 drivers/hwmon/npcm750-pwm-fan.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "pwm");
res               927 drivers/hwmon/npcm750-pwm-fan.c 	if (!res) {
res               932 drivers/hwmon/npcm750-pwm-fan.c 	data->pwm_base = devm_ioremap_resource(dev, res);
res               933 drivers/hwmon/npcm750-pwm-fan.c 	dev_dbg(dev, "pwm base resource is %pR\n", res);
res               943 drivers/hwmon/npcm750-pwm-fan.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "fan");
res               944 drivers/hwmon/npcm750-pwm-fan.c 	if (!res) {
res               949 drivers/hwmon/npcm750-pwm-fan.c 	data->fan_base = devm_ioremap_resource(dev, res);
res               950 drivers/hwmon/npcm750-pwm-fan.c 	dev_dbg(dev, "fan base resource is %pR\n", res);
res              1364 drivers/hwmon/pc87360.c 	int res;
res              1369 drivers/hwmon/pc87360.c 	res = inb_p(data->address[ldi] + reg);
res              1372 drivers/hwmon/pc87360.c 	return res;
res              1686 drivers/hwmon/pc87360.c 	struct resource res[3];
res              1696 drivers/hwmon/pc87360.c 	memset(res, 0, 3 * sizeof(struct resource));
res              1701 drivers/hwmon/pc87360.c 		res[res_count].start = extra_isa[i];
res              1702 drivers/hwmon/pc87360.c 		res[res_count].end = extra_isa[i] + PC87360_EXTENT - 1;
res              1703 drivers/hwmon/pc87360.c 		res[res_count].name = "pc87360",
res              1704 drivers/hwmon/pc87360.c 		res[res_count].flags = IORESOURCE_IO,
res              1706 drivers/hwmon/pc87360.c 		err = acpi_check_resource_conflict(&res[res_count]);
res              1713 drivers/hwmon/pc87360.c 	err = platform_device_add_resources(pdev, res, res_count);
res               938 drivers/hwmon/pc87427.c 	struct resource *res;
res               942 drivers/hwmon/pc87427.c 		res = platform_get_resource(pdev, IORESOURCE_IO, i);
res               943 drivers/hwmon/pc87427.c 		if (!res) {
res               947 drivers/hwmon/pc87427.c 		if (!devm_request_region(&pdev->dev, res->start,
res               948 drivers/hwmon/pc87427.c 					 resource_size(res), DRVNAME)) {
res               951 drivers/hwmon/pc87427.c 				(unsigned long)res->start,
res               952 drivers/hwmon/pc87427.c 				(unsigned long)res->end);
res              1139 drivers/hwmon/pc87427.c 	struct resource res[2] = {
res              1149 drivers/hwmon/pc87427.c 		res[res_count].start = sio_data->address[i];
res              1150 drivers/hwmon/pc87427.c 		res[res_count].end = sio_data->address[i] + REGION_LENGTH - 1;
res              1151 drivers/hwmon/pc87427.c 		res[res_count].name = logdev_str[i];
res              1153 drivers/hwmon/pc87427.c 		err = acpi_check_resource_conflict(&res[res_count]);
res              1160 drivers/hwmon/pc87427.c 	pdev = platform_device_alloc(DRVNAME, res[0].start);
res              1167 drivers/hwmon/pc87427.c 	err = platform_device_add_resources(pdev, res, res_count);
res               399 drivers/hwmon/pmbus/ucd9000.c 	char *res;
res               406 drivers/hwmon/pmbus/ucd9000.c 	res = bin2hex(str, buffer, min(rc, I2C_SMBUS_BLOCK_MAX));
res               407 drivers/hwmon/pmbus/ucd9000.c 	*res++ = '\n';
res               408 drivers/hwmon/pmbus/ucd9000.c 	*res = 0;
res               410 drivers/hwmon/pmbus/ucd9000.c 	return simple_read_from_buffer(buf, count, ppos, str, res - str);
res               516 drivers/hwmon/sch56xx-common.c 	struct resource res = {
res               527 drivers/hwmon/sch56xx-common.c 	res.name = sch56xx_pdev->name;
res               528 drivers/hwmon/sch56xx-common.c 	err = acpi_check_resource_conflict(&res);
res               532 drivers/hwmon/sch56xx-common.c 	err = platform_device_add_resources(sch56xx_pdev, &res, 1);
res               577 drivers/hwmon/sis5595.c 	struct resource *res;
res               581 drivers/hwmon/sis5595.c 	res = platform_get_resource(pdev, IORESOURCE_IO, 0);
res               582 drivers/hwmon/sis5595.c 	if (!devm_request_region(&pdev->dev, res->start, SIS5595_EXTENT,
res               593 drivers/hwmon/sis5595.c 	data->addr = res->start;
res               663 drivers/hwmon/sis5595.c 	int res;
res               667 drivers/hwmon/sis5595.c 	res = inb_p(data->addr + SIS5595_DATA_REG_OFFSET);
res               669 drivers/hwmon/sis5595.c 	return res;
res               764 drivers/hwmon/sis5595.c 	struct resource res = {
res               772 drivers/hwmon/sis5595.c 	err = acpi_check_resource_conflict(&res);
res               783 drivers/hwmon/sis5595.c 	err = platform_device_add_resources(pdev, &res, 1);
res               108 drivers/hwmon/smsc47b397.c 	int res;
res               112 drivers/hwmon/smsc47b397.c 	res = inb_p(data->addr + 1);
res               114 drivers/hwmon/smsc47b397.c 	return res;
res               224 drivers/hwmon/smsc47b397.c 	struct resource *res;
res               226 drivers/hwmon/smsc47b397.c 	res = platform_get_resource(pdev, IORESOURCE_IO, 0);
res               227 drivers/hwmon/smsc47b397.c 	if (!devm_request_region(dev, res->start, SMSC_EXTENT,
res               230 drivers/hwmon/smsc47b397.c 			(unsigned long)res->start,
res               231 drivers/hwmon/smsc47b397.c 			(unsigned long)res->start + SMSC_EXTENT - 1);
res               239 drivers/hwmon/smsc47b397.c 	data->addr = res->start;
res               251 drivers/hwmon/smsc47b397.c 	struct resource res = {
res               259 drivers/hwmon/smsc47b397.c 	err = acpi_check_resource_conflict(&res);
res               270 drivers/hwmon/smsc47b397.c 	err = platform_device_add_resources(pdev, &res, 1);
res               712 drivers/hwmon/smsc47m1.c 	struct resource *res;
res               721 drivers/hwmon/smsc47m1.c 	res = platform_get_resource(pdev, IORESOURCE_IO, 0);
res               722 drivers/hwmon/smsc47m1.c 	err = smsc47m1_handle_resources(res->start, sio_data->type,
res               731 drivers/hwmon/smsc47m1.c 	data->addr = res->start;
res               863 drivers/hwmon/smsc47m1.c 	struct resource res = {
res               882 drivers/hwmon/smsc47m1.c 	err = platform_device_add_resources(pdev, &res, 1);
res                90 drivers/hwmon/stts751.c 	int res;
res               119 drivers/hwmon/stts751.c 	u8 res;
res               124 drivers/hwmon/stts751.c 		res = 0;
res               128 drivers/hwmon/stts751.c 		res = 1;
res               132 drivers/hwmon/stts751.c 		res = 3;
res               136 drivers/hwmon/stts751.c 	if (priv->res == res)
res               140 drivers/hwmon/stts751.c 	priv->config |= res << STTS751_CONF_RES_SHIFT;
res               142 drivers/hwmon/stts751.c 		res, priv->config);
res               143 drivers/hwmon/stts751.c 	priv->res = res;
res               708 drivers/hwmon/stts751.c 	priv->res = (ret & STTS751_CONF_RES_MASK) >> STTS751_CONF_RES_SHIFT;
res               669 drivers/hwmon/via686a.c 	struct resource *res;
res               673 drivers/hwmon/via686a.c 	res = platform_get_resource(pdev, IORESOURCE_IO, 0);
res               674 drivers/hwmon/via686a.c 	if (!devm_request_region(&pdev->dev, res->start, VIA686A_EXTENT,
res               677 drivers/hwmon/via686a.c 			(unsigned long)res->start, (unsigned long)res->end);
res               687 drivers/hwmon/via686a.c 	data->addr = res->start;
res               819 drivers/hwmon/via686a.c 	struct resource res = {
res               827 drivers/hwmon/via686a.c 	err = acpi_check_resource_conflict(&res);
res               838 drivers/hwmon/via686a.c 	err = platform_device_add_resources(pdev, &res, 1);
res               348 drivers/hwmon/vt1211.c 	int res;
res               352 drivers/hwmon/vt1211.c 		res = IN_FROM_REG(ix, data->in[ix]);
res               355 drivers/hwmon/vt1211.c 		res = IN_FROM_REG(ix, data->in_min[ix]);
res               358 drivers/hwmon/vt1211.c 		res = IN_FROM_REG(ix, data->in_max[ix]);
res               361 drivers/hwmon/vt1211.c 		res = (data->alarms >> bitalarmin[ix]) & 1;
res               364 drivers/hwmon/vt1211.c 		res = 0;
res               368 drivers/hwmon/vt1211.c 	return sprintf(buf, "%d\n", res);
res               422 drivers/hwmon/vt1211.c 	int res;
res               426 drivers/hwmon/vt1211.c 		res = TEMP_FROM_REG(ix, data->temp[ix]);
res               429 drivers/hwmon/vt1211.c 		res = TEMP_FROM_REG(ix, data->temp_max[ix]);
res               432 drivers/hwmon/vt1211.c 		res = TEMP_FROM_REG(ix, data->temp_hyst[ix]);
res               435 drivers/hwmon/vt1211.c 		res = (data->alarms >> bitalarmtemp[ix]) & 1;
res               438 drivers/hwmon/vt1211.c 		res = 0;
res               442 drivers/hwmon/vt1211.c 	return sprintf(buf, "%d\n", res);
res               498 drivers/hwmon/vt1211.c 	int res;
res               502 drivers/hwmon/vt1211.c 		res = RPM_FROM_REG(data->fan[ix], data->fan_div[ix]);
res               505 drivers/hwmon/vt1211.c 		res = RPM_FROM_REG(data->fan_min[ix], data->fan_div[ix]);
res               508 drivers/hwmon/vt1211.c 		res = DIV_FROM_REG(data->fan_div[ix]);
res               511 drivers/hwmon/vt1211.c 		res = (data->alarms >> bitalarmfan[ix]) & 1;
res               514 drivers/hwmon/vt1211.c 		res = 0;
res               518 drivers/hwmon/vt1211.c 	return sprintf(buf, "%d\n", res);
res               604 drivers/hwmon/vt1211.c 	int res;
res               608 drivers/hwmon/vt1211.c 		res = data->pwm[ix];
res               611 drivers/hwmon/vt1211.c 		res = ((data->pwm_ctl[ix] >> 3) & 1) ? 2 : 0;
res               614 drivers/hwmon/vt1211.c 		res = 90000 >> (data->pwm_clk & 7);
res               617 drivers/hwmon/vt1211.c 		res = (data->pwm_ctl[ix] & 7) + 1;
res               620 drivers/hwmon/vt1211.c 		res = 0;
res               624 drivers/hwmon/vt1211.c 	return sprintf(buf, "%d\n", res);
res              1147 drivers/hwmon/vt1211.c 	struct resource *res;
res              1154 drivers/hwmon/vt1211.c 	res = platform_get_resource(pdev, IORESOURCE_IO, 0);
res              1155 drivers/hwmon/vt1211.c 	if (!devm_request_region(dev, res->start, resource_size(res),
res              1158 drivers/hwmon/vt1211.c 			(unsigned long)res->start, (unsigned long)res->end);
res              1161 drivers/hwmon/vt1211.c 	data->addr = res->start;
res              1237 drivers/hwmon/vt1211.c 	struct resource res = {
res              1251 drivers/hwmon/vt1211.c 	res.name = pdev->name;
res              1252 drivers/hwmon/vt1211.c 	err = acpi_check_resource_conflict(&res);
res              1256 drivers/hwmon/vt1211.c 	err = platform_device_add_resources(pdev, &res, 1);
res               780 drivers/hwmon/vt8231.c 	struct resource *res;
res               785 drivers/hwmon/vt8231.c 	res = platform_get_resource(pdev, IORESOURCE_IO, 0);
res               786 drivers/hwmon/vt8231.c 	if (!devm_request_region(&pdev->dev, res->start, VT8231_EXTENT,
res               789 drivers/hwmon/vt8231.c 			(unsigned long)res->start, (unsigned long)res->end);
res               798 drivers/hwmon/vt8231.c 	data->addr = res->start;
res               942 drivers/hwmon/vt8231.c 	struct resource res = {
res               950 drivers/hwmon/vt8231.c 	err = acpi_check_resource_conflict(&res);
res               961 drivers/hwmon/vt8231.c 	err = platform_device_add_resources(pdev, &res, 1);
res               529 drivers/hwmon/w83627ehf.c 	int res, word_sized = is_word_sized(reg);
res               535 drivers/hwmon/w83627ehf.c 	res = inb_p(data->addr + DATA_REG_OFFSET);
res               539 drivers/hwmon/w83627ehf.c 		res = (res << 8) + inb_p(data->addr + DATA_REG_OFFSET);
res               543 drivers/hwmon/w83627ehf.c 	return res;
res               569 drivers/hwmon/w83627ehf.c 	u16 res;
res               571 drivers/hwmon/w83627ehf.c 	res = w83627ehf_read_value(data, reg);
res               573 drivers/hwmon/w83627ehf.c 		res <<= 8;
res               575 drivers/hwmon/w83627ehf.c 	return res;
res              2043 drivers/hwmon/w83627ehf.c 	struct resource *res;
res              2047 drivers/hwmon/w83627ehf.c 	res = platform_get_resource(pdev, IORESOURCE_IO, 0);
res              2048 drivers/hwmon/w83627ehf.c 	if (!request_region(res->start, IOREGION_LENGTH, DRVNAME)) {
res              2051 drivers/hwmon/w83627ehf.c 			(unsigned long)res->start,
res              2052 drivers/hwmon/w83627ehf.c 			(unsigned long)res->start + IOREGION_LENGTH - 1);
res              2063 drivers/hwmon/w83627ehf.c 	data->addr = res->start;
res              2582 drivers/hwmon/w83627ehf.c 	release_region(res->start, IOREGION_LENGTH);
res              2804 drivers/hwmon/w83627ehf.c 	struct resource res;
res              2836 drivers/hwmon/w83627ehf.c 	memset(&res, 0, sizeof(res));
res              2837 drivers/hwmon/w83627ehf.c 	res.name = DRVNAME;
res              2838 drivers/hwmon/w83627ehf.c 	res.start = address + IOREGION_OFFSET;
res              2839 drivers/hwmon/w83627ehf.c 	res.end = address + IOREGION_OFFSET + IOREGION_LENGTH - 1;
res              2840 drivers/hwmon/w83627ehf.c 	res.flags = IORESOURCE_IO;
res              2842 drivers/hwmon/w83627ehf.c 	err = acpi_check_resource_conflict(&res);
res              2846 drivers/hwmon/w83627ehf.c 	err = platform_device_add_resources(pdev, &res, 1);
res              1398 drivers/hwmon/w83627hf.c 	struct resource *res;
res              1409 drivers/hwmon/w83627hf.c 	res = platform_get_resource(pdev, IORESOURCE_IO, 0);
res              1410 drivers/hwmon/w83627hf.c 	if (!devm_request_region(dev, res->start, WINB_REGION_SIZE, DRVNAME)) {
res              1412 drivers/hwmon/w83627hf.c 			(unsigned long)res->start,
res              1413 drivers/hwmon/w83627hf.c 			(unsigned long)(res->start + WINB_REGION_SIZE - 1));
res              1421 drivers/hwmon/w83627hf.c 	data->addr = res->start;
res              1591 drivers/hwmon/w83627hf.c 	int res, word_sized;
res              1601 drivers/hwmon/w83627hf.c 	res = inb_p(data->addr + W83781D_DATA_REG_OFFSET);
res              1605 drivers/hwmon/w83627hf.c 		res =
res              1606 drivers/hwmon/w83627hf.c 		    (res << 8) + inb_p(data->addr +
res              1611 drivers/hwmon/w83627hf.c 	return res;
res              1617 drivers/hwmon/w83627hf.c 	int res = 0xff, sel;
res              1627 drivers/hwmon/w83627hf.c 		return res;
res              1632 drivers/hwmon/w83627hf.c 	res = 0xff;
res              1652 drivers/hwmon/w83627hf.c 	res = superio_inb(sio_data, W83627THF_GPIO5_DR) & sel;
res              1656 drivers/hwmon/w83627hf.c 	return res;
res              1662 drivers/hwmon/w83627hf.c 	int res = 0xff;
res              1672 drivers/hwmon/w83627hf.c 		return res;
res              1690 drivers/hwmon/w83627hf.c 	res = superio_inb(sio_data, W83687THF_VID_DATA) & 0x3f;
res              1694 drivers/hwmon/w83627hf.c 	return res;
res              1919 drivers/hwmon/w83627hf.c 	struct resource res = {
res              1927 drivers/hwmon/w83627hf.c 	err = acpi_check_resource_conflict(&res);
res              1938 drivers/hwmon/w83627hf.c 	err = platform_device_add_resources(pdev, &res, 1);
res              1260 drivers/hwmon/w83781d.c 	int res, bank;
res              1269 drivers/hwmon/w83781d.c 		res = i2c_smbus_read_byte_data(client, reg & 0xff);
res              1276 drivers/hwmon/w83781d.c 			res = i2c_smbus_read_word_swapped(cl, 0);
res              1279 drivers/hwmon/w83781d.c 			res = i2c_smbus_read_byte_data(cl, 1);
res              1282 drivers/hwmon/w83781d.c 			res = i2c_smbus_read_word_swapped(cl, 2);
res              1286 drivers/hwmon/w83781d.c 			res = i2c_smbus_read_word_swapped(cl, 3);
res              1293 drivers/hwmon/w83781d.c 	return res;
res              1652 drivers/hwmon/w83781d.c 	int word_sized, res;
res              1666 drivers/hwmon/w83781d.c 	res = inb_p(data->isa_addr + W83781D_DATA_REG_OFFSET);
res              1670 drivers/hwmon/w83781d.c 		res =
res              1671 drivers/hwmon/w83781d.c 		    (res << 8) + inb_p(data->isa_addr +
res              1679 drivers/hwmon/w83781d.c 	return res;
res              1724 drivers/hwmon/w83781d.c 	int res;
res              1728 drivers/hwmon/w83781d.c 		res = w83781d_read_value_i2c(data, reg);
res              1730 drivers/hwmon/w83781d.c 		res = w83781d_read_value_isa(data, reg);
res              1732 drivers/hwmon/w83781d.c 	return res;
res              1754 drivers/hwmon/w83781d.c 	struct resource *res;
res              1757 drivers/hwmon/w83781d.c 	res = platform_get_resource(pdev, IORESOURCE_IO, 0);
res              1759 drivers/hwmon/w83781d.c 				 res->start + W83781D_ADDR_REG_OFFSET, 2,
res              1769 drivers/hwmon/w83781d.c 	data->isa_addr = res->start;
res              1931 drivers/hwmon/w83781d.c 	struct resource res = {
res              1946 drivers/hwmon/w83781d.c 	err = platform_device_add_resources(pdev, &res, 1);
res              1970 drivers/hwmon/w83781d.c 	int res;
res              1973 drivers/hwmon/w83781d.c 		res = platform_driver_register(&w83781d_isa_driver);
res              1974 drivers/hwmon/w83781d.c 		if (res)
res              1978 drivers/hwmon/w83781d.c 		res = w83781d_isa_device_add(isa_address);
res              1979 drivers/hwmon/w83781d.c 		if (res)
res              1988 drivers/hwmon/w83781d.c 	return res;
res              2015 drivers/hwmon/w83781d.c 	int res;
res              2018 drivers/hwmon/w83781d.c 	res = w83781d_read_value_i2c(data, reg);
res              2021 drivers/hwmon/w83781d.c 	return res;
res              2049 drivers/hwmon/w83781d.c 	int res;
res              2055 drivers/hwmon/w83781d.c 	res = w83781d_isa_register();
res              2056 drivers/hwmon/w83781d.c 	if (res)
res              2059 drivers/hwmon/w83781d.c 	res = i2c_add_driver(&w83781d_driver);
res              2060 drivers/hwmon/w83781d.c 	if (res)
res              2068 drivers/hwmon/w83781d.c 	return res;
res              2099 drivers/hwmon/w83793.c 	u8 res = 0xff;
res              2112 drivers/hwmon/w83793.c 			res = 0x0;	/* read 0x0 from the chip */
res              2116 drivers/hwmon/w83793.c 	res = i2c_smbus_read_byte_data(client, reg & 0xff);
res              2118 drivers/hwmon/w83793.c 	return res;
res              2125 drivers/hwmon/w83793.c 	int res;
res              2130 drivers/hwmon/w83793.c 		res = i2c_smbus_write_byte_data(client, W83793_REG_BANKSEL,
res              2132 drivers/hwmon/w83793.c 		if (res < 0) {
res              2142 drivers/hwmon/w83793.c 	res = i2c_smbus_write_byte_data(client, reg & 0xff, value);
res              2144 drivers/hwmon/w83793.c 	return res;
res               554 drivers/hwspinlock/hwspinlock_core.c static void devm_hwspin_lock_unreg(struct device *dev, void *res)
res               556 drivers/hwspinlock/hwspinlock_core.c 	hwspin_lock_unregister(*(struct hwspinlock_device **)res);
res               559 drivers/hwspinlock/hwspinlock_core.c static int devm_hwspin_lock_device_match(struct device *dev, void *res,
res               562 drivers/hwspinlock/hwspinlock_core.c 	struct hwspinlock_device **bank = res;
res               842 drivers/hwspinlock/hwspinlock_core.c static int devm_hwspin_lock_match(struct device *dev, void *res, void *data)
res               844 drivers/hwspinlock/hwspinlock_core.c 	struct hwspinlock **hwlock = res;
res               852 drivers/hwspinlock/hwspinlock_core.c static void devm_hwspin_lock_release(struct device *dev, void *res)
res               854 drivers/hwspinlock/hwspinlock_core.c 	hwspin_lock_free(*(struct hwspinlock **)res);
res                79 drivers/hwspinlock/omap_hwspinlock.c 	struct resource *res;
res                88 drivers/hwspinlock/omap_hwspinlock.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                89 drivers/hwspinlock/omap_hwspinlock.c 	if (!res)
res                92 drivers/hwspinlock/omap_hwspinlock.c 	io_base = ioremap(res->start, resource_size(res));
res                86 drivers/hwspinlock/sprd_hwspinlock.c 	struct resource *res;
res                99 drivers/hwspinlock/sprd_hwspinlock.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               100 drivers/hwspinlock/sprd_hwspinlock.c 	sprd_hwlock->base = devm_ioremap_resource(&pdev->dev, res);
res                61 drivers/hwspinlock/stm32_hwspinlock.c 	struct resource *res;
res                65 drivers/hwspinlock/stm32_hwspinlock.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                66 drivers/hwspinlock/stm32_hwspinlock.c 	io_base = devm_ioremap_resource(&pdev->dev, res);
res                91 drivers/hwspinlock/u8500_hsem.c 	struct resource *res;
res                99 drivers/hwspinlock/u8500_hsem.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               100 drivers/hwspinlock/u8500_hsem.c 	if (!res)
res               103 drivers/hwspinlock/u8500_hsem.c 	io_base = ioremap(res->start, resource_size(res));
res               521 drivers/hwtracing/coresight/coresight-catu.c 	base = devm_ioremap_resource(dev, &adev->res);
res               563 drivers/hwtracing/coresight/coresight-cpu-debug.c 	struct resource *res = &adev->res;
res               584 drivers/hwtracing/coresight/coresight-cpu-debug.c 	base = devm_ioremap_resource(dev, res);
res               733 drivers/hwtracing/coresight/coresight-etb10.c 	struct resource *res = &adev->res;
res               753 drivers/hwtracing/coresight/coresight-etb10.c 	base = devm_ioremap_resource(dev, res);
res               792 drivers/hwtracing/coresight/coresight-etm3x.c 	struct resource *res = &adev->res;
res               803 drivers/hwtracing/coresight/coresight-etm3x.c 	base = devm_ioremap_resource(dev, res);
res              1095 drivers/hwtracing/coresight/coresight-etm4x.c 	struct resource *res = &adev->res;
res              1105 drivers/hwtracing/coresight/coresight-etm4x.c 	base = devm_ioremap_resource(dev, res);
res               206 drivers/hwtracing/coresight/coresight-funnel.c static int funnel_probe(struct device *dev, struct resource *res)
res               237 drivers/hwtracing/coresight/coresight-funnel.c 	if (res) {
res               238 drivers/hwtracing/coresight/coresight-funnel.c 		base = devm_ioremap_resource(dev, res);
res               348 drivers/hwtracing/coresight/coresight-funnel.c 	return funnel_probe(&adev->dev, &adev->res);
res               200 drivers/hwtracing/coresight/coresight-replicator.c static int replicator_probe(struct device *dev, struct resource *res)
res               232 drivers/hwtracing/coresight/coresight-replicator.c 	if (res) {
res               233 drivers/hwtracing/coresight/coresight-replicator.c 		base = devm_ioremap_resource(dev, res);
res               346 drivers/hwtracing/coresight/coresight-replicator.c 	return replicator_probe(&adev->dev, &adev->res);
res               690 drivers/hwtracing/coresight/coresight-stm.c static int of_stm_get_stimulus_area(struct device *dev, struct resource *res)
res               710 drivers/hwtracing/coresight/coresight-stm.c 	return of_address_to_resource(np, index, res);
res               714 drivers/hwtracing/coresight/coresight-stm.c 					   struct resource *res)
res               721 drivers/hwtracing/coresight/coresight-stm.c static int acpi_stm_get_stimulus_area(struct device *dev, struct resource *res)
res               744 drivers/hwtracing/coresight/coresight-stm.c 		if (resource_type(rent->res) != IORESOURCE_MEM)
res               747 drivers/hwtracing/coresight/coresight-stm.c 			*res = *rent->res;
res               760 drivers/hwtracing/coresight/coresight-stm.c 					     struct resource *res)
res               766 drivers/hwtracing/coresight/coresight-stm.c static int stm_get_stimulus_area(struct device *dev, struct resource *res)
res               771 drivers/hwtracing/coresight/coresight-stm.c 		return of_stm_get_stimulus_area(dev, res);
res               773 drivers/hwtracing/coresight/coresight-stm.c 		return acpi_stm_get_stimulus_area(dev, res);
res               861 drivers/hwtracing/coresight/coresight-stm.c 	struct resource *res = &adev->res;
res               882 drivers/hwtracing/coresight/coresight-stm.c 	base = devm_ioremap_resource(dev, res);
res               442 drivers/hwtracing/coresight/coresight-tmc.c 	struct resource *res = &adev->res;
res               454 drivers/hwtracing/coresight/coresight-tmc.c 	base = devm_ioremap_resource(dev, res);
res               127 drivers/hwtracing/coresight/coresight-tpiu.c 	struct resource *res = &adev->res;
res               147 drivers/hwtracing/coresight/coresight-tpiu.c 	base = devm_ioremap_resource(dev, res);
res               390 drivers/hwtracing/intel_th/core.c 					 struct resource *res, int nres)
res               394 drivers/hwtracing/intel_th/core.c 	r = kmemdup(res, sizeof(*res) * nres, GFP_KERNEL);
res               421 drivers/hwtracing/intel_th/core.c 	struct resource		res[3];
res               431 drivers/hwtracing/intel_th/core.c 		.res	= {
res               445 drivers/hwtracing/intel_th/core.c 		.res	= {
res               466 drivers/hwtracing/intel_th/core.c 		.res	= {
res               487 drivers/hwtracing/intel_th/core.c 		.res	= {
res               505 drivers/hwtracing/intel_th/core.c 		.res	= {
res               523 drivers/hwtracing/intel_th/core.c 		.res	= {
res               538 drivers/hwtracing/intel_th/core.c 		.res	= {
res               553 drivers/hwtracing/intel_th/core.c 		.res	= {
res               603 drivers/hwtracing/intel_th/core.c 	struct resource res[3];
res               614 drivers/hwtracing/intel_th/core.c 	memcpy(res, subdev->res,
res               626 drivers/hwtracing/intel_th/core.c 		if (!res[r].end && res[r].flags == IORESOURCE_MEM) {
res               627 drivers/hwtracing/intel_th/core.c 			bar = res[r].start;
res               631 drivers/hwtracing/intel_th/core.c 			res[r].start = 0;
res               632 drivers/hwtracing/intel_th/core.c 			res[r].end = resource_size(&devres[bar]) - 1;
res               635 drivers/hwtracing/intel_th/core.c 		if (res[r].flags & IORESOURCE_MEM) {
res               636 drivers/hwtracing/intel_th/core.c 			res[r].start	+= devres[bar].start;
res               637 drivers/hwtracing/intel_th/core.c 			res[r].end	+= devres[bar].start;
res               640 drivers/hwtracing/intel_th/core.c 				subdev->name, r, &res[r]);
res               641 drivers/hwtracing/intel_th/core.c 		} else if (res[r].flags & IORESOURCE_IRQ) {
res               647 drivers/hwtracing/intel_th/core.c 				res[r].start = th->irq;
res               651 drivers/hwtracing/intel_th/core.c 	err = intel_th_device_add_resources(thdev, res, subdev->nres);
res               734 drivers/hwtracing/intel_th/gth.c 	struct resource *res;
res               738 drivers/hwtracing/intel_th/gth.c 	res = intel_th_device_get_resource(thdev, IORESOURCE_MEM, 0);
res               739 drivers/hwtracing/intel_th/gth.c 	if (!res)
res               742 drivers/hwtracing/intel_th/gth.c 	base = devm_ioremap(dev, res->start, resource_size(res));
res              2065 drivers/hwtracing/intel_th/msu.c 	struct resource *res;
res              2070 drivers/hwtracing/intel_th/msu.c 	res = intel_th_device_get_resource(thdev, IORESOURCE_MEM, 0);
res              2071 drivers/hwtracing/intel_th/msu.c 	if (!res)
res              2074 drivers/hwtracing/intel_th/msu.c 	base = devm_ioremap(dev, res->start, resource_size(res));
res              2082 drivers/hwtracing/intel_th/msu.c 	res = intel_th_device_get_resource(thdev, IORESOURCE_IRQ, 1);
res              2083 drivers/hwtracing/intel_th/msu.c 	if (!res)
res               204 drivers/hwtracing/intel_th/pti.c 	struct resource *res;
res               208 drivers/hwtracing/intel_th/pti.c 	res = intel_th_device_get_resource(thdev, IORESOURCE_MEM, 0);
res               209 drivers/hwtracing/intel_th/pti.c 	if (!res)
res               212 drivers/hwtracing/intel_th/pti.c 	base = devm_ioremap(dev, res->start, resource_size(res));
res               192 drivers/hwtracing/intel_th/sth.c 	struct resource *res;
res               196 drivers/hwtracing/intel_th/sth.c 	res = intel_th_device_get_resource(thdev, IORESOURCE_MEM, 0);
res               197 drivers/hwtracing/intel_th/sth.c 	if (!res)
res               200 drivers/hwtracing/intel_th/sth.c 	base = devm_ioremap(dev, res->start, resource_size(res));
res               204 drivers/hwtracing/intel_th/sth.c 	res = intel_th_device_get_resource(thdev, IORESOURCE_MEM, 1);
res               205 drivers/hwtracing/intel_th/sth.c 	if (!res)
res               208 drivers/hwtracing/intel_th/sth.c 	channels = devm_ioremap(dev, res->start, resource_size(res));
res               219 drivers/hwtracing/intel_th/sth.c 	sth->channels_phys = res->start;
res               392 drivers/i2c/busses/i2c-altera.c 	struct resource *res;
res               399 drivers/i2c/busses/i2c-altera.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               400 drivers/i2c/busses/i2c-altera.c 	idev->base = devm_ioremap_resource(&pdev->dev, res);
res               140 drivers/i2c/busses/i2c-amd-mp2-pci.c 	enum response_type res = i2c_common->eventval.r.response;
res               143 drivers/i2c/busses/i2c-amd-mp2-pci.c 	if (res != command_success) {
res               144 drivers/i2c/busses/i2c-amd-mp2-pci.c 		if (res != command_failed)
res               967 drivers/i2c/busses/i2c-aspeed.c 	struct resource *res;
res               974 drivers/i2c/busses/i2c-aspeed.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               975 drivers/i2c/busses/i2c-aspeed.c 	bus->base = devm_ioremap_resource(&pdev->dev, res);
res               737 drivers/i2c/busses/i2c-axxia.c 	struct resource *res;
res               745 drivers/i2c/busses/i2c-axxia.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               746 drivers/i2c/busses/i2c-axxia.c 	base = devm_ioremap_resource(&pdev->dev, res);
res               858 drivers/i2c/busses/i2c-bcm-iproc.c 	struct resource *res;
res               871 drivers/i2c/busses/i2c-bcm-iproc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               872 drivers/i2c/busses/i2c-bcm-iproc.c 	iproc_i2c->base = devm_ioremap_resource(iproc_i2c->device, res);
res               877 drivers/i2c/busses/i2c-bcm-iproc.c 		res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res               879 drivers/i2c/busses/i2c-bcm-iproc.c 							    res);
res               308 drivers/i2c/busses/i2c-efm32.c 	struct resource *res;
res               338 drivers/i2c/busses/i2c-efm32.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               339 drivers/i2c/busses/i2c-efm32.c 	if (!res) {
res               344 drivers/i2c/busses/i2c-efm32.c 	if (resource_size(res) < 0x42) {
res               349 drivers/i2c/busses/i2c-efm32.c 	ddata->base = devm_ioremap_resource(&pdev->dev, res);
res               359 drivers/i2c/busses/i2c-highlander.c 	struct resource *res;
res               362 drivers/i2c/busses/i2c-highlander.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               363 drivers/i2c/busses/i2c-highlander.c 	if (unlikely(!res)) {
res               372 drivers/i2c/busses/i2c-highlander.c 	dev->base = ioremap_nocache(res->start, resource_size(res));
res               106 drivers/i2c/busses/i2c-hydra.c 	int res;
res               120 drivers/i2c/busses/i2c-hydra.c 	res = i2c_bit_add_bus(&hydra_adap);
res               121 drivers/i2c/busses/i2c-hydra.c 	if (res < 0) {
res               124 drivers/i2c/busses/i2c-hydra.c 		return res;
res              1510 drivers/i2c/busses/i2c-i801.c 	struct resource *res;
res              1542 drivers/i2c/busses/i2c-i801.c 	res = &tco_res[1];
res              1544 drivers/i2c/busses/i2c-i801.c 		res->start = (resource_size_t)base64_addr + SBREG_SMBCTRL_DNV;
res              1546 drivers/i2c/busses/i2c-i801.c 		res->start = (resource_size_t)base64_addr + SBREG_SMBCTRL;
res              1548 drivers/i2c/busses/i2c-i801.c 	res->end = res->start + 3;
res              1549 drivers/i2c/busses/i2c-i801.c 	res->flags = IORESOURCE_MEM;
res              1573 drivers/i2c/busses/i2c-i801.c 	struct resource tco_res[2], *res;
res              1593 drivers/i2c/busses/i2c-i801.c 	res = &tco_res[0];
res              1594 drivers/i2c/busses/i2c-i801.c 	res->start = tco_base & ~1;
res              1595 drivers/i2c/busses/i2c-i801.c 	res->end = res->start + 32 - 1;
res              1596 drivers/i2c/busses/i2c-i801.c 	res->flags = IORESOURCE_IO;
res               243 drivers/i2c/busses/i2c-ibm_iic.c 	int i, res;
res               291 drivers/i2c/busses/i2c-ibm_iic.c 	res = (in_8(&iic->directcntl) & DIRCNTL_MSDA) ? -EREMOTEIO : 1;
res               305 drivers/i2c/busses/i2c-ibm_iic.c 	DBG("%d: smbus_quick -> %s\n", dev->idx, res ? "NACK" : "ACK");
res               313 drivers/i2c/busses/i2c-ibm_iic.c 	return res;
res               316 drivers/i2c/busses/i2c-ibm_iic.c 	res = -EREMOTEIO;
res              1333 drivers/i2c/busses/i2c-img-scb.c 	struct resource *res;
res              1341 drivers/i2c/busses/i2c-img-scb.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1342 drivers/i2c/busses/i2c-img-scb.c 	i2c->base = devm_ioremap_resource(&pdev->dev, res);
res              1059 drivers/i2c/busses/i2c-imx.c 	struct resource *res;
res              1074 drivers/i2c/busses/i2c-imx.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1075 drivers/i2c/busses/i2c-imx.c 	base = devm_ioremap_resource(&pdev->dev, res);
res              1079 drivers/i2c/busses/i2c-imx.c 	phy_addr = (dma_addr_t)res->start;
res              1171 drivers/i2c/busses/i2c-imx.c 	dev_dbg(&i2c_imx->adapter.dev, "device resources: %pR\n", res);
res               395 drivers/i2c/busses/i2c-iop3xx.c 	struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               406 drivers/i2c/busses/i2c-iop3xx.c 	release_mem_region(res->start, IOP3XX_I2C_IO_SIZE);
res               416 drivers/i2c/busses/i2c-iop3xx.c 	struct resource *res;
res               448 drivers/i2c/busses/i2c-iop3xx.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               449 drivers/i2c/busses/i2c-iop3xx.c 	if (!res) {
res               454 drivers/i2c/busses/i2c-iop3xx.c 	if (!request_mem_region(res->start, IOP3XX_I2C_IO_SIZE, pdev->name)) {
res               462 drivers/i2c/busses/i2c-iop3xx.c 	adapter_data->ioaddr = ioremap(res->start, IOP3XX_I2C_IO_SIZE);
res               511 drivers/i2c/busses/i2c-iop3xx.c 	release_mem_region(res->start, IOP3XX_I2C_IO_SIZE);
res               258 drivers/i2c/busses/i2c-isch.c 	struct resource *res;
res               261 drivers/i2c/busses/i2c-isch.c 	res = platform_get_resource(dev, IORESOURCE_IO, 0);
res               262 drivers/i2c/busses/i2c-isch.c 	if (!res)
res               265 drivers/i2c/busses/i2c-isch.c 	if (!devm_request_region(&dev->dev, res->start, resource_size(res),
res               272 drivers/i2c/busses/i2c-isch.c 	sch_smba = res->start;
res               349 drivers/i2c/busses/i2c-lpc2k.c 	struct resource *res;
res               359 drivers/i2c/busses/i2c-lpc2k.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               360 drivers/i2c/busses/i2c-lpc2k.c 	i2c->base = devm_ioremap_resource(&pdev->dev, res);
res               660 drivers/i2c/busses/i2c-mpc.c 	struct resource res;
res               737 drivers/i2c/busses/i2c-mpc.c 	of_address_to_resource(op->dev.of_node, 0, &res);
res               739 drivers/i2c/busses/i2c-mpc.c 		  "MPC adapter at 0x%llx", (unsigned long long)res.start);
res               917 drivers/i2c/busses/i2c-mt65xx.c 	struct resource *res;
res               924 drivers/i2c/busses/i2c-mt65xx.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               925 drivers/i2c/busses/i2c-mt65xx.c 	i2c->base = devm_ioremap_resource(&pdev->dev, res);
res               929 drivers/i2c/busses/i2c-mt65xx.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res               930 drivers/i2c/busses/i2c-mt65xx.c 	i2c->pdmabase = devm_ioremap_resource(&pdev->dev, res);
res               273 drivers/i2c/busses/i2c-mt7621.c 	struct resource *res;
res               278 drivers/i2c/busses/i2c-mt7621.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               284 drivers/i2c/busses/i2c-mt7621.c 	i2c->base = devm_ioremap_resource(&pdev->dev, res);
res               997 drivers/i2c/busses/i2c-nomadik.c 	dev->virtbase = devm_ioremap(&adev->dev, adev->res.start,
res               998 drivers/i2c/busses/i2c-nomadik.c 				resource_size(&adev->res));
res              1035 drivers/i2c/busses/i2c-nomadik.c 		 "Nomadik I2C at %pR", &adev->res);
res              1060 drivers/i2c/busses/i2c-nomadik.c 	struct resource *res = &adev->res;
res              1070 drivers/i2c/busses/i2c-nomadik.c 	release_mem_region(res->start, resource_size(res));
res               610 drivers/i2c/busses/i2c-ocores.c 	struct resource *res;
res               621 drivers/i2c/busses/i2c-ocores.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               622 drivers/i2c/busses/i2c-ocores.c 	if (res) {
res               623 drivers/i2c/busses/i2c-ocores.c 		i2c->base = devm_ioremap_resource(&pdev->dev, res);
res               627 drivers/i2c/busses/i2c-ocores.c 		res = platform_get_resource(pdev, IORESOURCE_IO, 0);
res               628 drivers/i2c/busses/i2c-ocores.c 		if (!res)
res               630 drivers/i2c/busses/i2c-ocores.c 		i2c->iobase = res->start;
res               631 drivers/i2c/busses/i2c-ocores.c 		if (!devm_request_region(&pdev->dev, res->start,
res               632 drivers/i2c/busses/i2c-ocores.c 					 resource_size(res),
res               402 drivers/i2c/busses/i2c-owl.c 	struct resource *res;
res               409 drivers/i2c/busses/i2c-owl.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               410 drivers/i2c/busses/i2c-owl.c 	i2c_dev->base = devm_ioremap_resource(dev, res);
res                49 drivers/i2c/busses/i2c-pca-isa.c 	int res = inb(base+reg);
res                53 drivers/i2c/busses/i2c-pca-isa.c 		printk(KERN_DEBUG "*** read  %s => %#04x\n", names[reg], res);
res                56 drivers/i2c/busses/i2c-pca-isa.c 	return res;
res               136 drivers/i2c/busses/i2c-pca-platform.c 	struct resource *res;
res               152 drivers/i2c/busses/i2c-pca-platform.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               153 drivers/i2c/busses/i2c-pca-platform.c 	i2c->reg_base = devm_ioremap_resource(&pdev->dev, res);
res               160 drivers/i2c/busses/i2c-pca-platform.c 	i2c->io_base = res->start;
res               161 drivers/i2c/busses/i2c-pca-platform.c 	i2c->io_size = resource_size(res);
res               168 drivers/i2c/busses/i2c-pca-platform.c 		 (unsigned long) res->start);
res               195 drivers/i2c/busses/i2c-pca-platform.c 	switch (res->flags & IORESOURCE_MEM_TYPE_MASK) {
res               263 drivers/i2c/busses/i2c-pmcmsp.c 	struct resource *res;
res               267 drivers/i2c/busses/i2c-pmcmsp.c 	res = platform_get_resource(pldev, IORESOURCE_MEM, 0);
res               268 drivers/i2c/busses/i2c-pmcmsp.c 	if (!res) {
res               274 drivers/i2c/busses/i2c-pmcmsp.c 	if (!request_mem_region(res->start, resource_size(res),
res               278 drivers/i2c/busses/i2c-pmcmsp.c 			res->start);
res               284 drivers/i2c/busses/i2c-pmcmsp.c 	pmcmsptwi_data.iobase = ioremap_nocache(res->start,
res               285 drivers/i2c/busses/i2c-pmcmsp.c 						resource_size(res));
res               288 drivers/i2c/busses/i2c-pmcmsp.c 			"Unable to ioremap address 0x%08x\n", res->start);
res               347 drivers/i2c/busses/i2c-pmcmsp.c 	release_mem_region(res->start, resource_size(res));
res               358 drivers/i2c/busses/i2c-pmcmsp.c 	struct resource *res;
res               370 drivers/i2c/busses/i2c-pmcmsp.c 	res = platform_get_resource(pldev, IORESOURCE_MEM, 0);
res               371 drivers/i2c/busses/i2c-pmcmsp.c 	release_mem_region(res->start, resource_size(res));
res               646 drivers/i2c/busses/i2c-pnx.c 	struct resource *res;
res               686 drivers/i2c/busses/i2c-pnx.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               687 drivers/i2c/busses/i2c-pnx.c 	alg_data->ioaddr = devm_ioremap_resource(&pdev->dev, res);
res               738 drivers/i2c/busses/i2c-pnx.c 		alg_data->adapter.name, res->start, alg_data->irq);
res                28 drivers/i2c/busses/i2c-pxa-pci.c 	struct resource res[2];
res                34 drivers/i2c/busses/i2c-pxa-pci.c 	memset(&res, 0, sizeof(res));
res                36 drivers/i2c/busses/i2c-pxa-pci.c 	res[0].flags = IORESOURCE_MEM;
res                37 drivers/i2c/busses/i2c-pxa-pci.c 	res[0].start = pci_resource_start(dev, bar);
res                38 drivers/i2c/busses/i2c-pxa-pci.c 	res[0].end = pci_resource_end(dev, bar);
res                40 drivers/i2c/busses/i2c-pxa-pci.c 	res[1].flags = IORESOURCE_IRQ;
res                41 drivers/i2c/busses/i2c-pxa-pci.c 	res[1].start = dev->irq;
res                42 drivers/i2c/busses/i2c-pxa-pci.c 	res[1].end = dev->irq;
res                52 drivers/i2c/busses/i2c-pxa-pci.c 		if (r.start != res[0].start)
res                54 drivers/i2c/busses/i2c-pxa-pci.c 		if (r.end != res[0].end)
res                56 drivers/i2c/busses/i2c-pxa-pci.c 		if (r.flags != res[0].flags)
res                82 drivers/i2c/busses/i2c-pxa-pci.c 	ret = platform_device_add_resources(pdev, res, ARRAY_SIZE(res));
res              1208 drivers/i2c/busses/i2c-pxa.c 	struct resource *res = NULL;
res              1215 drivers/i2c/busses/i2c-pxa.c 	res = platform_get_resource(dev, IORESOURCE_MEM, 0);
res              1216 drivers/i2c/busses/i2c-pxa.c 	i2c->reg_base = devm_ioremap_resource(&dev->dev, res);
res              1264 drivers/i2c/busses/i2c-pxa.c 	i2c->iobase = res->start;
res              1265 drivers/i2c/busses/i2c-pxa.c 	i2c->iosize = resource_size(res);
res               502 drivers/i2c/busses/i2c-qcom-geni.c 	struct resource *res;
res               512 drivers/i2c/busses/i2c-qcom-geni.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               513 drivers/i2c/busses/i2c-qcom-geni.c 	gi2c->se.base = devm_ioremap_resource(&pdev->dev, res);
res              1668 drivers/i2c/busses/i2c-qup.c 	struct resource *res;
res              1765 drivers/i2c/busses/i2c-qup.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1766 drivers/i2c/busses/i2c-qup.c 	qup->base = devm_ioremap_resource(qup->dev, res);
res               135 drivers/i2c/busses/i2c-rcar.c 	struct resource *res;
res               734 drivers/i2c/busses/i2c-rcar.c 	chan = rcar_i2c_request_dma_chan(dev, dir, priv->res->start + ICRXTX);
res               939 drivers/i2c/busses/i2c-rcar.c 	priv->res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               941 drivers/i2c/busses/i2c-rcar.c 	priv->io = devm_ioremap_resource(dev, priv->res);
res               396 drivers/i2c/busses/i2c-riic.c 	struct resource *res;
res               404 drivers/i2c/busses/i2c-riic.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               405 drivers/i2c/busses/i2c-riic.c 	riic->base = devm_ioremap_resource(&pdev->dev, res);
res               416 drivers/i2c/busses/i2c-riic.c 		res = platform_get_resource(pdev, IORESOURCE_IRQ, riic_irqs[i].res_num);
res               417 drivers/i2c/busses/i2c-riic.c 		if (!res)
res               420 drivers/i2c/busses/i2c-riic.c 		ret = devm_request_irq(&pdev->dev, res->start, riic_irqs[i].isr,
res              1054 drivers/i2c/busses/i2c-s3c2410.c 	struct resource *res;
res              1100 drivers/i2c/busses/i2c-s3c2410.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1101 drivers/i2c/busses/i2c-s3c2410.c 	i2c->regs = devm_ioremap_resource(&pdev->dev, res);
res              1107 drivers/i2c/busses/i2c-s3c2410.c 		i2c->regs, res);
res               435 drivers/i2c/busses/i2c-sh7760.c 	struct resource *res;
res               453 drivers/i2c/busses/i2c-sh7760.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               454 drivers/i2c/busses/i2c-sh7760.c 	if (!res) {
res               460 drivers/i2c/busses/i2c-sh7760.c 	id->ioarea = request_mem_region(res->start, REGSIZE, pdev->name);
res               467 drivers/i2c/busses/i2c-sh7760.c 	id->iobase = ioremap(res->start, REGSIZE);
res               483 drivers/i2c/busses/i2c-sh7760.c 		"SH7760 I2C at %08lx", (unsigned long)res->start);
res               519 drivers/i2c/busses/i2c-sh7760.c 		 pd->speed_khz, res->start, id->irq);
res               133 drivers/i2c/busses/i2c-sh_mobile.c 	struct resource *res;
res               529 drivers/i2c/busses/i2c-sh_mobile.c 									   pd->res->start + ICDR);
res               532 drivers/i2c/busses/i2c-sh_mobile.c 									   pd->res->start + ICDR);
res               801 drivers/i2c/busses/i2c-sh_mobile.c 	struct resource *res;
res               805 drivers/i2c/busses/i2c-sh_mobile.c 	while ((res = platform_get_resource(dev, IORESOURCE_IRQ, k))) {
res               806 drivers/i2c/busses/i2c-sh_mobile.c 		for (n = res->start; n <= res->end; n++) {
res               824 drivers/i2c/busses/i2c-sh_mobile.c 	struct resource *res;
res               846 drivers/i2c/busses/i2c-sh_mobile.c 	res = platform_get_resource(dev, IORESOURCE_MEM, 0);
res               848 drivers/i2c/busses/i2c-sh_mobile.c 	pd->res = res;
res               849 drivers/i2c/busses/i2c-sh_mobile.c 	pd->reg = devm_ioremap_resource(&dev->dev, res);
res               858 drivers/i2c/busses/i2c-sh_mobile.c 	if (resource_size(res) > 0x17)
res                63 drivers/i2c/busses/i2c-simtec.c 	struct resource *res;
res                73 drivers/i2c/busses/i2c-simtec.c 	res = platform_get_resource(dev, IORESOURCE_MEM, 0);
res                74 drivers/i2c/busses/i2c-simtec.c 	if (res == NULL) {
res                80 drivers/i2c/busses/i2c-simtec.c 	size = resource_size(res);
res                82 drivers/i2c/busses/i2c-simtec.c 	pd->ioarea = request_mem_region(res->start, size, dev->name);
res                89 drivers/i2c/busses/i2c-simtec.c 	pd->reg = ioremap(res->start, size);
res               811 drivers/i2c/busses/i2c-st.c 	struct resource *res;
res               820 drivers/i2c/busses/i2c-st.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               821 drivers/i2c/busses/i2c-st.c 	i2c_dev->base = devm_ioremap_resource(&pdev->dev, res);
res               862 drivers/i2c/busses/i2c-st.c 	snprintf(adap->name, sizeof(adap->name), "ST I2C(%pa)", &res->start);
res               760 drivers/i2c/busses/i2c-stm32f4.c 	struct resource *res;
res               770 drivers/i2c/busses/i2c-stm32f4.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               771 drivers/i2c/busses/i2c-stm32f4.c 	i2c_dev->base = devm_ioremap_resource(&pdev->dev, res);
res               837 drivers/i2c/busses/i2c-stm32f4.c 	snprintf(adap->name, sizeof(adap->name), "STM32 I2C(%pa)", &res->start);
res              1829 drivers/i2c/busses/i2c-stm32f7.c 	struct resource *res;
res              1840 drivers/i2c/busses/i2c-stm32f7.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1841 drivers/i2c/busses/i2c-stm32f7.c 	i2c_dev->base = devm_ioremap_resource(&pdev->dev, res);
res              1844 drivers/i2c/busses/i2c-stm32f7.c 	phy_addr = (dma_addr_t)res->start;
res              1944 drivers/i2c/busses/i2c-stm32f7.c 		 &res->start);
res               302 drivers/i2c/busses/i2c-stu300.c 	int res;
res               310 drivers/i2c/busses/i2c-stu300.c 	res = stu300_event_occurred(dev, dev->cmd_event);
res               311 drivers/i2c/busses/i2c-stu300.c 	if (res || dev->cmd_err != STU300_ERROR_NONE)
res               863 drivers/i2c/busses/i2c-stu300.c 	struct resource *res;
res               879 drivers/i2c/busses/i2c-stu300.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               880 drivers/i2c/busses/i2c-stu300.c 	dev->virtbase = devm_ioremap_resource(&pdev->dev, res);
res              1512 drivers/i2c/busses/i2c-tegra.c 	struct resource *res;
res              1520 drivers/i2c/busses/i2c-tegra.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1521 drivers/i2c/busses/i2c-tegra.c 	base_phys = res->start;
res              1522 drivers/i2c/busses/i2c-tegra.c 	base = devm_ioremap_resource(&pdev->dev, res);
res              1526 drivers/i2c/busses/i2c-tegra.c 	res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
res              1527 drivers/i2c/busses/i2c-tegra.c 	if (!res) {
res              1531 drivers/i2c/busses/i2c-tegra.c 	irq = res->start;
res                90 drivers/i2c/busses/i2c-via.c 	int res;
res               127 drivers/i2c/busses/i2c-via.c 	res = i2c_bit_add_bus(&vt586b_adapter);
res               128 drivers/i2c/busses/i2c-via.c 	if ( res < 0 ) {
res               131 drivers/i2c/busses/i2c-via.c 		return res;
res               375 drivers/i2c/busses/i2c-wmt.c 	struct resource *res;
res               383 drivers/i2c/busses/i2c-wmt.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               384 drivers/i2c/busses/i2c-wmt.c 	i2c_dev->base = devm_ioremap_resource(&pdev->dev, res);
res               729 drivers/i2c/busses/i2c-xiic.c 	struct resource *res;
res               738 drivers/i2c/busses/i2c-xiic.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               739 drivers/i2c/busses/i2c-xiic.c 	i2c->base = devm_ioremap_resource(&pdev->dev, res);
res               507 drivers/i2c/busses/i2c-xlp9xx.c 	struct resource *res;
res               514 drivers/i2c/busses/i2c-xlp9xx.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               515 drivers/i2c/busses/i2c-xlp9xx.c 	priv->base = devm_ioremap_resource(&pdev->dev, res);
res               365 drivers/i2c/busses/i2c-xlr.c 	struct resource *res;
res               383 drivers/i2c/busses/i2c-xlr.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               384 drivers/i2c/busses/i2c-xlr.c 	priv->iobase = devm_ioremap_resource(&pdev->dev, res);
res               505 drivers/i2c/busses/i2c-zx2967.c 	struct resource *res;
res               513 drivers/i2c/busses/i2c-zx2967.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               514 drivers/i2c/busses/i2c-zx2967.c 	reg_base = devm_ioremap_resource(&pdev->dev, res);
res               500 drivers/i2c/busses/scx200_acb.c 	struct resource *res;
res               502 drivers/i2c/busses/scx200_acb.c 	res = platform_get_resource(pdev, IORESOURCE_IO, 0);
res               503 drivers/i2c/busses/scx200_acb.c 	if (!res) {
res               508 drivers/i2c/busses/scx200_acb.c 	iface = scx200_create_dev("CS5535", res->start, 0, &pdev->dev);
res               943 drivers/i2c/i2c-core-base.c static void devm_i2c_release_dummy(struct device *dev, void *res)
res               945 drivers/i2c/i2c-core-base.c 	struct i2c_dummy_devres *this = res;
res              1066 drivers/i2c/i2c-core-base.c 	int res;
res              1082 drivers/i2c/i2c-core-base.c 	res = sscanf(++blank, "%hi%c", &info.addr, &end);
res              1083 drivers/i2c/i2c-core-base.c 	if (res < 1) {
res              1087 drivers/i2c/i2c-core-base.c 	if (res > 1  && end != '\n') {
res              1134 drivers/i2c/i2c-core-base.c 	int res;
res              1137 drivers/i2c/i2c-core-base.c 	res = sscanf(buf, "%hi%c", &addr, &end);
res              1138 drivers/i2c/i2c-core-base.c 	if (res < 1) {
res              1142 drivers/i2c/i2c-core-base.c 	if (res > 1  && end != '\n') {
res              1148 drivers/i2c/i2c-core-base.c 	res = -ENOENT;
res              1159 drivers/i2c/i2c-core-base.c 			res = count;
res              1165 drivers/i2c/i2c-core-base.c 	if (res < 0)
res              1168 drivers/i2c/i2c-core-base.c 	return res;
res              1319 drivers/i2c/i2c-core-base.c 	int res = -EINVAL;
res              1323 drivers/i2c/i2c-core-base.c 		res = -EAGAIN;
res              1350 drivers/i2c/i2c-core-base.c 	res = i2c_setup_host_notify_irq_domain(adap);
res              1351 drivers/i2c/i2c-core-base.c 	if (res) {
res              1353 drivers/i2c/i2c-core-base.c 		       adap->name, res);
res              1360 drivers/i2c/i2c-core-base.c 	res = device_register(&adap->dev);
res              1361 drivers/i2c/i2c-core-base.c 	if (res) {
res              1362 drivers/i2c/i2c-core-base.c 		pr_err("adapter '%s': can't register device (%d)\n", adap->name, res);
res              1366 drivers/i2c/i2c-core-base.c 	res = of_i2c_setup_smbus_alert(adap);
res              1367 drivers/i2c/i2c-core-base.c 	if (res)
res              1377 drivers/i2c/i2c-core-base.c 	res = class_compat_create_link(i2c_adapter_compat_class, &adap->dev,
res              1379 drivers/i2c/i2c-core-base.c 	if (res)
res              1409 drivers/i2c/i2c-core-base.c 	return res;
res              1683 drivers/i2c/i2c-core-base.c 	int res;
res              1686 drivers/i2c/i2c-core-base.c 	res = bus_for_each_dev(&i2c_bus_type, NULL, data, fn);
res              1689 drivers/i2c/i2c-core-base.c 	return res;
res              1707 drivers/i2c/i2c-core-base.c 	int res;
res              1721 drivers/i2c/i2c-core-base.c 	res = driver_register(&driver->driver);
res              1722 drivers/i2c/i2c-core-base.c 	if (res)
res              1723 drivers/i2c/i2c-core-base.c 		return res;
res               529 drivers/i2c/i2c-core-smbus.c 	s32 res;
res               531 drivers/i2c/i2c-core-smbus.c 	res = __i2c_lock_bus_helper(adapter);
res               532 drivers/i2c/i2c-core-smbus.c 	if (res)
res               533 drivers/i2c/i2c-core-smbus.c 		return res;
res               535 drivers/i2c/i2c-core-smbus.c 	res = __i2c_smbus_xfer(adapter, addr, flags, read_write,
res               539 drivers/i2c/i2c-core-smbus.c 	return res;
res               552 drivers/i2c/i2c-core-smbus.c 	s32 res;
res               554 drivers/i2c/i2c-core-smbus.c 	res = __i2c_check_suspended(adapter);
res               555 drivers/i2c/i2c-core-smbus.c 	if (res)
res               556 drivers/i2c/i2c-core-smbus.c 		return res;
res               579 drivers/i2c/i2c-core-smbus.c 		for (res = 0, try = 0; try <= adapter->retries; try++) {
res               580 drivers/i2c/i2c-core-smbus.c 			res = xfer_func(adapter, addr, flags, read_write,
res               582 drivers/i2c/i2c-core-smbus.c 			if (res != -EAGAIN)
res               589 drivers/i2c/i2c-core-smbus.c 		if (res != -EOPNOTSUPP || !adapter->algo->master_xfer)
res               597 drivers/i2c/i2c-core-smbus.c 	res = i2c_smbus_xfer_emulated(adapter, addr, flags, read_write,
res               603 drivers/i2c/i2c-core-smbus.c 			  command, protocol, data, res);
res               605 drivers/i2c/i2c-core-smbus.c 			   command, protocol, res);
res               607 drivers/i2c/i2c-core-smbus.c 	return res;
res               239 drivers/i2c/i2c-dev.c 	int i, res;
res               247 drivers/i2c/i2c-dev.c 	res = 0;
res               251 drivers/i2c/i2c-dev.c 			res = -EINVAL;
res               258 drivers/i2c/i2c-dev.c 			res = PTR_ERR(msgs[i].buf);
res               281 drivers/i2c/i2c-dev.c 				res = -EINVAL;
res               288 drivers/i2c/i2c-dev.c 	if (res < 0) {
res               294 drivers/i2c/i2c-dev.c 		return res;
res               297 drivers/i2c/i2c-dev.c 	res = i2c_transfer(client->adapter, msgs, nmsgs);
res               299 drivers/i2c/i2c-dev.c 		if (res >= 0 && (msgs[i].flags & I2C_M_RD)) {
res               302 drivers/i2c/i2c-dev.c 				res = -EFAULT;
res               308 drivers/i2c/i2c-dev.c 	return res;
res               316 drivers/i2c/i2c-dev.c 	int datasize, res;
res               381 drivers/i2c/i2c-dev.c 	res = i2c_smbus_xfer(client->adapter, client->addr, client->flags,
res               383 drivers/i2c/i2c-dev.c 	if (!res && ((size == I2C_SMBUS_PROC_CALL) ||
res               389 drivers/i2c/i2c-dev.c 	return res;
res               645 drivers/i2c/i2c-dev.c 	int res;
res               665 drivers/i2c/i2c-dev.c 	res = cdev_device_add(&i2c_dev->cdev, &i2c_dev->dev);
res               666 drivers/i2c/i2c-dev.c 	if (res) {
res               668 drivers/i2c/i2c-dev.c 		return res;
res               722 drivers/i2c/i2c-dev.c 	int res;
res               726 drivers/i2c/i2c-dev.c 	res = register_chrdev_region(MKDEV(I2C_MAJOR, 0), I2C_MINORS, "i2c");
res               727 drivers/i2c/i2c-dev.c 	if (res)
res               732 drivers/i2c/i2c-dev.c 		res = PTR_ERR(i2c_dev_class);
res               738 drivers/i2c/i2c-dev.c 	res = bus_register_notifier(&i2c_bus_type, &i2cdev_notifier);
res               739 drivers/i2c/i2c-dev.c 	if (res)
res               753 drivers/i2c/i2c-dev.c 	return res;
res               127 drivers/i2c/i2c-smbus.c 	int res, irq;
res               146 drivers/i2c/i2c-smbus.c 		res = devm_request_threaded_irq(&ara->dev, irq,
res               150 drivers/i2c/i2c-smbus.c 		if (res)
res               151 drivers/i2c/i2c-smbus.c 			return res;
res                85 drivers/i2c/muxes/i2c-mux-reg.c 	struct resource res;
res               139 drivers/i2c/muxes/i2c-mux-reg.c 	if (of_address_to_resource(np, 0, &res) == 0) {
res               140 drivers/i2c/muxes/i2c-mux-reg.c 		mux->data.reg_size = resource_size(&res);
res               141 drivers/i2c/muxes/i2c-mux-reg.c 		mux->data.reg = devm_ioremap_resource(&pdev->dev, &res);
res               161 drivers/i2c/muxes/i2c-mux-reg.c 	struct resource *res;
res               190 drivers/i2c/muxes/i2c-mux-reg.c 		res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               191 drivers/i2c/muxes/i2c-mux-reg.c 		mux->data.reg_size = resource_size(res);
res               192 drivers/i2c/muxes/i2c-mux-reg.c 		mux->data.reg = devm_ioremap_resource(&pdev->dev, res);
res              1103 drivers/i3c/master/dw-i3c-master.c 	struct resource *res;
res              1110 drivers/i3c/master/dw-i3c-master.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1111 drivers/i3c/master/dw-i3c-master.c 	master->regs = devm_ioremap_resource(&pdev->dev, res);
res              1527 drivers/i3c/master/i3c-master-cdns.c 	struct resource *res;
res              1535 drivers/i3c/master/i3c-master-cdns.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1536 drivers/i3c/master/i3c-master-cdns.c 	master->regs = devm_ioremap_resource(&pdev->dev, res);
res               504 drivers/ide/au1xxx-ide.c 	struct resource *res;
res               518 drivers/ide/au1xxx-ide.c 	res = platform_get_resource(dev, IORESOURCE_MEM, 0);
res               520 drivers/ide/au1xxx-ide.c 	if (res == NULL) {
res               531 drivers/ide/au1xxx-ide.c 	if (!request_mem_region(res->start, resource_size(res), dev->name)) {
res               537 drivers/ide/au1xxx-ide.c 	ahwif->regbase = (u32)ioremap(res->start, resource_size(res));
res               543 drivers/ide/au1xxx-ide.c 	res = platform_get_resource(dev, IORESOURCE_DMA, 0);
res               544 drivers/ide/au1xxx-ide.c 	if (!res) {
res               549 drivers/ide/au1xxx-ide.c 	ahwif->ddma_id = res->start;
res               572 drivers/ide/au1xxx-ide.c 	struct resource *res;
res               580 drivers/ide/au1xxx-ide.c 	res = platform_get_resource(dev, IORESOURCE_MEM, 0);
res               581 drivers/ide/au1xxx-ide.c 	release_mem_region(res->start, resource_size(res));
res               119 drivers/ide/gayle.c 	struct resource *res;
res               128 drivers/ide/gayle.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               129 drivers/ide/gayle.c 	if (!res)
res               132 drivers/ide/gayle.c 	if (!request_mem_region(res->start, resource_size(res), "IDE"))
res               164 drivers/ide/gayle.c 	release_mem_region(res->start, resource_size(res));
res               171 drivers/ide/gayle.c 	struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               174 drivers/ide/gayle.c 	release_mem_region(res->start, resource_size(res));
res               134 drivers/ide/tx4938ide.c 	struct resource *res;
res               143 drivers/ide/tx4938ide.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               144 drivers/ide/tx4938ide.c 	if (!res)
res               147 drivers/ide/tx4938ide.c 	if (!devm_request_mem_region(&pdev->dev, res->start,
res               148 drivers/ide/tx4938ide.c 				     resource_size(res), "tx4938ide"))
res               150 drivers/ide/tx4938ide.c 	mapbase = (unsigned long)devm_ioremap(&pdev->dev, res->start,
res               153 drivers/ide/tx4938ide.c 					     res->start + 0x10000 +
res               540 drivers/ide/tx4939ide.c 	struct resource *res;
res               547 drivers/ide/tx4939ide.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               548 drivers/ide/tx4939ide.c 	if (!res)
res               551 drivers/ide/tx4939ide.c 	if (!devm_request_mem_region(&pdev->dev, res->start,
res               552 drivers/ide/tx4939ide.c 				     resource_size(res), "tx4938ide"))
res               554 drivers/ide/tx4939ide.c 	mapbase = (unsigned long)devm_ioremap(&pdev->dev, res->start,
res               555 drivers/ide/tx4939ide.c 					      resource_size(res));
res               426 drivers/iio/accel/adxl372.c 	unsigned int reg_val_h, reg_val_l, res, scale_factor;
res               438 drivers/iio/accel/adxl372.c 	res = DIV_ROUND_CLOSEST(inact_time_ms, scale_factor);
res               439 drivers/iio/accel/adxl372.c 	reg_val_h = (res >> 8) & 0xFF;
res               440 drivers/iio/accel/adxl372.c 	reg_val_l = res & 0xFF;
res               266 drivers/iio/adc/ad7124.c 	unsigned int res;
res               269 drivers/iio/adc/ad7124.c 	res = ad7124_find_closest_match(ad7124_gain,
res               273 drivers/iio/adc/ad7124.c 				    AD7124_CONFIG_PGA(res), 2);
res               277 drivers/iio/adc/ad7124.c 	st->channel_config[channel].pga_bits = res;
res               334 drivers/iio/adc/ad7124.c 	unsigned int res, gain, full_scale, vref;
res               352 drivers/iio/adc/ad7124.c 		res = DIV_ROUND_CLOSEST(vref, full_scale);
res               353 drivers/iio/adc/ad7124.c 		gain = DIV_ROUND_CLOSEST(res, val2);
res                50 drivers/iio/adc/ad7606_par.c 	struct resource *res;
res                59 drivers/iio/adc/ad7606_par.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                60 drivers/iio/adc/ad7606_par.c 	addr = devm_ioremap_resource(&pdev->dev, res);
res                64 drivers/iio/adc/ad7606_par.c 	remap_size = resource_size(res);
res               296 drivers/iio/adc/ad7768-1.c 	int res, ret;
res               301 drivers/iio/adc/ad7768-1.c 	res = DIV_ROUND_CLOSEST(st->mclk_freq, freq);
res               305 drivers/iio/adc/ad7768-1.c 		diff_new = abs(res - ad7768_clk_config[i].clk_div);
res               176 drivers/iio/adc/aspeed_adc.c 	struct resource *res;
res               188 drivers/iio/adc/aspeed_adc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               189 drivers/iio/adc/aspeed_adc.c 	data->base = devm_ioremap_resource(&pdev->dev, res);
res              1654 drivers/iio/adc/at91-sama5d2_adc.c 	struct resource	*res;
res              1731 drivers/iio/adc/at91-sama5d2_adc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1732 drivers/iio/adc/at91-sama5d2_adc.c 	if (!res)
res              1736 drivers/iio/adc/at91-sama5d2_adc.c 	st->dma_st.phys_addr = res->start;
res              1738 drivers/iio/adc/at91-sama5d2_adc.c 	st->base = devm_ioremap_resource(&pdev->dev, res);
res               214 drivers/iio/adc/at91_adc.c 	u32			res;		/* resolution used for convertions */
res               298 drivers/iio/adc/at91_adc.c 	unsigned int xyz_mask_bits = st->res;
res               501 drivers/iio/adc/at91_adc.c 		chan->scan_type.realbits = st->res;
res               776 drivers/iio/adc/at91_adc.c 		st->res = resolutions[i];
res               782 drivers/iio/adc/at91_adc.c 		dev_info(&idev->dev, "Resolution used: %u bits\n", st->res);
res              1155 drivers/iio/adc/at91_adc.c 	struct resource *res;
res              1185 drivers/iio/adc/at91_adc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1187 drivers/iio/adc/at91_adc.c 	st->reg_base = devm_ioremap_resource(&pdev->dev, res);
res               313 drivers/iio/adc/cc10001_adc.c 	struct resource *res;
res               343 drivers/iio/adc/cc10001_adc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               344 drivers/iio/adc/cc10001_adc.c 	adc_dev->reg_base = devm_ioremap_resource(&pdev->dev, res);
res               159 drivers/iio/adc/ep93xx_adc.c 	struct resource *res;
res               166 drivers/iio/adc/ep93xx_adc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               167 drivers/iio/adc/ep93xx_adc.c 	priv->base = devm_ioremap_resource(&pdev->dev, res);
res               297 drivers/iio/adc/fsl-imx25-gcq.c 	struct resource *res;
res               308 drivers/iio/adc/fsl-imx25-gcq.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               309 drivers/iio/adc/fsl-imx25-gcq.c 	mem = devm_ioremap_resource(dev, res);
res               122 drivers/iio/adc/lpc18xx_adc.c 	struct resource *res;
res               136 drivers/iio/adc/lpc18xx_adc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               137 drivers/iio/adc/lpc18xx_adc.c 	adc->base = devm_ioremap_resource(&pdev->dev, res);
res               144 drivers/iio/adc/lpc32xx_adc.c 	struct resource *res;
res               149 drivers/iio/adc/lpc32xx_adc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               150 drivers/iio/adc/lpc32xx_adc.c 	if (!res) {
res               161 drivers/iio/adc/lpc32xx_adc.c 	st->adc_base = devm_ioremap(&pdev->dev, res->start,
res               162 drivers/iio/adc/lpc32xx_adc.c 				    resource_size(res));
res              1190 drivers/iio/adc/meson_saradc.c 	struct resource *res;
res              1217 drivers/iio/adc/meson_saradc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1218 drivers/iio/adc/meson_saradc.c 	base = devm_ioremap_resource(&pdev->dev, res);
res               240 drivers/iio/adc/mt6577_auxadc.c 	struct resource *res;
res               256 drivers/iio/adc/mt6577_auxadc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               257 drivers/iio/adc/mt6577_auxadc.c 	adc_dev->reg_base = devm_ioremap_resource(&pdev->dev, res);
res               186 drivers/iio/adc/npcm_adc.c 	struct resource *res;
res               199 drivers/iio/adc/npcm_adc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               200 drivers/iio/adc/npcm_adc.c 	info->regs = devm_ioremap_resource(&pdev->dev, res);
res               492 drivers/iio/adc/qcom-spmi-iadc.c 	u32 res;
res               508 drivers/iio/adc/qcom-spmi-iadc.c 	ret = of_property_read_u32(node, "reg", &res);
res               512 drivers/iio/adc/qcom-spmi-iadc.c 	iadc->base = res;
res               263 drivers/iio/adc/spear_adc.c 	struct resource *res;
res               282 drivers/iio/adc/spear_adc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               283 drivers/iio/adc/spear_adc.c 	st->adc_base_spear6xx = devm_ioremap_resource(&pdev->dev, res);
res               647 drivers/iio/adc/stm32-adc-core.c 	struct resource *res;
res               661 drivers/iio/adc/stm32-adc-core.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               662 drivers/iio/adc/stm32-adc-core.c 	priv->common.base = devm_ioremap_resource(&pdev->dev, res);
res               665 drivers/iio/adc/stm32-adc-core.c 	priv->common.phys_base = res->start;
res               135 drivers/iio/adc/stm32-adc.c 	const struct stm32_adc_regs res;
res               203 drivers/iio/adc/stm32-adc.c 	u32			res;
res               345 drivers/iio/adc/stm32-adc.c 	.res = { STM32F4_ADC_CR1, STM32F4_RES_MASK, STM32F4_RES_SHIFT },
res               437 drivers/iio/adc/stm32-adc.c 	.res = { STM32H7_ADC_CFGR, STM32H7_RES_MASK, STM32H7_RES_SHIFT },
res               511 drivers/iio/adc/stm32-adc.c 	const struct stm32_adc_regs *res = &adc->cfg->regs->res;
res               514 drivers/iio/adc/stm32-adc.c 	val = stm32_adc_readl(adc, res->reg);
res               515 drivers/iio/adc/stm32-adc.c 	val = (val & ~res->mask) | (adc->res << res->shift);
res               516 drivers/iio/adc/stm32-adc.c 	stm32_adc_writel(adc, res->reg, val);
res              1105 drivers/iio/adc/stm32-adc.c 				 int *res)
res              1151 drivers/iio/adc/stm32-adc.c 		*res = adc->buffer[0];
res              1582 drivers/iio/adc/stm32-adc.c 	u32 res;
res              1584 drivers/iio/adc/stm32-adc.c 	if (of_property_read_u32(node, "assigned-resolution-bits", &res))
res              1585 drivers/iio/adc/stm32-adc.c 		res = adc->cfg->adc_info->resolutions[0];
res              1588 drivers/iio/adc/stm32-adc.c 		if (res == adc->cfg->adc_info->resolutions[i])
res              1591 drivers/iio/adc/stm32-adc.c 		dev_err(&indio_dev->dev, "Bad resolution: %u bits\n", res);
res              1595 drivers/iio/adc/stm32-adc.c 	dev_dbg(&indio_dev->dev, "Using %u bits resolution\n", res);
res              1596 drivers/iio/adc/stm32-adc.c 	adc->res = i;
res              1642 drivers/iio/adc/stm32-adc.c 	chan->scan_type.realbits = adc->cfg->adc_info->resolutions[adc->res];
res               195 drivers/iio/adc/stm32-dfsdm-adc.c 	u64 res, max;
res               241 drivers/iio/adc/stm32-dfsdm-adc.c 			res = fosr;
res               243 drivers/iio/adc/stm32-dfsdm-adc.c 				res = res * (u64)fosr;
res               244 drivers/iio/adc/stm32-dfsdm-adc.c 				if (res > DFSDM_DATA_MAX)
res               247 drivers/iio/adc/stm32-dfsdm-adc.c 			if (res > DFSDM_DATA_MAX)
res               250 drivers/iio/adc/stm32-dfsdm-adc.c 			res = res * (u64)m * (u64)iosr;
res               251 drivers/iio/adc/stm32-dfsdm-adc.c 			if (res > DFSDM_DATA_MAX)
res               254 drivers/iio/adc/stm32-dfsdm-adc.c 			if (res >= flo->res) {
res               255 drivers/iio/adc/stm32-dfsdm-adc.c 				flo->res = res;
res               259 drivers/iio/adc/stm32-dfsdm-adc.c 				bits = fls(flo->res);
res               261 drivers/iio/adc/stm32-dfsdm-adc.c 				max = flo->res << 8;
res               264 drivers/iio/adc/stm32-dfsdm-adc.c 				if (flo->res > BIT(bits - 1))
res               299 drivers/iio/adc/stm32-dfsdm-adc.c 					 flo->res, bits, flo->rshift,
res               305 drivers/iio/adc/stm32-dfsdm-adc.c 	if (!flo->res)
res               470 drivers/iio/adc/stm32-dfsdm-adc.c 		if (fl->flo[1].res >= fl->flo[0].res) {
res               476 drivers/iio/adc/stm32-dfsdm-adc.c 	if (!flo->res)
res              1141 drivers/iio/adc/stm32-dfsdm-adc.c 				   const struct iio_chan_spec *chan, int *res)
res              1149 drivers/iio/adc/stm32-dfsdm-adc.c 	adc->buffer = res;
res              1185 drivers/iio/adc/stm32-dfsdm-adc.c 	stm32_dfsdm_process_data(adc, res);
res               221 drivers/iio/adc/stm32-dfsdm-core.c 	struct resource *res;
res               229 drivers/iio/adc/stm32-dfsdm-core.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               230 drivers/iio/adc/stm32-dfsdm-core.c 	if (!res) {
res               234 drivers/iio/adc/stm32-dfsdm-core.c 	priv->dfsdm.phys_base = res->start;
res               235 drivers/iio/adc/stm32-dfsdm-core.c 	priv->dfsdm.base = devm_ioremap_resource(&pdev->dev, res);
res               259 drivers/iio/adc/stm32-dfsdm.h 	u64 res;
res                56 drivers/iio/adc/ti-adc108s102.c #define ADC108S102_RES_DATA(res)	((u16)res & GENMASK(11, 0))
res               382 drivers/iio/adc/ti-ads1015.c 	int chan, ret, res;
res               389 drivers/iio/adc/ti-ads1015.c 	ret = ads1015_get_adc_result(data, chan, &res);
res               395 drivers/iio/adc/ti-ads1015.c 	buf[0] = res;
res               332 drivers/iio/adc/twl4030-madc.c 	int temp, curr, volt, res, ret;
res               343 drivers/iio/adc/twl4030-madc.c 	res = volt * 1000 / curr;
res               347 drivers/iio/adc/twl4030-madc.c 		if ((actual - res) >= 0)
res               451 drivers/iio/adc/twl6030-gpadc.c 		int channel, int *res)
res               468 drivers/iio/adc/twl6030-gpadc.c 		*res = twl6030_gpadc_make_correction(gpadc, channel, raw_code);
res               470 drivers/iio/adc/twl6030-gpadc.c 		*res = raw_code;
res               140 drivers/iio/buffer/industrialio-hw-consumer.c static void devm_iio_hw_consumer_release(struct device *dev, void *res)
res               142 drivers/iio/buffer/industrialio-hw-consumer.c 	iio_hw_consumer_free(*(struct iio_hw_consumer **)res);
res               145 drivers/iio/buffer/industrialio-hw-consumer.c static int devm_iio_hw_consumer_match(struct device *dev, void *res, void *data)
res               147 drivers/iio/buffer/industrialio-hw-consumer.c 	struct iio_hw_consumer **r = res;
res                98 drivers/iio/buffer/industrialio-triggered-buffer.c static void devm_iio_triggered_buffer_clean(struct device *dev, void *res)
res               100 drivers/iio/buffer/industrialio-triggered-buffer.c 	iio_triggered_buffer_cleanup(*(struct iio_dev **)res);
res               178 drivers/iio/buffer/kfifo_buf.c static void devm_iio_kfifo_release(struct device *dev, void *res)
res               180 drivers/iio/buffer/kfifo_buf.c 	iio_kfifo_free(*(struct iio_buffer **)res);
res               183 drivers/iio/buffer/kfifo_buf.c static int devm_iio_kfifo_match(struct device *dev, void *res, void *data)
res               185 drivers/iio/buffer/kfifo_buf.c 	struct iio_buffer **r = res;
res               312 drivers/iio/common/hid-sensors/hid-sensor-attributes.c 	int res;
res               317 drivers/iio/common/hid-sensors/hid-sensor-attributes.c 		res = 0;
res               325 drivers/iio/common/hid-sensors/hid-sensor-attributes.c 			res += int_pow(10, exp - 1 - i) * x;
res               328 drivers/iio/common/hid-sensors/hid-sensor-attributes.c 		*val0 += res;
res               339 drivers/iio/common/hid-sensors/hid-sensor-attributes.c 		res = 0;
res               343 drivers/iio/common/hid-sensors/hid-sensor-attributes.c 			res += int_pow(10, 8 - exp - i) * x;
res               346 drivers/iio/common/hid-sensors/hid-sensor-attributes.c 		*val1 = rem * int_pow(10, 9 - exp) + res;
res               398 drivers/iio/dac/ad5758.c 	int i, res;
res               425 drivers/iio/dac/ad5758.c 		res = ad5758_find_closest_match(ad5758_sr_step,
res               430 drivers/iio/dac/ad5758.c 		do_div(calc_slew_time, ad5758_sr_step[res]);
res               441 drivers/iio/dac/ad5758.c 			sr_step_idx = res;
res               109 drivers/iio/dac/lpc18xx_dac.c 	struct resource *res;
res               120 drivers/iio/dac/lpc18xx_dac.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               121 drivers/iio/dac/lpc18xx_dac.c 	dac->base = devm_ioremap_resource(&pdev->dev, res);
res                38 drivers/iio/dac/m62332.c 	int res;
res                49 drivers/iio/dac/m62332.c 		res = regulator_enable(data->vcc);
res                50 drivers/iio/dac/m62332.c 		if (res)
res                54 drivers/iio/dac/m62332.c 	res = i2c_master_send(client, outbuf, ARRAY_SIZE(outbuf));
res                55 drivers/iio/dac/m62332.c 	if (res >= 0 && res != ARRAY_SIZE(outbuf))
res                56 drivers/iio/dac/m62332.c 		res = -EIO;
res                57 drivers/iio/dac/m62332.c 	if (res < 0)
res                72 drivers/iio/dac/m62332.c 	return res;
res                49 drivers/iio/dac/max517.c 	int res;
res                57 drivers/iio/dac/max517.c 	res = i2c_master_send(client, outbuf, 2);
res                58 drivers/iio/dac/max517.c 	if (res < 0)
res                59 drivers/iio/dac/max517.c 		return res;
res                60 drivers/iio/dac/max517.c 	else if (res != 2)
res                59 drivers/iio/dac/stm32-dac-core.c 	struct resource *res;
res                72 drivers/iio/dac/stm32-dac-core.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                73 drivers/iio/dac/stm32-dac-core.c 	mmio = devm_ioremap_resource(dev, res);
res              1475 drivers/iio/industrialio-core.c static void devm_iio_device_release(struct device *dev, void *res)
res              1477 drivers/iio/industrialio-core.c 	iio_device_free(*(struct iio_dev **)res);
res              1480 drivers/iio/industrialio-core.c int devm_iio_device_match(struct device *dev, void *res, void *data)
res              1482 drivers/iio/industrialio-core.c 	struct iio_dev **r = res;
res              1735 drivers/iio/industrialio-core.c static void devm_iio_device_unreg(struct device *dev, void *res)
res              1737 drivers/iio/industrialio-core.c 	iio_device_unregister(*(struct iio_dev **)res);
res               583 drivers/iio/industrialio-trigger.c static void devm_iio_trigger_release(struct device *dev, void *res)
res               585 drivers/iio/industrialio-trigger.c 	iio_trigger_free(*(struct iio_trigger **)res);
res               588 drivers/iio/industrialio-trigger.c static int devm_iio_trigger_match(struct device *dev, void *res, void *data)
res               590 drivers/iio/industrialio-trigger.c 	struct iio_trigger **r = res;
res               660 drivers/iio/industrialio-trigger.c static void devm_iio_trigger_unreg(struct device *dev, void *res)
res               662 drivers/iio/industrialio-trigger.c 	iio_trigger_unregister(*(struct iio_trigger **)res);
res               356 drivers/iio/inkern.c static void devm_iio_channel_free(struct device *dev, void *res)
res               358 drivers/iio/inkern.c 	struct iio_channel *channel = *(struct iio_channel **)res;
res               363 drivers/iio/inkern.c static int devm_iio_channel_match(struct device *dev, void *res, void *data)
res               365 drivers/iio/inkern.c 	struct iio_channel **r = res;
res               489 drivers/iio/inkern.c static void devm_iio_channel_free_all(struct device *dev, void *res)
res               491 drivers/iio/inkern.c 	struct iio_channel *channels = *(struct iio_channel **)res;
res                75 drivers/iio/light/cm3605.c 	int ret, res;
res                78 drivers/iio/light/cm3605.c 	ret = iio_read_channel_processed(cm3605->aout, &res);
res                82 drivers/iio/light/cm3605.c 	dev_dbg(cm3605->dev, "read %d mV from ADC\n", res);
res                90 drivers/iio/light/cm3605.c 	if (res < 30)
res                92 drivers/iio/light/cm3605.c 	if (res > CM3605_AOUT_MAX_MV)
res                96 drivers/iio/light/cm3605.c 	lux = res - 30;
res                76 drivers/iio/light/zopt2201.c 	u8 res;
res               117 drivers/iio/light/zopt2201.c 	u8 res; /* resolution register value */
res               146 drivers/iio/light/zopt2201.c 	u8 res; /* resolution register value */
res               195 drivers/iio/light/zopt2201.c 		unsigned long t = zopt2201_resolution[data->res].us;
res               272 drivers/iio/light/zopt2201.c 			(1 << (20 - zopt2201_resolution[data->res].bits)) /
res               288 drivers/iio/light/zopt2201.c 		*val2 *= (1 << (zopt2201_resolution[data->res].bits - 13));
res               295 drivers/iio/light/zopt2201.c 		*val2 = zopt2201_resolution[data->res].us;
res               302 drivers/iio/light/zopt2201.c static int zopt2201_set_resolution(struct zopt2201_data *data, u8 res)
res               307 drivers/iio/light/zopt2201.c 					(res << ZOPT2201_MEAS_RES_SHIFT) |
res               312 drivers/iio/light/zopt2201.c 	data->res = res;
res               354 drivers/iio/light/zopt2201.c 	ret = zopt2201_set_resolution(data, zopt2201_scale_als[idx].res);
res               384 drivers/iio/light/zopt2201.c 	ret = zopt2201_set_resolution(data, zopt2201_scale_als[idx].res);
res               126 drivers/iio/magnetometer/mmc35240.c 	enum mmc35240_resolution res;
res               237 drivers/iio/magnetometer/mmc35240.c 				 data->res << MMC35240_CTRL1_BW_SHIFT);
res               324 drivers/iio/magnetometer/mmc35240.c 	sens[AXIS_X] = mmc35240_props_table[data->res].sens[AXIS_X];
res               325 drivers/iio/magnetometer/mmc35240.c 	sens[AXIS_Y] = mmc35240_props_table[data->res].sens[AXIS_Y];
res               326 drivers/iio/magnetometer/mmc35240.c 	sens[AXIS_Z] = mmc35240_props_table[data->res].sens[AXIS_Z];
res               328 drivers/iio/magnetometer/mmc35240.c 	nfo = mmc35240_props_table[data->res].nfo;
res               506 drivers/iio/magnetometer/mmc35240.c 	data->res = MMC35240_16_BITS_SLOW;
res               738 drivers/infiniband/core/cache.c 	const struct ib_gid_attr *res = ERR_PTR(-ENOENT);
res               760 drivers/infiniband/core/cache.c 			res = &entry->attr;
res               765 drivers/infiniband/core/cache.c 	return res;
res               960 drivers/infiniband/core/cache.c 	int res = -EINVAL;
res               973 drivers/infiniband/core/cache.c 	res = 0;
res               977 drivers/infiniband/core/cache.c 	return res;
res               168 drivers/infiniband/core/cma.c struct rdma_cm_id *rdma_res_to_id(struct rdma_restrack_entry *res)
res               171 drivers/infiniband/core/cma.c 		container_of(res, struct rdma_id_private, res);
res               498 drivers/infiniband/core/cma.c 	if (id_priv->res.kern_name)
res               499 drivers/infiniband/core/cma.c 		rdma_restrack_kadd(&id_priv->res);
res               501 drivers/infiniband/core/cma.c 		rdma_restrack_uadd(&id_priv->res);
res               886 drivers/infiniband/core/cma.c 	rdma_restrack_set_task(&id_priv->res, caller);
res               887 drivers/infiniband/core/cma.c 	id_priv->res.type = RDMA_RESTRACK_CM_ID;
res              1414 drivers/infiniband/core/cma.c 	struct fib_result res;
res              1431 drivers/infiniband/core/cma.c 	err = fib_lookup(dev_net(net_dev), &fl4, &res, 0);
res              1432 drivers/infiniband/core/cma.c 	ret = err == 0 && FIB_RES_DEV(res) == net_dev;
res              1851 drivers/infiniband/core/cma.c 	rdma_restrack_del(&id_priv->res);
res              2021 drivers/infiniband/core/cma.c 			    listen_id_priv->res.kern_name);
res              2081 drivers/infiniband/core/cma.c 			      listen_id_priv->res.kern_name);
res              2358 drivers/infiniband/core/cma.c 				     listen_id->res.kern_name);
res              2480 drivers/infiniband/core/cma.c 			      id_priv->id.qp_type, id_priv->res.kern_name);
res              3632 drivers/infiniband/core/cma.c 	rdma_restrack_del(&id_priv->res);
res              4032 drivers/infiniband/core/cma.c 	rdma_restrack_set_task(&id_priv->res, caller);
res                97 drivers/infiniband/core/cma_priv.h 	struct rdma_restrack_entry     res;
res               119 drivers/infiniband/core/core_priv.h 			  struct ib_client_nl_info *res);
res               363 drivers/infiniband/core/core_priv.h 		qp->res.type = RDMA_RESTRACK_QP;
res               365 drivers/infiniband/core/core_priv.h 			rdma_restrack_uadd(&qp->res);
res               367 drivers/infiniband/core/core_priv.h 			rdma_restrack_kadd(&qp->res);
res               369 drivers/infiniband/core/core_priv.h 		qp->res.valid = false;
res                83 drivers/infiniband/core/counters.c 	counter->res.type  = RDMA_RESTRACK_COUNTER;
res               128 drivers/infiniband/core/counters.c 	rdma_restrack_del(&counter->res);
res               152 drivers/infiniband/core/counters.c 	if (!rdma_is_visible_in_pid_ns(&qp->res))
res               156 drivers/infiniband/core/counters.c 	if (task_pid_nr(counter->res.task) != task_pid_nr(qp->res.task))
res               224 drivers/infiniband/core/counters.c 	struct rdma_restrack_entry *res;
res               229 drivers/infiniband/core/counters.c 	rt = &dev->res[RDMA_RESTRACK_COUNTER];
res               231 drivers/infiniband/core/counters.c 	xa_for_each(&rt->xa, id, res) {
res               232 drivers/infiniband/core/counters.c 		if (!rdma_is_visible_in_pid_ns(res))
res               235 drivers/infiniband/core/counters.c 		counter = container_of(res, struct rdma_counter, res);
res               255 drivers/infiniband/core/counters.c 	if (rdma_is_kernel_res(&qp->res)) {
res               256 drivers/infiniband/core/counters.c 		rdma_restrack_set_task(&counter->res, qp->res.kern_name);
res               257 drivers/infiniband/core/counters.c 		rdma_restrack_kadd(&counter->res);
res               259 drivers/infiniband/core/counters.c 		rdma_restrack_attach_task(&counter->res, qp->res.task);
res               260 drivers/infiniband/core/counters.c 		rdma_restrack_uadd(&counter->res);
res               285 drivers/infiniband/core/counters.c 	if (!qp->res.valid)
res               360 drivers/infiniband/core/counters.c 	struct rdma_restrack_entry *res;
res               366 drivers/infiniband/core/counters.c 	rt = &dev->res[RDMA_RESTRACK_COUNTER];
res               368 drivers/infiniband/core/counters.c 	xa_for_each(&rt->xa, id, res) {
res               369 drivers/infiniband/core/counters.c 		if (!rdma_restrack_get(res))
res               374 drivers/infiniband/core/counters.c 		counter = container_of(res, struct rdma_counter, res);
res               383 drivers/infiniband/core/counters.c 		rdma_restrack_put(res);
res               411 drivers/infiniband/core/counters.c 	struct rdma_restrack_entry *res = NULL;
res               414 drivers/infiniband/core/counters.c 	res = rdma_restrack_get_byid(dev, RDMA_RESTRACK_QP, qp_num);
res               415 drivers/infiniband/core/counters.c 	if (IS_ERR(res))
res               418 drivers/infiniband/core/counters.c 	if (!rdma_is_visible_in_pid_ns(res))
res               421 drivers/infiniband/core/counters.c 	qp = container_of(res, struct ib_qp, res);
res               428 drivers/infiniband/core/counters.c 	rdma_restrack_put(res);
res               444 drivers/infiniband/core/counters.c 	struct rdma_restrack_entry *res;
res               447 drivers/infiniband/core/counters.c 	res = rdma_restrack_get_byid(dev, RDMA_RESTRACK_COUNTER, counter_id);
res               448 drivers/infiniband/core/counters.c 	if (IS_ERR(res))
res               451 drivers/infiniband/core/counters.c 	if (!rdma_is_visible_in_pid_ns(res)) {
res               452 drivers/infiniband/core/counters.c 		rdma_restrack_put(res);
res               456 drivers/infiniband/core/counters.c 	counter = container_of(res, struct rdma_counter, res);
res               458 drivers/infiniband/core/counters.c 	rdma_restrack_put(res);
res               488 drivers/infiniband/core/counters.c 	if (counter->res.task != qp->res.task) {
res               497 drivers/infiniband/core/counters.c 	rdma_restrack_put(&qp->res);
res               503 drivers/infiniband/core/counters.c 	rdma_restrack_put(&qp->res);
res               553 drivers/infiniband/core/counters.c 	rdma_restrack_put(&qp->res);
res               559 drivers/infiniband/core/counters.c 	rdma_restrack_put(&qp->res);
res               595 drivers/infiniband/core/counters.c 	rdma_restrack_put(&qp->res);
res               208 drivers/infiniband/core/cq.c 	cq->res.type = RDMA_RESTRACK_CQ;
res               209 drivers/infiniband/core/cq.c 	rdma_restrack_set_task(&cq->res, caller);
res               215 drivers/infiniband/core/cq.c 	rdma_restrack_kadd(&cq->res);
res               245 drivers/infiniband/core/cq.c 	rdma_restrack_del(&cq->res);
res               307 drivers/infiniband/core/cq.c 	rdma_restrack_del(&cq->res);
res              1810 drivers/infiniband/core/device.c 					  struct ib_client_nl_info *res)
res              1824 drivers/infiniband/core/device.c 		ret = client->get_global_nl_info(res);
res              1827 drivers/infiniband/core/device.c 		if (!ret && res->cdev)
res              1828 drivers/infiniband/core/device.c 			get_device(res->cdev);
res              1837 drivers/infiniband/core/device.c 				   struct ib_client_nl_info *res)
res              1854 drivers/infiniband/core/device.c 		ret = client->get_nl_info(ibdev, client_data, res);
res              1863 drivers/infiniband/core/device.c 		if (!ret && res->cdev)
res              1864 drivers/infiniband/core/device.c 			get_device(res->cdev);
res              1879 drivers/infiniband/core/device.c 			  struct ib_client_nl_info *res)
res              1884 drivers/infiniband/core/device.c 		ret = __ib_get_client_nl_info(ibdev, client_name, res);
res              1886 drivers/infiniband/core/device.c 		ret = __ib_get_global_client_nl_info(client_name, res);
res              1891 drivers/infiniband/core/device.c 			ret = __ib_get_client_nl_info(ibdev, client_name, res);
res              1893 drivers/infiniband/core/device.c 			ret = __ib_get_global_client_nl_info(client_name, res);
res              1902 drivers/infiniband/core/device.c 	if (WARN_ON(!res->cdev))
res              2185 drivers/infiniband/core/device.c 	struct net_device *res;
res              2197 drivers/infiniband/core/device.c 		res = ib_dev->ops.get_netdev(ib_dev, port);
res              2200 drivers/infiniband/core/device.c 		res = rcu_dereference_protected(
res              2202 drivers/infiniband/core/device.c 		if (res)
res              2203 drivers/infiniband/core/device.c 			dev_hold(res);
res              2211 drivers/infiniband/core/device.c 	if (res && res->reg_state != NETREG_REGISTERED) {
res              2212 drivers/infiniband/core/device.c 		dev_put(res);
res              2216 drivers/infiniband/core/device.c 	return res;
res              2231 drivers/infiniband/core/device.c 	struct ib_device *res = NULL;
res              2241 drivers/infiniband/core/device.c 			res = cur->ib_dev;
res              2247 drivers/infiniband/core/device.c 	return res;
res               400 drivers/infiniband/core/nldev.c 			     struct rdma_restrack_entry *res)
res               406 drivers/infiniband/core/nldev.c 	if (rdma_is_kernel_res(res)) {
res               408 drivers/infiniband/core/nldev.c 		    res->kern_name))
res               412 drivers/infiniband/core/nldev.c 		    task_pid_vnr(res->task)))
res               419 drivers/infiniband/core/nldev.c 			   struct rdma_restrack_entry *res)
res               423 drivers/infiniband/core/nldev.c 	return dev->ops.fill_res_entry(msg, res);
res               427 drivers/infiniband/core/nldev.c 			     struct rdma_restrack_entry *res, uint32_t port)
res               429 drivers/infiniband/core/nldev.c 	struct ib_qp *qp = container_of(res, struct ib_qp, res);
res               472 drivers/infiniband/core/nldev.c 	if (!rdma_is_kernel_res(res) &&
res               473 drivers/infiniband/core/nldev.c 	    nla_put_u32(msg, RDMA_NLDEV_ATTR_RES_PDN, qp->pd->res.id))
res               476 drivers/infiniband/core/nldev.c 	if (fill_res_name_pid(msg, res))
res               479 drivers/infiniband/core/nldev.c 	if (fill_res_entry(dev, msg, res))
res               488 drivers/infiniband/core/nldev.c 				struct rdma_restrack_entry *res, uint32_t port)
res               491 drivers/infiniband/core/nldev.c 				container_of(res, struct rdma_id_private, res);
res               526 drivers/infiniband/core/nldev.c 	if (nla_put_u32(msg, RDMA_NLDEV_ATTR_RES_CM_IDN, res->id))
res               529 drivers/infiniband/core/nldev.c 	if (fill_res_name_pid(msg, res))
res               532 drivers/infiniband/core/nldev.c 	if (fill_res_entry(dev, msg, res))
res               541 drivers/infiniband/core/nldev.c 			     struct rdma_restrack_entry *res, uint32_t port)
res               543 drivers/infiniband/core/nldev.c 	struct ib_cq *cq = container_of(res, struct ib_cq, res);
res               553 drivers/infiniband/core/nldev.c 	if (rdma_is_kernel_res(res) &&
res               560 drivers/infiniband/core/nldev.c 	if (nla_put_u32(msg, RDMA_NLDEV_ATTR_RES_CQN, res->id))
res               562 drivers/infiniband/core/nldev.c 	if (!rdma_is_kernel_res(res) &&
res               564 drivers/infiniband/core/nldev.c 			cq->uobject->context->res.id))
res               567 drivers/infiniband/core/nldev.c 	if (fill_res_name_pid(msg, res))
res               570 drivers/infiniband/core/nldev.c 	if (fill_res_entry(dev, msg, res))
res               579 drivers/infiniband/core/nldev.c 			     struct rdma_restrack_entry *res, uint32_t port)
res               581 drivers/infiniband/core/nldev.c 	struct ib_mr *mr = container_of(res, struct ib_mr, res);
res               595 drivers/infiniband/core/nldev.c 	if (nla_put_u32(msg, RDMA_NLDEV_ATTR_RES_MRN, res->id))
res               598 drivers/infiniband/core/nldev.c 	if (!rdma_is_kernel_res(res) &&
res               599 drivers/infiniband/core/nldev.c 	    nla_put_u32(msg, RDMA_NLDEV_ATTR_RES_PDN, mr->pd->res.id))
res               602 drivers/infiniband/core/nldev.c 	if (fill_res_name_pid(msg, res))
res               605 drivers/infiniband/core/nldev.c 	if (fill_res_entry(dev, msg, res))
res               614 drivers/infiniband/core/nldev.c 			     struct rdma_restrack_entry *res, uint32_t port)
res               616 drivers/infiniband/core/nldev.c 	struct ib_pd *pd = container_of(res, struct ib_pd, res);
res               632 drivers/infiniband/core/nldev.c 	if (nla_put_u32(msg, RDMA_NLDEV_ATTR_RES_PDN, res->id))
res               635 drivers/infiniband/core/nldev.c 	if (!rdma_is_kernel_res(res) &&
res               637 drivers/infiniband/core/nldev.c 			pd->uobject->context->res.id))
res               640 drivers/infiniband/core/nldev.c 	if (fill_res_name_pid(msg, res))
res               643 drivers/infiniband/core/nldev.c 	if (fill_res_entry(dev, msg, res))
res               689 drivers/infiniband/core/nldev.c 	struct rdma_restrack_entry *res;
res               698 drivers/infiniband/core/nldev.c 	rt = &counter->device->res[RDMA_RESTRACK_QP];
res               700 drivers/infiniband/core/nldev.c 	xa_for_each(&rt->xa, id, res) {
res               701 drivers/infiniband/core/nldev.c 		if (!rdma_is_visible_in_pid_ns(res))
res               704 drivers/infiniband/core/nldev.c 		qp = container_of(res, struct ib_qp, res);
res               774 drivers/infiniband/core/nldev.c 				  struct rdma_restrack_entry *res,
res               778 drivers/infiniband/core/nldev.c 		container_of(res, struct rdma_counter, res);
res               788 drivers/infiniband/core/nldev.c 	    fill_res_name_pid(msg, &counter->res) ||
res              1125 drivers/infiniband/core/nldev.c 			     struct rdma_restrack_entry *res, u32 port);
res              1191 drivers/infiniband/core/nldev.c 	struct rdma_restrack_entry *res;
res              1223 drivers/infiniband/core/nldev.c 	res = rdma_restrack_get_byid(device, res_type, id);
res              1224 drivers/infiniband/core/nldev.c 	if (IS_ERR(res)) {
res              1225 drivers/infiniband/core/nldev.c 		ret = PTR_ERR(res);
res              1229 drivers/infiniband/core/nldev.c 	if (!rdma_is_visible_in_pid_ns(res)) {
res              1250 drivers/infiniband/core/nldev.c 	ret = fe->fill_res_func(msg, has_cap_net_admin, res, port);
res              1254 drivers/infiniband/core/nldev.c 	rdma_restrack_put(res);
res              1262 drivers/infiniband/core/nldev.c 	rdma_restrack_put(res);
res              1274 drivers/infiniband/core/nldev.c 	struct rdma_restrack_entry *res;
res              1333 drivers/infiniband/core/nldev.c 	rt = &device->res[res_type];
res              1340 drivers/infiniband/core/nldev.c 	xa_for_each(&rt->xa, id, res) {
res              1341 drivers/infiniband/core/nldev.c 		if (!rdma_is_visible_in_pid_ns(res))
res              1344 drivers/infiniband/core/nldev.c 		if (idx < start || !rdma_restrack_get(res))
res              1354 drivers/infiniband/core/nldev.c 			rdma_restrack_put(res);
res              1358 drivers/infiniband/core/nldev.c 		ret = fe->fill_res_func(skb, has_cap_net_admin, res, port);
res              1359 drivers/infiniband/core/nldev.c 		rdma_restrack_put(res);
res               823 drivers/infiniband/core/rdma_core.c 	rdma_restrack_del(&ucontext->res);
res               171 drivers/infiniband/core/rdma_core.h 	const struct uverbs_api_object *res;
res               176 drivers/infiniband/core/rdma_core.h 	res = radix_tree_lookup(&uapi->radix, uapi_key_obj(object_id));
res               177 drivers/infiniband/core/rdma_core.h 	if (!res)
res               180 drivers/infiniband/core/rdma_core.h 	return res;
res                28 drivers/infiniband/core/restrack.c 	dev->res = kcalloc(RDMA_RESTRACK_MAX, sizeof(*rt), GFP_KERNEL);
res                29 drivers/infiniband/core/restrack.c 	if (!dev->res)
res                32 drivers/infiniband/core/restrack.c 	rt = dev->res;
res                61 drivers/infiniband/core/restrack.c 	struct rdma_restrack_root *rt = dev->res;
res                69 drivers/infiniband/core/restrack.c 		struct xarray *xa = &dev->res[i].xa;
res               113 drivers/infiniband/core/restrack.c 	struct rdma_restrack_root *rt = &dev->res[type];
res               129 drivers/infiniband/core/restrack.c static void set_kern_name(struct rdma_restrack_entry *res)
res               133 drivers/infiniband/core/restrack.c 	switch (res->type) {
res               135 drivers/infiniband/core/restrack.c 		pd = container_of(res, struct ib_qp, res)->pd;
res               139 drivers/infiniband/core/restrack.c 			res->kern_name = " ";
res               143 drivers/infiniband/core/restrack.c 		pd = container_of(res, struct ib_mr, res)->pd;
res               152 drivers/infiniband/core/restrack.c 		res->kern_name = pd->res.kern_name;
res               155 drivers/infiniband/core/restrack.c static struct ib_device *res_to_dev(struct rdma_restrack_entry *res)
res               157 drivers/infiniband/core/restrack.c 	switch (res->type) {
res               159 drivers/infiniband/core/restrack.c 		return container_of(res, struct ib_pd, res)->device;
res               161 drivers/infiniband/core/restrack.c 		return container_of(res, struct ib_cq, res)->device;
res               163 drivers/infiniband/core/restrack.c 		return container_of(res, struct ib_qp, res)->device;
res               165 drivers/infiniband/core/restrack.c 		return container_of(res, struct rdma_id_private,
res               166 drivers/infiniband/core/restrack.c 				    res)->id.device;
res               168 drivers/infiniband/core/restrack.c 		return container_of(res, struct ib_mr, res)->device;
res               170 drivers/infiniband/core/restrack.c 		return container_of(res, struct ib_ucontext, res)->device;
res               172 drivers/infiniband/core/restrack.c 		return container_of(res, struct rdma_counter, res)->device;
res               174 drivers/infiniband/core/restrack.c 		WARN_ONCE(true, "Wrong resource tracking type %u\n", res->type);
res               179 drivers/infiniband/core/restrack.c void rdma_restrack_set_task(struct rdma_restrack_entry *res,
res               183 drivers/infiniband/core/restrack.c 		res->kern_name = caller;
res               187 drivers/infiniband/core/restrack.c 	if (res->task)
res               188 drivers/infiniband/core/restrack.c 		put_task_struct(res->task);
res               190 drivers/infiniband/core/restrack.c 	res->task = current;
res               199 drivers/infiniband/core/restrack.c void rdma_restrack_attach_task(struct rdma_restrack_entry *res,
res               202 drivers/infiniband/core/restrack.c 	if (res->task)
res               203 drivers/infiniband/core/restrack.c 		put_task_struct(res->task);
res               205 drivers/infiniband/core/restrack.c 	res->task = task;
res               208 drivers/infiniband/core/restrack.c static void rdma_restrack_add(struct rdma_restrack_entry *res)
res               210 drivers/infiniband/core/restrack.c 	struct ib_device *dev = res_to_dev(res);
res               217 drivers/infiniband/core/restrack.c 	rt = &dev->res[res->type];
res               219 drivers/infiniband/core/restrack.c 	kref_init(&res->kref);
res               220 drivers/infiniband/core/restrack.c 	init_completion(&res->comp);
res               221 drivers/infiniband/core/restrack.c 	if (res->type == RDMA_RESTRACK_QP) {
res               223 drivers/infiniband/core/restrack.c 		struct ib_qp *qp = container_of(res, struct ib_qp, res);
res               225 drivers/infiniband/core/restrack.c 		ret = xa_insert(&rt->xa, qp->qp_num, res, GFP_KERNEL);
res               226 drivers/infiniband/core/restrack.c 		res->id = ret ? 0 : qp->qp_num;
res               227 drivers/infiniband/core/restrack.c 	} else if (res->type == RDMA_RESTRACK_COUNTER) {
res               231 drivers/infiniband/core/restrack.c 		counter = container_of(res, struct rdma_counter, res);
res               232 drivers/infiniband/core/restrack.c 		ret = xa_insert(&rt->xa, counter->id, res, GFP_KERNEL);
res               233 drivers/infiniband/core/restrack.c 		res->id = ret ? 0 : counter->id;
res               235 drivers/infiniband/core/restrack.c 		ret = xa_alloc_cyclic(&rt->xa, &res->id, res, xa_limit_32b,
res               240 drivers/infiniband/core/restrack.c 		res->valid = true;
res               247 drivers/infiniband/core/restrack.c void rdma_restrack_kadd(struct rdma_restrack_entry *res)
res               249 drivers/infiniband/core/restrack.c 	res->task = NULL;
res               250 drivers/infiniband/core/restrack.c 	set_kern_name(res);
res               251 drivers/infiniband/core/restrack.c 	res->user = false;
res               252 drivers/infiniband/core/restrack.c 	rdma_restrack_add(res);
res               260 drivers/infiniband/core/restrack.c void rdma_restrack_uadd(struct rdma_restrack_entry *res)
res               262 drivers/infiniband/core/restrack.c 	if ((res->type != RDMA_RESTRACK_CM_ID) &&
res               263 drivers/infiniband/core/restrack.c 	    (res->type != RDMA_RESTRACK_COUNTER))
res               264 drivers/infiniband/core/restrack.c 		res->task = NULL;
res               266 drivers/infiniband/core/restrack.c 	if (!res->task)
res               267 drivers/infiniband/core/restrack.c 		rdma_restrack_set_task(res, NULL);
res               268 drivers/infiniband/core/restrack.c 	res->kern_name = NULL;
res               270 drivers/infiniband/core/restrack.c 	res->user = true;
res               271 drivers/infiniband/core/restrack.c 	rdma_restrack_add(res);
res               275 drivers/infiniband/core/restrack.c int __must_check rdma_restrack_get(struct rdma_restrack_entry *res)
res               277 drivers/infiniband/core/restrack.c 	return kref_get_unless_zero(&res->kref);
res               293 drivers/infiniband/core/restrack.c 	struct rdma_restrack_root *rt = &dev->res[type];
res               294 drivers/infiniband/core/restrack.c 	struct rdma_restrack_entry *res;
res               297 drivers/infiniband/core/restrack.c 	res = xa_load(&rt->xa, id);
res               298 drivers/infiniband/core/restrack.c 	if (!res || !rdma_restrack_get(res))
res               299 drivers/infiniband/core/restrack.c 		res = ERR_PTR(-ENOENT);
res               302 drivers/infiniband/core/restrack.c 	return res;
res               308 drivers/infiniband/core/restrack.c 	struct rdma_restrack_entry *res;
res               310 drivers/infiniband/core/restrack.c 	res = container_of(kref, struct rdma_restrack_entry, kref);
res               311 drivers/infiniband/core/restrack.c 	complete(&res->comp);
res               314 drivers/infiniband/core/restrack.c int rdma_restrack_put(struct rdma_restrack_entry *res)
res               316 drivers/infiniband/core/restrack.c 	return kref_put(&res->kref, restrack_release);
res               320 drivers/infiniband/core/restrack.c void rdma_restrack_del(struct rdma_restrack_entry *res)
res               326 drivers/infiniband/core/restrack.c 	if (!res->valid)
res               329 drivers/infiniband/core/restrack.c 	dev = res_to_dev(res);
res               333 drivers/infiniband/core/restrack.c 	rt = &dev->res[res->type];
res               335 drivers/infiniband/core/restrack.c 	old = xa_erase(&rt->xa, res->id);
res               336 drivers/infiniband/core/restrack.c 	WARN_ON(old != res);
res               337 drivers/infiniband/core/restrack.c 	res->valid = false;
res               339 drivers/infiniband/core/restrack.c 	rdma_restrack_put(res);
res               340 drivers/infiniband/core/restrack.c 	wait_for_completion(&res->comp);
res               343 drivers/infiniband/core/restrack.c 	if (res->task) {
res               344 drivers/infiniband/core/restrack.c 		put_task_struct(res->task);
res               345 drivers/infiniband/core/restrack.c 		res->task = NULL;
res               350 drivers/infiniband/core/restrack.c bool rdma_is_visible_in_pid_ns(struct rdma_restrack_entry *res)
res               358 drivers/infiniband/core/restrack.c 	if (rdma_is_kernel_res(res))
res               362 drivers/infiniband/core/restrack.c 	return task_pid_vnr(res->task);
res                28 drivers/infiniband/core/restrack.h void rdma_restrack_attach_task(struct rdma_restrack_entry *res,
res                30 drivers/infiniband/core/restrack.h bool rdma_is_visible_in_pid_ns(struct rdma_restrack_entry *res);
res               151 drivers/infiniband/core/roce_gid_mgmt.c 	bool res;
res               161 drivers/infiniband/core/roce_gid_mgmt.c 	res = ((rdma_is_upper_dev_rcu(rdma_ndev, cookie) &&
res               167 drivers/infiniband/core/roce_gid_mgmt.c 	return res;
res               175 drivers/infiniband/core/roce_gid_mgmt.c 	bool res;
res               182 drivers/infiniband/core/roce_gid_mgmt.c 	res = is_eth_active_slave_of_bonding_rcu(rdma_ndev, master_dev) ==
res               186 drivers/infiniband/core/roce_gid_mgmt.c 	return res;
res               204 drivers/infiniband/core/roce_gid_mgmt.c 	bool res;
res               218 drivers/infiniband/core/roce_gid_mgmt.c 	res = ((cookie_ndev == rdma_ndev && !netif_is_bond_slave(rdma_ndev)) ||
res               223 drivers/infiniband/core/roce_gid_mgmt.c 	return res;
res               235 drivers/infiniband/core/roce_gid_mgmt.c 	bool res;
res               244 drivers/infiniband/core/roce_gid_mgmt.c 	res = rdma_is_upper_dev_rcu(rdma_ndev, cookie);
res               247 drivers/infiniband/core/roce_gid_mgmt.c 	return res;
res              1838 drivers/infiniband/core/ucma.c static int ucma_get_global_nl_info(struct ib_client_nl_info *res)
res              1840 drivers/infiniband/core/ucma.c 	res->abi = RDMA_USER_CM_ABI_VERSION;
res              1841 drivers/infiniband/core/ucma.c 	res->cdev = ucma_misc.this_device;
res              1147 drivers/infiniband/core/user_mad.c 			       struct ib_client_nl_info *res)
res              1149 drivers/infiniband/core/user_mad.c 	struct ib_umad_port *port = get_port(ibdev, client_data, res->port);
res              1154 drivers/infiniband/core/user_mad.c 	res->abi = IB_USER_MAD_ABI_VERSION;
res              1155 drivers/infiniband/core/user_mad.c 	res->cdev = &port->dev;
res              1168 drivers/infiniband/core/user_mad.c 			       struct ib_client_nl_info *res)
res              1170 drivers/infiniband/core/user_mad.c 	struct ib_umad_port *port = get_port(ibdev, client_data, res->port);
res              1175 drivers/infiniband/core/user_mad.c 	res->abi = IB_USER_MAD_ABI_VERSION;
res              1176 drivers/infiniband/core/user_mad.c 	res->cdev = &port->sm_dev;
res               302 drivers/infiniband/core/uverbs.h 	u32 res;
res               309 drivers/infiniband/core/uverbs.h 	res = attr->port_cap_flags & ~(u32)IB_UVERBS_PCF_IP_BASED_GIDS;
res               312 drivers/infiniband/core/uverbs.h 		res |= IB_UVERBS_PCF_IP_BASED_GIDS;
res               314 drivers/infiniband/core/uverbs.h 	return res;
res               162 drivers/infiniband/core/uverbs_cmd.c 	const void __user *res = iter->cur;
res               167 drivers/infiniband/core/uverbs_cmd.c 	return res;
res               246 drivers/infiniband/core/uverbs_cmd.c 	ucontext->res.type = RDMA_RESTRACK_CTX;
res               276 drivers/infiniband/core/uverbs_cmd.c 	rdma_restrack_uadd(&ucontext->res);
res               432 drivers/infiniband/core/uverbs_cmd.c 	pd->res.type = RDMA_RESTRACK_PD;
res               441 drivers/infiniband/core/uverbs_cmd.c 	rdma_restrack_uadd(&pd->res);
res               759 drivers/infiniband/core/uverbs_cmd.c 	mr->res.type = RDMA_RESTRACK_MR;
res               760 drivers/infiniband/core/uverbs_cmd.c 	rdma_restrack_uadd(&mr->res);
res              1043 drivers/infiniband/core/uverbs_cmd.c 	cq->res.type = RDMA_RESTRACK_CQ;
res              1044 drivers/infiniband/core/uverbs_cmd.c 	rdma_restrack_uadd(&cq->res);
res               111 drivers/infiniband/core/uverbs_ioctl.c 	void *res;
res               127 drivers/infiniband/core/uverbs_ioctl.c 	res = (void *)pbundle->internal_buffer + pbundle->internal_used;
res               131 drivers/infiniband/core/uverbs_ioctl.c 		memset(res, 0, size);
res               132 drivers/infiniband/core/uverbs_ioctl.c 	return res;
res              1155 drivers/infiniband/core/uverbs_main.c 				 struct ib_client_nl_info *res)
res              1160 drivers/infiniband/core/uverbs_main.c 	if (res->port != -1)
res              1163 drivers/infiniband/core/uverbs_main.c 	res->abi = ibdev->ops.uverbs_abi_ver;
res              1164 drivers/infiniband/core/uverbs_main.c 	res->cdev = &uverbs_dev->dev;
res              1173 drivers/infiniband/core/uverbs_main.c 		ret = nla_put_u32(res->nl_msg, RDMA_NLDEV_ATTR_UVERBS_DRIVER_ID,
res               126 drivers/infiniband/core/uverbs_std_types_cq.c 	cq->res.type = RDMA_RESTRACK_CQ;
res               134 drivers/infiniband/core/uverbs_std_types_cq.c 	rdma_restrack_uadd(&cq->res);
res               271 drivers/infiniband/core/verbs.c 	pd->res.type = RDMA_RESTRACK_PD;
res               272 drivers/infiniband/core/verbs.c 	rdma_restrack_set_task(&pd->res, caller);
res               279 drivers/infiniband/core/verbs.c 	rdma_restrack_kadd(&pd->res);
res               342 drivers/infiniband/core/verbs.c 	rdma_restrack_del(&pd->res);
res              1888 drivers/infiniband/core/verbs.c 	rdma_restrack_del(&qp->res);
res              1938 drivers/infiniband/core/verbs.c 	cq->res.type = RDMA_RESTRACK_CQ;
res              1939 drivers/infiniband/core/verbs.c 	rdma_restrack_set_task(&cq->res, caller);
res              1947 drivers/infiniband/core/verbs.c 	rdma_restrack_kadd(&cq->res);
res              1965 drivers/infiniband/core/verbs.c 	rdma_restrack_del(&cq->res);
res              1988 drivers/infiniband/core/verbs.c 	rdma_restrack_del(&mr->res);
res              2033 drivers/infiniband/core/verbs.c 		mr->res.type = RDMA_RESTRACK_MR;
res              2034 drivers/infiniband/core/verbs.c 		rdma_restrack_kadd(&mr->res);
res              2086 drivers/infiniband/core/verbs.c 	mr->res.type = RDMA_RESTRACK_MR;
res              2087 drivers/infiniband/core/verbs.c 	rdma_restrack_kadd(&mr->res);
res               778 drivers/infiniband/hw/bnxt_re/ib_verbs.c 	if (rdma_is_kernel_res(&qp->ib_qp.res)) {
res                85 drivers/infiniband/hw/bnxt_re/main.c 	rdev->rcfw.res = NULL;
res               101 drivers/infiniband/hw/bnxt_re/main.c 	rdev->rcfw.res = &rdev->qplib_res;
res               952 drivers/infiniband/hw/bnxt_re/main.c 		rdev->nq[i].res = NULL;
res               999 drivers/infiniband/hw/bnxt_re/main.c 		rdev->nq[i].res = &rdev->qplib_res;
res               174 drivers/infiniband/hw/bnxt_re/qplib_fp.c static void bnxt_qplib_free_qp_hdr_buf(struct bnxt_qplib_res *res,
res               181 drivers/infiniband/hw/bnxt_re/qplib_fp.c 		dma_free_coherent(&res->pdev->dev,
res               185 drivers/infiniband/hw/bnxt_re/qplib_fp.c 		dma_free_coherent(&res->pdev->dev,
res               196 drivers/infiniband/hw/bnxt_re/qplib_fp.c static int bnxt_qplib_alloc_qp_hdr_buf(struct bnxt_qplib_res *res,
res               204 drivers/infiniband/hw/bnxt_re/qplib_fp.c 		qp->sq_hdr_buf = dma_alloc_coherent(&res->pdev->dev,
res               210 drivers/infiniband/hw/bnxt_re/qplib_fp.c 			dev_err(&res->pdev->dev,
res               217 drivers/infiniband/hw/bnxt_re/qplib_fp.c 		qp->rq_hdr_buf = dma_alloc_coherent(&res->pdev->dev,
res               224 drivers/infiniband/hw/bnxt_re/qplib_fp.c 			dev_err(&res->pdev->dev,
res               232 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	bnxt_qplib_free_qp_hdr_buf(res, qp);
res               248 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	bool gen_p5 = bnxt_qplib_is_chip_gen_p5(nq->res->cctx);
res               343 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	bool gen_p5 = bnxt_qplib_is_chip_gen_p5(nq->res->cctx);
res               382 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	bool gen_p5 = bnxt_qplib_is_chip_gen_p5(nq->res->cctx);
res               480 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	hwq_type = bnxt_qplib_get_hwq_type(nq->res);
res               510 drivers/infiniband/hw/bnxt_re/qplib_fp.c void bnxt_qplib_destroy_srq(struct bnxt_qplib_res *res,
res               513 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	struct bnxt_qplib_rcfw *rcfw = res->rcfw;
res               529 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	bnxt_qplib_free_hwq(res->pdev, &srq->hwq);
res               532 drivers/infiniband/hw/bnxt_re/qplib_fp.c int bnxt_qplib_create_srq(struct bnxt_qplib_res *res,
res               535 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	struct bnxt_qplib_rcfw *rcfw = res->rcfw;
res               543 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	rc = bnxt_qplib_alloc_init_hwq(res->pdev, &srq->hwq, &srq->sg_info,
res               598 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	srq->dbr_base = res->dpi_tbl.dbr_bar_reg_iomem;
res               605 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	bnxt_qplib_free_hwq(res->pdev, &srq->hwq);
res               611 drivers/infiniband/hw/bnxt_re/qplib_fp.c int bnxt_qplib_modify_srq(struct bnxt_qplib_res *res,
res               633 drivers/infiniband/hw/bnxt_re/qplib_fp.c int bnxt_qplib_query_srq(struct bnxt_qplib_res *res,
res               636 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	struct bnxt_qplib_rcfw *rcfw = res->rcfw;
res               722 drivers/infiniband/hw/bnxt_re/qplib_fp.c int bnxt_qplib_create_qp1(struct bnxt_qplib_res *res, struct bnxt_qplib_qp *qp)
res               724 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	struct bnxt_qplib_rcfw *rcfw = res->rcfw;
res               743 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	rc = bnxt_qplib_alloc_init_hwq(res->pdev, &sq->hwq, NULL,
res               782 drivers/infiniband/hw/bnxt_re/qplib_fp.c 		rc = bnxt_qplib_alloc_init_hwq(res->pdev, &rq->hwq, NULL,
res               818 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	rc = bnxt_qplib_alloc_qp_hdr_buf(res, qp);
res               849 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	bnxt_qplib_free_qp_hdr_buf(res, qp);
res               851 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	bnxt_qplib_free_hwq(res->pdev, &rq->hwq);
res               854 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	bnxt_qplib_free_hwq(res->pdev, &sq->hwq);
res               860 drivers/infiniband/hw/bnxt_re/qplib_fp.c int bnxt_qplib_create_qp(struct bnxt_qplib_res *res, struct bnxt_qplib_qp *qp)
res               862 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	struct bnxt_qplib_rcfw *rcfw = res->rcfw;
res               886 drivers/infiniband/hw/bnxt_re/qplib_fp.c 		psn_sz = bnxt_qplib_is_chip_gen_p5(res->cctx) ?
res               891 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	rc = bnxt_qplib_alloc_init_hwq(res->pdev, &sq->hwq, &sq->sg_info,
res               960 drivers/infiniband/hw/bnxt_re/qplib_fp.c 		rc = bnxt_qplib_alloc_init_hwq(res->pdev, &rq->hwq,
res              1008 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	rc = bnxt_qplib_alloc_qp_hdr_buf(res, qp);
res              1020 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	max_rsge = bnxt_qplib_is_chip_gen_p5(res->cctx) ? 6 : rq->max_sge;
res              1032 drivers/infiniband/hw/bnxt_re/qplib_fp.c 		rc = bnxt_qplib_alloc_init_hwq(res->pdev, xrrq, NULL,
res              1048 drivers/infiniband/hw/bnxt_re/qplib_fp.c 		rc = bnxt_qplib_alloc_init_hwq(res->pdev, xrrq, NULL,
res              1067 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	qp->cctx = res->cctx;
res              1077 drivers/infiniband/hw/bnxt_re/qplib_fp.c 		bnxt_qplib_free_hwq(res->pdev, &qp->irrq);
res              1080 drivers/infiniband/hw/bnxt_re/qplib_fp.c 		bnxt_qplib_free_hwq(res->pdev, &qp->orrq);
res              1082 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	bnxt_qplib_free_qp_hdr_buf(res, qp);
res              1084 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	bnxt_qplib_free_hwq(res->pdev, &rq->hwq);
res              1087 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	bnxt_qplib_free_hwq(res->pdev, &sq->hwq);
res              1182 drivers/infiniband/hw/bnxt_re/qplib_fp.c int bnxt_qplib_modify_qp(struct bnxt_qplib_res *res, struct bnxt_qplib_qp *qp)
res              1184 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	struct bnxt_qplib_rcfw *rcfw = res->rcfw;
res              1211 drivers/infiniband/hw/bnxt_re/qplib_fp.c 		if (!bnxt_qplib_get_pkey(res, &res->pkey_tbl,
res              1229 drivers/infiniband/hw/bnxt_re/qplib_fp.c 		req.sgid_index = cpu_to_le16(res->sgid_tbl.hw_id
res              1288 drivers/infiniband/hw/bnxt_re/qplib_fp.c int bnxt_qplib_query_qp(struct bnxt_qplib_res *res, struct bnxt_qplib_qp *qp)
res              1290 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	struct bnxt_qplib_rcfw *rcfw = res->rcfw;
res              1331 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	for (i = 0; i < res->sgid_tbl.max; i++) {
res              1332 drivers/infiniband/hw/bnxt_re/qplib_fp.c 		if (res->sgid_tbl.hw_id[i] == le16_to_cpu(sb->sgid_index)) {
res              1337 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	if (i == res->sgid_tbl.max)
res              1338 drivers/infiniband/hw/bnxt_re/qplib_fp.c 		dev_warn(&res->pdev->dev, "SGID not found??\n");
res              1413 drivers/infiniband/hw/bnxt_re/qplib_fp.c int bnxt_qplib_destroy_qp(struct bnxt_qplib_res *res,
res              1416 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	struct bnxt_qplib_rcfw *rcfw = res->rcfw;
res              1439 drivers/infiniband/hw/bnxt_re/qplib_fp.c void bnxt_qplib_free_qp_res(struct bnxt_qplib_res *res,
res              1442 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	bnxt_qplib_free_qp_hdr_buf(res, qp);
res              1443 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	bnxt_qplib_free_hwq(res->pdev, &qp->sq.hwq);
res              1446 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	bnxt_qplib_free_hwq(res->pdev, &qp->rq.hwq);
res              1450 drivers/infiniband/hw/bnxt_re/qplib_fp.c 		bnxt_qplib_free_hwq(res->pdev, &qp->irrq);
res              1452 drivers/infiniband/hw/bnxt_re/qplib_fp.c 		bnxt_qplib_free_hwq(res->pdev, &qp->orrq);
res              1927 drivers/infiniband/hw/bnxt_re/qplib_fp.c int bnxt_qplib_create_cq(struct bnxt_qplib_res *res, struct bnxt_qplib_cq *cq)
res              1929 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	struct bnxt_qplib_rcfw *rcfw = res->rcfw;
res              1937 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	rc = bnxt_qplib_alloc_init_hwq(res->pdev, &cq->hwq, &cq->sg_info,
res              1979 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	cq->dbr_base = res->dpi_tbl.dbr_bar_reg_iomem;
res              1991 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	bnxt_qplib_free_hwq(res->pdev, &cq->hwq);
res              1996 drivers/infiniband/hw/bnxt_re/qplib_fp.c int bnxt_qplib_destroy_cq(struct bnxt_qplib_res *res, struct bnxt_qplib_cq *cq)
res              1998 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	struct bnxt_qplib_rcfw *rcfw = res->rcfw;
res              2011 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	bnxt_qplib_free_hwq(res->pdev, &cq->hwq);
res               475 drivers/infiniband/hw/bnxt_re/qplib_fp.h 	struct bnxt_qplib_res	*res;
res               515 drivers/infiniband/hw/bnxt_re/qplib_fp.h int bnxt_qplib_create_srq(struct bnxt_qplib_res *res,
res               517 drivers/infiniband/hw/bnxt_re/qplib_fp.h int bnxt_qplib_modify_srq(struct bnxt_qplib_res *res,
res               519 drivers/infiniband/hw/bnxt_re/qplib_fp.h int bnxt_qplib_query_srq(struct bnxt_qplib_res *res,
res               521 drivers/infiniband/hw/bnxt_re/qplib_fp.h void bnxt_qplib_destroy_srq(struct bnxt_qplib_res *res,
res               525 drivers/infiniband/hw/bnxt_re/qplib_fp.h int bnxt_qplib_create_qp1(struct bnxt_qplib_res *res, struct bnxt_qplib_qp *qp);
res               526 drivers/infiniband/hw/bnxt_re/qplib_fp.h int bnxt_qplib_create_qp(struct bnxt_qplib_res *res, struct bnxt_qplib_qp *qp);
res               527 drivers/infiniband/hw/bnxt_re/qplib_fp.h int bnxt_qplib_modify_qp(struct bnxt_qplib_res *res, struct bnxt_qplib_qp *qp);
res               528 drivers/infiniband/hw/bnxt_re/qplib_fp.h int bnxt_qplib_query_qp(struct bnxt_qplib_res *res, struct bnxt_qplib_qp *qp);
res               529 drivers/infiniband/hw/bnxt_re/qplib_fp.h int bnxt_qplib_destroy_qp(struct bnxt_qplib_res *res, struct bnxt_qplib_qp *qp);
res               531 drivers/infiniband/hw/bnxt_re/qplib_fp.h void bnxt_qplib_free_qp_res(struct bnxt_qplib_res *res,
res               546 drivers/infiniband/hw/bnxt_re/qplib_fp.h int bnxt_qplib_create_cq(struct bnxt_qplib_res *res, struct bnxt_qplib_cq *cq);
res               547 drivers/infiniband/hw/bnxt_re/qplib_fp.h int bnxt_qplib_destroy_cq(struct bnxt_qplib_res *res, struct bnxt_qplib_cq *cq);
res               368 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c 	bool gen_p5 = bnxt_qplib_is_chip_gen_p5(rcfw->res->cctx);
res               497 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c 	if (is_virtfn || bnxt_qplib_is_chip_gen_p5(rcfw->res->cctx))
res               577 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c 	hwq_type = bnxt_qplib_get_hwq_type(rcfw->res);
res               623 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c 	bool gen_p5 = bnxt_qplib_is_chip_gen_p5(rcfw->res->cctx);
res               666 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c 	bool gen_p5 = bnxt_qplib_is_chip_gen_p5(rcfw->res->cctx);
res               231 drivers/infiniband/hw/bnxt_re/qplib_rcfw.h 	struct bnxt_qplib_res	*res;
res               472 drivers/infiniband/hw/bnxt_re/qplib_res.c static void bnxt_qplib_free_sgid_tbl(struct bnxt_qplib_res *res,
res               487 drivers/infiniband/hw/bnxt_re/qplib_res.c static int bnxt_qplib_alloc_sgid_tbl(struct bnxt_qplib_res *res,
res               521 drivers/infiniband/hw/bnxt_re/qplib_res.c static void bnxt_qplib_cleanup_sgid_tbl(struct bnxt_qplib_res *res,
res               549 drivers/infiniband/hw/bnxt_re/qplib_res.c static void bnxt_qplib_free_pkey_tbl(struct bnxt_qplib_res *res,
res               553 drivers/infiniband/hw/bnxt_re/qplib_res.c 		dev_dbg(&res->pdev->dev, "PKEY tbl not present\n");
res               562 drivers/infiniband/hw/bnxt_re/qplib_res.c static int bnxt_qplib_alloc_pkey_tbl(struct bnxt_qplib_res *res,
res               589 drivers/infiniband/hw/bnxt_re/qplib_res.c int bnxt_qplib_dealloc_pd(struct bnxt_qplib_res *res,
res               594 drivers/infiniband/hw/bnxt_re/qplib_res.c 		dev_warn(&res->pdev->dev, "Freeing an unused PD? pdn = %d\n",
res               609 drivers/infiniband/hw/bnxt_re/qplib_res.c static int bnxt_qplib_alloc_pd_tbl(struct bnxt_qplib_res *res,
res               650 drivers/infiniband/hw/bnxt_re/qplib_res.c int bnxt_qplib_dealloc_dpi(struct bnxt_qplib_res *res,
res               655 drivers/infiniband/hw/bnxt_re/qplib_res.c 		dev_warn(&res->pdev->dev, "Invalid DPI? dpi = %d\n", dpi->dpi);
res               659 drivers/infiniband/hw/bnxt_re/qplib_res.c 		dev_warn(&res->pdev->dev, "Freeing an unused DPI? dpi = %d\n",
res               670 drivers/infiniband/hw/bnxt_re/qplib_res.c static void bnxt_qplib_free_dpi_tbl(struct bnxt_qplib_res     *res,
res               676 drivers/infiniband/hw/bnxt_re/qplib_res.c 		pci_iounmap(res->pdev, dpit->dbr_bar_reg_iomem);
res               680 drivers/infiniband/hw/bnxt_re/qplib_res.c static int bnxt_qplib_alloc_dpi_tbl(struct bnxt_qplib_res     *res,
res               689 drivers/infiniband/hw/bnxt_re/qplib_res.c 		dev_err(&res->pdev->dev, "DBR BAR region %d already mapped\n",
res               694 drivers/infiniband/hw/bnxt_re/qplib_res.c 	bar_reg_base = pci_resource_start(res->pdev, dbr_bar_reg);
res               696 drivers/infiniband/hw/bnxt_re/qplib_res.c 		dev_err(&res->pdev->dev, "BAR region %d resc start failed\n",
res               701 drivers/infiniband/hw/bnxt_re/qplib_res.c 	dbr_len = pci_resource_len(res->pdev, dbr_bar_reg) - dbr_offset;
res               703 drivers/infiniband/hw/bnxt_re/qplib_res.c 		dev_err(&res->pdev->dev, "Invalid DBR length %d\n", dbr_len);
res               710 drivers/infiniband/hw/bnxt_re/qplib_res.c 		dev_err(&res->pdev->dev,
res               738 drivers/infiniband/hw/bnxt_re/qplib_res.c 	pci_iounmap(res->pdev, dpit->dbr_bar_reg_iomem);
res               749 drivers/infiniband/hw/bnxt_re/qplib_res.c static void bnxt_qplib_init_pkey_tbl(struct bnxt_qplib_res *res,
res               757 drivers/infiniband/hw/bnxt_re/qplib_res.c 	bnxt_qplib_add_pkey(res, pkey_tbl, &pkey, false);
res               791 drivers/infiniband/hw/bnxt_re/qplib_res.c void bnxt_qplib_cleanup_res(struct bnxt_qplib_res *res)
res               793 drivers/infiniband/hw/bnxt_re/qplib_res.c 	bnxt_qplib_cleanup_pkey_tbl(&res->pkey_tbl);
res               794 drivers/infiniband/hw/bnxt_re/qplib_res.c 	bnxt_qplib_cleanup_sgid_tbl(res, &res->sgid_tbl);
res               797 drivers/infiniband/hw/bnxt_re/qplib_res.c int bnxt_qplib_init_res(struct bnxt_qplib_res *res)
res               799 drivers/infiniband/hw/bnxt_re/qplib_res.c 	bnxt_qplib_init_sgid_tbl(&res->sgid_tbl, res->netdev);
res               800 drivers/infiniband/hw/bnxt_re/qplib_res.c 	bnxt_qplib_init_pkey_tbl(res, &res->pkey_tbl);
res               805 drivers/infiniband/hw/bnxt_re/qplib_res.c void bnxt_qplib_free_res(struct bnxt_qplib_res *res)
res               807 drivers/infiniband/hw/bnxt_re/qplib_res.c 	bnxt_qplib_free_pkey_tbl(res, &res->pkey_tbl);
res               808 drivers/infiniband/hw/bnxt_re/qplib_res.c 	bnxt_qplib_free_sgid_tbl(res, &res->sgid_tbl);
res               809 drivers/infiniband/hw/bnxt_re/qplib_res.c 	bnxt_qplib_free_pd_tbl(&res->pd_tbl);
res               810 drivers/infiniband/hw/bnxt_re/qplib_res.c 	bnxt_qplib_free_dpi_tbl(res, &res->dpi_tbl);
res               812 drivers/infiniband/hw/bnxt_re/qplib_res.c 	res->netdev = NULL;
res               813 drivers/infiniband/hw/bnxt_re/qplib_res.c 	res->pdev = NULL;
res               816 drivers/infiniband/hw/bnxt_re/qplib_res.c int bnxt_qplib_alloc_res(struct bnxt_qplib_res *res, struct pci_dev *pdev,
res               822 drivers/infiniband/hw/bnxt_re/qplib_res.c 	res->pdev = pdev;
res               823 drivers/infiniband/hw/bnxt_re/qplib_res.c 	res->netdev = netdev;
res               825 drivers/infiniband/hw/bnxt_re/qplib_res.c 	rc = bnxt_qplib_alloc_sgid_tbl(res, &res->sgid_tbl, dev_attr->max_sgid);
res               829 drivers/infiniband/hw/bnxt_re/qplib_res.c 	rc = bnxt_qplib_alloc_pkey_tbl(res, &res->pkey_tbl, dev_attr->max_pkey);
res               833 drivers/infiniband/hw/bnxt_re/qplib_res.c 	rc = bnxt_qplib_alloc_pd_tbl(res, &res->pd_tbl, dev_attr->max_pd);
res               837 drivers/infiniband/hw/bnxt_re/qplib_res.c 	rc = bnxt_qplib_alloc_dpi_tbl(res, &res->dpi_tbl, dev_attr->l2_db_size);
res               843 drivers/infiniband/hw/bnxt_re/qplib_res.c 	bnxt_qplib_free_res(res);
res               213 drivers/infiniband/hw/bnxt_re/qplib_res.h static inline u8 bnxt_qplib_get_hwq_type(struct bnxt_qplib_res *res)
res               215 drivers/infiniband/hw/bnxt_re/qplib_res.h 	return bnxt_qplib_is_chip_gen_p5(res->cctx) ?
res               246 drivers/infiniband/hw/bnxt_re/qplib_res.h int bnxt_qplib_dealloc_pd(struct bnxt_qplib_res *res,
res               252 drivers/infiniband/hw/bnxt_re/qplib_res.h int bnxt_qplib_dealloc_dpi(struct bnxt_qplib_res *res,
res               255 drivers/infiniband/hw/bnxt_re/qplib_res.h void bnxt_qplib_cleanup_res(struct bnxt_qplib_res *res);
res               256 drivers/infiniband/hw/bnxt_re/qplib_res.h int bnxt_qplib_init_res(struct bnxt_qplib_res *res);
res               257 drivers/infiniband/hw/bnxt_re/qplib_res.h void bnxt_qplib_free_res(struct bnxt_qplib_res *res);
res               258 drivers/infiniband/hw/bnxt_re/qplib_res.h int bnxt_qplib_alloc_res(struct bnxt_qplib_res *res, struct pci_dev *pdev,
res               122 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	attr->max_qp_sges = bnxt_qplib_is_chip_gen_p5(rcfw->res->cctx) ?
res               174 drivers/infiniband/hw/bnxt_re/qplib_sp.c int bnxt_qplib_set_func_resources(struct bnxt_qplib_res *res,
res               200 drivers/infiniband/hw/bnxt_re/qplib_sp.c 		dev_err(&res->pdev->dev, "Failed to set function resources\n");
res               206 drivers/infiniband/hw/bnxt_re/qplib_sp.c int bnxt_qplib_get_sgid(struct bnxt_qplib_res *res,
res               211 drivers/infiniband/hw/bnxt_re/qplib_sp.c 		dev_err(&res->pdev->dev,
res               223 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	struct bnxt_qplib_res *res = to_bnxt_qplib(sgid_tbl,
res               226 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	struct bnxt_qplib_rcfw *rcfw = res->rcfw;
res               230 drivers/infiniband/hw/bnxt_re/qplib_sp.c 		dev_err(&res->pdev->dev, "SGID table not allocated\n");
res               235 drivers/infiniband/hw/bnxt_re/qplib_sp.c 		dev_err(&res->pdev->dev, "SGID table has no active entries\n");
res               244 drivers/infiniband/hw/bnxt_re/qplib_sp.c 		dev_warn(&res->pdev->dev, "GID not found in the SGID table\n");
res               256 drivers/infiniband/hw/bnxt_re/qplib_sp.c 			dev_err(&res->pdev->dev,
res               271 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	dev_dbg(&res->pdev->dev,
res               284 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	struct bnxt_qplib_res *res = to_bnxt_qplib(sgid_tbl,
res               287 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	struct bnxt_qplib_rcfw *rcfw = res->rcfw;
res               291 drivers/infiniband/hw/bnxt_re/qplib_sp.c 		dev_err(&res->pdev->dev, "SGID table not allocated\n");
res               296 drivers/infiniband/hw/bnxt_re/qplib_sp.c 		dev_err(&res->pdev->dev, "SGID table is full\n");
res               303 drivers/infiniband/hw/bnxt_re/qplib_sp.c 			dev_dbg(&res->pdev->dev,
res               314 drivers/infiniband/hw/bnxt_re/qplib_sp.c 		dev_err(&res->pdev->dev,
res               335 drivers/infiniband/hw/bnxt_re/qplib_sp.c 		if ((vlan_id != 0xFFFF) || res->prio) {
res               362 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	dev_dbg(&res->pdev->dev,
res               375 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	struct bnxt_qplib_res *res = to_bnxt_qplib(sgid_tbl,
res               378 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	struct bnxt_qplib_rcfw *rcfw = res->rcfw;
res               390 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	if (res->prio) {
res               409 drivers/infiniband/hw/bnxt_re/qplib_sp.c int bnxt_qplib_get_pkey(struct bnxt_qplib_res *res,
res               418 drivers/infiniband/hw/bnxt_re/qplib_sp.c 		dev_err(&res->pdev->dev,
res               427 drivers/infiniband/hw/bnxt_re/qplib_sp.c int bnxt_qplib_del_pkey(struct bnxt_qplib_res *res,
res               434 drivers/infiniband/hw/bnxt_re/qplib_sp.c 		dev_err(&res->pdev->dev, "PKEY table not allocated\n");
res               440 drivers/infiniband/hw/bnxt_re/qplib_sp.c 		dev_err(&res->pdev->dev, "PKEY table has no active entries\n");
res               448 drivers/infiniband/hw/bnxt_re/qplib_sp.c 		dev_err(&res->pdev->dev,
res               459 drivers/infiniband/hw/bnxt_re/qplib_sp.c int bnxt_qplib_add_pkey(struct bnxt_qplib_res *res,
res               466 drivers/infiniband/hw/bnxt_re/qplib_sp.c 		dev_err(&res->pdev->dev, "PKEY table not allocated\n");
res               472 drivers/infiniband/hw/bnxt_re/qplib_sp.c 		dev_err(&res->pdev->dev, "PKEY table is full\n");
res               483 drivers/infiniband/hw/bnxt_re/qplib_sp.c 		dev_err(&res->pdev->dev,
res               496 drivers/infiniband/hw/bnxt_re/qplib_sp.c int bnxt_qplib_create_ah(struct bnxt_qplib_res *res, struct bnxt_qplib_ah *ah,
res               499 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	struct bnxt_qplib_rcfw *rcfw = res->rcfw;
res               517 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	req.sgid_index = cpu_to_le16(res->sgid_tbl.hw_id[ah->sgid_index]);
res               539 drivers/infiniband/hw/bnxt_re/qplib_sp.c void bnxt_qplib_destroy_ah(struct bnxt_qplib_res *res, struct bnxt_qplib_ah *ah,
res               542 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	struct bnxt_qplib_rcfw *rcfw = res->rcfw;
res               557 drivers/infiniband/hw/bnxt_re/qplib_sp.c int bnxt_qplib_free_mrw(struct bnxt_qplib_res *res, struct bnxt_qplib_mrw *mrw)
res               559 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	struct bnxt_qplib_rcfw *rcfw = res->rcfw;
res               566 drivers/infiniband/hw/bnxt_re/qplib_sp.c 		dev_info(&res->pdev->dev, "SP: Free a reserved lkey MRW\n");
res               588 drivers/infiniband/hw/bnxt_re/qplib_sp.c 		bnxt_qplib_free_hwq(res->pdev, &mrw->hwq);
res               593 drivers/infiniband/hw/bnxt_re/qplib_sp.c int bnxt_qplib_alloc_mrw(struct bnxt_qplib_res *res, struct bnxt_qplib_mrw *mrw)
res               595 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	struct bnxt_qplib_rcfw *rcfw = res->rcfw;
res               628 drivers/infiniband/hw/bnxt_re/qplib_sp.c int bnxt_qplib_dereg_mrw(struct bnxt_qplib_res *res, struct bnxt_qplib_mrw *mrw,
res               631 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	struct bnxt_qplib_rcfw *rcfw = res->rcfw;
res               649 drivers/infiniband/hw/bnxt_re/qplib_sp.c 		bnxt_qplib_free_hwq(res->pdev, &mrw->hwq);
res               655 drivers/infiniband/hw/bnxt_re/qplib_sp.c int bnxt_qplib_reg_mr(struct bnxt_qplib_res *res, struct bnxt_qplib_mrw *mr,
res               658 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	struct bnxt_qplib_rcfw *rcfw = res->rcfw;
res               676 drivers/infiniband/hw/bnxt_re/qplib_sp.c 			dev_err(&res->pdev->dev,
res               683 drivers/infiniband/hw/bnxt_re/qplib_sp.c 			bnxt_qplib_free_hwq(res->pdev, &mr->hwq);
res               687 drivers/infiniband/hw/bnxt_re/qplib_sp.c 		rc = bnxt_qplib_alloc_init_hwq(res->pdev, &mr->hwq, NULL,
res               692 drivers/infiniband/hw/bnxt_re/qplib_sp.c 			dev_err(&res->pdev->dev,
res               737 drivers/infiniband/hw/bnxt_re/qplib_sp.c 		bnxt_qplib_free_hwq(res->pdev, &mr->hwq);
res               741 drivers/infiniband/hw/bnxt_re/qplib_sp.c int bnxt_qplib_alloc_fast_reg_page_list(struct bnxt_qplib_res *res,
res               757 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	rc = bnxt_qplib_alloc_init_hwq(res->pdev, &frpl->hwq, NULL,
res               766 drivers/infiniband/hw/bnxt_re/qplib_sp.c int bnxt_qplib_free_fast_reg_page_list(struct bnxt_qplib_res *res,
res               769 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	bnxt_qplib_free_hwq(res->pdev, &frpl->hwq);
res               773 drivers/infiniband/hw/bnxt_re/qplib_sp.c int bnxt_qplib_map_tc2cos(struct bnxt_qplib_res *res, u16 *cids)
res               775 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	struct bnxt_qplib_rcfw *rcfw = res->rcfw;
res               225 drivers/infiniband/hw/bnxt_re/qplib_sp.h int bnxt_qplib_get_sgid(struct bnxt_qplib_res *res,
res               235 drivers/infiniband/hw/bnxt_re/qplib_sp.h int bnxt_qplib_get_pkey(struct bnxt_qplib_res *res,
res               238 drivers/infiniband/hw/bnxt_re/qplib_sp.h int bnxt_qplib_del_pkey(struct bnxt_qplib_res *res,
res               241 drivers/infiniband/hw/bnxt_re/qplib_sp.h int bnxt_qplib_add_pkey(struct bnxt_qplib_res *res,
res               246 drivers/infiniband/hw/bnxt_re/qplib_sp.h int bnxt_qplib_set_func_resources(struct bnxt_qplib_res *res,
res               249 drivers/infiniband/hw/bnxt_re/qplib_sp.h int bnxt_qplib_create_ah(struct bnxt_qplib_res *res, struct bnxt_qplib_ah *ah,
res               251 drivers/infiniband/hw/bnxt_re/qplib_sp.h void bnxt_qplib_destroy_ah(struct bnxt_qplib_res *res, struct bnxt_qplib_ah *ah,
res               253 drivers/infiniband/hw/bnxt_re/qplib_sp.h int bnxt_qplib_alloc_mrw(struct bnxt_qplib_res *res,
res               255 drivers/infiniband/hw/bnxt_re/qplib_sp.h int bnxt_qplib_dereg_mrw(struct bnxt_qplib_res *res, struct bnxt_qplib_mrw *mrw,
res               257 drivers/infiniband/hw/bnxt_re/qplib_sp.h int bnxt_qplib_reg_mr(struct bnxt_qplib_res *res, struct bnxt_qplib_mrw *mr,
res               259 drivers/infiniband/hw/bnxt_re/qplib_sp.h int bnxt_qplib_free_mrw(struct bnxt_qplib_res *res, struct bnxt_qplib_mrw *mr);
res               260 drivers/infiniband/hw/bnxt_re/qplib_sp.h int bnxt_qplib_alloc_fast_reg_mr(struct bnxt_qplib_res *res,
res               262 drivers/infiniband/hw/bnxt_re/qplib_sp.h int bnxt_qplib_alloc_fast_reg_page_list(struct bnxt_qplib_res *res,
res               264 drivers/infiniband/hw/bnxt_re/qplib_sp.h int bnxt_qplib_free_fast_reg_page_list(struct bnxt_qplib_res *res,
res               266 drivers/infiniband/hw/bnxt_re/qplib_sp.h int bnxt_qplib_map_tc2cos(struct bnxt_qplib_res *res, u16 *cids);
res                42 drivers/infiniband/hw/cxgb4/cq.c 	struct fw_ri_res *res;
res                45 drivers/infiniband/hw/cxgb4/cq.c 	wr_len = sizeof(*res_wr) + sizeof(*res);
res                55 drivers/infiniband/hw/cxgb4/cq.c 	res = res_wr->res;
res                56 drivers/infiniband/hw/cxgb4/cq.c 	res->u.cq.restype = FW_RI_RES_TYPE_CQ;
res                57 drivers/infiniband/hw/cxgb4/cq.c 	res->u.cq.op = FW_RI_RES_OP_RESET;
res                58 drivers/infiniband/hw/cxgb4/cq.c 	res->u.cq.iqid = cpu_to_be32(cq->cqid);
res                75 drivers/infiniband/hw/cxgb4/cq.c 	struct fw_ri_res *res;
res               117 drivers/infiniband/hw/cxgb4/cq.c 	wr_len = sizeof(*res_wr) + sizeof(*res);
res               133 drivers/infiniband/hw/cxgb4/cq.c 	res = res_wr->res;
res               134 drivers/infiniband/hw/cxgb4/cq.c 	res->u.cq.restype = FW_RI_RES_TYPE_CQ;
res               135 drivers/infiniband/hw/cxgb4/cq.c 	res->u.cq.op = FW_RI_RES_OP_WRITE;
res               136 drivers/infiniband/hw/cxgb4/cq.c 	res->u.cq.iqid = cpu_to_be32(cq->cqid);
res               137 drivers/infiniband/hw/cxgb4/cq.c 	res->u.cq.iqandst_to_iqandstindex = cpu_to_be32(
res               143 drivers/infiniband/hw/cxgb4/cq.c 	res->u.cq.iqdroprss_to_iqesize = cpu_to_be16(
res               151 drivers/infiniband/hw/cxgb4/cq.c 	res->u.cq.iqsize = cpu_to_be16(cq->size);
res               152 drivers/infiniband/hw/cxgb4/cq.c 	res->u.cq.iqaddr = cpu_to_be64(cq->dma_addr);
res              1057 drivers/infiniband/hw/cxgb4/iw_cxgb4.h 			       struct rdma_restrack_entry *res);
res               460 drivers/infiniband/hw/cxgb4/provider.c static int fill_res_entry(struct sk_buff *msg, struct rdma_restrack_entry *res)
res               462 drivers/infiniband/hw/cxgb4/provider.c 	return (res->type < ARRAY_SIZE(c4iw_restrack_funcs) &&
res               463 drivers/infiniband/hw/cxgb4/provider.c 		c4iw_restrack_funcs[res->type]) ?
res               464 drivers/infiniband/hw/cxgb4/provider.c 		c4iw_restrack_funcs[res->type](msg, res) : 0;
res               207 drivers/infiniband/hw/cxgb4/qp.c 	struct fw_ri_res *res;
res               305 drivers/infiniband/hw/cxgb4/qp.c 	wr_len = sizeof(*res_wr) + 2 * sizeof(*res);
res               307 drivers/infiniband/hw/cxgb4/qp.c 		wr_len += sizeof(*res);
res               322 drivers/infiniband/hw/cxgb4/qp.c 	res = res_wr->res;
res               323 drivers/infiniband/hw/cxgb4/qp.c 	res->u.sqrq.restype = FW_RI_RES_TYPE_SQ;
res               324 drivers/infiniband/hw/cxgb4/qp.c 	res->u.sqrq.op = FW_RI_RES_OP_WRITE;
res               332 drivers/infiniband/hw/cxgb4/qp.c 	res->u.sqrq.fetchszm_to_iqid = cpu_to_be32(
res               338 drivers/infiniband/hw/cxgb4/qp.c 	res->u.sqrq.dcaen_to_eqsize = cpu_to_be32(
res               347 drivers/infiniband/hw/cxgb4/qp.c 	res->u.sqrq.eqid = cpu_to_be32(wq->sq.qid);
res               348 drivers/infiniband/hw/cxgb4/qp.c 	res->u.sqrq.eqaddr = cpu_to_be64(wq->sq.dma_addr);
res               351 drivers/infiniband/hw/cxgb4/qp.c 		res++;
res               352 drivers/infiniband/hw/cxgb4/qp.c 		res->u.sqrq.restype = FW_RI_RES_TYPE_RQ;
res               353 drivers/infiniband/hw/cxgb4/qp.c 		res->u.sqrq.op = FW_RI_RES_OP_WRITE;
res               360 drivers/infiniband/hw/cxgb4/qp.c 		res->u.sqrq.fetchszm_to_iqid =
res               368 drivers/infiniband/hw/cxgb4/qp.c 		res->u.sqrq.dcaen_to_eqsize =
res               376 drivers/infiniband/hw/cxgb4/qp.c 		res->u.sqrq.eqid = cpu_to_be32(wq->rq.qid);
res               377 drivers/infiniband/hw/cxgb4/qp.c 		res->u.sqrq.eqaddr = cpu_to_be64(wq->rq.dma_addr);
res              2487 drivers/infiniband/hw/cxgb4/qp.c 	struct fw_ri_res *res;
res              2490 drivers/infiniband/hw/cxgb4/qp.c 	wr_len = sizeof(*res_wr) + sizeof(*res);
res              2500 drivers/infiniband/hw/cxgb4/qp.c 	res = res_wr->res;
res              2501 drivers/infiniband/hw/cxgb4/qp.c 	res->u.srq.restype = FW_RI_RES_TYPE_SRQ;
res              2502 drivers/infiniband/hw/cxgb4/qp.c 	res->u.srq.op = FW_RI_RES_OP_RESET;
res              2503 drivers/infiniband/hw/cxgb4/qp.c 	res->u.srq.srqid = cpu_to_be32(srq->idx);
res              2504 drivers/infiniband/hw/cxgb4/qp.c 	res->u.srq.eqid = cpu_to_be32(wq->qid);
res              2524 drivers/infiniband/hw/cxgb4/qp.c 	struct fw_ri_res *res;
res              2576 drivers/infiniband/hw/cxgb4/qp.c 	wr_len = sizeof(*res_wr) + sizeof(*res);
res              2590 drivers/infiniband/hw/cxgb4/qp.c 	res = res_wr->res;
res              2591 drivers/infiniband/hw/cxgb4/qp.c 	res->u.srq.restype = FW_RI_RES_TYPE_SRQ;
res              2592 drivers/infiniband/hw/cxgb4/qp.c 	res->u.srq.op = FW_RI_RES_OP_WRITE;
res              2599 drivers/infiniband/hw/cxgb4/qp.c 	res->u.srq.eqid = cpu_to_be32(wq->qid);
res              2600 drivers/infiniband/hw/cxgb4/qp.c 	res->u.srq.fetchszm_to_iqid =
res              2606 drivers/infiniband/hw/cxgb4/qp.c 	res->u.srq.dcaen_to_eqsize =
res              2614 drivers/infiniband/hw/cxgb4/qp.c 	res->u.srq.eqaddr = cpu_to_be64(wq->dma_addr);
res              2615 drivers/infiniband/hw/cxgb4/qp.c 	res->u.srq.srqid = cpu_to_be32(srq->idx);
res              2616 drivers/infiniband/hw/cxgb4/qp.c 	res->u.srq.pdid = cpu_to_be32(srq->pdid);
res              2617 drivers/infiniband/hw/cxgb4/qp.c 	res->u.srq.hwsrqsize = cpu_to_be32(wq->rqt_size);
res              2618 drivers/infiniband/hw/cxgb4/qp.c 	res->u.srq.hwsrqaddr = cpu_to_be32(wq->rqt_hwaddr -
res               138 drivers/infiniband/hw/cxgb4/restrack.c 			     struct rdma_restrack_entry *res)
res               140 drivers/infiniband/hw/cxgb4/restrack.c 	struct ib_qp *ibqp = container_of(res, struct ib_qp, res);
res               199 drivers/infiniband/hw/cxgb4/restrack.c 			     struct rdma_restrack_entry *res)
res               201 drivers/infiniband/hw/cxgb4/restrack.c 	struct rdma_cm_id *cm_id = rdma_res_to_id(res);
res               376 drivers/infiniband/hw/cxgb4/restrack.c 			     struct rdma_restrack_entry *res)
res               378 drivers/infiniband/hw/cxgb4/restrack.c 	struct ib_cq *ibcq = container_of(res, struct ib_cq, res);
res               437 drivers/infiniband/hw/cxgb4/restrack.c 			     struct rdma_restrack_entry *res)
res               439 drivers/infiniband/hw/cxgb4/restrack.c 	struct ib_mr *ibmr = container_of(res, struct ib_mr, res);
res                99 drivers/infiniband/hw/cxgb4/t4.h 	struct fw_ri_res_wr res;
res               324 drivers/infiniband/hw/cxgb4/t4fw_ri_api.h 	struct fw_ri_res res[0];
res                17 drivers/infiniband/hw/efa/efa_com_cmd.c 		      struct efa_com_create_qp_result *res)
res                52 drivers/infiniband/hw/efa/efa_com_cmd.c 	res->qp_handle = cmd_completion.qp_handle;
res                53 drivers/infiniband/hw/efa/efa_com_cmd.c 	res->qp_num = cmd_completion.qp_num;
res                54 drivers/infiniband/hw/efa/efa_com_cmd.c 	res->sq_db_offset = cmd_completion.sq_db_offset;
res                55 drivers/infiniband/hw/efa/efa_com_cmd.c 	res->rq_db_offset = cmd_completion.rq_db_offset;
res                56 drivers/infiniband/hw/efa/efa_com_cmd.c 	res->llq_descriptors_offset = cmd_completion.llq_descriptors_offset;
res                57 drivers/infiniband/hw/efa/efa_com_cmd.c 	res->send_sub_cq_idx = cmd_completion.send_sub_cq_idx;
res                58 drivers/infiniband/hw/efa/efa_com_cmd.c 	res->recv_sub_cq_idx = cmd_completion.recv_sub_cq_idx;
res               251 drivers/infiniband/hw/efa/efa_com_cmd.h 		      struct efa_com_create_qp_result *res);
res               366 drivers/infiniband/hw/hfi1/sdma.c 			       int res)
res               381 drivers/infiniband/hw/hfi1/sdma.c 		(*complete)(tx, res);
res              1284 drivers/infiniband/hw/hns/hns_roce_device.h 			    struct rdma_restrack_entry *res);
res                94 drivers/infiniband/hw/hns/hns_roce_pd.c 	struct resource *res;
res               109 drivers/infiniband/hw/hns/hns_roce_pd.c 		res = platform_get_resource(hr_dev->pdev, IORESOURCE_MEM, 0);
res               110 drivers/infiniband/hw/hns/hns_roce_pd.c 		if (!res) {
res               114 drivers/infiniband/hw/hns/hns_roce_pd.c 		uar->pfn = ((res->start) >> PAGE_SHIFT) + uar->index;
res                80 drivers/infiniband/hw/hns/hns_roce_restrack.c 				      struct rdma_restrack_entry *res)
res                82 drivers/infiniband/hw/hns/hns_roce_restrack.c 	struct ib_cq *ib_cq = container_of(res, struct ib_cq, res);
res               124 drivers/infiniband/hw/hns/hns_roce_restrack.c 			    struct rdma_restrack_entry *res)
res               126 drivers/infiniband/hw/hns/hns_roce_restrack.c 	if (res->type == RDMA_RESTRACK_CQ)
res               127 drivers/infiniband/hw/hns/hns_roce_restrack.c 		return hns_roce_fill_res_cq_entry(msg, res);
res              1618 drivers/infiniband/hw/mlx4/qp.c 			int res = mlx4_qp_reserve_range(to_mdev(pd->device)->dev,
res              1622 drivers/infiniband/hw/mlx4/qp.c 			if (res)
res              1623 drivers/infiniband/hw/mlx4/qp.c 				return ERR_PTR(res);
res               587 drivers/infiniband/hw/mlx5/devx.c 		switch (srq->common.res) {
res              1150 drivers/infiniband/hw/mlx5/odp.c static inline struct mlx5_ib_qp *res_to_qp(struct mlx5_core_rsc_common *res)
res              1152 drivers/infiniband/hw/mlx5/odp.c 	struct mlx5_core_qp *mqp = (struct mlx5_core_qp *)res;
res              1157 drivers/infiniband/hw/mlx5/odp.c static inline struct mlx5_ib_srq *res_to_srq(struct mlx5_core_rsc_common *res)
res              1160 drivers/infiniband/hw/mlx5/odp.c 		container_of(res, struct mlx5_core_srq, common);
res              1172 drivers/infiniband/hw/mlx5/odp.c 	struct mlx5_core_rsc_common *res;
res              1178 drivers/infiniband/hw/mlx5/odp.c 	res = odp_get_rsc(dev, pfault->wqe.wq_num, pfault->type);
res              1179 drivers/infiniband/hw/mlx5/odp.c 	if (!res) {
res              1184 drivers/infiniband/hw/mlx5/odp.c 	if (res->res != MLX5_RES_QP && res->res != MLX5_RES_SRQ &&
res              1185 drivers/infiniband/hw/mlx5/odp.c 	    res->res != MLX5_RES_XSRQ) {
res              1198 drivers/infiniband/hw/mlx5/odp.c 	qp = (res->res == MLX5_RES_QP) ? res_to_qp(res) : NULL;
res              1214 drivers/infiniband/hw/mlx5/odp.c 		struct mlx5_ib_srq *srq = res_to_srq(res);
res              1251 drivers/infiniband/hw/mlx5/odp.c 	mlx5_core_res_put(res);
res              4421 drivers/infiniband/hw/mlx5/qp.c 	u8 res = 0;
res              4425 drivers/infiniband/hw/mlx5/qp.c 		res ^= p[i];
res              4427 drivers/infiniband/hw/mlx5/qp.c 	return ~res;
res               550 drivers/infiniband/hw/mlx5/srq_cmd.c 	switch (srq->common.res) {
res               564 drivers/infiniband/hw/mlx5/srq_cmd.c 	switch (srq->common.res) {
res               582 drivers/infiniband/hw/mlx5/srq_cmd.c 		srq->common.res = MLX5_RES_XSRQ;
res               585 drivers/infiniband/hw/mlx5/srq_cmd.c 		srq->common.res = MLX5_RES_XRQ;
res               588 drivers/infiniband/hw/mlx5/srq_cmd.c 		srq->common.res = MLX5_RES_SRQ;
res               633 drivers/infiniband/hw/mlx5/srq_cmd.c 	switch (srq->common.res) {
res               648 drivers/infiniband/hw/mlx5/srq_cmd.c 	switch (srq->common.res) {
res                50 drivers/infiniband/hw/usnic/usnic_debugfs.c 	int res;
res                55 drivers/infiniband/hw/usnic/usnic_debugfs.c 	res = scnprintf(buf, sizeof(buf),
res                60 drivers/infiniband/hw/usnic/usnic_debugfs.c 	return simple_read_from_buffer(data, count, ppos, buf, res);
res               113 drivers/infiniband/hw/usnic/usnic_ib_qp_grp.c 	struct usnic_vnic_res *res;
res               127 drivers/infiniband/hw/usnic/usnic_ib_qp_grp.c 		res = res_chunk->res[i];
res               129 drivers/infiniband/hw/usnic/usnic_ib_qp_grp.c 						res->vnic_idx);
res               132 drivers/infiniband/hw/usnic/usnic_ib_qp_grp.c 					res->vnic_idx, qp_grp->ufdev->name,
res               142 drivers/infiniband/hw/usnic/usnic_ib_qp_grp.c 		res = res_chunk->res[i];
res               144 drivers/infiniband/hw/usnic/usnic_ib_qp_grp.c 					res->vnic_idx);
res               154 drivers/infiniband/hw/usnic/usnic_ib_qp_grp.c 	struct usnic_vnic_res *res;
res               168 drivers/infiniband/hw/usnic/usnic_ib_qp_grp.c 		res = res_chunk->res[i];
res               170 drivers/infiniband/hw/usnic/usnic_ib_qp_grp.c 						res->vnic_idx);
res               173 drivers/infiniband/hw/usnic/usnic_ib_qp_grp.c 					res->vnic_idx,
res               198 drivers/infiniband/hw/usnic/usnic_ib_qp_grp.c 	uaction->action.u.rq_idx = res_chunk->res[DFLT_RQ_IDX]->vnic_idx;
res               245 drivers/infiniband/hw/usnic/usnic_ib_sysfs.c 			vnic_res = res_chunk->res[j];
res               127 drivers/infiniband/hw/usnic/usnic_ib_verbs.c 		resp.rq_idx[i] = chunk->res[i]->vnic_idx;
res               141 drivers/infiniband/hw/usnic/usnic_ib_verbs.c 		resp.wq_idx[i] = chunk->res[i]->vnic_idx;
res               155 drivers/infiniband/hw/usnic/usnic_ib_verbs.c 		resp.cq_idx[i] = chunk->res[i]->vnic_idx;
res                97 drivers/infiniband/hw/usnic/usnic_vnic.c 	struct usnic_vnic_res *res;
res               121 drivers/infiniband/hw/usnic/usnic_vnic.c 			res = chunk->res[j];
res               124 drivers/infiniband/hw/usnic/usnic_vnic.c 					usnic_vnic_res_type_to_str(res->type),
res               125 drivers/infiniband/hw/usnic/usnic_vnic.c 					res->vnic_idx, res->ctrl, !!res->owner);
res               127 drivers/infiniband/hw/usnic/usnic_vnic.c 				offset += printrow(res->owner, buf + offset,
res               237 drivers/infiniband/hw/usnic/usnic_vnic.c 	struct usnic_vnic_res *res;
res               248 drivers/infiniband/hw/usnic/usnic_vnic.c 		ret->res = kcalloc(cnt, sizeof(*(ret->res)), GFP_ATOMIC);
res               249 drivers/infiniband/hw/usnic/usnic_vnic.c 		if (!ret->res) {
res               257 drivers/infiniband/hw/usnic/usnic_vnic.c 			res = src->res[i];
res               258 drivers/infiniband/hw/usnic/usnic_vnic.c 			if (!res->owner) {
res               260 drivers/infiniband/hw/usnic/usnic_vnic.c 				res->owner = owner;
res               261 drivers/infiniband/hw/usnic/usnic_vnic.c 				ret->res[ret->cnt++] = res;
res               277 drivers/infiniband/hw/usnic/usnic_vnic.c 	struct usnic_vnic_res *res;
res               284 drivers/infiniband/hw/usnic/usnic_vnic.c 			res = chunk->res[i];
res               285 drivers/infiniband/hw/usnic/usnic_vnic.c 			chunk->res[i] = NULL;
res               286 drivers/infiniband/hw/usnic/usnic_vnic.c 			res->owner = NULL;
res               287 drivers/infiniband/hw/usnic/usnic_vnic.c 			vnic->chunks[res->type].free_cnt++;
res               292 drivers/infiniband/hw/usnic/usnic_vnic.c 	kfree(chunk->res);
res               306 drivers/infiniband/hw/usnic/usnic_vnic.c 	struct usnic_vnic_res *res;
res               315 drivers/infiniband/hw/usnic/usnic_vnic.c 	chunk->res = kcalloc(cnt, sizeof(*(chunk->res)), GFP_KERNEL);
res               316 drivers/infiniband/hw/usnic/usnic_vnic.c 	if (!chunk->res)
res               320 drivers/infiniband/hw/usnic/usnic_vnic.c 		res = kzalloc(sizeof(*res), GFP_KERNEL);
res               321 drivers/infiniband/hw/usnic/usnic_vnic.c 		if (!res) {
res               325 drivers/infiniband/hw/usnic/usnic_vnic.c 		res->type = type;
res               326 drivers/infiniband/hw/usnic/usnic_vnic.c 		res->vnic_idx = i;
res               327 drivers/infiniband/hw/usnic/usnic_vnic.c 		res->vnic = vnic;
res               328 drivers/infiniband/hw/usnic/usnic_vnic.c 		res->ctrl = vnic_dev_get_res(vnic->vdev,
res               330 drivers/infiniband/hw/usnic/usnic_vnic.c 		chunk->res[i] = res;
res               337 drivers/infiniband/hw/usnic/usnic_vnic.c 		kfree(chunk->res[i]);
res               338 drivers/infiniband/hw/usnic/usnic_vnic.c 	kfree(chunk->res);
res               346 drivers/infiniband/hw/usnic/usnic_vnic.c 		kfree(chunk->res[i]);
res               347 drivers/infiniband/hw/usnic/usnic_vnic.c 	kfree(chunk->res);
res                72 drivers/infiniband/hw/usnic/usnic_vnic.h 	struct usnic_vnic_res		**res;
res               207 drivers/infiniband/sw/rxe/rxe_loc.h void free_rd_atomic_resource(struct rxe_qp *qp, struct resp_res *res);
res               143 drivers/infiniband/sw/rxe/rxe_qp.c 			struct resp_res *res = &qp->resp.resources[i];
res               145 drivers/infiniband/sw/rxe/rxe_qp.c 			free_rd_atomic_resource(qp, res);
res               152 drivers/infiniband/sw/rxe/rxe_qp.c void free_rd_atomic_resource(struct rxe_qp *qp, struct resp_res *res)
res               154 drivers/infiniband/sw/rxe/rxe_qp.c 	if (res->type == RXE_ATOMIC_MASK) {
res               156 drivers/infiniband/sw/rxe/rxe_qp.c 		kfree_skb(res->atomic.skb);
res               157 drivers/infiniband/sw/rxe/rxe_qp.c 	} else if (res->type == RXE_READ_MASK) {
res               158 drivers/infiniband/sw/rxe/rxe_qp.c 		if (res->read.mr)
res               159 drivers/infiniband/sw/rxe/rxe_qp.c 			rxe_drop_ref(res->read.mr);
res               161 drivers/infiniband/sw/rxe/rxe_qp.c 	res->type = 0;
res               167 drivers/infiniband/sw/rxe/rxe_qp.c 	struct resp_res *res;
res               171 drivers/infiniband/sw/rxe/rxe_qp.c 			res = &qp->resp.resources[i];
res               172 drivers/infiniband/sw/rxe/rxe_qp.c 			free_rd_atomic_resource(qp, res);
res               141 drivers/infiniband/sw/rxe/rxe_resp.c 	return (qp->resp.res) ? RESPST_READ_REPLY : RESPST_CHK_PSN;
res               667 drivers/infiniband/sw/rxe/rxe_resp.c 	struct resp_res *res = qp->resp.res;
res               671 drivers/infiniband/sw/rxe/rxe_resp.c 	if (!res) {
res               675 drivers/infiniband/sw/rxe/rxe_resp.c 		res = &qp->resp.resources[qp->resp.res_head];
res               677 drivers/infiniband/sw/rxe/rxe_resp.c 		free_rd_atomic_resource(qp, res);
res               680 drivers/infiniband/sw/rxe/rxe_resp.c 		res->type		= RXE_READ_MASK;
res               681 drivers/infiniband/sw/rxe/rxe_resp.c 		res->replay		= 0;
res               683 drivers/infiniband/sw/rxe/rxe_resp.c 		res->read.va		= qp->resp.va;
res               684 drivers/infiniband/sw/rxe/rxe_resp.c 		res->read.va_org	= qp->resp.va;
res               686 drivers/infiniband/sw/rxe/rxe_resp.c 		res->first_psn		= req_pkt->psn;
res               689 drivers/infiniband/sw/rxe/rxe_resp.c 			res->last_psn	= (req_pkt->psn +
res               693 drivers/infiniband/sw/rxe/rxe_resp.c 			res->last_psn	= res->first_psn;
res               695 drivers/infiniband/sw/rxe/rxe_resp.c 		res->cur_psn		= req_pkt->psn;
res               697 drivers/infiniband/sw/rxe/rxe_resp.c 		res->read.resid		= qp->resp.resid;
res               698 drivers/infiniband/sw/rxe/rxe_resp.c 		res->read.length	= qp->resp.resid;
res               699 drivers/infiniband/sw/rxe/rxe_resp.c 		res->read.rkey		= qp->resp.rkey;
res               702 drivers/infiniband/sw/rxe/rxe_resp.c 		res->read.mr		= qp->resp.mr;
res               705 drivers/infiniband/sw/rxe/rxe_resp.c 		qp->resp.res		= res;
res               706 drivers/infiniband/sw/rxe/rxe_resp.c 		res->state		= rdatm_res_state_new;
res               709 drivers/infiniband/sw/rxe/rxe_resp.c 	if (res->state == rdatm_res_state_new) {
res               710 drivers/infiniband/sw/rxe/rxe_resp.c 		if (res->read.resid <= mtu)
res               715 drivers/infiniband/sw/rxe/rxe_resp.c 		if (res->read.resid > mtu)
res               721 drivers/infiniband/sw/rxe/rxe_resp.c 	res->state = rdatm_res_state_next;
res               723 drivers/infiniband/sw/rxe/rxe_resp.c 	payload = min_t(int, res->read.resid, mtu);
res               726 drivers/infiniband/sw/rxe/rxe_resp.c 				 res->cur_psn, AETH_ACK_UNLIMITED, &icrc);
res               730 drivers/infiniband/sw/rxe/rxe_resp.c 	err = rxe_mem_copy(res->read.mr, res->read.va, payload_addr(&ack_pkt),
res               751 drivers/infiniband/sw/rxe/rxe_resp.c 	res->read.va += payload;
res               752 drivers/infiniband/sw/rxe/rxe_resp.c 	res->read.resid -= payload;
res               753 drivers/infiniband/sw/rxe/rxe_resp.c 	res->cur_psn = (res->cur_psn + 1) & BTH_PSN_MASK;
res               755 drivers/infiniband/sw/rxe/rxe_resp.c 	if (res->read.resid > 0) {
res               758 drivers/infiniband/sw/rxe/rxe_resp.c 		qp->resp.res = NULL;
res               759 drivers/infiniband/sw/rxe/rxe_resp.c 		if (!res->replay)
res               761 drivers/infiniband/sw/rxe/rxe_resp.c 		if (psn_compare(res->cur_psn, qp->resp.psn) >= 0)
res               762 drivers/infiniband/sw/rxe/rxe_resp.c 			qp->resp.psn = res->cur_psn;
res               986 drivers/infiniband/sw/rxe/rxe_resp.c 	struct resp_res *res;
res               998 drivers/infiniband/sw/rxe/rxe_resp.c 	res = &qp->resp.resources[qp->resp.res_head];
res               999 drivers/infiniband/sw/rxe/rxe_resp.c 	free_rd_atomic_resource(qp, res);
res              1007 drivers/infiniband/sw/rxe/rxe_resp.c 	res->type = RXE_ATOMIC_MASK;
res              1008 drivers/infiniband/sw/rxe/rxe_resp.c 	res->atomic.skb = skb;
res              1009 drivers/infiniband/sw/rxe/rxe_resp.c 	res->first_psn = ack_pkt.psn;
res              1010 drivers/infiniband/sw/rxe/rxe_resp.c 	res->last_psn  = ack_pkt.psn;
res              1011 drivers/infiniband/sw/rxe/rxe_resp.c 	res->cur_psn   = ack_pkt.psn;
res              1062 drivers/infiniband/sw/rxe/rxe_resp.c 		struct resp_res *res = &qp->resp.resources[i];
res              1064 drivers/infiniband/sw/rxe/rxe_resp.c 		if (res->type == 0)
res              1067 drivers/infiniband/sw/rxe/rxe_resp.c 		if (psn_compare(psn, res->first_psn) >= 0 &&
res              1068 drivers/infiniband/sw/rxe/rxe_resp.c 		    psn_compare(psn, res->last_psn) <= 0) {
res              1069 drivers/infiniband/sw/rxe/rxe_resp.c 			return res;
res              1090 drivers/infiniband/sw/rxe/rxe_resp.c 		struct resp_res *res;
res              1092 drivers/infiniband/sw/rxe/rxe_resp.c 		res = find_resource(qp, pkt->psn);
res              1093 drivers/infiniband/sw/rxe/rxe_resp.c 		if (!res) {
res              1106 drivers/infiniband/sw/rxe/rxe_resp.c 			if (iova < res->read.va_org ||
res              1107 drivers/infiniband/sw/rxe/rxe_resp.c 			    resid > res->read.length ||
res              1108 drivers/infiniband/sw/rxe/rxe_resp.c 			    (iova + resid) > (res->read.va_org +
res              1109 drivers/infiniband/sw/rxe/rxe_resp.c 					      res->read.length)) {
res              1114 drivers/infiniband/sw/rxe/rxe_resp.c 			if (reth_rkey(pkt) != res->read.rkey) {
res              1119 drivers/infiniband/sw/rxe/rxe_resp.c 			res->cur_psn = pkt->psn;
res              1120 drivers/infiniband/sw/rxe/rxe_resp.c 			res->state = (pkt->psn == res->first_psn) ?
res              1123 drivers/infiniband/sw/rxe/rxe_resp.c 			res->replay = 1;
res              1126 drivers/infiniband/sw/rxe/rxe_resp.c 			res->read.va_org = iova;
res              1127 drivers/infiniband/sw/rxe/rxe_resp.c 			res->read.va = iova;
res              1128 drivers/infiniband/sw/rxe/rxe_resp.c 			res->read.resid = resid;
res              1131 drivers/infiniband/sw/rxe/rxe_resp.c 			qp->resp.res = res;
res              1136 drivers/infiniband/sw/rxe/rxe_resp.c 		struct resp_res *res;
res              1139 drivers/infiniband/sw/rxe/rxe_resp.c 		res = find_resource(qp, pkt->psn);
res              1140 drivers/infiniband/sw/rxe/rxe_resp.c 		if (res) {
res              1141 drivers/infiniband/sw/rxe/rxe_resp.c 			skb_get(res->atomic.skb);
res              1143 drivers/infiniband/sw/rxe/rxe_resp.c 			rc = rxe_xmit_packet(qp, pkt, res->atomic.skb);
res               231 drivers/infiniband/sw/rxe/rxe_verbs.h 	struct resp_res		*res;
res               729 drivers/infiniband/sw/siw/siw.h 	ibdev_dbg(pd->device, "PD[%u] %s: " fmt, pd->res.id, __func__,         \
res               285 drivers/infiniband/ulp/iser/iser_verbs.c 	struct iser_reg_resources *res = &desc->rsc;
res               287 drivers/infiniband/ulp/iser/iser_verbs.c 	ib_dereg_mr(res->mr);
res               288 drivers/infiniband/ulp/iser/iser_verbs.c 	if (res->sig_mr) {
res               289 drivers/infiniband/ulp/iser/iser_verbs.c 		ib_dereg_mr(res->sig_mr);
res               290 drivers/infiniband/ulp/iser/iser_verbs.c 		res->sig_mr = NULL;
res               184 drivers/infiniband/ulp/srp/ib_srp.c 	int tmo, res;
res               186 drivers/infiniband/ulp/srp/ib_srp.c 	res = srp_parse_tmo(&tmo, val);
res               187 drivers/infiniband/ulp/srp/ib_srp.c 	if (res)
res               191 drivers/infiniband/ulp/srp/ib_srp.c 		res = srp_tmo_valid(tmo, srp_fast_io_fail_tmo,
res               194 drivers/infiniband/ulp/srp/ib_srp.c 		res = srp_tmo_valid(srp_reconnect_delay, tmo, srp_dev_loss_tmo);
res               196 drivers/infiniband/ulp/srp/ib_srp.c 		res = srp_tmo_valid(srp_reconnect_delay, srp_fast_io_fail_tmo,
res               198 drivers/infiniband/ulp/srp/ib_srp.c 	if (res)
res               203 drivers/infiniband/ulp/srp/ib_srp.c 	return res;
res              1249 drivers/infiniband/ulp/srp/ib_srp.c 	int i, res;
res              1260 drivers/infiniband/ulp/srp/ib_srp.c 			res = srp_inv_rkey(req, ch, (*pfr)->mr->rkey);
res              1261 drivers/infiniband/ulp/srp/ib_srp.c 			if (res < 0) {
res              1264 drivers/infiniband/ulp/srp/ib_srp.c 				  (*pfr)->mr->rkey, res);
res              2254 drivers/infiniband/ulp/srp/ib_srp.c 	int res;
res              2302 drivers/infiniband/ulp/srp/ib_srp.c 	res = srp_post_recv(ch, iu);
res              2303 drivers/infiniband/ulp/srp/ib_srp.c 	if (res != 0)
res              2305 drivers/infiniband/ulp/srp/ib_srp.c 			     PFX "Recv failed with error code %d\n", res);
res              2917 drivers/infiniband/ulp/srp/ib_srp.c 	int res;
res              2964 drivers/infiniband/ulp/srp/ib_srp.c 	res = wait_for_completion_timeout(&ch->tsk_mgmt_done,
res              2966 drivers/infiniband/ulp/srp/ib_srp.c 	if (res > 0 && status)
res              2970 drivers/infiniband/ulp/srp/ib_srp.c 	WARN_ON_ONCE(res < 0);
res              2972 drivers/infiniband/ulp/srp/ib_srp.c 	return res > 0 ? 0 : -1;
res              1618 drivers/infiniband/ulp/srpt/ib_srpt.c 	bool res = false;
res              1671 drivers/infiniband/ulp/srpt/ib_srpt.c 	res = true;
res              1674 drivers/infiniband/ulp/srpt/ib_srpt.c 	return res;
res              1962 drivers/infiniband/ulp/srpt/ib_srpt.c 	bool res = true;
res              1968 drivers/infiniband/ulp/srpt/ib_srpt.c 				res = false;
res              1976 drivers/infiniband/ulp/srpt/ib_srpt.c 	return res;
res              2936 drivers/infiniband/ulp/srpt/ib_srpt.c 	bool res = true;
res              2941 drivers/infiniband/ulp/srpt/ib_srpt.c 			res = false;
res              2944 drivers/infiniband/ulp/srpt/ib_srpt.c 	return res;
res              3750 drivers/infiniband/ulp/srpt/ib_srpt.c 	int res;
res              3756 drivers/infiniband/ulp/srpt/ib_srpt.c 	res = core_tpg_register(wwn, tpg, SCSI_PROTOCOL_SRP);
res              3757 drivers/infiniband/ulp/srpt/ib_srpt.c 	if (res)
res              3758 drivers/infiniband/ulp/srpt/ib_srpt.c 		return ERR_PTR(res);
res               179 drivers/input/input-polldev.c static int devm_input_polldev_match(struct device *dev, void *res, void *data)
res               181 drivers/input/input-polldev.c 	struct input_polled_devres *devres = res;
res               186 drivers/input/input-polldev.c static void devm_input_polldev_release(struct device *dev, void *res)
res               188 drivers/input/input-polldev.c 	struct input_polled_devres *devres = res;
res               198 drivers/input/input-polldev.c static void devm_input_polldev_unregister(struct device *dev, void *res)
res               200 drivers/input/input-polldev.c 	struct input_polled_devres *devres = res;
res              1842 drivers/input/input.c static int devm_input_device_match(struct device *dev, void *res, void *data)
res              1844 drivers/input/input.c 	struct input_devres *devres = res;
res              1849 drivers/input/input.c static void devm_input_device_release(struct device *dev, void *res)
res              1851 drivers/input/input.c 	struct input_devres *devres = res;
res              2106 drivers/input/input.c static void devm_input_device_unregister(struct device *dev, void *res)
res              2108 drivers/input/input.c 	struct input_devres *devres = res;
res                33 drivers/input/joystick/maplecontrol.c 	unsigned char *res = mq->recvbuf->buf;
res                35 drivers/input/joystick/maplecontrol.c 	buttons = ~le16_to_cpup((__le16 *)(res + 8));
res                55 drivers/input/joystick/maplecontrol.c 	input_report_abs(dev, ABS_GAS,    res[10]);
res                56 drivers/input/joystick/maplecontrol.c 	input_report_abs(dev, ABS_BRAKE,  res[11]);
res                57 drivers/input/joystick/maplecontrol.c 	input_report_abs(dev, ABS_X,      res[12]);
res                58 drivers/input/joystick/maplecontrol.c 	input_report_abs(dev, ABS_Y,      res[13]);
res                59 drivers/input/joystick/maplecontrol.c 	input_report_abs(dev, ABS_RX,     res[14]);
res                60 drivers/input/joystick/maplecontrol.c 	input_report_abs(dev, ABS_RY,     res[15]);
res               321 drivers/input/keyboard/bcm-keypad.c 	struct resource *res;
res               368 drivers/input/keyboard/bcm-keypad.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               369 drivers/input/keyboard/bcm-keypad.c 	if (!res) {
res               374 drivers/input/keyboard/bcm-keypad.c 	kp->base = devm_ioremap_resource(&pdev->dev, res);
res               156 drivers/input/keyboard/davinci_keyscan.c 	struct resource *res, *mem;
res               199 drivers/input/keyboard/davinci_keyscan.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               200 drivers/input/keyboard/davinci_keyscan.c 	if (!res) {
res               206 drivers/input/keyboard/davinci_keyscan.c 	davinci_ks->pbase = res->start;
res               207 drivers/input/keyboard/davinci_keyscan.c 	davinci_ks->base_size = resource_size(res);
res               233 drivers/input/keyboard/ep93xx_keypad.c 	struct resource *res;
res               258 drivers/input/keyboard/ep93xx_keypad.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               259 drivers/input/keyboard/ep93xx_keypad.c 	if (!res) {
res               264 drivers/input/keyboard/ep93xx_keypad.c 	res = request_mem_region(res->start, resource_size(res), pdev->name);
res               265 drivers/input/keyboard/ep93xx_keypad.c 	if (!res) {
res               270 drivers/input/keyboard/ep93xx_keypad.c 	keypad->mmio_base = ioremap(res->start, resource_size(res));
res               335 drivers/input/keyboard/ep93xx_keypad.c 	release_mem_region(res->start, resource_size(res));
res               344 drivers/input/keyboard/ep93xx_keypad.c 	struct resource *res;
res               358 drivers/input/keyboard/ep93xx_keypad.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               359 drivers/input/keyboard/ep93xx_keypad.c 	release_mem_region(res->start, resource_size(res));
res               106 drivers/input/keyboard/goldfish_events.c 	struct resource *res;
res               117 drivers/input/keyboard/goldfish_events.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               118 drivers/input/keyboard/goldfish_events.c 	if (!res)
res               121 drivers/input/keyboard/goldfish_events.c 	addr = devm_ioremap(&pdev->dev, res->start, 4096);
res               163 drivers/input/keyboard/lpc32xx-keys.c 	struct resource *res;
res               168 drivers/input/keyboard/lpc32xx-keys.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               169 drivers/input/keyboard/lpc32xx-keys.c 	if (!res) {
res               224 drivers/input/keyboard/lpc32xx-keys.c 	kscandat->kscan_base = devm_ioremap_resource(&pdev->dev, res);
res               228 drivers/input/keyboard/nomadik-ske-keypad.c 	struct resource *res;
res               241 drivers/input/keyboard/nomadik-ske-keypad.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               242 drivers/input/keyboard/nomadik-ske-keypad.c 	if (!res) {
res               260 drivers/input/keyboard/nomadik-ske-keypad.c 	if (!request_mem_region(res->start, resource_size(res), pdev->name)) {
res               266 drivers/input/keyboard/nomadik-ske-keypad.c 	keypad->reg_base = ioremap(res->start, resource_size(res));
res               360 drivers/input/keyboard/nomadik-ske-keypad.c 	release_mem_region(res->start, resource_size(res));
res               370 drivers/input/keyboard/nomadik-ske-keypad.c 	struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               383 drivers/input/keyboard/nomadik-ske-keypad.c 	release_mem_region(res->start, resource_size(res));
res               163 drivers/input/keyboard/nspire-keypad.c 	struct resource *res;
res               202 drivers/input/keyboard/nspire-keypad.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               203 drivers/input/keyboard/nspire-keypad.c 	keypad->reg_base = devm_ioremap_resource(&pdev->dev, res);
res               249 drivers/input/keyboard/nspire-keypad.c 		res, keypad->row_delay, keypad->scan_interval,
res               230 drivers/input/keyboard/omap4-keypad.c 	struct resource *res;
res               236 drivers/input/keyboard/omap4-keypad.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               237 drivers/input/keyboard/omap4-keypad.c 	if (!res) {
res               260 drivers/input/keyboard/omap4-keypad.c 	res = request_mem_region(res->start, resource_size(res), pdev->name);
res               261 drivers/input/keyboard/omap4-keypad.c 	if (!res) {
res               267 drivers/input/keyboard/omap4-keypad.c 	keypad_data->base = ioremap(res->start, resource_size(res));
res               378 drivers/input/keyboard/omap4-keypad.c 	release_mem_region(res->start, resource_size(res));
res               387 drivers/input/keyboard/omap4-keypad.c 	struct resource *res;
res               397 drivers/input/keyboard/omap4-keypad.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               398 drivers/input/keyboard/omap4-keypad.c 	release_mem_region(res->start, resource_size(res));
res                42 drivers/input/keyboard/opencores-kbd.c 	struct resource *res;
res                45 drivers/input/keyboard/opencores-kbd.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                46 drivers/input/keyboard/opencores-kbd.c 	if (!res) {
res                68 drivers/input/keyboard/opencores-kbd.c 	opencores_kbd->addr = devm_ioremap_resource(&pdev->dev, res);
res               722 drivers/input/keyboard/pxa27x_keypad.c 	struct resource *res;
res               733 drivers/input/keyboard/pxa27x_keypad.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               734 drivers/input/keyboard/pxa27x_keypad.c 	if (res == NULL) {
res               752 drivers/input/keyboard/pxa27x_keypad.c 	keypad->mmio_base = devm_ioremap_resource(&pdev->dev, res);
res                87 drivers/input/keyboard/pxa930_rotary.c 	struct resource *res;
res                95 drivers/input/keyboard/pxa930_rotary.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                96 drivers/input/keyboard/pxa930_rotary.c 	if (!res) {
res               110 drivers/input/keyboard/pxa930_rotary.c 	r->mmio_base = ioremap_nocache(res->start, resource_size(res));
res               320 drivers/input/keyboard/samsung-keypad.c 	struct resource *res;
res               358 drivers/input/keyboard/samsung-keypad.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               359 drivers/input/keyboard/samsung-keypad.c 	if (!res)
res               362 drivers/input/keyboard/samsung-keypad.c 	keypad->base = devm_ioremap(&pdev->dev, res->start, resource_size(res));
res               165 drivers/input/keyboard/sh_keysc.c 	struct resource *res;
res               177 drivers/input/keyboard/sh_keysc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               178 drivers/input/keyboard/sh_keysc.c 	if (res == NULL) {
res               198 drivers/input/keyboard/sh_keysc.c 	priv->iomem_base = ioremap_nocache(res->start, resource_size(res));
res               189 drivers/input/keyboard/spear-keyboard.c 	struct resource *res;
res               222 drivers/input/keyboard/spear-keyboard.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               223 drivers/input/keyboard/spear-keyboard.c 	kbd->io_base = devm_ioremap_resource(&pdev->dev, res);
res               126 drivers/input/keyboard/st-keyscan.c 	struct resource *res;
res               170 drivers/input/keyboard/st-keyscan.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               171 drivers/input/keyboard/st-keyscan.c 	keypad_data->base = devm_ioremap_resource(&pdev->dev, res);
res               601 drivers/input/keyboard/tegra-kbc.c 	struct resource *res;
res               645 drivers/input/keyboard/tegra-kbc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               646 drivers/input/keyboard/tegra-kbc.c 	kbc->mmio = devm_ioremap_resource(&pdev->dev, res);
res                67 drivers/input/misc/cobalt_btns.c 	struct resource *res;
res                99 drivers/input/misc/cobalt_btns.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               100 drivers/input/misc/cobalt_btns.c 	if (!res) {
res               106 drivers/input/misc/cobalt_btns.c 	bdev->reg = ioremap(res->start, resource_size(res));
res               201 drivers/input/misc/hp_sdc_rtc.c static inline int hp_sdc_rtc_read_rt(struct timespec64 *res) {
res               212 drivers/input/misc/hp_sdc_rtc.c 	res->tv_nsec = (long)(tenms % 100) * 10000 * 1000;
res               213 drivers/input/misc/hp_sdc_rtc.c 	res->tv_sec =  (tenms / 100) + (time64_t)days * 86400;
res               220 drivers/input/misc/hp_sdc_rtc.c static inline int hp_sdc_rtc_read_fhs(struct timespec64 *res) {
res               229 drivers/input/misc/hp_sdc_rtc.c 	res->tv_nsec = (long)(tenms % 100) * 10000 * 1000;
res               230 drivers/input/misc/hp_sdc_rtc.c 	res->tv_sec  = (time64_t)(tenms / 100);
res               237 drivers/input/misc/hp_sdc_rtc.c static inline int hp_sdc_rtc_read_mt(struct timespec64 *res) {
res               246 drivers/input/misc/hp_sdc_rtc.c 	res->tv_nsec = (long)(tenms % 100) * 10000 * 1000;
res               247 drivers/input/misc/hp_sdc_rtc.c 	res->tv_sec  = (time64_t)(tenms / 100);
res               254 drivers/input/misc/hp_sdc_rtc.c static inline int hp_sdc_rtc_read_dt(struct timespec64 *res) {
res               263 drivers/input/misc/hp_sdc_rtc.c 	res->tv_nsec = (long)(tenms % 100) * 10000 * 1000;
res               264 drivers/input/misc/hp_sdc_rtc.c 	res->tv_sec  = (time64_t)(tenms / 100);
res               271 drivers/input/misc/hp_sdc_rtc.c static inline int hp_sdc_rtc_read_ct(struct timespec64 *res) {
res               280 drivers/input/misc/hp_sdc_rtc.c 	res->tv_nsec = (long)(tenms % 100) * 10000 * 1000;
res               281 drivers/input/misc/hp_sdc_rtc.c 	res->tv_sec  = (time64_t)(tenms / 100);
res                98 drivers/input/misc/ideapad_slidebar.c 	u8 res;
res               104 drivers/input/misc/ideapad_slidebar.c 	res = inb(0xff2b);
res               107 drivers/input/misc/ideapad_slidebar.c 	return res;
res               112 drivers/input/misc/ideapad_slidebar.c 	u8 res;
res               118 drivers/input/misc/ideapad_slidebar.c 	res = inb(0xff2b);
res               121 drivers/input/misc/ideapad_slidebar.c 	return res;
res               157 drivers/input/misc/msm-vibrator.c 	struct resource *res;
res               193 drivers/input/misc/msm-vibrator.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               194 drivers/input/misc/msm-vibrator.c 	if (!res) {
res               199 drivers/input/misc/msm-vibrator.c 	vibrator->base = devm_ioremap(&pdev->dev, res->start,
res               200 drivers/input/misc/msm-vibrator.c 				     resource_size(res));
res                33 drivers/input/mouse/maplemouse.c 	unsigned char *res = mq->recvbuf->buf;
res                35 drivers/input/mouse/maplemouse.c 	buttons = ~res[8];
res                36 drivers/input/mouse/maplemouse.c 	relx = *(unsigned short *)(res + 12) - 512;
res                37 drivers/input/mouse/maplemouse.c 	rely = *(unsigned short *)(res + 14) - 512;
res                38 drivers/input/mouse/maplemouse.c 	relz = *(unsigned short *)(res + 16) - 512;
res               146 drivers/input/mouse/pxa930_trkball.c 	struct resource *res;
res               153 drivers/input/mouse/pxa930_trkball.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               154 drivers/input/mouse/pxa930_trkball.c 	if (!res) {
res               170 drivers/input/mouse/pxa930_trkball.c 	trkball->mmio_base = ioremap_nocache(res->start, resource_size(res));
res               335 drivers/input/mouse/sentelic.c 	int res = 0;
res               350 drivers/input/mouse/sentelic.c 		res = fsp_reg_write(psmouse, FSP_REG_OPC_QDOWN, nv);
res               354 drivers/input/mouse/sentelic.c 	if (res != 0) {
res               356 drivers/input/mouse/sentelic.c 		res = -EIO;
res               359 drivers/input/mouse/sentelic.c 	return res;
res                81 drivers/input/serio/altera_ps2.c 	struct resource *res;
res                89 drivers/input/serio/altera_ps2.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                90 drivers/input/serio/altera_ps2.c 	ps2if->base = devm_ioremap_resource(&pdev->dev, res);
res               135 drivers/input/serio/ambakmi.c 	kmi->base	= ioremap(dev->res.start, resource_size(&dev->res));
res               136 drivers/input/serio/apbps2.c 	struct resource *res;
res               145 drivers/input/serio/apbps2.c 	res = platform_get_resource(ofdev, IORESOURCE_MEM, 0);
res               146 drivers/input/serio/apbps2.c 	priv->regs = devm_ioremap_resource(&ofdev->dev, res);
res               185 drivers/input/serio/arc_ps2.c 	struct resource *res;
res               200 drivers/input/serio/arc_ps2.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               201 drivers/input/serio/arc_ps2.c 	arc_ps2->addr = devm_ioremap_resource(&pdev->dev, res);
res               172 drivers/input/serio/olpc_apsp.c 	struct resource *res;
res               181 drivers/input/serio/olpc_apsp.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               182 drivers/input/serio/olpc_apsp.c 	priv->base = devm_ioremap_resource(&pdev->dev, res);
res               295 drivers/input/serio/sa1111ps2.c 	if (!request_mem_region(dev->res.start,
res               296 drivers/input/serio/sa1111ps2.c 				dev->res.end - dev->res.start + 1,
res               336 drivers/input/serio/sa1111ps2.c 	release_mem_region(dev->res.start, resource_size(&dev->res));
res               352 drivers/input/serio/sa1111ps2.c 	release_mem_region(dev->res.start, resource_size(&dev->res));
res               210 drivers/input/serio/sun4i-ps2.c 	struct resource *res; /* IO mem resources */
res               227 drivers/input/serio/sun4i-ps2.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               228 drivers/input/serio/sun4i-ps2.c 	if (!res) {
res               234 drivers/input/serio/sun4i-ps2.c 	drvdata->reg_base = ioremap(res->start, resource_size(res));
res                46 drivers/input/touchscreen/eeti_ts.c 	unsigned int res;
res                49 drivers/input/touchscreen/eeti_ts.c 	res = REPORT_RES_BITS(buf[0] & (REPORT_BIT_AD0 | REPORT_BIT_AD1));
res                55 drivers/input/touchscreen/eeti_ts.c 	x >>= res - EETI_TS_BITDEPTH;
res                56 drivers/input/touchscreen/eeti_ts.c 	y >>= res - EETI_TS_BITDEPTH;
res               203 drivers/input/touchscreen/lpc32xx_ts.c 	struct resource *res;
res               208 drivers/input/touchscreen/lpc32xx_ts.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               209 drivers/input/touchscreen/lpc32xx_ts.c 	if (!res) {
res               229 drivers/input/touchscreen/lpc32xx_ts.c 	size = resource_size(res);
res               231 drivers/input/touchscreen/lpc32xx_ts.c 	if (!request_mem_region(res->start, size, pdev->name)) {
res               237 drivers/input/touchscreen/lpc32xx_ts.c 	tsc->tsc_base = ioremap(res->start, size);
res               295 drivers/input/touchscreen/lpc32xx_ts.c 	release_mem_region(res->start, size);
res               306 drivers/input/touchscreen/lpc32xx_ts.c 	struct resource *res;
res               315 drivers/input/touchscreen/lpc32xx_ts.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               316 drivers/input/touchscreen/lpc32xx_ts.c 	release_mem_region(res->start, resource_size(res));
res               197 drivers/input/touchscreen/melfas_mip4.c 	int res;
res               201 drivers/input/touchscreen/melfas_mip4.c 		res = i2c_transfer(ts->client->adapter, msg, ARRAY_SIZE(msg));
res               202 drivers/input/touchscreen/melfas_mip4.c 		if (res == ARRAY_SIZE(msg))
res               205 drivers/input/touchscreen/melfas_mip4.c 		error = res < 0 ? res : -EIO;
res               208 drivers/input/touchscreen/melfas_mip4.c 			__func__, error, res);
res                38 drivers/input/touchscreen/pcap_ts.c static void pcap_ts_read_xy(void *data, u16 res[2])
res                45 drivers/input/touchscreen/pcap_ts.c 		if (res[0] > PRESSURE_MIN && res[0] < PRESSURE_MAX)
res                46 drivers/input/touchscreen/pcap_ts.c 			pcap_ts->pressure = res[0];
res                51 drivers/input/touchscreen/pcap_ts.c 		pcap_ts->y = res[0];
res                52 drivers/input/touchscreen/pcap_ts.c 		pcap_ts->x = res[1];
res               232 drivers/input/touchscreen/s3c2410_ts.c 	struct resource *res;
res               267 drivers/input/touchscreen/s3c2410_ts.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               268 drivers/input/touchscreen/s3c2410_ts.c 	if (!res) {
res               274 drivers/input/touchscreen/s3c2410_ts.c 	ts.io = ioremap(res->start, resource_size(res));
res              1028 drivers/input/touchscreen/wdt87xx_i2c.c 	unsigned int res = DIV_ROUND_CLOSEST(MAX_UNIT_AXIS, wdt->param.phy_w);
res              1048 drivers/input/touchscreen/wdt87xx_i2c.c 	input_abs_set_res(input, ABS_MT_POSITION_X, res);
res              1049 drivers/input/touchscreen/wdt87xx_i2c.c 	input_abs_set_res(input, ABS_MT_POSITION_Y, res);
res               112 drivers/iommu/amd_iommu_init.c 	u64 res;
res              3578 drivers/iommu/arm-smmu-v3.c 	struct resource *res;
res              3603 drivers/iommu/arm-smmu-v3.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              3604 drivers/iommu/arm-smmu-v3.c 	if (resource_size(res) + 1 < arm_smmu_resource_size(smmu)) {
res              3605 drivers/iommu/arm-smmu-v3.c 		dev_err(dev, "MMIO region too small (%pr)\n", res);
res              3608 drivers/iommu/arm-smmu-v3.c 	ioaddr = res->start;
res              3610 drivers/iommu/arm-smmu-v3.c 	smmu->base = devm_ioremap_resource(dev, res);
res              2006 drivers/iommu/arm-smmu.c 	struct resource *res;
res              2031 drivers/iommu/arm-smmu.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              2032 drivers/iommu/arm-smmu.c 	ioaddr = res->start;
res              2033 drivers/iommu/arm-smmu.c 	smmu->base = devm_ioremap_resource(dev, res);
res              2040 drivers/iommu/arm-smmu.c 	smmu->numpage = resource_size(res);
res              2043 drivers/iommu/arm-smmu.c 	while ((res = platform_get_resource(pdev, IORESOURCE_IRQ, num_irqs))) {
res               203 drivers/iommu/dma-iommu.c 		if (resource_type(window->res) != IORESOURCE_MEM)
res               206 drivers/iommu/dma-iommu.c 		lo = iova_pfn(iovad, window->res->start - window->offset);
res               207 drivers/iommu/dma-iommu.c 		hi = iova_pfn(iovad, window->res->end - window->offset);
res               213 drivers/iommu/dma-iommu.c 		end = window->res->start - window->offset;
res               225 drivers/iommu/dma-iommu.c 		start = window->res->end - window->offset + 1;
res               574 drivers/iommu/exynos-iommu.c 	struct resource *res;
res               580 drivers/iommu/exynos-iommu.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               581 drivers/iommu/exynos-iommu.c 	data->sfrbase = devm_ioremap_resource(dev, res);
res              1049 drivers/iommu/ipmmu-vmsa.c 	struct resource *res;
res              1067 drivers/iommu/ipmmu-vmsa.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1068 drivers/iommu/ipmmu-vmsa.c 	mmu->base = devm_ioremap_resource(&pdev->dev, res);
res               665 drivers/iommu/mtk_iommu.c 	struct resource         *res;
res               688 drivers/iommu/mtk_iommu.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               689 drivers/iommu/mtk_iommu.c 	data->base = devm_ioremap_resource(dev, res);
res               692 drivers/iommu/mtk_iommu.c 	ioaddr = res->start;
res               556 drivers/iommu/mtk_iommu_v1.c 	struct resource			*res;
res               576 drivers/iommu/mtk_iommu_v1.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               577 drivers/iommu/mtk_iommu_v1.c 	data->base = devm_ioremap_resource(dev, res);
res              1178 drivers/iommu/omap-iommu.c 	struct resource *res;
res              1221 drivers/iommu/omap-iommu.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1222 drivers/iommu/omap-iommu.c 	obj->regbase = devm_ioremap_resource(obj->dev, res);
res               708 drivers/iommu/qcom_iommu.c 	struct resource *res;
res               718 drivers/iommu/qcom_iommu.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               719 drivers/iommu/qcom_iommu.c 	ctx->base = devm_ioremap_resource(dev, res);
res               800 drivers/iommu/qcom_iommu.c 	struct resource *res;
res               816 drivers/iommu/qcom_iommu.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               817 drivers/iommu/qcom_iommu.c 	if (res) {
res               818 drivers/iommu/qcom_iommu.c 		qcom_iommu->local_base = devm_ioremap_resource(dev, res);
res              1141 drivers/iommu/rockchip-iommu.c 	struct resource *res;
res              1159 drivers/iommu/rockchip-iommu.c 		res = platform_get_resource(pdev, IORESOURCE_MEM, i);
res              1160 drivers/iommu/rockchip-iommu.c 		if (!res)
res              1162 drivers/iommu/rockchip-iommu.c 		iommu->bases[i] = devm_ioremap_resource(&pdev->dev, res);
res               334 drivers/iommu/tegra-gart.c 	struct resource *res;
res               340 drivers/iommu/tegra-gart.c 	res = platform_get_resource(to_platform_device(dev), IORESOURCE_MEM, 1);
res               341 drivers/iommu/tegra-gart.c 	if (!res) {
res               354 drivers/iommu/tegra-gart.c 	gart->iovmm_base = res->start;
res               355 drivers/iommu/tegra-gart.c 	gart->iovmm_end = res->end + 1;
res               372 drivers/iommu/tegra-gart.c 	gart->savedata = vmalloc(resource_size(res) / GART_PAGE_SIZE *
res               197 drivers/ipack/carriers/tpci200.c 	int res = 0;
res               213 drivers/ipack/carriers/tpci200.c 		res = -EINVAL;
res               222 drivers/ipack/carriers/tpci200.c 		res = -ENOMEM;
res               241 drivers/ipack/carriers/tpci200.c 	return res;
res               247 drivers/ipack/carriers/tpci200.c 	int res;
res               255 drivers/ipack/carriers/tpci200.c 	res = pci_request_region(tpci200->info->pdev, TPCI200_IP_INTERFACE_BAR,
res               257 drivers/ipack/carriers/tpci200.c 	if (res) {
res               266 drivers/ipack/carriers/tpci200.c 	res = pci_request_region(tpci200->info->pdev,
res               269 drivers/ipack/carriers/tpci200.c 	if (res) {
res               278 drivers/ipack/carriers/tpci200.c 	res = pci_request_region(tpci200->info->pdev, TPCI200_MEM8_SPACE_BAR,
res               280 drivers/ipack/carriers/tpci200.c 	if (res) {
res               289 drivers/ipack/carriers/tpci200.c 	res = pci_request_region(tpci200->info->pdev, TPCI200_MEM16_SPACE_BAR,
res               291 drivers/ipack/carriers/tpci200.c 	if (res) {
res               309 drivers/ipack/carriers/tpci200.c 		res = -ENOMEM;
res               341 drivers/ipack/carriers/tpci200.c 	res = request_irq(tpci200->info->pdev->irq,
res               344 drivers/ipack/carriers/tpci200.c 	if (res) {
res               362 drivers/ipack/carriers/tpci200.c 	return res;
res               463 drivers/ipack/carriers/tpci200.c 	int res;
res               470 drivers/ipack/carriers/tpci200.c 	res = tpci200_register(tpci200);
res               471 drivers/ipack/carriers/tpci200.c 	if (res) {
res               474 drivers/ipack/carriers/tpci200.c 		return res;
res               266 drivers/ipack/devices/ipoctal.c 	int res;
res               374 drivers/ipack/devices/ipoctal.c 	res = tty_register_driver(tty);
res               375 drivers/ipack/devices/ipoctal.c 	if (res) {
res               378 drivers/ipack/devices/ipoctal.c 		return res;
res               669 drivers/ipack/devices/ipoctal.c 	int res;
res               677 drivers/ipack/devices/ipoctal.c 	res = ipoctal_inst_slot(ipoctal, dev->bus->bus_nr, dev->slot);
res               678 drivers/ipack/devices/ipoctal.c 	if (res)
res               686 drivers/ipack/devices/ipoctal.c 	return res;
res               234 drivers/irqchip/irq-alpine-msi.c 	struct resource res;
res               243 drivers/irqchip/irq-alpine-msi.c 	ret = of_address_to_resource(node, 0, &res);
res               256 drivers/irqchip/irq-alpine-msi.c 	priv->addr = res.start & GENMASK_ULL(63,20);
res               240 drivers/irqchip/irq-bcm6345-l1.c 	struct resource res;
res               245 drivers/irqchip/irq-bcm6345-l1.c 	if (of_address_to_resource(dn, idx, &res))
res               247 drivers/irqchip/irq-bcm6345-l1.c 	sz = resource_size(&res);
res               260 drivers/irqchip/irq-bcm6345-l1.c 	cpu->map_base = ioremap(res.start, sz);
res               248 drivers/irqchip/irq-bcm7038-l1.c 	struct resource res;
res               253 drivers/irqchip/irq-bcm7038-l1.c 	if (of_address_to_resource(dn, idx, &res))
res               255 drivers/irqchip/irq-bcm7038-l1.c 	sz = resource_size(&res);
res               270 drivers/irqchip/irq-bcm7038-l1.c 	cpu->map_base = ioremap(res.start, sz);
res               224 drivers/irqchip/irq-clps711x.c 	struct resource res;
res               227 drivers/irqchip/irq-clps711x.c 	err = of_address_to_resource(np, 0, &res);
res               231 drivers/irqchip/irq-clps711x.c 	return _clps711x_intc_init(np, res.start, resource_size(&res));
res                77 drivers/irqchip/irq-csky-apb-intc.c 	u32 res;
res                82 drivers/irqchip/irq-csky-apb-intc.c 	res = idx | (idx << 8) | (idx << 16) | (idx << 24);
res                89 drivers/irqchip/irq-csky-apb-intc.c 	return res | magic;
res                64 drivers/irqchip/irq-gic-v2m.c 	struct resource res;	/* GICv2m resource */
res               102 drivers/irqchip/irq-gic-v2m.c 		return v2m->res.start | ((hwirq - 32) << 3);
res               104 drivers/irqchip/irq-gic-v2m.c 		return v2m->res.start + V2M_MSI_SETSPI_NS;
res               319 drivers/irqchip/irq-gic-v2m.c 				  struct resource *res, u32 flags)
res               334 drivers/irqchip/irq-gic-v2m.c 	memcpy(&v2m->res, res, sizeof(struct resource));
res               336 drivers/irqchip/irq-gic-v2m.c 	v2m->base = ioremap(v2m->res.start, resource_size(&v2m->res));
res               399 drivers/irqchip/irq-gic-v2m.c 	pr_info("range%pR, SPI[%d:%d]\n", res,
res               425 drivers/irqchip/irq-gic-v2m.c 		struct resource res;
res               430 drivers/irqchip/irq-gic-v2m.c 		ret = of_address_to_resource(child, 0, &res);
res               443 drivers/irqchip/irq-gic-v2m.c 				      &res, 0);
res               499 drivers/irqchip/irq-gic-v2m.c 	struct resource res;
res               509 drivers/irqchip/irq-gic-v2m.c 	res.start = m->base_address;
res               510 drivers/irqchip/irq-gic-v2m.c 	res.end = m->base_address + SZ_4K - 1;
res               511 drivers/irqchip/irq-gic-v2m.c 	res.flags = IORESOURCE_MEM;
res               515 drivers/irqchip/irq-gic-v2m.c 		res.end = res.start + SZ_8K - 1;
res               528 drivers/irqchip/irq-gic-v2m.c 	fwnode = irq_domain_alloc_fwnode(&res.start);
res               534 drivers/irqchip/irq-gic-v2m.c 	ret = gicv2m_init_one(fwnode, spi_start, nr_spis, &res, flags);
res              3531 drivers/irqchip/irq-gic-v3-its.c static int __init its_compute_its_list_map(struct resource *res,
res              3546 drivers/irqchip/irq-gic-v3-its.c 		       &res->start);
res              3562 drivers/irqchip/irq-gic-v3-its.c 		       &res->start, its_number);
res              3569 drivers/irqchip/irq-gic-v3-its.c static int __init its_probe_one(struct resource *res,
res              3579 drivers/irqchip/irq-gic-v3-its.c 	its_base = ioremap(res->start, resource_size(res));
res              3581 drivers/irqchip/irq-gic-v3-its.c 		pr_warn("ITS@%pa: Unable to map ITS registers\n", &res->start);
res              3587 drivers/irqchip/irq-gic-v3-its.c 		pr_warn("ITS@%pa: No ITS detected, giving up\n", &res->start);
res              3594 drivers/irqchip/irq-gic-v3-its.c 		pr_warn("ITS@%pa: Failed to quiesce, giving up\n", &res->start);
res              3598 drivers/irqchip/irq-gic-v3-its.c 	pr_info("ITS %pR\n", res);
res              3612 drivers/irqchip/irq-gic-v3-its.c 	its->phys_base = res->start;
res              3618 drivers/irqchip/irq-gic-v3-its.c 			err = its_compute_its_list_map(res, its_base);
res              3625 drivers/irqchip/irq-gic-v3-its.c 				&res->start, err);
res              3627 drivers/irqchip/irq-gic-v3-its.c 			pr_info("ITS@%pa: Single VMOVP capable\n", &res->start);
res              3708 drivers/irqchip/irq-gic-v3-its.c 	pr_err("ITS@%pa: failed probing (%d)\n", &res->start, err);
res              3809 drivers/irqchip/irq-gic-v3-its.c 	struct resource res;
res              3821 drivers/irqchip/irq-gic-v3-its.c 		if (of_address_to_resource(np, 0, &res)) {
res              3826 drivers/irqchip/irq-gic-v3-its.c 		its_probe_one(&res, &np->fwnode, of_node_to_nid(np));
res              3935 drivers/irqchip/irq-gic-v3-its.c 	struct resource res;
res              3939 drivers/irqchip/irq-gic-v3-its.c 	memset(&res, 0, sizeof(res));
res              3940 drivers/irqchip/irq-gic-v3-its.c 	res.start = its_entry->base_address;
res              3941 drivers/irqchip/irq-gic-v3-its.c 	res.end = its_entry->base_address + ACPI_GICV3_ITS_MEM_SIZE - 1;
res              3942 drivers/irqchip/irq-gic-v3-its.c 	res.flags = IORESOURCE_MEM;
res              3944 drivers/irqchip/irq-gic-v3-its.c 	dom_handle = irq_domain_alloc_fwnode(&res.start);
res              3947 drivers/irqchip/irq-gic-v3-its.c 		       &res.start);
res              3951 drivers/irqchip/irq-gic-v3-its.c 	err = iort_register_domain_token(its_entry->translation_id, res.start,
res              3955 drivers/irqchip/irq-gic-v3-its.c 		       &res.start, its_entry->translation_id);
res              3959 drivers/irqchip/irq-gic-v3-its.c 	err = its_probe_one(&res, dom_handle,
res               311 drivers/irqchip/irq-gic-v3-mbi.c 		struct resource res;
res               313 drivers/irqchip/irq-gic-v3-mbi.c 		if (of_address_to_resource(np, 0, &res)) {
res               318 drivers/irqchip/irq-gic-v3-mbi.c 		mbi_phys_base = res.start;
res              1756 drivers/irqchip/irq-gic-v3.c 		struct resource res;
res              1759 drivers/irqchip/irq-gic-v3.c 		ret = of_address_to_resource(node, 1 + i, &res);
res              1766 drivers/irqchip/irq-gic-v3.c 		rdist_regs[i].phys_base = res.start;
res               965 drivers/irqchip/irq-gic.c 	struct resource res;
res               966 drivers/irqchip/irq-gic.c 	if (of_address_to_resource(node, 0, &res) == 0) {
res               967 drivers/irqchip/irq-gic.c 		gic_dist_physaddr = res.start;
res               341 drivers/irqchip/irq-ls-scfg-msi.c 	struct resource *res;
res               354 drivers/irqchip/irq-ls-scfg-msi.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               355 drivers/irqchip/irq-ls-scfg-msi.c 	msi_data->regs = devm_ioremap_resource(&pdev->dev, res);
res               360 drivers/irqchip/irq-ls-scfg-msi.c 	msi_data->msiir_addr = res->start;
res               330 drivers/irqchip/irq-mbigen.c 	struct resource *res;
res               339 drivers/irqchip/irq-mbigen.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               340 drivers/irqchip/irq-mbigen.c 	if (!res)
res               343 drivers/irqchip/irq-mbigen.c 	mgn_chip->base = devm_ioremap(&pdev->dev, res->start,
res               344 drivers/irqchip/irq-mbigen.c 				      resource_size(res));
res               346 drivers/irqchip/irq-mbigen.c 		dev_err(&pdev->dev, "failed to ioremap %pR\n", res);
res               677 drivers/irqchip/irq-mips-gic.c 	struct resource res;
res               693 drivers/irqchip/irq-mips-gic.c 	if (of_address_to_resource(node, 0, &res)) {
res               709 drivers/irqchip/irq-mips-gic.c 		gic_base = res.start;
res               710 drivers/irqchip/irq-mips-gic.c 		gic_len = resource_size(&res);
res               165 drivers/irqchip/irq-mtk-sysirq.c 		struct resource res;
res               167 drivers/irqchip/irq-mtk-sysirq.c 		ret = of_address_to_resource(node, i, &res);
res               168 drivers/irqchip/irq-mtk-sysirq.c 		size = resource_size(&res);
res                36 drivers/irqchip/irq-mvebu-gicp.c 	struct resource *res;
res                59 drivers/irqchip/irq-mvebu-gicp.c 	phys_addr_t setspi = gicp->res->start + GICP_SETSPI_NSR_OFFSET;
res                60 drivers/irqchip/irq-mvebu-gicp.c 	phys_addr_t clrspi = gicp->res->start + GICP_CLRSPI_NSR_OFFSET;
res               183 drivers/irqchip/irq-mvebu-gicp.c 	gicp->res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               184 drivers/irqchip/irq-mvebu-gicp.c 	if (!gicp->res)
res               350 drivers/irqchip/irq-mvebu-icu.c 	struct resource *res;
res               360 drivers/irqchip/irq-mvebu-icu.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               361 drivers/irqchip/irq-mvebu-icu.c 	icu->base = devm_ioremap_resource(&pdev->dev, res);
res                38 drivers/irqchip/irq-mvebu-odmi.c 	struct resource res;
res                62 drivers/irqchip/irq-mvebu-odmi.c 	addr = odmi->res.start + GICP_ODMIN_SET;
res               184 drivers/irqchip/irq-mvebu-odmi.c 		ret = of_address_to_resource(node, i, &odmi->res);
res               127 drivers/irqchip/irq-mvebu-pic.c 	struct resource *res;
res               133 drivers/irqchip/irq-mvebu-pic.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               134 drivers/irqchip/irq-mvebu-pic.c 	pic->base = devm_ioremap_resource(&pdev->dev, res);
res                42 drivers/irqchip/irq-mvebu-sei.c 	struct resource *res;
res               142 drivers/irqchip/irq-mvebu-sei.c 	phys_addr_t set = sei->res->start + GICP_SET_SEI_OFFSET;
res               385 drivers/irqchip/irq-mvebu-sei.c 	sei->res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               386 drivers/irqchip/irq-mvebu-sei.c 	sei->base = devm_ioremap_resource(sei->dev, sei->res);
res               309 drivers/irqchip/irq-omap-intc.c 		struct resource res;
res               311 drivers/irqchip/irq-omap-intc.c 		if (of_address_to_resource(node, 0, &res))
res               314 drivers/irqchip/irq-omap-intc.c 		base = res.start;
res               150 drivers/irqchip/irq-ompic.c 	struct resource res;
res               160 drivers/irqchip/irq-ompic.c 	if (of_address_to_resource(node, 0, &res)) {
res               165 drivers/irqchip/irq-ompic.c 	if (resource_size(&res) < (num_possible_cpus() * OMPIC_CPUBYTES)) {
res               167 drivers/irqchip/irq-ompic.c 			resource_size(&res),
res               173 drivers/irqchip/irq-ompic.c 	ompic_base = ioremap(res.start, resource_size(&res));
res               178 drivers/irqchip/irq-sni-exiu.c 				       struct resource *res)
res               193 drivers/irqchip/irq-sni-exiu.c 	data->base = ioremap(res->start, resource_size(res));
res               215 drivers/irqchip/irq-sni-exiu.c 	struct resource res;
res               228 drivers/irqchip/irq-sni-exiu.c 	if (of_address_to_resource(node, 0, &res)) {
res               233 drivers/irqchip/irq-sni-exiu.c 	data = exiu_init(of_node_to_fwnode(node), &res);
res               261 drivers/irqchip/irq-sni-exiu.c 	struct resource *res;
res               263 drivers/irqchip/irq-sni-exiu.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               264 drivers/irqchip/irq-sni-exiu.c 	if (!res) {
res               269 drivers/irqchip/irq-sni-exiu.c 	data = exiu_init(dev_fwnode(&pdev->dev), res);
res               814 drivers/irqchip/irq-stm32-exti.c 	struct resource *res;
res               852 drivers/irqchip/irq-stm32-exti.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               853 drivers/irqchip/irq-stm32-exti.c 	host_data->base = devm_ioremap_resource(dev, res);
res               177 drivers/irqchip/irq-tango.c 	struct resource res;
res               185 drivers/irqchip/irq-tango.c 	err = of_address_to_resource(node, 0, &res);
res               190 drivers/irqchip/irq-tango.c 	chip->ctl = res.start - baseres->start;
res               213 drivers/irqchip/irq-tango.c 	struct resource res;
res               220 drivers/irqchip/irq-tango.c 	of_address_to_resource(node, 0, &res);
res               223 drivers/irqchip/irq-tango.c 		tangox_irq_init(base, &res, c);
res               523 drivers/irqchip/irq-ti-sci-inta.c 	struct resource *res;
res               571 drivers/irqchip/irq-ti-sci-inta.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               572 drivers/irqchip/irq-ti-sci-inta.c 	inta->base = devm_ioremap_resource(dev, res);
res                97 drivers/irqchip/irq-ts4800.c 	struct resource *res;
res               104 drivers/irqchip/irq-ts4800.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               105 drivers/irqchip/irq-ts4800.c 	data->base = devm_ioremap_resource(&pdev->dev, res);
res               683 drivers/isdn/hardware/mISDN/hfcmulti.c 	unsigned char res;
res               693 drivers/isdn/hardware/mISDN/hfcmulti.c 	res = readpcibridge(c, 1);
res               698 drivers/isdn/hardware/mISDN/hfcmulti.c 	return res;
res              2238 drivers/isdn/mISDN/layer2.c 	int res;
res              2245 drivers/isdn/mISDN/layer2.c 	res = mISDN_FsmNew(&l2fsm, L2FnList, ARRAY_SIZE(L2FnList));
res              2246 drivers/isdn/mISDN/layer2.c 	if (res)
res              2248 drivers/isdn/mISDN/layer2.c 	res = TEIInit(deb);
res              2249 drivers/isdn/mISDN/layer2.c 	if (res)
res              2257 drivers/isdn/mISDN/layer2.c 	return res;
res              1378 drivers/isdn/mISDN/tei.c 	int res;
res              1384 drivers/isdn/mISDN/tei.c 	res = mISDN_FsmNew(&teifsmu, TeiFnListUser, ARRAY_SIZE(TeiFnListUser));
res              1385 drivers/isdn/mISDN/tei.c 	if (res)
res              1391 drivers/isdn/mISDN/tei.c 	res = mISDN_FsmNew(&teifsmn, TeiFnListNet, ARRAY_SIZE(TeiFnListNet));
res              1392 drivers/isdn/mISDN/tei.c 	if (res)
res              1398 drivers/isdn/mISDN/tei.c 	res = mISDN_FsmNew(&deactfsm, DeactFnList, ARRAY_SIZE(DeactFnList));
res              1399 drivers/isdn/mISDN/tei.c 	if (res)
res              1408 drivers/isdn/mISDN/tei.c 	return res;
res               368 drivers/leds/led-class.c static void devm_led_classdev_release(struct device *dev, void *res)
res               370 drivers/leds/led-class.c 	led_classdev_unregister(*(struct led_classdev **)res);
res               404 drivers/leds/led-class.c static int devm_led_classdev_match(struct device *dev, void *res, void *data)
res               406 drivers/leds/led-class.c 	struct led_cdev **p = res;
res               287 drivers/leds/led-triggers.c static void devm_led_trigger_release(struct device *dev, void *res)
res               289 drivers/leds/led-triggers.c 	led_trigger_unregister(*(struct led_trigger **)res);
res               149 drivers/leds/leds-88pm860x.c 	struct resource *res;
res               155 drivers/leds/leds-88pm860x.c 	res = platform_get_resource_byname(pdev, IORESOURCE_REG, "control");
res               156 drivers/leds/leds-88pm860x.c 	if (!res) {
res               160 drivers/leds/leds-88pm860x.c 	data->reg_control = res->start;
res               161 drivers/leds/leds-88pm860x.c 	res = platform_get_resource_byname(pdev, IORESOURCE_REG, "blink");
res               162 drivers/leds/leds-88pm860x.c 	if (!res) {
res               166 drivers/leds/leds-88pm860x.c 	data->reg_blink = res->start;
res                39 drivers/leds/leds-cobalt-qube.c 	struct resource *res;
res                41 drivers/leds/leds-cobalt-qube.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                42 drivers/leds/leds-cobalt-qube.c 	if (!res)
res                45 drivers/leds/leds-cobalt-qube.c 	led_port = devm_ioremap(&pdev->dev, res->start, resource_size(res));
res                68 drivers/leds/leds-cobalt-raq.c 	struct resource *res;
res                71 drivers/leds/leds-cobalt-raq.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                72 drivers/leds/leds-cobalt-raq.c 	if (!res)
res                75 drivers/leds/leds-cobalt-raq.c 	led_port = devm_ioremap(&pdev->dev, res->start, resource_size(res));
res               387 drivers/leds/leds-pca955x.c 		int res;
res               389 drivers/leds/leds-pca955x.c 		res = fwnode_property_read_u32(child, "reg", &reg);
res               390 drivers/leds/leds-pca955x.c 		if ((res != 0) || (reg >= chip->bits))
res               393 drivers/leds/leds-pca955x.c 		res = fwnode_property_read_string(child, "label", &name);
res               394 drivers/leds/leds-pca955x.c 		if ((res != 0) && is_of_node(child))
res               300 drivers/leds/leds-pca963x.c 		int res;
res               302 drivers/leds/leds-pca963x.c 		res = fwnode_property_read_u32(child, "reg", &reg);
res               303 drivers/leds/leds-pca963x.c 		if ((res != 0) || (reg >= chip->n_leds))
res               306 drivers/leds/leds-pca963x.c 		res = fwnode_property_read_string(child, "label", &led.name);
res               307 drivers/leds/leds-pca963x.c 		if ((res != 0) && is_of_node(child))
res               214 drivers/leds/leds-wm831x-status.c 	struct resource *res;
res               218 drivers/leds/leds-wm831x-status.c 	res = platform_get_resource(pdev, IORESOURCE_REG, 0);
res               219 drivers/leds/leds-wm831x-status.c 	if (res == NULL) {
res               230 drivers/leds/leds-wm831x-status.c 	drvdata->reg = res->start;
res               166 drivers/leds/trigger/ledtrig-pattern.c 	int err, res;
res               168 drivers/leds/trigger/ledtrig-pattern.c 	err = kstrtos32(buf, 10, &res);
res               173 drivers/leds/trigger/ledtrig-pattern.c 	if (res < -1 || res == 0)
res               183 drivers/leds/trigger/ledtrig-pattern.c 	data->last_repeat = data->repeat = res;
res               181 drivers/macintosh/macio_asic.c static int macio_resource_quirks(struct device_node *np, struct resource *res,
res               185 drivers/macintosh/macio_asic.c 	if ((res->flags & IORESOURCE_MEM) == 0)
res               190 drivers/macintosh/macio_asic.c 		res->end = res->start + 0x1ffff;
res               198 drivers/macintosh/macio_asic.c 	if ((res->start & 0x0001f000) == 0x00008000)
res               199 drivers/macintosh/macio_asic.c 		res->end = res->start + 0xff;
res               221 drivers/macintosh/macio_asic.c 		if (index == 0 && (res->end - res->start) > 0xfff)
res               222 drivers/macintosh/macio_asic.c 			res->end = res->start + 0xfff;
res               223 drivers/macintosh/macio_asic.c 		if (index == 1 && (res->end - res->start) > 0xff)
res               224 drivers/macintosh/macio_asic.c 			res->end = res->start + 0xff;
res               292 drivers/macintosh/macio_asic.c 		struct resource *res;
res               296 drivers/macintosh/macio_asic.c 		res = &dev->interrupt[j];
res               300 drivers/macintosh/macio_asic.c 		res->start = irq;
res               301 drivers/macintosh/macio_asic.c 		res->flags = IORESOURCE_IRQ;
res               302 drivers/macintosh/macio_asic.c 		res->name = dev_name(&dev->ofdev.dev);
res               303 drivers/macintosh/macio_asic.c 		if (macio_resource_quirks(np, res, i - 1)) {
res               304 drivers/macintosh/macio_asic.c 			memset(res, 0, sizeof(struct resource));
res               320 drivers/macintosh/macio_asic.c 		struct resource *res;
res               323 drivers/macintosh/macio_asic.c 		res = &dev->resource[index];
res               324 drivers/macintosh/macio_asic.c 		*res = r;
res               325 drivers/macintosh/macio_asic.c 		res->name = dev_name(&dev->ofdev.dev);
res               327 drivers/macintosh/macio_asic.c 		if (macio_resource_quirks(np, res, index)) {
res               328 drivers/macintosh/macio_asic.c 			memset(res, 0, sizeof(struct resource));
res               335 drivers/macintosh/macio_asic.c 		if (insert_resource(parent_res, res)) {
res               546 drivers/macintosh/macio_asic.c static void maciom_release(struct device *gendev, void *res)
res               549 drivers/macintosh/macio_asic.c 	struct macio_devres *dr = res;
res               131 drivers/macintosh/therm_adt746x.c 	u16 res;
res               137 drivers/macintosh/therm_adt746x.c 	res = tmp[1] + (tmp[0] << 8);
res               139 drivers/macintosh/therm_adt746x.c 	return (res == 0xffff ? 0 : (90000*60)/res);
res               121 drivers/mailbox/arm_mhu.c 	mhu->base = devm_ioremap_resource(dev, &adev->res);
res               243 drivers/mailbox/hi3660-mailbox.c 	struct resource *res;
res               251 drivers/mailbox/hi3660-mailbox.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               252 drivers/mailbox/hi3660-mailbox.c 	mbox->base = devm_ioremap_resource(dev, res);
res               267 drivers/mailbox/hi6220-mailbox.c 	struct resource *res;
res               290 drivers/mailbox/hi6220-mailbox.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               291 drivers/mailbox/hi6220-mailbox.c 	mbox->ipc = devm_ioremap_resource(dev, res);
res               297 drivers/mailbox/hi6220-mailbox.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res               298 drivers/mailbox/hi6220-mailbox.c 	mbox->base = devm_ioremap_resource(dev, res);
res               411 drivers/mailbox/mailbox-sti.c 	struct resource *res;
res               428 drivers/mailbox/mailbox-sti.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               429 drivers/mailbox/mailbox-sti.c 	mdev->base = devm_ioremap_resource(&pdev->dev, res);
res               352 drivers/mailbox/mailbox-test.c 	struct resource *res;
res               361 drivers/mailbox/mailbox-test.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               362 drivers/mailbox/mailbox-test.c 	tdev->tx_mmio = devm_ioremap_resource(&pdev->dev, res);
res               365 drivers/mailbox/mailbox-test.c 		size = resource_size(res);
res               366 drivers/mailbox/mailbox-test.c 		tdev->tx_mmio = devm_ioremap(&pdev->dev, res->start, size);
res               372 drivers/mailbox/mailbox-test.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res               373 drivers/mailbox/mailbox-test.c 	tdev->rx_mmio = devm_ioremap_resource(&pdev->dev, res);
res               375 drivers/mailbox/mailbox-test.c 		size = resource_size(res);
res               376 drivers/mailbox/mailbox-test.c 		tdev->rx_mmio = devm_ioremap(&pdev->dev, res->start, size);
res               548 drivers/mailbox/mailbox.c static void __devm_mbox_controller_unregister(struct device *dev, void *res)
res               550 drivers/mailbox/mailbox.c 	struct mbox_controller **mbox = res;
res               555 drivers/mailbox/mailbox.c static int devm_mbox_controller_match(struct device *dev, void *res, void *data)
res               557 drivers/mailbox/mailbox.c 	struct mbox_controller **mbox = res;
res               461 drivers/mailbox/mtk-cmdq-mailbox.c 	struct resource *res;
res               469 drivers/mailbox/mtk-cmdq-mailbox.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               470 drivers/mailbox/mtk-cmdq-mailbox.c 	cmdq->base = devm_ioremap_resource(dev, res);
res               134 drivers/mailbox/pl320-ipc.c 	ipc_base = ioremap(adev->res.start, resource_size(&adev->res));
res               120 drivers/mailbox/platform_mhu.c 	struct resource *res;
res               130 drivers/mailbox/platform_mhu.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               131 drivers/mailbox/platform_mhu.c 	mhu->base = devm_ioremap_resource(dev, res);
res                52 drivers/mailbox/qcom-apcs-ipc-mailbox.c 	struct resource *res;
res                67 drivers/mailbox/qcom-apcs-ipc-mailbox.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                68 drivers/mailbox/qcom-apcs-ipc-mailbox.c 	base = devm_ioremap_resource(&pdev->dev, res);
res               169 drivers/mailbox/rockchip-mailbox.c 	struct resource *res;
res               199 drivers/mailbox/rockchip-mailbox.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               200 drivers/mailbox/rockchip-mailbox.c 	if (!res)
res               203 drivers/mailbox/rockchip-mailbox.c 	mb->mbox_base = devm_ioremap_resource(&pdev->dev, res);
res               208 drivers/mailbox/rockchip-mailbox.c 	mb->buf_size = (size_t)resource_size(res) / (drv_data->num_chans * 2);
res               209 drivers/mailbox/stm32-ipcc.c 	struct resource *res;
res               239 drivers/mailbox/stm32-ipcc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               240 drivers/mailbox/stm32-ipcc.c 	ipcc->reg_base = devm_ioremap_resource(dev, res);
res               634 drivers/mailbox/tegra-hsp.c 	struct resource *res;
res               648 drivers/mailbox/tegra-hsp.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               649 drivers/mailbox/tegra-hsp.c 	hsp->regs = devm_ioremap_resource(&pdev->dev, res);
res               711 drivers/mailbox/ti-msgmgr.c 	struct resource *res;
res               742 drivers/mailbox/ti-msgmgr.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
res               744 drivers/mailbox/ti-msgmgr.c 	inst->queue_proxy_region = devm_ioremap_resource(dev, res);
res               748 drivers/mailbox/ti-msgmgr.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
res               750 drivers/mailbox/ti-msgmgr.c 	inst->queue_state_debug_region = devm_ioremap_resource(dev, res);
res               755 drivers/mailbox/ti-msgmgr.c 		res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
res               757 drivers/mailbox/ti-msgmgr.c 		inst->queue_ctrl_region = devm_ioremap_resource(dev, res);
res               123 drivers/mailbox/zynqmp-ipi-mailbox.c 			       struct arm_smccc_res *res)
res               131 drivers/mailbox/zynqmp-ipi-mailbox.c 		arm_smccc_smc(a0, a1, a2, a3, 0, 0, 0, 0, res);
res               133 drivers/mailbox/zynqmp-ipi-mailbox.c 		arm_smccc_hvc(a0, a1, a2, a3, 0, 0, 0, 0, res);
res               154 drivers/mailbox/zynqmp-ipi-mailbox.c 	struct arm_smccc_res res;
res               164 drivers/mailbox/zynqmp-ipi-mailbox.c 		zynqmp_ipi_fw_call(ipi_mbox, arg0, arg3, &res);
res               165 drivers/mailbox/zynqmp-ipi-mailbox.c 		ret = (int)(res.a0 & 0xFFFFFFFF);
res               194 drivers/mailbox/zynqmp-ipi-mailbox.c 	struct arm_smccc_res res;
res               202 drivers/mailbox/zynqmp-ipi-mailbox.c 	zynqmp_ipi_fw_call(ipi_mbox, arg0, 0, &res);
res               203 drivers/mailbox/zynqmp-ipi-mailbox.c 	ret = (int)(res.a0 & 0xFFFFFFFF);
res               234 drivers/mailbox/zynqmp-ipi-mailbox.c 	struct arm_smccc_res res;
res               246 drivers/mailbox/zynqmp-ipi-mailbox.c 		zynqmp_ipi_fw_call(ipi_mbox, arg0, 0, &res);
res               248 drivers/mailbox/zynqmp-ipi-mailbox.c 		ret = (int)(res.a0 & 0xFFFFFFFF);
res               272 drivers/mailbox/zynqmp-ipi-mailbox.c 	struct arm_smccc_res res;
res               291 drivers/mailbox/zynqmp-ipi-mailbox.c 		zynqmp_ipi_fw_call(ipi_mbox, arg0, 0, &res);
res               304 drivers/mailbox/zynqmp-ipi-mailbox.c 				   &res);
res               322 drivers/mailbox/zynqmp-ipi-mailbox.c 	struct arm_smccc_res res;
res               333 drivers/mailbox/zynqmp-ipi-mailbox.c 		zynqmp_ipi_fw_call(ipi_mbox, arg0, 0, &res);
res               335 drivers/mailbox/zynqmp-ipi-mailbox.c 		ret = (int)(res.a0 & 0xFFFFFFFF);
res               346 drivers/mailbox/zynqmp-ipi-mailbox.c 		zynqmp_ipi_fw_call(ipi_mbox, arg0, 0, &res);
res               364 drivers/mailbox/zynqmp-ipi-mailbox.c 	struct arm_smccc_res res;
res               374 drivers/mailbox/zynqmp-ipi-mailbox.c 		zynqmp_ipi_fw_call(ipi_mbox, arg0, 0, &res);
res               380 drivers/mailbox/zynqmp-ipi-mailbox.c 		zynqmp_ipi_fw_call(ipi_mbox, arg0, 0, &res);
res               438 drivers/mailbox/zynqmp-ipi-mailbox.c 				       struct resource *res)
res               444 drivers/mailbox/zynqmp-ipi-mailbox.c 		ret = of_address_to_resource(node, index, res);
res               479 drivers/mailbox/zynqmp-ipi-mailbox.c 	struct resource res;
res               502 drivers/mailbox/zynqmp-ipi-mailbox.c 	ret = zynqmp_ipi_mbox_get_buf_res(node, name, &res);
res               504 drivers/mailbox/zynqmp-ipi-mailbox.c 		mchan->req_buf_size = resource_size(&res);
res               505 drivers/mailbox/zynqmp-ipi-mailbox.c 		mchan->req_buf = devm_ioremap(mdev, res.start,
res               518 drivers/mailbox/zynqmp-ipi-mailbox.c 	ret = zynqmp_ipi_mbox_get_buf_res(node, name, &res);
res               520 drivers/mailbox/zynqmp-ipi-mailbox.c 		mchan->resp_buf_size = resource_size(&res);
res               521 drivers/mailbox/zynqmp-ipi-mailbox.c 		mchan->resp_buf = devm_ioremap(mdev, res.start,
res               541 drivers/mailbox/zynqmp-ipi-mailbox.c 	ret = zynqmp_ipi_mbox_get_buf_res(node, name, &res);
res               543 drivers/mailbox/zynqmp-ipi-mailbox.c 		mchan->req_buf_size = resource_size(&res);
res               544 drivers/mailbox/zynqmp-ipi-mailbox.c 		mchan->req_buf = devm_ioremap(mdev, res.start,
res               557 drivers/mailbox/zynqmp-ipi-mailbox.c 	ret = zynqmp_ipi_mbox_get_buf_res(node, name, &res);
res               559 drivers/mailbox/zynqmp-ipi-mailbox.c 		mchan->resp_buf_size = resource_size(&res);
res               560 drivers/mailbox/zynqmp-ipi-mailbox.c 		mchan->resp_buf = devm_ioremap(mdev, res.start,
res                24 drivers/mcb/mcb-lpc.c 	struct resource *res;
res                38 drivers/mcb/mcb-lpc.c 	res = devm_request_mem_region(&pdev->dev, priv->mem->start,
res                41 drivers/mcb/mcb-lpc.c 	if (!res) {
res                86 drivers/mcb/mcb-lpc.c 	struct resource *res = id->driver_data;
res                93 drivers/mcb/mcb-lpc.c 	ret = platform_device_add_resources(mcb_lpc_pdev, res, 1);
res                32 drivers/mcb/mcb-pci.c 	struct resource *res;
res                55 drivers/mcb/mcb-pci.c 	res = devm_request_mem_region(&pdev->dev, priv->mapbase,
res                58 drivers/mcb/mcb-pci.c 	if (!res) {
res                63 drivers/md/bcache/super.c 			      struct page **res)
res               193 drivers/md/bcache/super.c 	*res = bh->b_page;
res                24 drivers/md/bcache/util.c int bch_ ## name ## _h(const char *cp, type *res)		\
res                76 drivers/md/bcache/util.c 	*res = i;						\
res               290 drivers/md/bcache/util.h int bch_strtoint_h(const char *cp, int *res);
res               291 drivers/md/bcache/util.h int bch_strtouint_h(const char *cp, unsigned int *res);
res               292 drivers/md/bcache/util.h int bch_strtoll_h(const char *cp, long long *res);
res               293 drivers/md/bcache/util.h int bch_strtoull_h(const char *cp, unsigned long long *res);
res               295 drivers/md/bcache/util.h static inline int bch_strtol_h(const char *cp, long *res)
res               298 drivers/md/bcache/util.h 	return bch_strtoint_h(cp, (int *) res);
res               300 drivers/md/bcache/util.h 	return bch_strtoll_h(cp, (long long *) res);
res               304 drivers/md/bcache/util.h static inline int bch_strtoul_h(const char *cp, long *res)
res               307 drivers/md/bcache/util.h 	return bch_strtouint_h(cp, (unsigned int *) res);
res               309 drivers/md/bcache/util.h 	return bch_strtoull_h(cp, (unsigned long long *) res);
res               313 drivers/md/bcache/util.h #define strtoi_h(cp, res)						\
res               314 drivers/md/bcache/util.h 	(__builtin_types_compatible_p(typeof(*res), int)		\
res               315 drivers/md/bcache/util.h 	? bch_strtoint_h(cp, (void *) res)				\
res               316 drivers/md/bcache/util.h 	: __builtin_types_compatible_p(typeof(*res), long)		\
res               317 drivers/md/bcache/util.h 	? bch_strtol_h(cp, (void *) res)				\
res               318 drivers/md/bcache/util.h 	: __builtin_types_compatible_p(typeof(*res), long long)		\
res               319 drivers/md/bcache/util.h 	? bch_strtoll_h(cp, (void *) res)				\
res               320 drivers/md/bcache/util.h 	: __builtin_types_compatible_p(typeof(*res), unsigned int)	\
res               321 drivers/md/bcache/util.h 	? bch_strtouint_h(cp, (void *) res)				\
res               322 drivers/md/bcache/util.h 	: __builtin_types_compatible_p(typeof(*res), unsigned long)	\
res               323 drivers/md/bcache/util.h 	? bch_strtoul_h(cp, (void *) res)				\
res               324 drivers/md/bcache/util.h 	: __builtin_types_compatible_p(typeof(*res), unsigned long long)\
res               325 drivers/md/bcache/util.h 	? bch_strtoull_h(cp, (void *) res) : -EINVAL)
res               475 drivers/md/bcache/util.h 	int res, ret = -1;						\
res               480 drivers/md/bcache/util.h 		res = cmp(new, this);					\
res               481 drivers/md/bcache/util.h 		if (!res)						\
res               483 drivers/md/bcache/util.h 		n = res < 0						\
res               499 drivers/md/bcache/util.h 	int res;							\
res               503 drivers/md/bcache/util.h 		res = cmp(&(search), this);				\
res               504 drivers/md/bcache/util.h 		if (!res) {						\
res               508 drivers/md/bcache/util.h 		n = res < 0						\
res               519 drivers/md/bcache/util.h 	int res;							\
res               523 drivers/md/bcache/util.h 		res = cmp(&(search), this);				\
res               524 drivers/md/bcache/util.h 		if (res < 0) {						\
res                65 drivers/md/dm-verity-fec.c 	u8 *res;
res                71 drivers/md/dm-verity-fec.c 	res = dm_bufio_read(v->fec->bufio, v->fec->start + block, buf);
res                72 drivers/md/dm-verity-fec.c 	if (IS_ERR(res)) {
res                76 drivers/md/dm-verity-fec.c 		      PTR_ERR(res));
res                80 drivers/md/dm-verity-fec.c 	return res;
res               128 drivers/md/dm-verity-fec.c 	int r, corrected = 0, res;
res               143 drivers/md/dm-verity-fec.c 		res = fec_decode_rs8(v, fio, block, &par[offset], neras);
res               144 drivers/md/dm-verity-fec.c 		if (res < 0) {
res               145 drivers/md/dm-verity-fec.c 			r = res;
res               149 drivers/md/dm-verity-fec.c 		corrected += res;
res               425 drivers/md/dm-verity-fec.c 	u64 offset, res, rsb;
res               451 drivers/md/dm-verity-fec.c 	res = div64_u64(offset, v->fec->rounds << v->data_dev_block_bits);
res               457 drivers/md/dm-verity-fec.c 	rsb = offset - res * (v->fec->rounds << v->data_dev_block_bits);
res               117 drivers/md/md-cluster.c 	struct dlm_lock_resource *res;
res               119 drivers/md/md-cluster.c 	res = arg;
res               120 drivers/md/md-cluster.c 	res->sync_locking_done = true;
res               121 drivers/md/md-cluster.c 	wake_up(&res->sync_locking);
res               124 drivers/md/md-cluster.c static int dlm_lock_sync(struct dlm_lock_resource *res, int mode)
res               128 drivers/md/md-cluster.c 	ret = dlm_lock(res->ls, mode, &res->lksb,
res               129 drivers/md/md-cluster.c 			res->flags, res->name, strlen(res->name),
res               130 drivers/md/md-cluster.c 			0, sync_ast, res, res->bast);
res               133 drivers/md/md-cluster.c 	wait_event(res->sync_locking, res->sync_locking_done);
res               134 drivers/md/md-cluster.c 	res->sync_locking_done = false;
res               135 drivers/md/md-cluster.c 	if (res->lksb.sb_status == 0)
res               136 drivers/md/md-cluster.c 		res->mode = mode;
res               137 drivers/md/md-cluster.c 	return res->lksb.sb_status;
res               140 drivers/md/md-cluster.c static int dlm_unlock_sync(struct dlm_lock_resource *res)
res               142 drivers/md/md-cluster.c 	return dlm_lock_sync(res, DLM_LOCK_NL);
res               149 drivers/md/md-cluster.c static int dlm_lock_sync_interruptible(struct dlm_lock_resource *res, int mode,
res               154 drivers/md/md-cluster.c 	ret = dlm_lock(res->ls, mode, &res->lksb,
res               155 drivers/md/md-cluster.c 			res->flags, res->name, strlen(res->name),
res               156 drivers/md/md-cluster.c 			0, sync_ast, res, res->bast);
res               160 drivers/md/md-cluster.c 	wait_event(res->sync_locking, res->sync_locking_done
res               163 drivers/md/md-cluster.c 	if (!res->sync_locking_done) {
res               169 drivers/md/md-cluster.c 		ret = dlm_unlock(res->ls, res->lksb.sb_lkid, DLM_LKF_CANCEL,
res               170 drivers/md/md-cluster.c 			&res->lksb, res);
res               171 drivers/md/md-cluster.c 		res->sync_locking_done = false;
res               174 drivers/md/md-cluster.c 				 "%s return %d\n", res->name, ret);
res               177 drivers/md/md-cluster.c 		res->sync_locking_done = false;
res               178 drivers/md/md-cluster.c 	if (res->lksb.sb_status == 0)
res               179 drivers/md/md-cluster.c 		res->mode = mode;
res               180 drivers/md/md-cluster.c 	return res->lksb.sb_status;
res               186 drivers/md/md-cluster.c 	struct dlm_lock_resource *res = NULL;
res               190 drivers/md/md-cluster.c 	res = kzalloc(sizeof(struct dlm_lock_resource), GFP_KERNEL);
res               191 drivers/md/md-cluster.c 	if (!res)
res               193 drivers/md/md-cluster.c 	init_waitqueue_head(&res->sync_locking);
res               194 drivers/md/md-cluster.c 	res->sync_locking_done = false;
res               195 drivers/md/md-cluster.c 	res->ls = cinfo->lockspace;
res               196 drivers/md/md-cluster.c 	res->mddev = mddev;
res               197 drivers/md/md-cluster.c 	res->mode = DLM_LOCK_IV;
res               199 drivers/md/md-cluster.c 	res->name = kzalloc(namelen + 1, GFP_KERNEL);
res               200 drivers/md/md-cluster.c 	if (!res->name) {
res               204 drivers/md/md-cluster.c 	strlcpy(res->name, name, namelen + 1);
res               206 drivers/md/md-cluster.c 		res->lksb.sb_lvbptr = kzalloc(LVB_SIZE, GFP_KERNEL);
res               207 drivers/md/md-cluster.c 		if (!res->lksb.sb_lvbptr) {
res               211 drivers/md/md-cluster.c 		res->flags = DLM_LKF_VALBLK;
res               215 drivers/md/md-cluster.c 		res->bast = bastfn;
res               217 drivers/md/md-cluster.c 	res->flags |= DLM_LKF_EXPEDITE;
res               219 drivers/md/md-cluster.c 	ret = dlm_lock_sync(res, DLM_LOCK_NL);
res               224 drivers/md/md-cluster.c 	res->flags &= ~DLM_LKF_EXPEDITE;
res               225 drivers/md/md-cluster.c 	res->flags |= DLM_LKF_CONVERT;
res               227 drivers/md/md-cluster.c 	return res;
res               229 drivers/md/md-cluster.c 	kfree(res->lksb.sb_lvbptr);
res               230 drivers/md/md-cluster.c 	kfree(res->name);
res               231 drivers/md/md-cluster.c 	kfree(res);
res               235 drivers/md/md-cluster.c static void lockres_free(struct dlm_lock_resource *res)
res               239 drivers/md/md-cluster.c 	if (!res)
res               246 drivers/md/md-cluster.c 	ret = dlm_unlock(res->ls, res->lksb.sb_lkid, DLM_LKF_FORCEUNLOCK,
res               247 drivers/md/md-cluster.c 		&res->lksb, res);
res               249 drivers/md/md-cluster.c 		pr_err("failed to unlock %s return %d\n", res->name, ret);
res               251 drivers/md/md-cluster.c 		wait_event(res->sync_locking, res->sync_locking_done);
res               253 drivers/md/md-cluster.c 	kfree(res->name);
res               254 drivers/md/md-cluster.c 	kfree(res->lksb.sb_lvbptr);
res               255 drivers/md/md-cluster.c 	kfree(res);
res               421 drivers/md/md-cluster.c 	struct dlm_lock_resource *res = arg;
res               422 drivers/md/md-cluster.c 	struct md_cluster_info *cinfo = res->mddev->cluster_info;
res              3707 drivers/md/md.c int strict_strtoul_scaled(const char *cp, unsigned long *res, int scale)
res              3729 drivers/md/md.c 	*res = result * int_pow(10, scale - decimals);
res              7813 drivers/md/md.c 	sector_t max_sectors, resync, res;
res              7875 drivers/md/md.c 	res = (resync>>scale)*1000;
res              7876 drivers/md/md.c 	sector_div(res, (u32)((max_sectors>>scale)+1));
res              7878 drivers/md/md.c 	per_milli = res;
res               721 drivers/md/md.h extern int strict_strtoul_scaled(const char *cp, unsigned long *res, int scale);
res                39 drivers/media/cec/cec-api.c 	__poll_t res = 0;
res                47 drivers/media/cec/cec-api.c 		res |= EPOLLOUT | EPOLLWRNORM;
res                49 drivers/media/cec/cec-api.c 		res |= EPOLLIN | EPOLLRDNORM;
res                51 drivers/media/cec/cec-api.c 		res |= EPOLLPRI;
res                53 drivers/media/cec/cec-api.c 	return res;
res               222 drivers/media/cec/cec-api.c 	int res;
res               252 drivers/media/cec/cec-api.c 			res = wait_event_interruptible_timeout(fh->wait,
res               255 drivers/media/cec/cec-api.c 			if (res == 0)
res               256 drivers/media/cec/cec-api.c 				res = -ETIMEDOUT;
res               257 drivers/media/cec/cec-api.c 			else if (res > 0)
res               258 drivers/media/cec/cec-api.c 				res = 0;
res               261 drivers/media/cec/cec-api.c 			res = wait_event_interruptible(fh->wait,
res               265 drivers/media/cec/cec-api.c 	} while (!res);
res               266 drivers/media/cec/cec-api.c 	return res;
res               258 drivers/media/cec/cec-core.c 	int res;
res               304 drivers/media/cec/cec-core.c 		res = PTR_ERR(adap->kthread);
res               306 drivers/media/cec/cec-core.c 		return ERR_PTR(res);
res               345 drivers/media/cec/cec-core.c 	int res;
res               359 drivers/media/cec/cec-core.c 		res = rc_register_device(adap->rc);
res               361 drivers/media/cec/cec-core.c 		if (res) {
res               366 drivers/media/cec/cec-core.c 			return res;
res               371 drivers/media/cec/cec-core.c 	res = cec_devnode_register(&adap->devnode, adap->owner);
res               372 drivers/media/cec/cec-core.c 	if (res) {
res               378 drivers/media/cec/cec-core.c 		return res;
res               296 drivers/media/common/saa7146/saa7146_fops.c 	int res;
res               319 drivers/media/common/saa7146/saa7146_fops.c 	res = videobuf_mmap_mapper(q, vma);
res               321 drivers/media/common/saa7146/saa7146_fops.c 	return res;
res               330 drivers/media/common/saa7146/saa7146_fops.c 	__poll_t res = v4l2_ctrl_poll(file, wait);
res               336 drivers/media/common/saa7146/saa7146_fops.c 			return res | EPOLLOUT | EPOLLWRNORM;
res               338 drivers/media/common/saa7146/saa7146_fops.c 			return res | videobuf_poll_stream(file, &fh->vbi_q, wait);
res               350 drivers/media/common/saa7146/saa7146_fops.c 		return res | EPOLLERR;
res               356 drivers/media/common/saa7146/saa7146_fops.c 		return res | EPOLLIN | EPOLLRDNORM;
res               360 drivers/media/common/saa7146/saa7146_fops.c 	return res;
res               366 drivers/media/common/saa7146/saa7146_fops.c 	__poll_t res;
res               369 drivers/media/common/saa7146/saa7146_fops.c 	res = __fops_poll(file, wait);
res               371 drivers/media/common/saa7146/saa7146_fops.c 	return res;
res               202 drivers/media/common/videobuf2/videobuf2-dvb.c 	int res;
res               211 drivers/media/common/videobuf2/videobuf2-dvb.c 	res = vb2_dvb_register_adapter(f, module, adapter_priv, device, mdev,
res               213 drivers/media/common/videobuf2/videobuf2-dvb.c 	if (res < 0) {
res               214 drivers/media/common/videobuf2/videobuf2-dvb.c 		pr_warn("vb2_dvb_register_adapter failed (errno = %d)\n", res);
res               215 drivers/media/common/videobuf2/videobuf2-dvb.c 		return res;
res               222 drivers/media/common/videobuf2/videobuf2-dvb.c 		res = vb2_dvb_register_frontend(&f->adapter, &fe->dvb);
res               223 drivers/media/common/videobuf2/videobuf2-dvb.c 		if (res < 0) {
res               225 drivers/media/common/videobuf2/videobuf2-dvb.c 				fe->dvb.name, res);
res               228 drivers/media/common/videobuf2/videobuf2-dvb.c 		res = dvb_create_media_graph(&f->adapter, false);
res               229 drivers/media/common/videobuf2/videobuf2-dvb.c 		if (res < 0)
res               239 drivers/media/common/videobuf2/videobuf2-dvb.c 	return res;
res               875 drivers/media/common/videobuf2/videobuf2-v4l2.c 	__poll_t res;
res               877 drivers/media/common/videobuf2/videobuf2-v4l2.c 	res = vb2_core_poll(q, file, wait);
res               884 drivers/media/common/videobuf2/videobuf2-v4l2.c 			res |= EPOLLPRI;
res               887 drivers/media/common/videobuf2/videobuf2-v4l2.c 	return res;
res               911 drivers/media/common/videobuf2/videobuf2-v4l2.c 	int res = vb2_verify_memory_type(vdev->queue, p->memory, p->type);
res               914 drivers/media/common/videobuf2/videobuf2-v4l2.c 	if (res)
res               915 drivers/media/common/videobuf2/videobuf2-v4l2.c 		return res;
res               918 drivers/media/common/videobuf2/videobuf2-v4l2.c 	res = vb2_core_reqbufs(vdev->queue, p->memory, &p->count);
res               921 drivers/media/common/videobuf2/videobuf2-v4l2.c 	if (res == 0)
res               923 drivers/media/common/videobuf2/videobuf2-v4l2.c 	return res;
res               931 drivers/media/common/videobuf2/videobuf2-v4l2.c 	int res = vb2_verify_memory_type(vdev->queue, p->memory,
res               941 drivers/media/common/videobuf2/videobuf2-v4l2.c 		return res != -EBUSY ? res : 0;
res               942 drivers/media/common/videobuf2/videobuf2-v4l2.c 	if (res)
res               943 drivers/media/common/videobuf2/videobuf2-v4l2.c 		return res;
res               947 drivers/media/common/videobuf2/videobuf2-v4l2.c 	res = vb2_create_bufs(vdev->queue, p);
res               948 drivers/media/common/videobuf2/videobuf2-v4l2.c 	if (res == 0)
res               950 drivers/media/common/videobuf2/videobuf2-v4l2.c 	return res;
res              1112 drivers/media/common/videobuf2/videobuf2-v4l2.c 	__poll_t res;
res              1126 drivers/media/common/videobuf2/videobuf2-v4l2.c 	res = vb2_poll(vdev->queue, file, wait);
res              1133 drivers/media/common/videobuf2/videobuf2-v4l2.c 	return res;
res               284 drivers/media/dvb-core/dvb_ca_en50221.c 		int res;
res               287 drivers/media/dvb-core/dvb_ca_en50221.c 		res = ca->pub->read_cam_control(ca->pub, slot, CTRLIF_STATUS);
res               288 drivers/media/dvb-core/dvb_ca_en50221.c 		if (res < 0)
res               292 drivers/media/dvb-core/dvb_ca_en50221.c 		if (res & waitfor) {
res               202 drivers/media/dvb-frontends/ascot2e.c 	int res;
res               206 drivers/media/dvb-frontends/ascot2e.c 		res = ascot2e_read_reg(priv, reg, &rdata);
res               207 drivers/media/dvb-frontends/ascot2e.c 		if (res != 0)
res               208 drivers/media/dvb-frontends/ascot2e.c 			return res;
res               299 drivers/media/dvb-frontends/cxd2841er.c 	int res;
res               303 drivers/media/dvb-frontends/cxd2841er.c 		res = cxd2841er_read_reg(priv, addr, reg, &rdata);
res               304 drivers/media/dvb-frontends/cxd2841er.c 		if (res)
res               305 drivers/media/dvb-frontends/cxd2841er.c 			return res;
res              1672 drivers/media/dvb-frontends/cxd2841er.c 	u32 res = 0, value;
res              1699 drivers/media/dvb-frontends/cxd2841er.c 			res = cn_data[min_index].cnr_x1000;
res              1703 drivers/media/dvb-frontends/cxd2841er.c 			res = cn_data[max_index].cnr_x1000;
res              1709 drivers/media/dvb-frontends/cxd2841er.c 				res = cn_data[index].cnr_x1000;
res              1717 drivers/media/dvb-frontends/cxd2841er.c 					res = cn_data[max_index].cnr_x1000;
res              1720 drivers/media/dvb-frontends/cxd2841er.c 					res = cn_data[min_index].cnr_x1000;
res              1731 drivers/media/dvb-frontends/cxd2841er.c 	*snr = res;
res              2768 drivers/media/dvb-frontends/drxd_hard.c 	int res;
res              2770 drivers/media/dvb-frontends/drxd_hard.c 	res = ReadIFAgc(state, &value);
res              2771 drivers/media/dvb-frontends/drxd_hard.c 	if (res < 0)
res               378 drivers/media/dvb-frontends/helene.c 	int res;
res               382 drivers/media/dvb-frontends/helene.c 		res = helene_read_reg(priv, reg, &rdata);
res               383 drivers/media/dvb-frontends/helene.c 		if (res != 0)
res               384 drivers/media/dvb-frontends/helene.c 			return res;
res               924 drivers/media/dvb-frontends/stb0899_drv.c 	int res = 0;
res               928 drivers/media/dvb-frontends/stb0899_drv.c 		res = tab[min].real;
res               930 drivers/media/dvb-frontends/stb0899_drv.c 		res = tab[max].real;
res               939 drivers/media/dvb-frontends/stb0899_drv.c 		res = ((val - tab[min].read) *
res               945 drivers/media/dvb-frontends/stb0899_drv.c 	return res;
res              3617 drivers/media/dvb-frontends/stv090x.c 	int res = 0;
res              3630 drivers/media/dvb-frontends/stv090x.c 		res = ((val - tab[min].read) *
res              3637 drivers/media/dvb-frontends/stv090x.c 				res = tab[min].real;
res              3639 drivers/media/dvb-frontends/stv090x.c 				res = tab[max].real;
res              3642 drivers/media/dvb-frontends/stv090x.c 				res = tab[min].real;
res              3644 drivers/media/dvb-frontends/stv090x.c 				res = tab[max].real;
res              3648 drivers/media/dvb-frontends/stv090x.c 	return res;
res               204 drivers/media/i2c/bt819.c 	int res = V4L2_IN_ST_NO_SIGNAL;
res               208 drivers/media/i2c/bt819.c 		res = 0;
res               219 drivers/media/i2c/bt819.c 		*pstatus = res;
res               423 drivers/media/i2c/s5k5baf.c 	u16 res;
res               437 drivers/media/i2c/s5k5baf.c 	res = be16_to_cpu(r);
res               439 drivers/media/i2c/s5k5baf.c 	v4l2_dbg(3, debug, c, "i2c_read: 0x%04x : 0x%04x\n", addr, res);
res               445 drivers/media/i2c/s5k5baf.c 	return res;
res               238 drivers/media/i2c/saa7110.c 	int res = V4L2_IN_ST_NO_SIGNAL;
res               244 drivers/media/i2c/saa7110.c 		res = 0;
res               246 drivers/media/i2c/saa7110.c 		res |= V4L2_IN_ST_NO_COLOR;
res               248 drivers/media/i2c/saa7110.c 	*pstatus = res;
res               869 drivers/media/i2c/saa7115.c 	int res;
res               905 drivers/media/i2c/saa7115.c 	res = height / 2;
res               909 drivers/media/i2c/saa7115.c 		res += (VRES_60HZ - 480) >> 1;
res               913 drivers/media/i2c/saa7115.c 					(u8) (res & 0xff));
res               915 drivers/media/i2c/saa7115.c 					(u8) ((res >> 8) & 0xff));
res               155 drivers/media/i2c/ths7303.c 	int res;
res               171 drivers/media/i2c/ths7303.c 		res = ths7303_setval(sd, THS7303_FILTER_MODE_1080P);
res               173 drivers/media/i2c/ths7303.c 		res = ths7303_setval(sd, THS7303_FILTER_MODE_720P_1080I);
res               175 drivers/media/i2c/ths7303.c 		res = ths7303_setval(sd, THS7303_FILTER_MODE_480P_576P);
res               177 drivers/media/i2c/ths7303.c 		res = ths7303_setval(sd, THS7303_FILTER_MODE_480I_576I);
res               180 drivers/media/i2c/ths7303.c 		res = ths7303_setval(sd, THS7303_FILTER_MODE_DISABLE);
res               182 drivers/media/i2c/ths7303.c 	return res;
res              1324 drivers/media/i2c/tvp5150.c 	int res;
res              1326 drivers/media/i2c/tvp5150.c 	res = tvp5150_read(sd, reg->reg & 0xff);
res              1327 drivers/media/i2c/tvp5150.c 	if (res < 0) {
res              1328 drivers/media/i2c/tvp5150.c 		dev_err(sd->dev, "%s: failed with error = %d\n", __func__, res);
res              1329 drivers/media/i2c/tvp5150.c 		return res;
res              1332 drivers/media/i2c/tvp5150.c 	reg->val = res;
res              1528 drivers/media/i2c/tvp5150.c 	int res;
res              1534 drivers/media/i2c/tvp5150.c 	res = regmap_bulk_read(core->regmap, TVP5150_MSB_DEV_ID, regs, 4);
res              1535 drivers/media/i2c/tvp5150.c 	if (res < 0) {
res              1536 drivers/media/i2c/tvp5150.c 		dev_err(&c->dev, "reading ID registers failed: %d\n", res);
res              1537 drivers/media/i2c/tvp5150.c 		return res;
res              1704 drivers/media/i2c/tvp5150.c 	int res;
res              1711 drivers/media/i2c/tvp5150.c 	res = tvp5150_init(c);
res              1712 drivers/media/i2c/tvp5150.c 	if (res)
res              1713 drivers/media/i2c/tvp5150.c 		return res;
res              1727 drivers/media/i2c/tvp5150.c 		res = tvp5150_parse_dt(core, np);
res              1728 drivers/media/i2c/tvp5150.c 		if (res) {
res              1729 drivers/media/i2c/tvp5150.c 			dev_err(sd->dev, "DT parsing error: %d\n", res);
res              1730 drivers/media/i2c/tvp5150.c 			return res;
res              1749 drivers/media/i2c/tvp5150.c 	res = media_entity_pads_init(&sd->entity, TVP5150_NUM_PADS, core->pads);
res              1750 drivers/media/i2c/tvp5150.c 	if (res < 0)
res              1751 drivers/media/i2c/tvp5150.c 		return res;
res              1756 drivers/media/i2c/tvp5150.c 	res = tvp5150_detect_version(core);
res              1757 drivers/media/i2c/tvp5150.c 	if (res < 0)
res              1758 drivers/media/i2c/tvp5150.c 		return res;
res              1783 drivers/media/i2c/tvp5150.c 		res = core->hdl.error;
res              1792 drivers/media/i2c/tvp5150.c 		res = devm_request_threaded_irq(&c->dev, c->irq, NULL,
res              1795 drivers/media/i2c/tvp5150.c 		if (res)
res              1799 drivers/media/i2c/tvp5150.c 	res = v4l2_async_register_subdev(sd);
res              1800 drivers/media/i2c/tvp5150.c 	if (res < 0)
res              1809 drivers/media/i2c/tvp5150.c 	return res;
res               284 drivers/media/i2c/vpx3220.c 	int res = V4L2_IN_ST_NO_SIGNAL, status;
res               295 drivers/media/i2c/vpx3220.c 		res = 0;
res               321 drivers/media/i2c/vpx3220.c 		*pstatus = res;
res              2221 drivers/media/pci/bt8xx/bttv-driver.c 	int res = 0;
res              2225 drivers/media/pci/bt8xx/bttv-driver.c 		res = RESOURCE_VIDEO_STREAM;
res              2228 drivers/media/pci/bt8xx/bttv-driver.c 		res = RESOURCE_VBI;
res              2233 drivers/media/pci/bt8xx/bttv-driver.c 	return res;
res              2239 drivers/media/pci/bt8xx/bttv-driver.c 	int res = bttv_resource(fh);
res              2241 drivers/media/pci/bt8xx/bttv-driver.c 	if (check_btres(fh,res))
res              2660 drivers/media/pci/bt8xx/bttv-driver.c 	int res = bttv_resource(fh);
res              2662 drivers/media/pci/bt8xx/bttv-driver.c 	if (!check_alloc_btres_lock(btv, fh, res))
res              2680 drivers/media/pci/bt8xx/bttv-driver.c 	int res = bttv_resource(fh);
res              2682 drivers/media/pci/bt8xx/bttv-driver.c 	if (!check_alloc_btres_lock(btv, fh, res))
res              2694 drivers/media/pci/bt8xx/bttv-driver.c 	int res = bttv_resource(fh);
res              2700 drivers/media/pci/bt8xx/bttv-driver.c 	free_btres_lock(btv, fh, res);
res              3282 drivers/media/pci/bt8xx/bttv-driver.c 	__poll_t res = 0;
res              3285 drivers/media/pci/bt8xx/bttv-driver.c 		res = EPOLLPRI;
res              3291 drivers/media/pci/bt8xx/bttv-driver.c 	cmd.poll_mask = res;
res               603 drivers/media/pci/cx18/cx18-fileops.c 	__poll_t res = 0;
res               626 drivers/media/pci/cx18/cx18-fileops.c 			res |= EPOLLPRI;
res               628 drivers/media/pci/cx18/cx18-fileops.c 			return res | EPOLLHUP;
res               629 drivers/media/pci/cx18/cx18-fileops.c 		return res | videobuf_poll;
res               635 drivers/media/pci/cx18/cx18-fileops.c 		res |= EPOLLPRI;
res               640 drivers/media/pci/cx18/cx18-fileops.c 		return res | EPOLLIN | EPOLLRDNORM;
res               642 drivers/media/pci/cx18/cx18-fileops.c 		return res | EPOLLHUP;
res               643 drivers/media/pci/cx18/cx18-fileops.c 	return res;
res               831 drivers/media/pci/cx18/cx18-fileops.c 	int res;
res               843 drivers/media/pci/cx18/cx18-fileops.c 	res = cx18_serialized_open(s, filp);
res               845 drivers/media/pci/cx18/cx18-fileops.c 	return res;
res               992 drivers/media/pci/cx88/cx88-dvb.c 	int res = -EINVAL;
res              1630 drivers/media/pci/cx88/cx88-dvb.c 	res = vb2_dvb_register_bus(&dev->frontends, THIS_MODULE, dev,
res              1633 drivers/media/pci/cx88/cx88-dvb.c 	if (res)
res              1635 drivers/media/pci/cx88/cx88-dvb.c 	return res;
res              1640 drivers/media/pci/cx88/cx88-dvb.c 	return res;
res                76 drivers/media/pci/ddbridge/ddbridge-ci.c 	u32 res;
res                82 drivers/media/pci/ddbridge/ddbridge-ci.c 		res = ddbreadl(ci->port->dev, CI_READDATA(ci->nr));
res                83 drivers/media/pci/ddbridge/ddbridge-ci.c 		if (res & CI_READY)
res                89 drivers/media/pci/ddbridge/ddbridge-ci.c 	return 0xff & res;
res               195 drivers/media/pci/ddbridge/ddbridge-ci.c 	int res;
res               198 drivers/media/pci/ddbridge/ddbridge-ci.c 	res = i2c_read_reg16(i2c, adr, 0x8000 | address, &val);
res               199 drivers/media/pci/ddbridge/ddbridge-ci.c 	return res ? res : val;
res               219 drivers/media/pci/ddbridge/ddbridge-ci.c 	int res;
res               221 drivers/media/pci/ddbridge/ddbridge-ci.c 	res = i2c_read_reg(i2c, adr, 0x20 | (address & 3), &val);
res               222 drivers/media/pci/ddbridge/ddbridge-ci.c 	return res ? res : val;
res              1732 drivers/media/pci/ddbridge/ddbridge-core.c 	int res;
res              1734 drivers/media/pci/ddbridge/ddbridge-core.c 	res = i2c_read_regs(i2c, 0x10, 0x04, data, 2);
res              1735 drivers/media/pci/ddbridge/ddbridge-core.c 	if (res < 0)
res              1736 drivers/media/pci/ddbridge/ddbridge-core.c 		return res;
res              1778 drivers/media/pci/ddbridge/ddbridge-core.c 	int res;
res              1780 drivers/media/pci/ddbridge/ddbridge-core.c 	res = i2c_read_regs(i2c, 0x10, 0x04, data, 2);
res              1781 drivers/media/pci/ddbridge/ddbridge-core.c 	if (res < 0)
res              1782 drivers/media/pci/ddbridge/ddbridge-core.c 		return res;
res              2970 drivers/media/pci/ddbridge/ddbridge-core.c 	int res;
res              2974 drivers/media/pci/ddbridge/ddbridge-core.c 	res = ddb_redirect(i, p);
res              2975 drivers/media/pci/ddbridge/ddbridge-core.c 	if (res < 0)
res              2976 drivers/media/pci/ddbridge/ddbridge-core.c 		return res;
res              3205 drivers/media/pci/ddbridge/ddbridge-core.c 	int res = 0;
res              3216 drivers/media/pci/ddbridge/ddbridge-core.c 		res = PTR_ERR(dev->ddb_dev);
res              3220 drivers/media/pci/ddbridge/ddbridge-core.c 	res = ddb_device_attrs_add(dev);
res              3221 drivers/media/pci/ddbridge/ddbridge-core.c 	if (res) {
res              3231 drivers/media/pci/ddbridge/ddbridge-core.c 	return res;
res               185 drivers/media/pci/ddbridge/ddbridge-max.c 	int res = 0;
res               198 drivers/media/pci/ddbridge/ddbridge-max.c 	res = dvb->set_input(fe, in);
res               199 drivers/media/pci/ddbridge/ddbridge-max.c 	return res;
res               209 drivers/media/pci/ddbridge/ddbridge-max.c 	int res = 0;
res               218 drivers/media/pci/ddbridge/ddbridge-max.c 		res = lnb_set_tone(dev, port->lnr, dvb->input, tone);
res               233 drivers/media/pci/ddbridge/ddbridge-max.c 		res = max_set_input_unlocked(fe, tuner);
res               237 drivers/media/pci/ddbridge/ddbridge-max.c 	return res;
res               248 drivers/media/pci/ddbridge/ddbridge-max.c 	int res = 0;
res               267 drivers/media/pci/ddbridge/ddbridge-max.c 		res = lnb_set_voltage(dev, port->lnr, dvb->input, voltage);
res               291 drivers/media/pci/ddbridge/ddbridge-max.c 		res = max_set_input_unlocked(fe, tuner);
res               341 drivers/media/pci/ddbridge/ddbridge-max.c 	return res;
res                63 drivers/media/pci/ddbridge/ddbridge-mci.c 			     u32 *res, u32 res_len)
res                83 drivers/media/pci/ddbridge/ddbridge-mci.c 	if (res && res_len)
res                85 drivers/media/pci/ddbridge/ddbridge-mci.c 			res[i] = ddblreadl(link, MCI_RESULT + i * 4);
res               114 drivers/media/pci/ddbridge/ddbridge-sx8.c 	struct mci_result res;
res               118 drivers/media/pci/ddbridge/ddbridge-sx8.c 	stat = ddb_mci_cmd(&state->mci, &cmd, &res);
res               124 drivers/media/pci/ddbridge/ddbridge-sx8.c 	if (res.status == SX8_DEMOD_WAIT_MATYPE)
res               126 drivers/media/pci/ddbridge/ddbridge-sx8.c 	if (res.status == SX8_DEMOD_LOCKED) {
res               712 drivers/media/pci/ivtv/ivtv-fileops.c 	ssize_t res;
res               716 drivers/media/pci/ivtv/ivtv-fileops.c 	res = ivtv_write(filp, user_buf, count, pos);
res               718 drivers/media/pci/ivtv/ivtv-fileops.c 	return res;
res               726 drivers/media/pci/ivtv/ivtv-fileops.c 	__poll_t res = 0;
res               738 drivers/media/pci/ivtv/ivtv-fileops.c 			res = EPOLLPRI;
res               746 drivers/media/pci/ivtv/ivtv-fileops.c 			res = EPOLLPRI;
res               751 drivers/media/pci/ivtv/ivtv-fileops.c 		res |= EPOLLOUT | EPOLLWRNORM;
res               752 drivers/media/pci/ivtv/ivtv-fileops.c 	return res;
res               762 drivers/media/pci/ivtv/ivtv-fileops.c 	__poll_t res = 0;
res               785 drivers/media/pci/ivtv/ivtv-fileops.c 		res |= EPOLLPRI;
res               790 drivers/media/pci/ivtv/ivtv-fileops.c 		return res | EPOLLIN | EPOLLRDNORM;
res               792 drivers/media/pci/ivtv/ivtv-fileops.c 		return res | EPOLLHUP;
res               793 drivers/media/pci/ivtv/ivtv-fileops.c 	return res;
res               937 drivers/media/pci/ivtv/ivtv-fileops.c 	int res = 0;
res               957 drivers/media/pci/ivtv/ivtv-fileops.c 		res = ivtv_firmware_check(itv, "ivtv_serialized_open");
res               958 drivers/media/pci/ivtv/ivtv-fileops.c 		if (res == -EAGAIN)
res               959 drivers/media/pci/ivtv/ivtv-fileops.c 			res = ivtv_firmware_check(itv, "ivtv_serialized_open");
res               960 drivers/media/pci/ivtv/ivtv-fileops.c 		if (res < 0)
res              1037 drivers/media/pci/ivtv/ivtv-fileops.c 	int res;
res              1041 drivers/media/pci/ivtv/ivtv-fileops.c 	res = ivtv_open(filp);
res              1043 drivers/media/pci/ivtv/ivtv-fileops.c 	return res;
res               325 drivers/media/pci/ivtv/ivtv-firmware.c 	int res = 0;
res               330 drivers/media/pci/ivtv/ivtv-firmware.c 		res = -1;
res               334 drivers/media/pci/ivtv/ivtv-firmware.c 	if (!res && !atomic_read(&itv->capturing) &&
res               341 drivers/media/pci/ivtv/ivtv-firmware.c 			res = -2;
res               347 drivers/media/pci/ivtv/ivtv-firmware.c 		if (res != -2 && read_dec(0x100) != read_dec(0x104)) {
res               353 drivers/media/pci/ivtv/ivtv-firmware.c 				res = -1;
res               360 drivers/media/pci/ivtv/ivtv-firmware.c 			res = -1;
res               365 drivers/media/pci/ivtv/ivtv-firmware.c 	if (res && !atomic_read(&itv->capturing) &&
res               369 drivers/media/pci/ivtv/ivtv-firmware.c 		res = ivtv_firmware_restart(itv);
res               375 drivers/media/pci/ivtv/ivtv-firmware.c 		if (!res) {
res               377 drivers/media/pci/ivtv/ivtv-firmware.c 			res = -EAGAIN;
res               381 drivers/media/pci/ivtv/ivtv-firmware.c 	} else if (res) {
res               382 drivers/media/pci/ivtv/ivtv-firmware.c 		res = -EIO;
res               385 drivers/media/pci/ivtv/ivtv-firmware.c 	return res;
res               317 drivers/media/pci/ivtv/ivtv-mailbox.c 	int res = ivtv_api_call(itv, cmd, args, data);
res               322 drivers/media/pci/ivtv/ivtv-mailbox.c 	return (res == -EBUSY) ? ivtv_api_call(itv, cmd, args, data) : res;
res              1139 drivers/media/pci/ivtv/ivtv-yuv.c 	int res;
res              1150 drivers/media/pci/ivtv/ivtv-yuv.c 	res = ivtv_yuv_udma_frame(itv, &dma_args);
res              1152 drivers/media/pci/ivtv/ivtv-yuv.c 	return res;
res              1158 drivers/media/pci/ivtv/ivtv-yuv.c 	int res;
res              1167 drivers/media/pci/ivtv/ivtv-yuv.c 	res = ivtv_yuv_udma_frame(itv, args);
res              1169 drivers/media/pci/ivtv/ivtv-yuv.c 	return res;
res              1411 drivers/media/pci/meye/meye.c 	__poll_t res = v4l2_ctrl_poll(file, wait);
res              1416 drivers/media/pci/meye/meye.c 		res |= EPOLLIN | EPOLLRDNORM;
res              1418 drivers/media/pci/meye/meye.c 	return res;
res               359 drivers/media/pci/netup_unidvb/netup_unidvb_core.c 	int res;
res               369 drivers/media/pci/netup_unidvb/netup_unidvb_core.c 	res = vb2_queue_init(vb_queue);
res               370 drivers/media/pci/netup_unidvb/netup_unidvb_core.c 	if (res != 0) {
res               372 drivers/media/pci/netup_unidvb/netup_unidvb_core.c 			"%s(): vb2_queue_init failed (%d)\n", __func__, res);
res               374 drivers/media/pci/netup_unidvb/netup_unidvb_core.c 	return res;
res               519 drivers/media/pci/netup_unidvb/netup_unidvb_core.c 	int res;
res               521 drivers/media/pci/netup_unidvb/netup_unidvb_core.c 	res = netup_unidvb_dvb_init(ndev, 0);
res               522 drivers/media/pci/netup_unidvb/netup_unidvb_core.c 	if (res)
res               523 drivers/media/pci/netup_unidvb/netup_unidvb_core.c 		return res;
res               524 drivers/media/pci/netup_unidvb/netup_unidvb_core.c 	res = netup_unidvb_dvb_init(ndev, 1);
res               525 drivers/media/pci/netup_unidvb/netup_unidvb_core.c 	if (res) {
res               527 drivers/media/pci/netup_unidvb/netup_unidvb_core.c 		return res;
res               700 drivers/media/pci/netup_unidvb/netup_unidvb_core.c 	int res;
res               702 drivers/media/pci/netup_unidvb/netup_unidvb_core.c 	res = netup_unidvb_dma_init(ndev, 0);
res               703 drivers/media/pci/netup_unidvb/netup_unidvb_core.c 	if (res)
res               704 drivers/media/pci/netup_unidvb/netup_unidvb_core.c 		return res;
res               705 drivers/media/pci/netup_unidvb/netup_unidvb_core.c 	res = netup_unidvb_dma_init(ndev, 1);
res               706 drivers/media/pci/netup_unidvb/netup_unidvb_core.c 	if (res) {
res               708 drivers/media/pci/netup_unidvb/netup_unidvb_core.c 		return res;
res               718 drivers/media/pci/netup_unidvb/netup_unidvb_core.c 	int res;
res               721 drivers/media/pci/netup_unidvb/netup_unidvb_core.c 	res = netup_unidvb_ci_register(ndev, 0, pci_dev);
res               722 drivers/media/pci/netup_unidvb/netup_unidvb_core.c 	if (res)
res               723 drivers/media/pci/netup_unidvb/netup_unidvb_core.c 		return res;
res               724 drivers/media/pci/netup_unidvb/netup_unidvb_core.c 	res = netup_unidvb_ci_register(ndev, 1, pci_dev);
res               725 drivers/media/pci/netup_unidvb/netup_unidvb_core.c 	if (res)
res               727 drivers/media/pci/netup_unidvb/netup_unidvb_core.c 	return res;
res               204 drivers/media/pci/netup_unidvb/netup_unidvb_i2c.c 	int i, trans_done, res = num;
res               243 drivers/media/pci/netup_unidvb/netup_unidvb_i2c.c 					res = -EIO;
res               252 drivers/media/pci/netup_unidvb/netup_unidvb_i2c.c 					res = -EINVAL;
res               267 drivers/media/pci/netup_unidvb/netup_unidvb_i2c.c 				res = -ETIMEDOUT;
res               275 drivers/media/pci/netup_unidvb/netup_unidvb_i2c.c 	dev_dbg(i2c->adap.dev.parent, "%s(): result %d\n", __func__, res);
res               276 drivers/media/pci/netup_unidvb/netup_unidvb_i2c.c 	return res;
res               527 drivers/media/pci/ngene/ngene-cards.c 	int res;
res               529 drivers/media/pci/ngene/ngene-cards.c 	res = i2c_read_regs(i2c, addr, 0x04, data, 2);
res               530 drivers/media/pci/ngene/ngene-cards.c 	if (res < 0)
res               531 drivers/media/pci/ngene/ngene-cards.c 		return res;
res               980 drivers/media/pci/saa7134/saa7134-dvb.c 	int res = -EIO;
res               985 drivers/media/pci/saa7134/saa7134-dvb.c 			res = dev->original_set_voltage(fe, voltage);
res               988 drivers/media/pci/saa7134/saa7134-dvb.c 	return res;
res               993 drivers/media/pci/saa7134/saa7134-dvb.c 	int res = -EIO;
res               998 drivers/media/pci/saa7134/saa7134-dvb.c 			res = dev->original_set_high_voltage(fe, arg);
res              1001 drivers/media/pci/saa7134/saa7134-dvb.c 	return res;
res               139 drivers/media/pci/ttpci/av7110_ca.c 	int res;
res               144 drivers/media/pci/ttpci/av7110_ca.c 	res = -EINVAL;
res               148 drivers/media/pci/ttpci/av7110_ca.c 	res = -EFAULT;
res               154 drivers/media/pci/ttpci/av7110_ca.c 		res = -EWOULDBLOCK;
res               157 drivers/media/pci/ttpci/av7110_ca.c 		res = -ERESTARTSYS;
res               166 drivers/media/pci/ttpci/av7110_ca.c 	res = dvb_ringbuffer_write(cibuf, page, count);
res               169 drivers/media/pci/ttpci/av7110_ca.c 	return res;
res               403 drivers/media/pci/ttpci/av7110_hw.h 	u32 res;
res               405 drivers/media/pci/ttpci/av7110_hw.h 	res=av7110_debiread(av7110, config, addr, count);
res               407 drivers/media/pci/ttpci/av7110_hw.h 		memcpy(av7110->debi_virt, (char *) &res, count);
res               408 drivers/media/pci/ttpci/av7110_hw.h 	return res;
res               424 drivers/media/pci/ttpci/av7110_hw.h 	u32 res;
res               427 drivers/media/pci/ttpci/av7110_hw.h 	res=av7110_debiread(av7110, config, addr, count);
res               429 drivers/media/pci/ttpci/av7110_hw.h 	return res;
res              2520 drivers/media/platform/am437x/am437x-vpfe.c 	struct resource	*res;
res              2538 drivers/media/platform/am437x/am437x-vpfe.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              2539 drivers/media/platform/am437x/am437x-vpfe.c 	ccdc->ccdc_cfg.base_addr = devm_ioremap_resource(&pdev->dev, res);
res              1660 drivers/media/platform/aspeed-video.c 	struct resource *res;
res              1675 drivers/media/platform/aspeed-video.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1677 drivers/media/platform/aspeed-video.c 	video->base = devm_ioremap_resource(video->dev, res);
res               137 drivers/media/platform/atmel/atmel-sama5d2-isc.c 	struct resource *res;
res               150 drivers/media/platform/atmel/atmel-sama5d2-isc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               151 drivers/media/platform/atmel/atmel-sama5d2-isc.c 	io_base = devm_ioremap_resource(dev, res);
res               283 drivers/media/platform/cadence/cdns-csi2rx.c 	struct resource *res;
res               287 drivers/media/platform/cadence/cdns-csi2rx.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               288 drivers/media/platform/cadence/cdns-csi2rx.c 	csi2rx->base = devm_ioremap_resource(&pdev->dev, res);
res               436 drivers/media/platform/cadence/cdns-csi2tx.c 	struct resource *res;
res               440 drivers/media/platform/cadence/cdns-csi2tx.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               441 drivers/media/platform/cadence/cdns-csi2tx.c 	csi2tx->base = devm_ioremap_resource(&pdev->dev, res);
res               287 drivers/media/platform/coda/imx-vdoa.c 	struct resource *res;
res               304 drivers/media/platform/coda/imx-vdoa.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               305 drivers/media/platform/coda/imx-vdoa.c 	vdoa->regs = devm_ioremap_resource(vdoa->dev, res);
res               309 drivers/media/platform/coda/imx-vdoa.c 	res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
res               310 drivers/media/platform/coda/imx-vdoa.c 	if (!res)
res               312 drivers/media/platform/coda/imx-vdoa.c 	ret = devm_request_threaded_irq(&pdev->dev, res->start, NULL,
res               863 drivers/media/platform/davinci/dm355_ccdc.c 	struct resource	*res;
res               874 drivers/media/platform/davinci/dm355_ccdc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               875 drivers/media/platform/davinci/dm355_ccdc.c 	if (!res) {
res               880 drivers/media/platform/davinci/dm355_ccdc.c 	res = request_mem_region(res->start, resource_size(res), res->name);
res               881 drivers/media/platform/davinci/dm355_ccdc.c 	if (!res) {
res               886 drivers/media/platform/davinci/dm355_ccdc.c 	ccdc_cfg.base_addr = ioremap_nocache(res->start, resource_size(res));
res               909 drivers/media/platform/davinci/dm355_ccdc.c 	release_mem_region(res->start, resource_size(res));
res               917 drivers/media/platform/davinci/dm355_ccdc.c 	struct resource	*res;
res               920 drivers/media/platform/davinci/dm355_ccdc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               921 drivers/media/platform/davinci/dm355_ccdc.c 	if (res)
res               922 drivers/media/platform/davinci/dm355_ccdc.c 		release_mem_region(res->start, resource_size(res));
res               797 drivers/media/platform/davinci/dm644x_ccdc.c 	struct resource	*res;
res               808 drivers/media/platform/davinci/dm644x_ccdc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               809 drivers/media/platform/davinci/dm644x_ccdc.c 	if (!res) {
res               814 drivers/media/platform/davinci/dm644x_ccdc.c 	res = request_mem_region(res->start, resource_size(res), res->name);
res               815 drivers/media/platform/davinci/dm644x_ccdc.c 	if (!res) {
res               820 drivers/media/platform/davinci/dm644x_ccdc.c 	ccdc_cfg.base_addr = ioremap_nocache(res->start, resource_size(res));
res               830 drivers/media/platform/davinci/dm644x_ccdc.c 	release_mem_region(res->start, resource_size(res));
res               838 drivers/media/platform/davinci/dm644x_ccdc.c 	struct resource	*res;
res               841 drivers/media/platform/davinci/dm644x_ccdc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               842 drivers/media/platform/davinci/dm644x_ccdc.c 	if (res)
res               843 drivers/media/platform/davinci/dm644x_ccdc.c 		release_mem_region(res->start, resource_size(res));
res              1011 drivers/media/platform/davinci/isif.c 	struct resource	*res;
res              1037 drivers/media/platform/davinci/isif.c 		res = platform_get_resource(pdev, IORESOURCE_MEM, i);
res              1038 drivers/media/platform/davinci/isif.c 		if (!res) {
res              1042 drivers/media/platform/davinci/isif.c 		res = request_mem_region(res->start, resource_size(res),
res              1043 drivers/media/platform/davinci/isif.c 					 res->name);
res              1044 drivers/media/platform/davinci/isif.c 		if (!res) {
res              1048 drivers/media/platform/davinci/isif.c 		addr = ioremap_nocache(res->start, resource_size(res));
res              1075 drivers/media/platform/davinci/isif.c 	release_mem_region(res->start, resource_size(res));
res              1084 drivers/media/platform/davinci/isif.c 		res = platform_get_resource(pdev, IORESOURCE_MEM, i);
res              1085 drivers/media/platform/davinci/isif.c 		if (res)
res              1086 drivers/media/platform/davinci/isif.c 			release_mem_region(res->start, resource_size(res));
res              1095 drivers/media/platform/davinci/isif.c 	struct resource	*res;
res              1102 drivers/media/platform/davinci/isif.c 		res = platform_get_resource(pdev, IORESOURCE_MEM, i);
res              1103 drivers/media/platform/davinci/isif.c 		if (res)
res              1104 drivers/media/platform/davinci/isif.c 			release_mem_region(res->start, resource_size(res));
res              1367 drivers/media/platform/davinci/vpbe_display.c 	struct resource *res = NULL;
res              1409 drivers/media/platform/davinci/vpbe_display.c 	res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
res              1410 drivers/media/platform/davinci/vpbe_display.c 	if (!res) {
res              1416 drivers/media/platform/davinci/vpbe_display.c 	irq = res->start;
res              1535 drivers/media/platform/davinci/vpbe_osd.c 	struct resource *res;
res              1549 drivers/media/platform/davinci/vpbe_osd.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1550 drivers/media/platform/davinci/vpbe_osd.c 	osd->osd_base = devm_ioremap_resource(&pdev->dev, res);
res              1554 drivers/media/platform/davinci/vpbe_osd.c 	osd->osd_base_phys = res->start;
res              1555 drivers/media/platform/davinci/vpbe_osd.c 	osd->osd_size = resource_size(res);
res               626 drivers/media/platform/davinci/vpbe_venc.c 	struct resource *res;
res               645 drivers/media/platform/davinci/vpbe_venc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               647 drivers/media/platform/davinci/vpbe_venc.c 	venc->venc_base = devm_ioremap_resource(&pdev->dev, res);
res               652 drivers/media/platform/davinci/vpbe_venc.c 		res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res               654 drivers/media/platform/davinci/vpbe_venc.c 		venc->vdaccfg_reg = devm_ioremap_resource(&pdev->dev, res);
res               428 drivers/media/platform/davinci/vpif.c 	static struct resource	*res, *res_irq;
res               432 drivers/media/platform/davinci/vpif.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               433 drivers/media/platform/davinci/vpif.c 	vpif_base = devm_ioremap_resource(&pdev->dev, res);
res              1623 drivers/media/platform/davinci/vpif_capture.c 	struct resource *res;
res              1648 drivers/media/platform/davinci/vpif_capture.c 	while ((res = platform_get_resource(pdev, IORESOURCE_IRQ, res_idx))) {
res              1649 drivers/media/platform/davinci/vpif_capture.c 		err = devm_request_irq(&pdev->dev, res->start, vpif_channel_isr,
res              1252 drivers/media/platform/davinci/vpif_display.c 	struct resource *res;
res              1276 drivers/media/platform/davinci/vpif_display.c 	while ((res = platform_get_resource(pdev, IORESOURCE_IRQ, res_idx))) {
res              1277 drivers/media/platform/davinci/vpif_display.c 		err = devm_request_irq(&pdev->dev, res->start, vpif_channel_isr,
res               395 drivers/media/platform/davinci/vpss.c 	struct resource *res;
res               416 drivers/media/platform/davinci/vpss.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               418 drivers/media/platform/davinci/vpss.c 	oper_cfg.vpss_regs_base0 = devm_ioremap_resource(&pdev->dev, res);
res               423 drivers/media/platform/davinci/vpss.c 		res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res               426 drivers/media/platform/davinci/vpss.c 								 res);
res              1109 drivers/media/platform/exynos-gsc/gsc-core.c 	struct resource *res;
res              1140 drivers/media/platform/exynos-gsc/gsc-core.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1141 drivers/media/platform/exynos-gsc/gsc-core.c 	gsc->regs = devm_ioremap_resource(dev, res);
res              1145 drivers/media/platform/exynos-gsc/gsc-core.c 	res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
res              1146 drivers/media/platform/exynos-gsc/gsc-core.c 	if (!res) {
res              1171 drivers/media/platform/exynos-gsc/gsc-core.c 	ret = devm_request_irq(dev, res->start, gsc_irq_handler,
res               927 drivers/media/platform/exynos4-is/fimc-core.c 	struct resource *res;
res               961 drivers/media/platform/exynos4-is/fimc-core.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               962 drivers/media/platform/exynos4-is/fimc-core.c 	fimc->regs = devm_ioremap_resource(dev, res);
res               966 drivers/media/platform/exynos4-is/fimc-core.c 	res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
res               967 drivers/media/platform/exynos4-is/fimc-core.c 	if (res == NULL) {
res               987 drivers/media/platform/exynos4-is/fimc-core.c 	ret = devm_request_irq(dev, res->start, fimc_irq_handler,
res               780 drivers/media/platform/exynos4-is/fimc-is.c 	struct resource res;
res               795 drivers/media/platform/exynos4-is/fimc-is.c 	ret = of_address_to_resource(dev->of_node, 0, &res);
res               799 drivers/media/platform/exynos4-is/fimc-is.c 	is->regs = devm_ioremap_resource(dev, &res);
res              1463 drivers/media/platform/exynos4-is/fimc-lite.c 	struct resource *res;
res              1491 drivers/media/platform/exynos4-is/fimc-lite.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1492 drivers/media/platform/exynos4-is/fimc-lite.c 	fimc->regs = devm_ioremap_resource(dev, res);
res              1496 drivers/media/platform/exynos4-is/fimc-lite.c 	res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
res              1497 drivers/media/platform/exynos4-is/fimc-lite.c 	if (res == NULL) {
res              1506 drivers/media/platform/exynos4-is/fimc-lite.c 	ret = devm_request_irq(dev, res->start, flite_irq_handler,
res              1259 drivers/media/platform/fsl-viu.c 	__poll_t res = v4l2_ctrl_poll(file, wait);
res              1265 drivers/media/platform/fsl-viu.c 		return res;
res              1268 drivers/media/platform/fsl-viu.c 	res |= videobuf_poll_stream(file, q, wait);
res              1270 drivers/media/platform/fsl-viu.c 	return res;
res              1639 drivers/media/platform/imx-pxp.c 	struct resource *res;
res              1655 drivers/media/platform/imx-pxp.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1656 drivers/media/platform/imx-pxp.c 	dev->mmio = devm_ioremap_resource(&pdev->dev, res);
res               222 drivers/media/platform/marvell-ccic/mmp-driver.c 	struct resource *res;
res               266 drivers/media/platform/marvell-ccic/mmp-driver.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               267 drivers/media/platform/marvell-ccic/mmp-driver.c 	mcam->regs = devm_ioremap_resource(&pdev->dev, res);
res               270 drivers/media/platform/marvell-ccic/mmp-driver.c 	mcam->regs_size = resource_size(res);
res               308 drivers/media/platform/marvell-ccic/mmp-driver.c 	res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
res               309 drivers/media/platform/marvell-ccic/mmp-driver.c 	if (res == NULL) {
res               313 drivers/media/platform/marvell-ccic/mmp-driver.c 	cam->irq = res->start;
res               636 drivers/media/platform/meson/ao-cec-g12a.c 	struct resource *res;
res               667 drivers/media/platform/meson/ao-cec-g12a.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               668 drivers/media/platform/meson/ao-cec-g12a.c 	base = devm_ioremap_resource(&pdev->dev, res);
res               245 drivers/media/platform/meson/ao-cec.c 			     int *res)
res               251 drivers/media/platform/meson/ao-cec.c 	if (res && *res)
res               272 drivers/media/platform/meson/ao-cec.c 	if (res)
res               273 drivers/media/platform/meson/ao-cec.c 		*res = ret;
res               278 drivers/media/platform/meson/ao-cec.c 			       int *res)
res               286 drivers/media/platform/meson/ao-cec.c 	if (res && *res)
res               300 drivers/media/platform/meson/ao-cec.c 	if (res)
res               301 drivers/media/platform/meson/ao-cec.c 		*res = ret;
res               605 drivers/media/platform/meson/ao-cec.c 	struct resource *res;
res               629 drivers/media/platform/meson/ao-cec.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               630 drivers/media/platform/meson/ao-cec.c 	ao_cec->base = devm_ioremap_resource(&pdev->dev, res);
res              1080 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c 	struct resource *res;
res              1092 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1093 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c 	jpeg->dec_reg_base = devm_ioremap_resource(&pdev->dev, res);
res              1099 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c 	res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
res              1101 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c 	if (!res || dec_irq < 0) {
res               230 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_drv.c 	struct resource *res;
res               256 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_drv.c 		res = platform_get_resource(pdev, IORESOURCE_MEM, i);
res               257 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_drv.c 		if (res == NULL) {
res               262 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_drv.c 		dev->reg_base[i] = devm_ioremap_resource(&pdev->dev, res);
res               270 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_drv.c 	res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
res               271 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_drv.c 	if (res == NULL) {
res               237 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c 	struct resource *res;
res               263 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c 		res = platform_get_resource(pdev, IORESOURCE_MEM, j);
res               264 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c 		dev->reg_base[i] = devm_ioremap_resource(&pdev->dev, res);
res               272 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c 	res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
res               273 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c 	if (res == NULL) {
res               772 drivers/media/platform/mtk-vpu/mtk_vpu.c 	struct resource *res;
res               783 drivers/media/platform/mtk-vpu/mtk_vpu.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "tcm");
res               784 drivers/media/platform/mtk-vpu/mtk_vpu.c 	vpu->reg.tcm = devm_ioremap_resource(dev, res);
res               788 drivers/media/platform/mtk-vpu/mtk_vpu.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "cfg_reg");
res               789 drivers/media/platform/mtk-vpu/mtk_vpu.c 	vpu->reg.cfg = devm_ioremap_resource(dev, res);
res               875 drivers/media/platform/mtk-vpu/mtk_vpu.c 	res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
res               876 drivers/media/platform/mtk-vpu/mtk_vpu.c 	if (!res) {
res               807 drivers/media/platform/mx2_emmaprp.c 	struct resource *res;
res               825 drivers/media/platform/mx2_emmaprp.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               826 drivers/media/platform/mx2_emmaprp.c 	pcdev->base_emma = devm_ioremap_resource(&pdev->dev, res);
res              1122 drivers/media/platform/omap3isp/isp.c void omap3isp_sbl_enable(struct isp_device *isp, enum isp_sbl_resource res)
res              1126 drivers/media/platform/omap3isp/isp.c 	isp->sbl_resources |= res;
res              1149 drivers/media/platform/omap3isp/isp.c void omap3isp_sbl_disable(struct isp_device *isp, enum isp_sbl_resource res)
res              1153 drivers/media/platform/omap3isp/isp.c 	isp->sbl_resources &= ~res;
res              1292 drivers/media/platform/omap3isp/isp.c 			    enum isp_subclk_resource res)
res              1294 drivers/media/platform/omap3isp/isp.c 	isp->subclk_resources |= res;
res              1300 drivers/media/platform/omap3isp/isp.c 			     enum isp_subclk_resource res)
res              1302 drivers/media/platform/omap3isp/isp.c 	isp->subclk_resources &= ~res;
res               256 drivers/media/platform/omap3isp/isp.h void omap3isp_sbl_enable(struct isp_device *isp, enum isp_sbl_resource res);
res               257 drivers/media/platform/omap3isp/isp.h void omap3isp_sbl_disable(struct isp_device *isp, enum isp_sbl_resource res);
res               260 drivers/media/platform/omap3isp/isp.h 			    enum isp_subclk_resource res);
res               262 drivers/media/platform/omap3isp/isp.h 			     enum isp_subclk_resource res);
res               117 drivers/media/platform/omap3isp/ispresizer.c __resizer_get_format(struct isp_res_device *res, struct v4l2_subdev_pad_config *cfg,
res               121 drivers/media/platform/omap3isp/ispresizer.c 		return v4l2_subdev_get_try_format(&res->subdev, cfg, pad);
res               123 drivers/media/platform/omap3isp/ispresizer.c 		return &res->formats[pad];
res               133 drivers/media/platform/omap3isp/ispresizer.c __resizer_get_crop(struct isp_res_device *res, struct v4l2_subdev_pad_config *cfg,
res               137 drivers/media/platform/omap3isp/ispresizer.c 		return v4l2_subdev_get_try_crop(&res->subdev, cfg, RESZ_PAD_SINK);
res               139 drivers/media/platform/omap3isp/ispresizer.c 		return &res->crop.request;
res               149 drivers/media/platform/omap3isp/ispresizer.c static void resizer_set_filters(struct isp_res_device *res, const u16 *h_coeff,
res               152 drivers/media/platform/omap3isp/ispresizer.c 	struct isp_device *isp = to_isp_device(res);
res               180 drivers/media/platform/omap3isp/ispresizer.c static void resizer_set_bilinear(struct isp_res_device *res,
res               183 drivers/media/platform/omap3isp/ispresizer.c 	struct isp_device *isp = to_isp_device(res);
res               198 drivers/media/platform/omap3isp/ispresizer.c static void resizer_set_ycpos(struct isp_res_device *res, u32 pixelcode)
res               200 drivers/media/platform/omap3isp/ispresizer.c 	struct isp_device *isp = to_isp_device(res);
res               224 drivers/media/platform/omap3isp/ispresizer.c static void resizer_set_phase(struct isp_res_device *res, u32 h_phase,
res               227 drivers/media/platform/omap3isp/ispresizer.c 	struct isp_device *isp = to_isp_device(res);
res               260 drivers/media/platform/omap3isp/ispresizer.c static void resizer_set_luma(struct isp_res_device *res,
res               263 drivers/media/platform/omap3isp/ispresizer.c 	struct isp_device *isp = to_isp_device(res);
res               286 drivers/media/platform/omap3isp/ispresizer.c static void resizer_set_source(struct isp_res_device *res,
res               289 drivers/media/platform/omap3isp/ispresizer.c 	struct isp_device *isp = to_isp_device(res);
res               306 drivers/media/platform/omap3isp/ispresizer.c static void resizer_set_ratio(struct isp_res_device *res,
res               309 drivers/media/platform/omap3isp/ispresizer.c 	struct isp_device *isp = to_isp_device(res);
res               333 drivers/media/platform/omap3isp/ispresizer.c 	resizer_set_filters(res, h_filter, v_filter);
res               350 drivers/media/platform/omap3isp/ispresizer.c static void resizer_set_output_size(struct isp_res_device *res,
res               353 drivers/media/platform/omap3isp/ispresizer.c 	struct isp_device *isp = to_isp_device(res);
res               372 drivers/media/platform/omap3isp/ispresizer.c static void resizer_set_output_offset(struct isp_res_device *res, u32 offset)
res               374 drivers/media/platform/omap3isp/ispresizer.c 	struct isp_device *isp = to_isp_device(res);
res               394 drivers/media/platform/omap3isp/ispresizer.c static void resizer_set_start(struct isp_res_device *res, u32 left, u32 top)
res               396 drivers/media/platform/omap3isp/ispresizer.c 	struct isp_device *isp = to_isp_device(res);
res               413 drivers/media/platform/omap3isp/ispresizer.c static void resizer_set_input_size(struct isp_res_device *res,
res               416 drivers/media/platform/omap3isp/ispresizer.c 	struct isp_device *isp = to_isp_device(res);
res               436 drivers/media/platform/omap3isp/ispresizer.c static void resizer_set_input_offset(struct isp_res_device *res, u32 offset)
res               438 drivers/media/platform/omap3isp/ispresizer.c 	struct isp_device *isp = to_isp_device(res);
res               448 drivers/media/platform/omap3isp/ispresizer.c static void resizer_set_intype(struct isp_res_device *res,
res               451 drivers/media/platform/omap3isp/ispresizer.c 	struct isp_device *isp = to_isp_device(res);
res               467 drivers/media/platform/omap3isp/ispresizer.c static void __resizer_set_inaddr(struct isp_res_device *res, u32 addr)
res               469 drivers/media/platform/omap3isp/ispresizer.c 	struct isp_device *isp = to_isp_device(res);
res               497 drivers/media/platform/omap3isp/ispresizer.c void omap3isp_resizer_max_rate(struct isp_res_device *res,
res               500 drivers/media/platform/omap3isp/ispresizer.c 	struct isp_pipeline *pipe = to_isp_pipeline(&res->subdev.entity);
res               501 drivers/media/platform/omap3isp/ispresizer.c 	const struct v4l2_mbus_framefmt *ofmt = &res->formats[RESZ_PAD_SOURCE];
res               505 drivers/media/platform/omap3isp/ispresizer.c 	clock = div_u64((u64)limit * res->crop.active.height, ofmt->height);
res               507 drivers/media/platform/omap3isp/ispresizer.c 	*max_rate = div_u64((u64)clock * res->crop.active.width, ofmt->width);
res               539 drivers/media/platform/omap3isp/ispresizer.c static void resizer_adjust_bandwidth(struct isp_res_device *res)
res               541 drivers/media/platform/omap3isp/ispresizer.c 	struct isp_pipeline *pipe = to_isp_pipeline(&res->subdev.entity);
res               542 drivers/media/platform/omap3isp/ispresizer.c 	struct isp_device *isp = to_isp_device(res);
res               553 drivers/media/platform/omap3isp/ispresizer.c 	if (res->input != RESIZER_INPUT_MEMORY) {
res               586 drivers/media/platform/omap3isp/ispresizer.c 	requests_per_frame = DIV_ROUND_UP(res->crop.active.width * 2, 256)
res               587 drivers/media/platform/omap3isp/ispresizer.c 			   * res->crop.active.height;
res               607 drivers/media/platform/omap3isp/ispresizer.c int omap3isp_resizer_busy(struct isp_res_device *res)
res               609 drivers/media/platform/omap3isp/ispresizer.c 	struct isp_device *isp = to_isp_device(res);
res               619 drivers/media/platform/omap3isp/ispresizer.c static void resizer_set_inaddr(struct isp_res_device *res, u32 addr)
res               621 drivers/media/platform/omap3isp/ispresizer.c 	res->addr_base = addr;
res               624 drivers/media/platform/omap3isp/ispresizer.c 	if (res->crop_offset)
res               625 drivers/media/platform/omap3isp/ispresizer.c 		addr += res->crop_offset & ~0x1f;
res               627 drivers/media/platform/omap3isp/ispresizer.c 	__resizer_set_inaddr(res, addr);
res               636 drivers/media/platform/omap3isp/ispresizer.c static void resizer_set_outaddr(struct isp_res_device *res, u32 addr)
res               638 drivers/media/platform/omap3isp/ispresizer.c 	struct isp_device *isp = to_isp_device(res);
res               655 drivers/media/platform/omap3isp/ispresizer.c static void resizer_print_status(struct isp_res_device *res)
res               657 drivers/media/platform/omap3isp/ispresizer.c 	struct isp_device *isp = to_isp_device(res);
res               777 drivers/media/platform/omap3isp/ispresizer.c static void resizer_calc_ratios(struct isp_res_device *res,
res               782 drivers/media/platform/omap3isp/ispresizer.c 	struct isp_device *isp = to_isp_device(res);
res               908 drivers/media/platform/omap3isp/ispresizer.c static void resizer_set_crop_params(struct isp_res_device *res,
res               912 drivers/media/platform/omap3isp/ispresizer.c 	resizer_set_ratio(res, &res->ratio);
res               915 drivers/media/platform/omap3isp/ispresizer.c 	if (res->ratio.horz >= RESIZE_DIVISOR)
res               916 drivers/media/platform/omap3isp/ispresizer.c 		resizer_set_bilinear(res, RSZ_THE_SAME);
res               918 drivers/media/platform/omap3isp/ispresizer.c 		resizer_set_bilinear(res, RSZ_BILINEAR);
res               920 drivers/media/platform/omap3isp/ispresizer.c 	resizer_adjust_bandwidth(res);
res               922 drivers/media/platform/omap3isp/ispresizer.c 	if (res->input == RESIZER_INPUT_MEMORY) {
res               924 drivers/media/platform/omap3isp/ispresizer.c 		res->crop_offset = (res->crop.active.top * input->width +
res               925 drivers/media/platform/omap3isp/ispresizer.c 				    res->crop.active.left) * 2;
res               930 drivers/media/platform/omap3isp/ispresizer.c 		resizer_set_start(res, (res->crop_offset / 2) & 0xf, 0);
res               936 drivers/media/platform/omap3isp/ispresizer.c 		__resizer_set_inaddr(res,
res               937 drivers/media/platform/omap3isp/ispresizer.c 				res->addr_base + (res->crop_offset & ~0x1f));
res               944 drivers/media/platform/omap3isp/ispresizer.c 		resizer_set_start(res, res->crop.active.left * 2,
res               945 drivers/media/platform/omap3isp/ispresizer.c 				  res->crop.active.top);
res               947 drivers/media/platform/omap3isp/ispresizer.c 		__resizer_set_inaddr(res, 0);
res               948 drivers/media/platform/omap3isp/ispresizer.c 		resizer_set_input_offset(res, 0);
res               952 drivers/media/platform/omap3isp/ispresizer.c 	resizer_set_input_size(res, res->crop.active.width,
res               953 drivers/media/platform/omap3isp/ispresizer.c 			       res->crop.active.height);
res               956 drivers/media/platform/omap3isp/ispresizer.c static void resizer_configure(struct isp_res_device *res)
res               961 drivers/media/platform/omap3isp/ispresizer.c 	resizer_set_source(res, res->input);
res               963 drivers/media/platform/omap3isp/ispresizer.c 	informat = &res->formats[RESZ_PAD_SINK];
res               964 drivers/media/platform/omap3isp/ispresizer.c 	outformat = &res->formats[RESZ_PAD_SOURCE];
res               967 drivers/media/platform/omap3isp/ispresizer.c 	if (res->input == RESIZER_INPUT_VP)
res               968 drivers/media/platform/omap3isp/ispresizer.c 		resizer_set_input_offset(res, 0);
res               970 drivers/media/platform/omap3isp/ispresizer.c 		resizer_set_input_offset(res, ALIGN(informat->width, 0x10) * 2);
res               973 drivers/media/platform/omap3isp/ispresizer.c 	resizer_set_intype(res, RSZ_YUV422);
res               974 drivers/media/platform/omap3isp/ispresizer.c 	resizer_set_ycpos(res, informat->code);
res               975 drivers/media/platform/omap3isp/ispresizer.c 	resizer_set_phase(res, DEFAULT_PHASE, DEFAULT_PHASE);
res               976 drivers/media/platform/omap3isp/ispresizer.c 	resizer_set_luma(res, &luma);
res               979 drivers/media/platform/omap3isp/ispresizer.c 	resizer_set_output_offset(res, ALIGN(outformat->width * 2, 32));
res               980 drivers/media/platform/omap3isp/ispresizer.c 	resizer_set_output_size(res, outformat->width, outformat->height);
res               982 drivers/media/platform/omap3isp/ispresizer.c 	resizer_set_crop_params(res, informat, outformat);
res               989 drivers/media/platform/omap3isp/ispresizer.c static void resizer_enable_oneshot(struct isp_res_device *res)
res               991 drivers/media/platform/omap3isp/ispresizer.c 	struct isp_device *isp = to_isp_device(res);
res               997 drivers/media/platform/omap3isp/ispresizer.c void omap3isp_resizer_isr_frame_sync(struct isp_res_device *res)
res              1005 drivers/media/platform/omap3isp/ispresizer.c 	if (res->state == ISP_PIPELINE_STREAM_CONTINUOUS &&
res              1006 drivers/media/platform/omap3isp/ispresizer.c 	    res->video_out.dmaqueue_flags & ISP_VIDEO_DMAQUEUE_QUEUED) {
res              1007 drivers/media/platform/omap3isp/ispresizer.c 		resizer_enable_oneshot(res);
res              1008 drivers/media/platform/omap3isp/ispresizer.c 		isp_video_dmaqueue_flags_clr(&res->video_out);
res              1012 drivers/media/platform/omap3isp/ispresizer.c static void resizer_isr_buffer(struct isp_res_device *res)
res              1014 drivers/media/platform/omap3isp/ispresizer.c 	struct isp_pipeline *pipe = to_isp_pipeline(&res->subdev.entity);
res              1018 drivers/media/platform/omap3isp/ispresizer.c 	if (res->state == ISP_PIPELINE_STREAM_STOPPED)
res              1024 drivers/media/platform/omap3isp/ispresizer.c 	buffer = omap3isp_video_buffer_next(&res->video_out);
res              1026 drivers/media/platform/omap3isp/ispresizer.c 		resizer_set_outaddr(res, buffer->dma);
res              1032 drivers/media/platform/omap3isp/ispresizer.c 	if (res->input == RESIZER_INPUT_MEMORY) {
res              1033 drivers/media/platform/omap3isp/ispresizer.c 		buffer = omap3isp_video_buffer_next(&res->video_in);
res              1035 drivers/media/platform/omap3isp/ispresizer.c 			resizer_set_inaddr(res, buffer->dma);
res              1039 drivers/media/platform/omap3isp/ispresizer.c 	if (res->state == ISP_PIPELINE_STREAM_SINGLESHOT) {
res              1048 drivers/media/platform/omap3isp/ispresizer.c 			resizer_enable_oneshot(res);
res              1058 drivers/media/platform/omap3isp/ispresizer.c void omap3isp_resizer_isr(struct isp_res_device *res)
res              1063 drivers/media/platform/omap3isp/ispresizer.c 	if (omap3isp_module_sync_is_stopping(&res->wait, &res->stopping))
res              1066 drivers/media/platform/omap3isp/ispresizer.c 	spin_lock_irqsave(&res->lock, flags);
res              1068 drivers/media/platform/omap3isp/ispresizer.c 	if (res->applycrop) {
res              1069 drivers/media/platform/omap3isp/ispresizer.c 		outformat = __resizer_get_format(res, NULL, RESZ_PAD_SOURCE,
res              1071 drivers/media/platform/omap3isp/ispresizer.c 		informat = __resizer_get_format(res, NULL, RESZ_PAD_SINK,
res              1073 drivers/media/platform/omap3isp/ispresizer.c 		resizer_set_crop_params(res, informat, outformat);
res              1074 drivers/media/platform/omap3isp/ispresizer.c 		res->applycrop = 0;
res              1077 drivers/media/platform/omap3isp/ispresizer.c 	spin_unlock_irqrestore(&res->lock, flags);
res              1079 drivers/media/platform/omap3isp/ispresizer.c 	resizer_isr_buffer(res);
res              1089 drivers/media/platform/omap3isp/ispresizer.c 	struct isp_res_device *res = &video->isp->isp_res;
res              1092 drivers/media/platform/omap3isp/ispresizer.c 		resizer_set_inaddr(res, buffer->dma);
res              1107 drivers/media/platform/omap3isp/ispresizer.c 		resizer_set_outaddr(res, buffer->dma);
res              1132 drivers/media/platform/omap3isp/ispresizer.c 	struct isp_res_device *res = v4l2_get_subdevdata(sd);
res              1133 drivers/media/platform/omap3isp/ispresizer.c 	struct isp_video *video_out = &res->video_out;
res              1134 drivers/media/platform/omap3isp/ispresizer.c 	struct isp_device *isp = to_isp_device(res);
res              1135 drivers/media/platform/omap3isp/ispresizer.c 	struct device *dev = to_device(res);
res              1137 drivers/media/platform/omap3isp/ispresizer.c 	if (res->state == ISP_PIPELINE_STREAM_STOPPED) {
res              1142 drivers/media/platform/omap3isp/ispresizer.c 		resizer_configure(res);
res              1143 drivers/media/platform/omap3isp/ispresizer.c 		resizer_print_status(res);
res              1150 drivers/media/platform/omap3isp/ispresizer.c 			resizer_enable_oneshot(res);
res              1156 drivers/media/platform/omap3isp/ispresizer.c 		if (res->input == RESIZER_INPUT_MEMORY)
res              1160 drivers/media/platform/omap3isp/ispresizer.c 		resizer_enable_oneshot(res);
res              1164 drivers/media/platform/omap3isp/ispresizer.c 		if (omap3isp_module_sync_idle(&sd->entity, &res->wait,
res              1165 drivers/media/platform/omap3isp/ispresizer.c 					      &res->stopping))
res              1174 drivers/media/platform/omap3isp/ispresizer.c 	res->state = enable;
res              1226 drivers/media/platform/omap3isp/ispresizer.c 	struct isp_res_device *res = v4l2_get_subdevdata(sd);
res              1234 drivers/media/platform/omap3isp/ispresizer.c 	format_sink = __resizer_get_format(res, cfg, RESZ_PAD_SINK,
res              1236 drivers/media/platform/omap3isp/ispresizer.c 	format_source = __resizer_get_format(res, cfg, RESZ_PAD_SOURCE,
res              1247 drivers/media/platform/omap3isp/ispresizer.c 		resizer_calc_ratios(res, &sel->r, format_source, &ratio);
res              1251 drivers/media/platform/omap3isp/ispresizer.c 		sel->r = *__resizer_get_crop(res, cfg, sel->which);
res              1252 drivers/media/platform/omap3isp/ispresizer.c 		resizer_calc_ratios(res, &sel->r, format_source, &ratio);
res              1279 drivers/media/platform/omap3isp/ispresizer.c 	struct isp_res_device *res = v4l2_get_subdevdata(sd);
res              1280 drivers/media/platform/omap3isp/ispresizer.c 	struct isp_device *isp = to_isp_device(res);
res              1290 drivers/media/platform/omap3isp/ispresizer.c 	format_sink = __resizer_get_format(res, cfg, RESZ_PAD_SINK,
res              1292 drivers/media/platform/omap3isp/ispresizer.c 	format_source = *__resizer_get_format(res, cfg, RESZ_PAD_SOURCE,
res              1310 drivers/media/platform/omap3isp/ispresizer.c 	*__resizer_get_crop(res, cfg, sel->which) = sel->r;
res              1311 drivers/media/platform/omap3isp/ispresizer.c 	resizer_calc_ratios(res, &sel->r, &format_source, &ratio);
res              1320 drivers/media/platform/omap3isp/ispresizer.c 		*__resizer_get_format(res, cfg, RESZ_PAD_SOURCE, sel->which) =
res              1329 drivers/media/platform/omap3isp/ispresizer.c 	spin_lock_irqsave(&res->lock, flags);
res              1331 drivers/media/platform/omap3isp/ispresizer.c 	*__resizer_get_format(res, cfg, RESZ_PAD_SOURCE, sel->which) =
res              1334 drivers/media/platform/omap3isp/ispresizer.c 	res->ratio = ratio;
res              1335 drivers/media/platform/omap3isp/ispresizer.c 	res->crop.active = sel->r;
res              1337 drivers/media/platform/omap3isp/ispresizer.c 	if (res->state != ISP_PIPELINE_STREAM_STOPPED)
res              1338 drivers/media/platform/omap3isp/ispresizer.c 		res->applycrop = 1;
res              1340 drivers/media/platform/omap3isp/ispresizer.c 	spin_unlock_irqrestore(&res->lock, flags);
res              1351 drivers/media/platform/omap3isp/ispresizer.c static unsigned int resizer_max_in_width(struct isp_res_device *res)
res              1353 drivers/media/platform/omap3isp/ispresizer.c 	struct isp_device *isp = to_isp_device(res);
res              1355 drivers/media/platform/omap3isp/ispresizer.c 	if (res->input == RESIZER_INPUT_MEMORY) {
res              1373 drivers/media/platform/omap3isp/ispresizer.c static void resizer_try_format(struct isp_res_device *res,
res              1389 drivers/media/platform/omap3isp/ispresizer.c 				     resizer_max_in_width(res));
res              1395 drivers/media/platform/omap3isp/ispresizer.c 		format = __resizer_get_format(res, cfg, RESZ_PAD_SINK, which);
res              1398 drivers/media/platform/omap3isp/ispresizer.c 		crop = *__resizer_get_crop(res, cfg, which);
res              1399 drivers/media/platform/omap3isp/ispresizer.c 		resizer_calc_ratios(res, &crop, fmt, &ratio);
res              1418 drivers/media/platform/omap3isp/ispresizer.c 	struct isp_res_device *res = v4l2_get_subdevdata(sd);
res              1430 drivers/media/platform/omap3isp/ispresizer.c 		format = __resizer_get_format(res, cfg, RESZ_PAD_SINK,
res              1442 drivers/media/platform/omap3isp/ispresizer.c 	struct isp_res_device *res = v4l2_get_subdevdata(sd);
res              1451 drivers/media/platform/omap3isp/ispresizer.c 	resizer_try_format(res, cfg, fse->pad, &format, fse->which);
res              1461 drivers/media/platform/omap3isp/ispresizer.c 	resizer_try_format(res, cfg, fse->pad, &format, fse->which);
res              1478 drivers/media/platform/omap3isp/ispresizer.c 	struct isp_res_device *res = v4l2_get_subdevdata(sd);
res              1481 drivers/media/platform/omap3isp/ispresizer.c 	format = __resizer_get_format(res, cfg, fmt->pad, fmt->which);
res              1499 drivers/media/platform/omap3isp/ispresizer.c 	struct isp_res_device *res = v4l2_get_subdevdata(sd);
res              1503 drivers/media/platform/omap3isp/ispresizer.c 	format = __resizer_get_format(res, cfg, fmt->pad, fmt->which);
res              1507 drivers/media/platform/omap3isp/ispresizer.c 	resizer_try_format(res, cfg, fmt->pad, &fmt->format, fmt->which);
res              1512 drivers/media/platform/omap3isp/ispresizer.c 		crop = __resizer_get_crop(res, cfg, fmt->which);
res              1519 drivers/media/platform/omap3isp/ispresizer.c 		format = __resizer_get_format(res, cfg, RESZ_PAD_SOURCE,
res              1522 drivers/media/platform/omap3isp/ispresizer.c 		resizer_try_format(res, cfg, RESZ_PAD_SOURCE, format,
res              1531 drivers/media/platform/omap3isp/ispresizer.c 		res->crop.active = res->crop.request;
res              1532 drivers/media/platform/omap3isp/ispresizer.c 		resizer_calc_ratios(res, &res->crop.active, format,
res              1533 drivers/media/platform/omap3isp/ispresizer.c 				       &res->ratio);
res              1544 drivers/media/platform/omap3isp/ispresizer.c 	struct isp_res_device *res = v4l2_get_subdevdata(sd);
res              1547 drivers/media/platform/omap3isp/ispresizer.c 	omap3isp_resizer_max_rate(res, &pipe->max_rate);
res              1622 drivers/media/platform/omap3isp/ispresizer.c 	struct isp_res_device *res = v4l2_get_subdevdata(sd);
res              1633 drivers/media/platform/omap3isp/ispresizer.c 			if (res->input == RESIZER_INPUT_VP)
res              1635 drivers/media/platform/omap3isp/ispresizer.c 			res->input = RESIZER_INPUT_MEMORY;
res              1637 drivers/media/platform/omap3isp/ispresizer.c 			if (res->input == RESIZER_INPUT_MEMORY)
res              1638 drivers/media/platform/omap3isp/ispresizer.c 				res->input = RESIZER_INPUT_NONE;
res              1645 drivers/media/platform/omap3isp/ispresizer.c 			if (res->input == RESIZER_INPUT_MEMORY)
res              1647 drivers/media/platform/omap3isp/ispresizer.c 			res->input = RESIZER_INPUT_VP;
res              1649 drivers/media/platform/omap3isp/ispresizer.c 			if (res->input == RESIZER_INPUT_VP)
res              1650 drivers/media/platform/omap3isp/ispresizer.c 				res->input = RESIZER_INPUT_NONE;
res              1671 drivers/media/platform/omap3isp/ispresizer.c void omap3isp_resizer_unregister_entities(struct isp_res_device *res)
res              1673 drivers/media/platform/omap3isp/ispresizer.c 	v4l2_device_unregister_subdev(&res->subdev);
res              1674 drivers/media/platform/omap3isp/ispresizer.c 	omap3isp_video_unregister(&res->video_in);
res              1675 drivers/media/platform/omap3isp/ispresizer.c 	omap3isp_video_unregister(&res->video_out);
res              1678 drivers/media/platform/omap3isp/ispresizer.c int omap3isp_resizer_register_entities(struct isp_res_device *res,
res              1684 drivers/media/platform/omap3isp/ispresizer.c 	res->subdev.dev = vdev->mdev->dev;
res              1685 drivers/media/platform/omap3isp/ispresizer.c 	ret = v4l2_device_register_subdev(vdev, &res->subdev);
res              1689 drivers/media/platform/omap3isp/ispresizer.c 	ret = omap3isp_video_register(&res->video_in, vdev);
res              1693 drivers/media/platform/omap3isp/ispresizer.c 	ret = omap3isp_video_register(&res->video_out, vdev);
res              1700 drivers/media/platform/omap3isp/ispresizer.c 	omap3isp_resizer_unregister_entities(res);
res              1713 drivers/media/platform/omap3isp/ispresizer.c static int resizer_init_entities(struct isp_res_device *res)
res              1715 drivers/media/platform/omap3isp/ispresizer.c 	struct v4l2_subdev *sd = &res->subdev;
res              1716 drivers/media/platform/omap3isp/ispresizer.c 	struct media_pad *pads = res->pads;
res              1720 drivers/media/platform/omap3isp/ispresizer.c 	res->input = RESIZER_INPUT_NONE;
res              1726 drivers/media/platform/omap3isp/ispresizer.c 	v4l2_set_subdevdata(sd, res);
res              1740 drivers/media/platform/omap3isp/ispresizer.c 	res->video_in.type = V4L2_BUF_TYPE_VIDEO_OUTPUT;
res              1741 drivers/media/platform/omap3isp/ispresizer.c 	res->video_in.ops = &resizer_video_ops;
res              1742 drivers/media/platform/omap3isp/ispresizer.c 	res->video_in.isp = to_isp_device(res);
res              1743 drivers/media/platform/omap3isp/ispresizer.c 	res->video_in.capture_mem = PAGE_ALIGN(4096 * 4096) * 2 * 3;
res              1744 drivers/media/platform/omap3isp/ispresizer.c 	res->video_in.bpl_alignment = 32;
res              1745 drivers/media/platform/omap3isp/ispresizer.c 	res->video_out.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
res              1746 drivers/media/platform/omap3isp/ispresizer.c 	res->video_out.ops = &resizer_video_ops;
res              1747 drivers/media/platform/omap3isp/ispresizer.c 	res->video_out.isp = to_isp_device(res);
res              1748 drivers/media/platform/omap3isp/ispresizer.c 	res->video_out.capture_mem = PAGE_ALIGN(4096 * 4096) * 2 * 3;
res              1749 drivers/media/platform/omap3isp/ispresizer.c 	res->video_out.bpl_alignment = 32;
res              1751 drivers/media/platform/omap3isp/ispresizer.c 	ret = omap3isp_video_init(&res->video_in, "resizer");
res              1755 drivers/media/platform/omap3isp/ispresizer.c 	ret = omap3isp_video_init(&res->video_out, "resizer");
res              1759 drivers/media/platform/omap3isp/ispresizer.c 	res->video_out.video.entity.flags |= MEDIA_ENT_FL_DEFAULT;
res              1764 drivers/media/platform/omap3isp/ispresizer.c 	omap3isp_video_cleanup(&res->video_in);
res              1766 drivers/media/platform/omap3isp/ispresizer.c 	media_entity_cleanup(&res->subdev.entity);
res              1777 drivers/media/platform/omap3isp/ispresizer.c 	struct isp_res_device *res = &isp->isp_res;
res              1779 drivers/media/platform/omap3isp/ispresizer.c 	init_waitqueue_head(&res->wait);
res              1780 drivers/media/platform/omap3isp/ispresizer.c 	atomic_set(&res->stopping, 0);
res              1781 drivers/media/platform/omap3isp/ispresizer.c 	spin_lock_init(&res->lock);
res              1783 drivers/media/platform/omap3isp/ispresizer.c 	return resizer_init_entities(res);
res              1788 drivers/media/platform/omap3isp/ispresizer.c 	struct isp_res_device *res = &isp->isp_res;
res              1790 drivers/media/platform/omap3isp/ispresizer.c 	omap3isp_video_cleanup(&res->video_in);
res              1791 drivers/media/platform/omap3isp/ispresizer.c 	omap3isp_video_cleanup(&res->video_out);
res              1792 drivers/media/platform/omap3isp/ispresizer.c 	media_entity_cleanup(&res->subdev.entity);
res               121 drivers/media/platform/omap3isp/ispresizer.h int omap3isp_resizer_register_entities(struct isp_res_device *res,
res               123 drivers/media/platform/omap3isp/ispresizer.h void omap3isp_resizer_unregister_entities(struct isp_res_device *res);
res               124 drivers/media/platform/omap3isp/ispresizer.h void omap3isp_resizer_isr_frame_sync(struct isp_res_device *res);
res               127 drivers/media/platform/omap3isp/ispresizer.h void omap3isp_resizer_max_rate(struct isp_res_device *res,
res               711 drivers/media/platform/pxa_camera.c 	struct resource		*res;
res              2361 drivers/media/platform/pxa_camera.c 	struct resource *res;
res              2372 drivers/media/platform/pxa_camera.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              2374 drivers/media/platform/pxa_camera.c 	if (!res || irq < 0)
res              2387 drivers/media/platform/pxa_camera.c 	pcdev->res = res;
res              2435 drivers/media/platform/pxa_camera.c 	base = devm_ioremap_resource(&pdev->dev, res);
res              2464 drivers/media/platform/pxa_camera.c 		config.src_addr = pcdev->res->start + CIBR0 + i * 8;
res              1084 drivers/media/platform/qcom/camss/camss-csid.c 			 const struct resources *res, u8 id)
res              1109 drivers/media/platform/qcom/camss/camss-csid.c 	r = platform_get_resource_byname(pdev, IORESOURCE_MEM, res->reg[0]);
res              1119 drivers/media/platform/qcom/camss/camss-csid.c 					 res->interrupt[0]);
res              1140 drivers/media/platform/qcom/camss/camss-csid.c 	while (res->clock[csid->nclocks])
res              1151 drivers/media/platform/qcom/camss/camss-csid.c 		clock->clk = devm_clk_get(dev, res->clock[i]);
res              1155 drivers/media/platform/qcom/camss/camss-csid.c 		clock->name = res->clock[i];
res              1158 drivers/media/platform/qcom/camss/camss-csid.c 		while (res->clock_rate[i][clock->nfreqs])
res              1174 drivers/media/platform/qcom/camss/camss-csid.c 			clock->freq[j] = res->clock_rate[i][j];
res              1179 drivers/media/platform/qcom/camss/camss-csid.c 	csid->vdda = devm_regulator_get(dev, res->regulator[0]);
res                68 drivers/media/platform/qcom/camss/camss-csid.h 			 const struct resources *res, u8 id);
res               539 drivers/media/platform/qcom/camss/camss-csiphy.c 			   const struct resources *res, u8 id)
res               565 drivers/media/platform/qcom/camss/camss-csiphy.c 	r = platform_get_resource_byname(pdev, IORESOURCE_MEM, res->reg[0]);
res               572 drivers/media/platform/qcom/camss/camss-csiphy.c 	r = platform_get_resource_byname(pdev, IORESOURCE_MEM, res->reg[1]);
res               582 drivers/media/platform/qcom/camss/camss-csiphy.c 					 res->interrupt[0]);
res               604 drivers/media/platform/qcom/camss/camss-csiphy.c 	while (res->clock[csiphy->nclocks])
res               616 drivers/media/platform/qcom/camss/camss-csiphy.c 		clock->clk = devm_clk_get(dev, res->clock[i]);
res               620 drivers/media/platform/qcom/camss/camss-csiphy.c 		clock->name = res->clock[i];
res               623 drivers/media/platform/qcom/camss/camss-csiphy.c 		while (res->clock_rate[i][clock->nfreqs])
res               639 drivers/media/platform/qcom/camss/camss-csiphy.c 			clock->freq[j] = res->clock_rate[i][j];
res                82 drivers/media/platform/qcom/camss/camss-csiphy.h 			   const struct resources *res, u8 id);
res              1064 drivers/media/platform/qcom/camss/camss-ispif.c 			  const struct resources_ispif *res)
res              1104 drivers/media/platform/qcom/camss/camss-ispif.c 	r = platform_get_resource_byname(pdev, IORESOURCE_MEM, res->reg[0]);
res              1111 drivers/media/platform/qcom/camss/camss-ispif.c 	r = platform_get_resource_byname(pdev, IORESOURCE_MEM, res->reg[1]);
res              1120 drivers/media/platform/qcom/camss/camss-ispif.c 	r = platform_get_resource_byname(pdev, IORESOURCE_IRQ, res->interrupt);
res              1146 drivers/media/platform/qcom/camss/camss-ispif.c 	while (res->clock[ispif->nclocks])
res              1158 drivers/media/platform/qcom/camss/camss-ispif.c 		clock->clk = devm_clk_get(dev, res->clock[i]);
res              1167 drivers/media/platform/qcom/camss/camss-ispif.c 	while (res->clock_for_reset[ispif->nclocks_for_reset])
res              1180 drivers/media/platform/qcom/camss/camss-ispif.c 		clock->clk = devm_clk_get(dev, res->clock_for_reset[i]);
res                71 drivers/media/platform/qcom/camss/camss-ispif.h 			  const struct resources_ispif *res);
res              1981 drivers/media/platform/qcom/camss/camss-vfe.c 			const struct resources *res, u8 id)
res              2005 drivers/media/platform/qcom/camss/camss-vfe.c 	r = platform_get_resource_byname(pdev, IORESOURCE_MEM, res->reg[0]);
res              2015 drivers/media/platform/qcom/camss/camss-vfe.c 					 res->interrupt[0]);
res              2034 drivers/media/platform/qcom/camss/camss-vfe.c 	while (res->clock[vfe->nclocks])
res              2045 drivers/media/platform/qcom/camss/camss-vfe.c 		clock->clk = devm_clk_get(dev, res->clock[i]);
res              2049 drivers/media/platform/qcom/camss/camss-vfe.c 		clock->name = res->clock[i];
res              2052 drivers/media/platform/qcom/camss/camss-vfe.c 		while (res->clock_rate[i][clock->nfreqs])
res              2068 drivers/media/platform/qcom/camss/camss-vfe.c 			clock->freq[j] = res->clock_rate[i][j];
res               171 drivers/media/platform/qcom/camss/camss-vfe.h 			const struct resources *res, u8 id);
res               104 drivers/media/platform/qcom/venus/core.c 	const struct venus_resources *res = core->res;
res               108 drivers/media/platform/qcom/venus/core.c 	for (i = 0; i < res->clks_num; i++) {
res               109 drivers/media/platform/qcom/venus/core.c 		core->clks[i] = devm_clk_get(dev, res->clks[i]);
res               119 drivers/media/platform/qcom/venus/core.c 	const struct venus_resources *res = core->res;
res               123 drivers/media/platform/qcom/venus/core.c 	for (i = 0; i < res->clks_num; i++) {
res               139 drivers/media/platform/qcom/venus/core.c 	const struct venus_resources *res = core->res;
res               140 drivers/media/platform/qcom/venus/core.c 	unsigned int i = res->clks_num;
res               181 drivers/media/platform/qcom/venus/core.c 	if (core->res->hfi_version != HFI_VERSION_1XX)
res               246 drivers/media/platform/qcom/venus/core.c 	core->res = of_device_get_match_data(dev);
res               247 drivers/media/platform/qcom/venus/core.c 	if (!core->res)
res               254 drivers/media/platform/qcom/venus/core.c 	ret = dma_set_mask_and_coherent(dev, core->res->dma_mask);
res               121 drivers/media/platform/qcom/venus/core.h 	const struct venus_resources *res;
res               345 drivers/media/platform/qcom/venus/core.h #define IS_V1(core)	((core)->res->hfi_version == HFI_VERSION_1XX)
res               346 drivers/media/platform/qcom/venus/core.h #define IS_V3(core)	((core)->res->hfi_version == HFI_VERSION_3XX)
res               347 drivers/media/platform/qcom/venus/core.h #define IS_V4(core)	((core)->res->hfi_version == HFI_VERSION_4XX)
res               193 drivers/media/platform/qcom/venus/firmware.c 	ret = venus_load_fw(core, core->res->fwname, &mem_phys, &mem_size);
res               126 drivers/media/platform/qcom/venus/helpers.c 	enum hfi_version ver = core->res->hfi_version;
res               318 drivers/media/platform/qcom/venus/helpers.c 	enum hfi_version ver = inst->core->res->hfi_version;
res               393 drivers/media/platform/qcom/venus/helpers.c 	const struct freq_tbl *table = core->res->freq_tbl;
res               394 drivers/media/platform/qcom/venus/helpers.c 	unsigned int num_rows = core->res->freq_tbl_size;
res               405 drivers/media/platform/qcom/venus/helpers.c 	if (mbs_per_sec > core->res->max_load)
res               407 drivers/media/platform/qcom/venus/helpers.c 			 mbs_per_sec, core->res->max_load);
res               312 drivers/media/platform/qcom/venus/hfi.c 	if (core->res->hfi_version == HFI_VERSION_1XX)
res               508 drivers/media/platform/qcom/venus/hfi.c 	pkt_set_version(core->res->hfi_version);
res                70 drivers/media/platform/qcom/venus/hfi_cmds.c 		struct hfi_resource_ocmem *res =
res                73 drivers/media/platform/qcom/venus/hfi_cmds.c 		res->size = size;
res                74 drivers/media/platform/qcom/venus/hfi_cmds.c 		res->mem = addr;
res                76 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->hdr.size += sizeof(*res) - sizeof(u32);
res               654 drivers/media/platform/qcom/venus/hfi_cmds.c 		struct hfi_mpeg4_time_resolution *in = pdata, *res = prop_data;
res               656 drivers/media/platform/qcom/venus/hfi_cmds.c 		res->time_increment_resolution = in->time_increment_resolution;
res               657 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) + sizeof(*res);
res                20 drivers/media/platform/qcom/venus/hfi_msgs.c 	enum hfi_version ver = core->res->hfi_version;
res               360 drivers/media/platform/qcom/venus/hfi_venus.c 	const struct venus_resources *res = hdev->core->res;
res               361 drivers/media/platform/qcom/venus/hfi_venus.c 	const struct reg_val *tbl = res->reg_tbl;
res               362 drivers/media/platform/qcom/venus/hfi_venus.c 	unsigned int count = res->reg_tbl_size;
res              1002 drivers/media/platform/qcom/venus/hfi_venus.c 	const struct venus_resources *res;
res              1009 drivers/media/platform/qcom/venus/hfi_venus.c 	res = hdev->core->res;
res              1024 drivers/media/platform/qcom/venus/hfi_venus.c 			venus_hfi_core_set_resource(core, res->vmem_id,
res              1025 drivers/media/platform/qcom/venus/hfi_venus.c 						    res->vmem_size,
res              1026 drivers/media/platform/qcom/venus/hfi_venus.c 						    res->vmem_addr,
res               585 drivers/media/platform/qcom/venus/vdec.c 	if (core->res->hfi_version == HFI_VERSION_1XX) {
res               697 drivers/media/platform/qcom/venus/vdec.c 	enum hfi_version ver = inst->core->res->hfi_version;
res               792 drivers/media/platform/qcom/venus/vdec.c 	enum hfi_version ver = inst->core->res->hfi_version;
res                44 drivers/media/platform/qcom/venus/vdec_ctrls.c 	enum hfi_version ver = inst->core->res->hfi_version;
res               938 drivers/media/platform/qcom/venus/venc.c 	enum hfi_version ver = inst->core->res->hfi_version;
res              1101 drivers/media/platform/qcom/venus/venc.c 	if (inst->core->res->hfi_version == HFI_VERSION_1XX)
res              1003 drivers/media/platform/rcar-vin/rcar-csi2.c 	struct resource *res;
res              1006 drivers/media/platform/rcar-vin/rcar-csi2.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1007 drivers/media/platform/rcar-vin/rcar-csi2.c 	priv->base = devm_ioremap_resource(&pdev->dev, res);
res              1388 drivers/media/platform/rcar_drif.c 	struct resource	*res;
res              1407 drivers/media/platform/rcar_drif.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1408 drivers/media/platform/rcar_drif.c 	ch->base = devm_ioremap_resource(&pdev->dev, res);
res              1412 drivers/media/platform/rcar_drif.c 	ch->start = res->start;
res              2258 drivers/media/platform/rcar_fdp1.c 	struct resource *res;
res              2285 drivers/media/platform/rcar_fdp1.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              2286 drivers/media/platform/rcar_fdp1.c 	fdp1->regs = devm_ioremap_resource(&pdev->dev, res);
res              1597 drivers/media/platform/rcar_jpu.c 	struct resource *res;
res              1610 drivers/media/platform/rcar_jpu.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1611 drivers/media/platform/rcar_jpu.c 	jpu->regs = devm_ioremap_resource(&pdev->dev, res);
res              1638 drivers/media/platform/renesas-ceu.c 	struct resource *res;
res              1654 drivers/media/platform/renesas-ceu.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1655 drivers/media/platform/renesas-ceu.c 	ceudev->base = devm_ioremap_resource(dev, res);
res               803 drivers/media/platform/rockchip/rga/rga.c 	struct resource *res;
res               824 drivers/media/platform/rockchip/rga/rga.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               826 drivers/media/platform/rockchip/rga/rga.c 	rga->regs = devm_ioremap_resource(rga->dev, res);
res               178 drivers/media/platform/s5p-cec/s5p_cec.c 	struct resource *res;
res               212 drivers/media/platform/s5p-cec/s5p_cec.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               213 drivers/media/platform/s5p-cec/s5p_cec.c 	cec->reg = devm_ioremap_resource(dev, res);
res               623 drivers/media/platform/s5p-g2d/g2d.c 	struct resource *res;
res               635 drivers/media/platform/s5p-g2d/g2d.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               637 drivers/media/platform/s5p-g2d/g2d.c 	dev->regs = devm_ioremap_resource(&pdev->dev, res);
res               666 drivers/media/platform/s5p-g2d/g2d.c 	res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
res               667 drivers/media/platform/s5p-g2d/g2d.c 	if (!res) {
res               673 drivers/media/platform/s5p-g2d/g2d.c 	dev->irq = res->start;
res              2869 drivers/media/platform/s5p-jpeg/jpeg-core.c 	struct resource *res;
res              2884 drivers/media/platform/s5p-jpeg/jpeg-core.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              2886 drivers/media/platform/s5p-jpeg/jpeg-core.c 	jpeg->regs = devm_ioremap_resource(&pdev->dev, res);
res              1270 drivers/media/platform/s5p-mfc/s5p_mfc.c 	struct resource *res;
res              1288 drivers/media/platform/s5p-mfc/s5p_mfc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1289 drivers/media/platform/s5p-mfc/s5p_mfc.c 	dev->regs_base = devm_ioremap_resource(&pdev->dev, res);
res              1293 drivers/media/platform/s5p-mfc/s5p_mfc.c 	res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
res              1294 drivers/media/platform/s5p-mfc/s5p_mfc.c 	if (!res) {
res              1298 drivers/media/platform/s5p-mfc/s5p_mfc.c 	dev->irq = res->start;
res                37 drivers/media/platform/seco-cec/seco-cec.c #define smb_rd16(cmd, res) smb_word_op(CMD_WORD_DATA, SECOCEC_MICRO_ADDRESS, \
res                38 drivers/media/platform/seco-cec/seco-cec.c 				       cmd, 0, SMBUS_READ, res)
res              1285 drivers/media/platform/sti/bdisp/bdisp-v4l2.c 	struct resource *res;
res              1316 drivers/media/platform/sti/bdisp/bdisp-v4l2.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1317 drivers/media/platform/sti/bdisp/bdisp-v4l2.c 	bdisp->regs = devm_ioremap_resource(dev, res);
res              1336 drivers/media/platform/sti/bdisp/bdisp-v4l2.c 	res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
res              1337 drivers/media/platform/sti/bdisp/bdisp-v4l2.c 	if (!res) {
res              1343 drivers/media/platform/sti/bdisp/bdisp-v4l2.c 	ret = devm_request_threaded_irq(dev, res->start, bdisp_irq_handler,
res               234 drivers/media/platform/sti/c8sectpfe/c8sectpfe-common.c 	int n, res;
res               243 drivers/media/platform/sti/c8sectpfe/c8sectpfe-common.c 		res = c8sectpfe_frontend_attach(&frontend, *c8sectpfe, tsin, n);
res               244 drivers/media/platform/sti/c8sectpfe/c8sectpfe-common.c 		if (res)
res               247 drivers/media/platform/sti/c8sectpfe/c8sectpfe-common.c 		res = dvb_register_frontend(&c8sectpfe[0]->adapter, frontend);
res               248 drivers/media/platform/sti/c8sectpfe/c8sectpfe-common.c 		if (res < 0) {
res               250 drivers/media/platform/sti/c8sectpfe/c8sectpfe-common.c 				res);
res               261 drivers/media/platform/sti/c8sectpfe/c8sectpfe-common.c 	return res;
res               671 drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c 	struct resource *res;
res               682 drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "c8sectpfe");
res               683 drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c 	fei->io = devm_ioremap_resource(dev, res);
res               687 drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
res               689 drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c 	fei->sram = devm_ioremap_resource(dev, res);
res               693 drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c 	fei->sram_size = resource_size(res);
res               302 drivers/media/platform/sti/cec/stih-cec.c 	struct resource *res;
res               318 drivers/media/platform/sti/cec/stih-cec.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               319 drivers/media/platform/sti/cec/stih-cec.c 	cec->regs = devm_ioremap_resource(dev, res);
res               258 drivers/media/platform/stm32/stm32-cec.c 	struct resource *res;
res               269 drivers/media/platform/stm32/stm32-cec.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               270 drivers/media/platform/stm32/stm32-cec.c 	mmio = devm_ioremap_resource(&pdev->dev, res);
res               133 drivers/media/platform/stm32/stm32-dcmi.c 	struct resource			*res;
res               313 drivers/media/platform/stm32/stm32-dcmi.c 	config.src_addr = (dma_addr_t)dcmi->res->start + DCMI_DR;
res              1886 drivers/media/platform/stm32/stm32-dcmi.c 	dcmi->res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1887 drivers/media/platform/stm32/stm32-dcmi.c 	if (!dcmi->res) {
res              1892 drivers/media/platform/stm32/stm32-dcmi.c 	dcmi->regs = devm_ioremap_resource(&pdev->dev, dcmi->res);
res               147 drivers/media/platform/sunxi/sun4i-csi/sun4i_csi.c 	struct resource *res;
res               187 drivers/media/platform/sunxi/sun4i-csi/sun4i_csi.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               188 drivers/media/platform/sunxi/sun4i-csi/sun4i_csi.c 	csi->regs = devm_ioremap_resource(&pdev->dev, res);
res               833 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 	struct resource *res;
res               838 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               839 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 	io_base = devm_ioremap_resource(&pdev->dev, res);
res               321 drivers/media/platform/tegra-cec/tegra_cec.c 	struct resource *res;
res               334 drivers/media/platform/tegra-cec/tegra_cec.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               336 drivers/media/platform/tegra-cec/tegra_cec.c 	if (!res) {
res               342 drivers/media/platform/tegra-cec/tegra_cec.c 	if (!devm_request_mem_region(&pdev->dev, res->start, resource_size(res),
res               354 drivers/media/platform/tegra-cec/tegra_cec.c 	cec->cec_base = devm_ioremap_nocache(&pdev->dev, res->start,
res               355 drivers/media/platform/tegra-cec/tegra_cec.c 					     resource_size(res));
res               225 drivers/media/platform/ti-vpe/cal.c 	struct resource		*res;
res               234 drivers/media/platform/ti-vpe/cal.c 	struct resource		*res;
res               246 drivers/media/platform/ti-vpe/cal.c 	struct resource		*res;
res               372 drivers/media/platform/ti-vpe/cal.c 	cm->res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
res               374 drivers/media/platform/ti-vpe/cal.c 	cm->base = devm_ioremap_resource(&pdev->dev, cm->res);
res               381 drivers/media/platform/ti-vpe/cal.c 		cm->res->name, &cm->res->start, &cm->res->end);
res               441 drivers/media/platform/ti-vpe/cal.c 	cc->res = platform_get_resource_byname(pdev,
res               446 drivers/media/platform/ti-vpe/cal.c 	cc->base = devm_ioremap_resource(&pdev->dev, cc->res);
res               453 drivers/media/platform/ti-vpe/cal.c 		cc->res->name, &cc->res->start, &cc->res->end);
res               487 drivers/media/platform/ti-vpe/cal.c 	cal_info(dev, "CAL Registers @ 0x%pa:\n", &dev->res->start);
res               490 drivers/media/platform/ti-vpe/cal.c 		       resource_size(dev->res), false);
res               494 drivers/media/platform/ti-vpe/cal.c 			 &dev->ctx[0]->cc->res->start);
res               497 drivers/media/platform/ti-vpe/cal.c 			       resource_size(dev->ctx[0]->cc->res),
res               503 drivers/media/platform/ti-vpe/cal.c 			 &dev->ctx[1]->cc->res->start);
res               506 drivers/media/platform/ti-vpe/cal.c 			       resource_size(dev->ctx[1]->cc->res),
res               511 drivers/media/platform/ti-vpe/cal.c 		 &dev->cm->res->start);
res               514 drivers/media/platform/ti-vpe/cal.c 		       resource_size(dev->cm->res), false);
res              1829 drivers/media/platform/ti-vpe/cal.c 	dev->res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
res              1831 drivers/media/platform/ti-vpe/cal.c 	dev->base = devm_ioremap_resource(&pdev->dev, dev->res);
res              1836 drivers/media/platform/ti-vpe/cal.c 		dev->res->name, &dev->res->start, &dev->res->end);
res                97 drivers/media/platform/ti-vpe/csc.c 	dev_dbg(dev, "CSC Registers @ %pa:\n", &csc->res->start);
res               181 drivers/media/platform/ti-vpe/csc.c 	csc->res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
res               183 drivers/media/platform/ti-vpe/csc.c 	if (csc->res == NULL) {
res               189 drivers/media/platform/ti-vpe/csc.c 	csc->base = devm_ioremap_resource(&pdev->dev, csc->res);
res                53 drivers/media/platform/ti-vpe/csc.h 	struct resource		*res;
res                28 drivers/media/platform/ti-vpe/sc.c 	dev_dbg(dev, "SC Registers @ %pa:\n", &sc->res->start);
res               289 drivers/media/platform/ti-vpe/sc.c 	sc->res = platform_get_resource_byname(pdev, IORESOURCE_MEM, res_name);
res               290 drivers/media/platform/ti-vpe/sc.c 	if (!sc->res) {
res               296 drivers/media/platform/ti-vpe/sc.c 	sc->base = devm_ioremap_resource(&pdev->dev, sc->res);
res               187 drivers/media/platform/ti-vpe/sc.h 	struct resource		*res;
res              1137 drivers/media/platform/ti-vpe/vpdma.c 	struct resource *res;
res              1146 drivers/media/platform/ti-vpe/vpdma.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "vpdma");
res              1147 drivers/media/platform/ti-vpe/vpdma.c 	if (res == NULL) {
res              1152 drivers/media/platform/ti-vpe/vpdma.c 	vpdma->base = devm_ioremap(&pdev->dev, res->start, resource_size(res));
res               376 drivers/media/platform/ti-vpe/vpe.c 	struct resource		*res;
res               508 drivers/media/platform/ti-vpe/vpe.c 	((obj)->res->start - ctx->dev->res->start + reg)
res              2499 drivers/media/platform/ti-vpe/vpe.c 	dev->res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
res              2507 drivers/media/platform/ti-vpe/vpe.c 	dev->base = devm_ioremap(&pdev->dev, dev->res->start, SZ_32K);
res               420 drivers/media/platform/vivid/vivid-core.c 	bool res;
res               423 drivers/media/platform/vivid/vivid-core.c 	res = !list_empty(&vdev->fh_list);
res               425 drivers/media/platform/vivid/vivid-core.c 	return res;
res               208 drivers/media/platform/xilinx/xilinx-vip.c 	struct resource *res;
res               210 drivers/media/platform/xilinx/xilinx-vip.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               211 drivers/media/platform/xilinx/xilinx-vip.c 	xvip->iomem = devm_ioremap_resource(xvip->dev, res);
res               486 drivers/media/radio/radio-cadet.c 	__poll_t res = v4l2_ctrl_poll(file, wait);
res               496 drivers/media/radio/radio-cadet.c 		res |= EPOLLIN | EPOLLRDNORM;
res               497 drivers/media/radio/radio-cadet.c 	return res;
res               594 drivers/media/radio/radio-cadet.c 	int res = -ENODEV;
res               619 drivers/media/radio/radio-cadet.c 	res = v4l2_device_register(NULL, v4l2_dev);
res               620 drivers/media/radio/radio-cadet.c 	if (res < 0) {
res               632 drivers/media/radio/radio-cadet.c 		res = hdl->error;
res               650 drivers/media/radio/radio-cadet.c 	res = video_register_device(&dev->vdev, VFL_TYPE_RADIO, radio_nr);
res               651 drivers/media/radio/radio-cadet.c 	if (res < 0)
res               661 drivers/media/radio/radio-cadet.c 	return res;
res                93 drivers/media/radio/radio-isa.c 	int res;
res                98 drivers/media/radio/radio-isa.c 	res = isa->drv->ops->s_frequency(isa, freq);
res                99 drivers/media/radio/radio-isa.c 	if (res == 0)
res               101 drivers/media/radio/radio-isa.c 	return res;
res               202 drivers/media/radio/radio-isa.c 	int res;
res               210 drivers/media/radio/radio-isa.c 	res = v4l2_device_register(pdev, v4l2_dev);
res               211 drivers/media/radio/radio-isa.c 	if (res < 0) {
res               225 drivers/media/radio/radio-isa.c 		res = isa->hdl.error;
res               246 drivers/media/radio/radio-isa.c 		res = ops->init(isa);
res               247 drivers/media/radio/radio-isa.c 	if (!res)
res               248 drivers/media/radio/radio-isa.c 		res = v4l2_ctrl_handler_setup(&isa->hdl);
res               249 drivers/media/radio/radio-isa.c 	if (!res)
res               250 drivers/media/radio/radio-isa.c 		res = ops->s_frequency(isa, isa->freq);
res               251 drivers/media/radio/radio-isa.c 	if (!res && ops->s_stereo)
res               252 drivers/media/radio/radio-isa.c 		res = ops->s_stereo(isa, isa->stereo);
res               253 drivers/media/radio/radio-isa.c 	if (res < 0) {
res               257 drivers/media/radio/radio-isa.c 	res = video_register_device(&isa->vdev, VFL_TYPE_RADIO, radio_nr);
res               259 drivers/media/radio/radio-isa.c 	if (res < 0) {
res               273 drivers/media/radio/radio-isa.c 	return res;
res               228 drivers/media/radio/radio-miropcm20.c 	int res;
res               237 drivers/media/radio/radio-miropcm20.c 	res = snd_aci_cmd(dev->aci, ACI_READ_TUNERSTATION, -1, -1);
res               238 drivers/media/radio/radio-miropcm20.c 	v->signal = (res & 0x80) ? 0 : 0xffff;
res               241 drivers/media/radio/radio-miropcm20.c 	res = snd_aci_cmd(dev->aci, ACI_READ_TUNERSTEREO, -1, -1);
res               242 drivers/media/radio/radio-miropcm20.c 	v->rxsubchans = (res & 0x40) ? V4L2_TUNER_SUB_MONO :
res               247 drivers/media/radio/radio-miropcm20.c 	res = rds_cmd(dev->aci, RDS_RXVALUE, &buf, 1);
res               248 drivers/media/radio/radio-miropcm20.c 	if (res >= 0 && buf)
res               318 drivers/media/radio/radio-miropcm20.c 		int res;
res               325 drivers/media/radio/radio-miropcm20.c 		res = rds_cmd(dev->aci, RDS_RXVALUE, &buf, 1);
res               326 drivers/media/radio/radio-miropcm20.c 		if (res)
res               350 drivers/media/radio/radio-miropcm20.c 		res = rds_cmd(dev->aci, RDS_STATUS, &buf, 1);
res               351 drivers/media/radio/radio-miropcm20.c 		if (res)
res               354 drivers/media/radio/radio-miropcm20.c 			res = rds_cmd(dev->aci, RDS_STATIONNAME, text_buffer, 8);
res               356 drivers/media/radio/radio-miropcm20.c 			if (!res && sanitize(text_buffer, 8))
res               362 drivers/media/radio/radio-miropcm20.c 			res = rds_cmd(dev->aci, RDS_PTYTATP, &pty, 1);
res               363 drivers/media/radio/radio-miropcm20.c 			if (!res) {
res               371 drivers/media/radio/radio-miropcm20.c 			res = rds_cmd(dev->aci, RDS_TEXT, text_buffer, 65);
res               373 drivers/media/radio/radio-miropcm20.c 			if (!res && sanitize(text_buffer + 1, 64))
res               383 drivers/media/radio/radio-miropcm20.c 	int res = v4l2_fh_open(file);
res               385 drivers/media/radio/radio-miropcm20.c 	if (!res && v4l2_fh_is_singular_file(file) &&
res               395 drivers/media/radio/radio-miropcm20.c 	return res;
res               437 drivers/media/radio/radio-miropcm20.c 	int res;
res               448 drivers/media/radio/radio-miropcm20.c 	res = v4l2_device_register(NULL, v4l2_dev);
res               449 drivers/media/radio/radio-miropcm20.c 	if (res < 0) {
res               472 drivers/media/radio/radio-miropcm20.c 		res = hdl->error;
res               108 drivers/media/radio/radio-sf16fmi.c 	int res;
res               115 drivers/media/radio/radio-sf16fmi.c 	res = (int)inb(fmi->io + 1);
res               119 drivers/media/radio/radio-sf16fmi.c 	return (res & 2) ? 0 : 0xFFFF;
res               277 drivers/media/radio/radio-sf16fmi.c 	int res, i;
res               320 drivers/media/radio/radio-sf16fmi.c 	res = v4l2_device_register(NULL, v4l2_dev);
res               321 drivers/media/radio/radio-sf16fmi.c 	if (res < 0) {
res               326 drivers/media/radio/radio-sf16fmi.c 		return res;
res               334 drivers/media/radio/radio-sf16fmi.c 		res = hdl->error;
res               338 drivers/media/radio/radio-sf16fmi.c 		return res;
res                83 drivers/media/radio/radio-shark.c 	int i, res, actual_len;
res                94 drivers/media/radio/radio-shark.c 	res = usb_interrupt_msg(shark->usbdev,
res                98 drivers/media/radio/radio-shark.c 	if (res >= 0)
res               101 drivers/media/radio/radio-shark.c 		v4l2_err(&shark->v4l2_dev, "set-freq error: %d\n", res);
res               107 drivers/media/radio/radio-shark.c 	int i, res, actual_len;
res               112 drivers/media/radio/radio-shark.c 	res = usb_interrupt_msg(shark->usbdev,
res               116 drivers/media/radio/radio-shark.c 	if (res < 0) {
res               117 drivers/media/radio/radio-shark.c 		v4l2_err(&shark->v4l2_dev, "request-status error: %d\n", res);
res               121 drivers/media/radio/radio-shark.c 	res = usb_interrupt_msg(shark->usbdev,
res               125 drivers/media/radio/radio-shark.c 	if (res < 0) {
res               126 drivers/media/radio/radio-shark.c 		v4l2_err(&shark->v4l2_dev, "get-status error: %d\n", res);
res               159 drivers/media/radio/radio-shark.c 	int i, res, brightness, actual_len;
res               172 drivers/media/radio/radio-shark.c 		res = usb_interrupt_msg(shark->usbdev,
res               176 drivers/media/radio/radio-shark.c 		if (res < 0)
res               178 drivers/media/radio/radio-shark.c 				 shark->led_names[i], res);
res                78 drivers/media/radio/radio-shark2.c 	int i, res, actual_len;
res                88 drivers/media/radio/radio-shark2.c 	res = usb_interrupt_msg(shark->usbdev,
res                92 drivers/media/radio/radio-shark2.c 	if (res < 0) {
res                93 drivers/media/radio/radio-shark2.c 		v4l2_err(tea->v4l2_dev, "write error: %d\n", res);
res                94 drivers/media/radio/radio-shark2.c 		return res;
res               103 drivers/media/radio/radio-shark2.c 	int i, res, actual_len;
res               108 drivers/media/radio/radio-shark2.c 	res = usb_interrupt_msg(shark->usbdev,
res               112 drivers/media/radio/radio-shark2.c 	if (res < 0) {
res               113 drivers/media/radio/radio-shark2.c 		v4l2_err(tea->v4l2_dev, "request-read error: %d\n", res);
res               114 drivers/media/radio/radio-shark2.c 		return res;
res               117 drivers/media/radio/radio-shark2.c 	res = usb_interrupt_msg(shark->usbdev,
res               121 drivers/media/radio/radio-shark2.c 	if (res < 0) {
res               122 drivers/media/radio/radio-shark2.c 		v4l2_err(tea->v4l2_dev, "read error: %d\n", res);
res               123 drivers/media/radio/radio-shark2.c 		return res;
res               146 drivers/media/radio/radio-shark2.c 	int i, res, brightness, actual_len;
res               156 drivers/media/radio/radio-shark2.c 		res = usb_interrupt_msg(shark->usbdev,
res               161 drivers/media/radio/radio-shark2.c 		if (res < 0)
res               163 drivers/media/radio/radio-shark2.c 				 shark->led_names[i], res);
res               176 drivers/media/radio/radio-tea5777.c 	int res;
res               213 drivers/media/radio/radio-tea5777.c 	res = tea->ops->write_reg(tea, tea->write_reg);
res               214 drivers/media/radio/radio-tea5777.c 	if (res)
res               215 drivers/media/radio/radio-tea5777.c 		return res;
res               226 drivers/media/radio/radio-tea5777.c 	int res;
res               232 drivers/media/radio/radio-tea5777.c 		res = radio_tea5777_set_freq(tea);
res               233 drivers/media/radio/radio-tea5777.c 		if (res)
res               234 drivers/media/radio/radio-tea5777.c 			return res;
res               242 drivers/media/radio/radio-tea5777.c 	res = tea->ops->read_reg(tea, &tea->read_reg);
res               243 drivers/media/radio/radio-tea5777.c 	if (res)
res               244 drivers/media/radio/radio-tea5777.c 		return res;
res               283 drivers/media/radio/radio-tea5777.c 	int res;
res               288 drivers/media/radio/radio-tea5777.c 	res = radio_tea5777_update_read_reg(tea, 0);
res               289 drivers/media/radio/radio-tea5777.c 	if (res)
res               290 drivers/media/radio/radio-tea5777.c 		return res;
res               376 drivers/media/radio/radio-tea5777.c 	int i, res, spacing;
res               400 drivers/media/radio/radio-tea5777.c 			res = radio_tea5777_set_freq(tea);
res               401 drivers/media/radio/radio-tea5777.c 			if (res)
res               402 drivers/media/radio/radio-tea5777.c 				return res;
res               416 drivers/media/radio/radio-tea5777.c 		res = radio_tea5777_set_freq(tea);
res               417 drivers/media/radio/radio-tea5777.c 		if (res)
res               424 drivers/media/radio/radio-tea5777.c 		res = radio_tea5777_set_freq(tea);
res               425 drivers/media/radio/radio-tea5777.c 		if (res)
res               439 drivers/media/radio/radio-tea5777.c 	res = radio_tea5777_set_freq(tea);
res               440 drivers/media/radio/radio-tea5777.c 	if (res)
res               446 drivers/media/radio/radio-tea5777.c 			res = -ENODATA;
res               450 drivers/media/radio/radio-tea5777.c 		res = radio_tea5777_update_read_reg(tea, 100);
res               451 drivers/media/radio/radio-tea5777.c 		if (res)
res               468 drivers/media/radio/radio-tea5777.c 			res = -ENODATA;
res               480 drivers/media/radio/radio-tea5777.c 	return res;
res               532 drivers/media/radio/radio-tea5777.c 	int res;
res               541 drivers/media/radio/radio-tea5777.c 	res = radio_tea5777_set_freq(tea);
res               542 drivers/media/radio/radio-tea5777.c 	if (res) {
res               543 drivers/media/radio/radio-tea5777.c 		v4l2_err(tea->v4l2_dev, "can't set initial freq (%d)\n", res);
res               544 drivers/media/radio/radio-tea5777.c 		return res;
res               563 drivers/media/radio/radio-tea5777.c 	res = tea->ctrl_handler.error;
res               564 drivers/media/radio/radio-tea5777.c 	if (res) {
res               567 drivers/media/radio/radio-tea5777.c 		return res;
res               571 drivers/media/radio/radio-tea5777.c 	res = video_register_device(&tea->vd, VFL_TYPE_RADIO, -1);
res               572 drivers/media/radio/radio-tea5777.c 	if (res) {
res               575 drivers/media/radio/radio-tea5777.c 		return res;
res               212 drivers/media/rc/ir-hix5hd2.c 	struct resource *res;
res               229 drivers/media/rc/ir-hix5hd2.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               230 drivers/media/rc/ir-hix5hd2.c 	priv->base = devm_ioremap_resource(dev, res);
res               151 drivers/media/rc/ir-rx51.c 		int res = PTR_ERR(ir_rx51->pwm);
res               153 drivers/media/rc/ir-rx51.c 		dev_err(ir_rx51->dev, "pwm_get failed: %d\n", res);
res               154 drivers/media/rc/ir-rx51.c 		return res;
res              1666 drivers/media/rc/mceusb.c 	int pipe, maxp, i, res;
res              1789 drivers/media/rc/mceusb.c 	res = usb_submit_urb(ir->urb_in, GFP_KERNEL);
res              1790 drivers/media/rc/mceusb.c 	if (res)
res              1791 drivers/media/rc/mceusb.c 		dev_err(&intf->dev, "failed to flush buffers: %d", res);
res               105 drivers/media/rc/meson-ir.c 	struct resource *res;
res               114 drivers/media/rc/meson-ir.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               115 drivers/media/rc/meson-ir.c 	ir->reg = devm_ioremap_resource(dev, res);
res               298 drivers/media/rc/mtk-cir.c 	struct resource *res;
res               326 drivers/media/rc/mtk-cir.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               327 drivers/media/rc/mtk-cir.c 	ir->base = devm_ioremap_resource(dev, res);
res               492 drivers/media/rc/rc-main.c 	struct rc_map_table *res;
res               494 drivers/media/rc/rc-main.c 	res = bsearch(&scancode, rc_map->scan, rc_map->len,
res               496 drivers/media/rc/rc-main.c 	if (!res)
res               499 drivers/media/rc/rc-main.c 		return res - rc_map->scan;
res              1706 drivers/media/rc/rc-main.c static void devm_rc_alloc_release(struct device *dev, void *res)
res              1708 drivers/media/rc/rc-main.c 	rc_free_device(*(struct rc_dev **)res);
res              1940 drivers/media/rc/rc-main.c static void devm_rc_release(struct device *dev, void *res)
res              1942 drivers/media/rc/rc-main.c 	rc_unregister_device(*(struct rc_dev **)res);
res               399 drivers/media/rc/redrat3.c 	int res;
res               406 drivers/media/rc/redrat3.c 	res = usb_control_msg(udev, usb_rcvctrlpipe(udev, 0), cmd,
res               410 drivers/media/rc/redrat3.c 	if (res < 0) {
res               412 drivers/media/rc/redrat3.c 			__func__, res, *data);
res               413 drivers/media/rc/redrat3.c 		res = -EIO;
res               415 drivers/media/rc/redrat3.c 		res = data[0];
res               419 drivers/media/rc/redrat3.c 	return res;
res               226 drivers/media/rc/st_rc.c 	struct resource *res;
res               269 drivers/media/rc/st_rc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               271 drivers/media/rc/st_rc.c 	rc_dev->base = devm_ioremap_resource(dev, res);
res               155 drivers/media/rc/sunxi-cir.c 	struct resource *res;
res               218 drivers/media/rc/sunxi-cir.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               219 drivers/media/rc/sunxi-cir.c 	ir->base = devm_ioremap_resource(dev, res);
res                84 drivers/media/rc/zx-irdec.c 	struct resource *res;
res                93 drivers/media/rc/zx-irdec.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                94 drivers/media/rc/zx-irdec.c 	irdec->base = devm_ioremap_resource(dev, res);
res               166 drivers/media/usb/cpia2/cpia2_v4l.c 	__poll_t res;
res               169 drivers/media/usb/cpia2/cpia2_v4l.c 	res = cpia2_poll(cam, filp, wait);
res               171 drivers/media/usb/cpia2/cpia2_v4l.c 	return res;
res              1831 drivers/media/usb/cx231xx/cx231xx-417.c 	__poll_t res = 0;
res              1834 drivers/media/usb/cx231xx/cx231xx-417.c 		res |= EPOLLPRI;
res              1839 drivers/media/usb/cx231xx/cx231xx-417.c 		return res;
res              1842 drivers/media/usb/cx231xx/cx231xx-417.c 	res |= videobuf_poll_stream(file, &fh->vidq, wait);
res              1844 drivers/media/usb/cx231xx/cx231xx-417.c 	return res;
res              2009 drivers/media/usb/cx231xx/cx231xx-video.c 	__poll_t res = 0;
res              2022 drivers/media/usb/cx231xx/cx231xx-video.c 		res |= EPOLLPRI;
res              2027 drivers/media/usb/cx231xx/cx231xx-video.c 		return res;
res              2032 drivers/media/usb/cx231xx/cx231xx-video.c 		res |= videobuf_poll_stream(filp, &fh->vb_vidq, wait);
res              2034 drivers/media/usb/cx231xx/cx231xx-video.c 		return res;
res              2036 drivers/media/usb/cx231xx/cx231xx-video.c 	return res | EPOLLERR;
res               125 drivers/media/usb/gspca/kinect.c 	int res, actual_len;
res               144 drivers/media/usb/gspca/kinect.c 	res = kinect_write(udev, obuf, cmd_len + sizeof(*chdr));
res               147 drivers/media/usb/gspca/kinect.c 		  sd->cam_tag, cmd_len, res);
res               148 drivers/media/usb/gspca/kinect.c 	if (res < 0) {
res               149 drivers/media/usb/gspca/kinect.c 		pr_err("send_cmd: Output control transfer failed (%d)\n", res);
res               150 drivers/media/usb/gspca/kinect.c 		return res;
res               203 drivers/media/usb/gspca/kinect.c 	int res;
res               209 drivers/media/usb/gspca/kinect.c 	res = send_cmd(gspca_dev, 0x03, cmd, 4, reply, 4);
res               210 drivers/media/usb/gspca/kinect.c 	if (res < 0)
res               211 drivers/media/usb/gspca/kinect.c 		return res;
res               212 drivers/media/usb/gspca/kinect.c 	if (res != 2) {
res               214 drivers/media/usb/gspca/kinect.c 			res, reply[0], reply[1]);
res               129 drivers/media/usb/gspca/pac207.c 	int res;
res               134 drivers/media/usb/gspca/pac207.c 	res = usb_control_msg(udev, usb_rcvctrlpipe(udev, 0), 0x00,
res               138 drivers/media/usb/gspca/pac207.c 	if (res < 0) {
res               140 drivers/media/usb/gspca/pac207.c 		       index, res);
res               141 drivers/media/usb/gspca/pac207.c 		gspca_dev->usb_err = res;
res               438 drivers/media/usb/gspca/sonixb.c 	int res;
res               443 drivers/media/usb/gspca/sonixb.c 	res = usb_control_msg(gspca_dev->dev,
res               452 drivers/media/usb/gspca/sonixb.c 	if (res < 0) {
res               454 drivers/media/usb/gspca/sonixb.c 			"Error reading register %02x: %d\n", value, res);
res               455 drivers/media/usb/gspca/sonixb.c 		gspca_dev->usb_err = res;
res               469 drivers/media/usb/gspca/sonixb.c 	int res;
res               475 drivers/media/usb/gspca/sonixb.c 	res = usb_control_msg(gspca_dev->dev,
res               484 drivers/media/usb/gspca/sonixb.c 	if (res < 0) {
res               486 drivers/media/usb/gspca/sonixb.c 			"Error writing register %02x: %d\n", value, res);
res               487 drivers/media/usb/gspca/sonixb.c 		gspca_dev->usb_err = res;
res               685 drivers/media/usb/gspca/xirlink_cit.c 	int res;
res               687 drivers/media/usb/gspca/xirlink_cit.c 	res = usb_control_msg(udev, usb_rcvctrlpipe(udev, 0), 0x01,
res               690 drivers/media/usb/gspca/xirlink_cit.c 	if (res < 0) {
res               692 drivers/media/usb/gspca/xirlink_cit.c 		       index, res);
res               693 drivers/media/usb/gspca/xirlink_cit.c 		return res;
res              1045 drivers/media/usb/hdpvr/hdpvr-video.c 	int res = 0;
res              1053 drivers/media/usb/hdpvr/hdpvr-video.c 			res = -EBUSY;
res              1058 drivers/media/usb/hdpvr/hdpvr-video.c 		res = hdpvr_start_streaming(dev);
res              1059 drivers/media/usb/hdpvr/hdpvr-video.c 		if (!res)
res              1066 drivers/media/usb/hdpvr/hdpvr-video.c 			res = -EBUSY;
res              1071 drivers/media/usb/hdpvr/hdpvr-video.c 		res = hdpvr_stop_streaming(dev);
res              1072 drivers/media/usb/hdpvr/hdpvr-video.c 		if (!res)
res              1078 drivers/media/usb/hdpvr/hdpvr-video.c 		res = -EINVAL;
res              1083 drivers/media/usb/hdpvr/hdpvr-video.c 	return res;
res              1166 drivers/media/usb/hdpvr/hdpvr-video.c 	int res;
res              1223 drivers/media/usb/hdpvr/hdpvr-video.c 		res = hdl->error;
res              1228 drivers/media/usb/hdpvr/hdpvr-video.c 	res = v4l2_ctrl_handler_setup(hdl);
res              1229 drivers/media/usb/hdpvr/hdpvr-video.c 	if (res < 0) {
res              1241 drivers/media/usb/hdpvr/hdpvr-video.c 	res = video_register_device(&dev->video_dev, VFL_TYPE_GRABBER, devnum);
res              1242 drivers/media/usb/hdpvr/hdpvr-video.c 	if (res < 0) {
res              1250 drivers/media/usb/hdpvr/hdpvr-video.c 	return res;
res                93 drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c 			 u8 *res,           /* Where to put data we read */
res               108 drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c 	if (res && (rlen > (sizeof(hdw->cmd_buffer) - 1))) {
res               146 drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c 	if (res && rlen) {
res               149 drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c 			memset(res, 0, rlen);
res               151 drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c 			memcpy(res, hdw->cmd_buffer + 1, rlen);
res               986 drivers/media/usb/s2255/s2255drv.c 	int res;
res              1013 drivers/media/usb/s2255/s2255drv.c 	res = s2255_write_config(dev->udev, (unsigned char *)buffer, 512);
res              1023 drivers/media/usb/s2255/s2255drv.c 			res = -EFAULT;
res              1028 drivers/media/usb/s2255/s2255drv.c 	dprintk(dev, 1, "%s chn %d, result: %d\n", __func__, vc->idx, res);
res              1030 drivers/media/usb/s2255/s2255drv.c 	return res;
res              1035 drivers/media/usb/s2255/s2255drv.c 	int res;
res              1049 drivers/media/usb/s2255/s2255drv.c 	res = s2255_write_config(dev->udev, (unsigned char *)buffer, 512);
res              1055 drivers/media/usb/s2255/s2255drv.c 		res = -EFAULT;
res              1060 drivers/media/usb/s2255/s2255drv.c 	return res;
res              1853 drivers/media/usb/s2255/s2255drv.c 	int res;
res              1862 drivers/media/usb/s2255/s2255drv.c 	res = save_frame(dev, pipe_info);
res              1863 drivers/media/usb/s2255/s2255drv.c 	if (res != 0)
res              2117 drivers/media/usb/s2255/s2255drv.c 	int res;
res              2137 drivers/media/usb/s2255/s2255drv.c 	res = s2255_write_config(dev->udev, (unsigned char *)buffer, 512);
res              2138 drivers/media/usb/s2255/s2255drv.c 	if (res != 0)
res              2141 drivers/media/usb/s2255/s2255drv.c 	dprintk(dev, 2, "start acquire exit[%d] %d\n", vc->idx, res);
res              2143 drivers/media/usb/s2255/s2255drv.c 	return res;
res              2148 drivers/media/usb/s2255/s2255drv.c 	int res;
res              2160 drivers/media/usb/s2255/s2255drv.c 	res = s2255_write_config(dev->udev, (unsigned char *)buffer, 512);
res              2161 drivers/media/usb/s2255/s2255drv.c 	if (res != 0)
res              2164 drivers/media/usb/s2255/s2255drv.c 	dprintk(dev, 4, "%s: chn %d, res %d\n", __func__, vc->idx, res);
res              2166 drivers/media/usb/s2255/s2255drv.c 	return res;
res               729 drivers/media/usb/stkwebcam/stk-webcam.c 	__poll_t res = v4l2_ctrl_poll(fp, wait);
res               737 drivers/media/usb/stkwebcam/stk-webcam.c 		return res | EPOLLIN | EPOLLRDNORM;
res               739 drivers/media/usb/stkwebcam/stk-webcam.c 	return res;
res              1383 drivers/media/usb/tm6000/tm6000-video.c 	int res;
res              1386 drivers/media/usb/tm6000/tm6000-video.c 	res = __tm6000_open(file);
res              1388 drivers/media/usb/tm6000/tm6000-video.c 	return res;
res              1398 drivers/media/usb/tm6000/tm6000-video.c 		int res;
res              1405 drivers/media/usb/tm6000/tm6000-video.c 		res = videobuf_read_stream(&fh->vb_vidq, data, count, pos, 0,
res              1408 drivers/media/usb/tm6000/tm6000-video.c 		return res;
res              1419 drivers/media/usb/tm6000/tm6000-video.c 	__poll_t res = 0;
res              1422 drivers/media/usb/tm6000/tm6000-video.c 		res = EPOLLPRI;
res              1426 drivers/media/usb/tm6000/tm6000-video.c 		return res | EPOLLERR;
res              1429 drivers/media/usb/tm6000/tm6000-video.c 		return res | EPOLLERR;
res              1434 drivers/media/usb/tm6000/tm6000-video.c 			return res | EPOLLERR;
res              1439 drivers/media/usb/tm6000/tm6000-video.c 			return res | EPOLLIN | EPOLLRDNORM;
res              1442 drivers/media/usb/tm6000/tm6000-video.c 		return res | videobuf_poll_stream(file, &fh->vb_vidq, wait);
res              1444 drivers/media/usb/tm6000/tm6000-video.c 	return res;
res              1451 drivers/media/usb/tm6000/tm6000-video.c 	__poll_t res;
res              1454 drivers/media/usb/tm6000/tm6000-video.c 	res = __tm6000_poll(file, wait);
res              1456 drivers/media/usb/tm6000/tm6000-video.c 	return res;
res              1506 drivers/media/usb/tm6000/tm6000-video.c 	int res;
res              1510 drivers/media/usb/tm6000/tm6000-video.c 	res = videobuf_mmap_mapper(&fh->vb_vidq, vma);
res              1512 drivers/media/usb/tm6000/tm6000-video.c 	return res;
res               247 drivers/media/usb/usbvision/usbvision-video.c 	int res;
res               252 drivers/media/usb/usbvision/usbvision-video.c 		res = device_create_file(&vdev->dev, &dev_attr_version);
res               253 drivers/media/usb/usbvision/usbvision-video.c 		if (res < 0)
res               255 drivers/media/usb/usbvision/usbvision-video.c 		res = device_create_file(&vdev->dev, &dev_attr_model);
res               256 drivers/media/usb/usbvision/usbvision-video.c 		if (res < 0)
res               258 drivers/media/usb/usbvision/usbvision-video.c 		res = device_create_file(&vdev->dev, &dev_attr_hue);
res               259 drivers/media/usb/usbvision/usbvision-video.c 		if (res < 0)
res               261 drivers/media/usb/usbvision/usbvision-video.c 		res = device_create_file(&vdev->dev, &dev_attr_contrast);
res               262 drivers/media/usb/usbvision/usbvision-video.c 		if (res < 0)
res               264 drivers/media/usb/usbvision/usbvision-video.c 		res = device_create_file(&vdev->dev, &dev_attr_brightness);
res               265 drivers/media/usb/usbvision/usbvision-video.c 		if (res < 0)
res               267 drivers/media/usb/usbvision/usbvision-video.c 		res = device_create_file(&vdev->dev, &dev_attr_saturation);
res               268 drivers/media/usb/usbvision/usbvision-video.c 		if (res < 0)
res               270 drivers/media/usb/usbvision/usbvision-video.c 		res = device_create_file(&vdev->dev, &dev_attr_streaming);
res               271 drivers/media/usb/usbvision/usbvision-video.c 		if (res < 0)
res               273 drivers/media/usb/usbvision/usbvision-video.c 		res = device_create_file(&vdev->dev, &dev_attr_compression);
res               274 drivers/media/usb/usbvision/usbvision-video.c 		if (res < 0)
res               276 drivers/media/usb/usbvision/usbvision-video.c 		res = device_create_file(&vdev->dev, &dev_attr_bridge);
res               277 drivers/media/usb/usbvision/usbvision-video.c 		if (res >= 0)
res               281 drivers/media/usb/usbvision/usbvision-video.c 	dev_err(&vdev->dev, "%s error: %d\n", __func__, res);
res               993 drivers/media/usb/usbvision/usbvision-video.c 	int res;
res               997 drivers/media/usb/usbvision/usbvision-video.c 	res = usbvision_read(file, buf, count, ppos);
res               999 drivers/media/usb/usbvision/usbvision-video.c 	return res;
res              1051 drivers/media/usb/usbvision/usbvision-video.c 	int res;
res              1055 drivers/media/usb/usbvision/usbvision-video.c 	res = usbvision_mmap(file, vma);
res              1057 drivers/media/usb/usbvision/usbvision-video.c 	return res;
res              1258 drivers/media/usb/usbvision/usbvision-video.c 	int res = -ENOMEM;
res              1298 drivers/media/usb/usbvision/usbvision-video.c 	return res;
res              1096 drivers/media/usb/zr364xx/zr364xx.c 	int res;
res              1100 drivers/media/usb/zr364xx/zr364xx.c 		res = send_control_msg(cam->udev, 1, init[cam->method][i].value,
res              1103 drivers/media/usb/zr364xx/zr364xx.c 		if (res < 0) {
res              1106 drivers/media/usb/zr364xx/zr364xx.c 			return res;
res              1126 drivers/media/usb/zr364xx/zr364xx.c 	int res;
res              1136 drivers/media/usb/zr364xx/zr364xx.c 	res = zr364xx_prepare(cam);
res              1137 drivers/media/usb/zr364xx/zr364xx.c 	if (res)
res              1138 drivers/media/usb/zr364xx/zr364xx.c 		return res;
res              1139 drivers/media/usb/zr364xx/zr364xx.c 	res = videobuf_streamon(&cam->vb_vidq);
res              1140 drivers/media/usb/zr364xx/zr364xx.c 	if (res == 0) {
res              1144 drivers/media/usb/zr364xx/zr364xx.c 	return res;
res              1274 drivers/media/usb/zr364xx/zr364xx.c 	__poll_t res = v4l2_ctrl_poll(file, wait);
res              1278 drivers/media/usb/zr364xx/zr364xx.c 	return res | videobuf_poll_stream(file, q, wait);
res              1576 drivers/media/usb/zr364xx/zr364xx.c 	int res;
res              1582 drivers/media/usb/zr364xx/zr364xx.c 	res = zr364xx_prepare(cam);
res              1583 drivers/media/usb/zr364xx/zr364xx.c 	if (!res)
res              1585 drivers/media/usb/zr364xx/zr364xx.c 	return res;
res                66 drivers/media/v4l2-core/v4l2-dev.c 	int res = 0;
res                69 drivers/media/v4l2-core/v4l2-dev.c 	res = kstrtou16(buf, 0, &value);
res                70 drivers/media/v4l2-core/v4l2-dev.c 	if (res)
res                71 drivers/media/v4l2-core/v4l2-dev.c 		return res;
res               341 drivers/media/v4l2-core/v4l2-dev.c 	__poll_t res = EPOLLERR | EPOLLHUP;
res               346 drivers/media/v4l2-core/v4l2-dev.c 		res = vdev->fops->poll(filp, poll);
res               349 drivers/media/v4l2-core/v4l2-dev.c 			video_device_node_name(vdev), res);
res               350 drivers/media/v4l2-core/v4l2-dev.c 	return res;
res               813 drivers/memory/brcmstb_dpfe.c 	struct resource *res;
res               823 drivers/memory/brcmstb_dpfe.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "dpfe-cpu");
res               824 drivers/memory/brcmstb_dpfe.c 	priv->regs = devm_ioremap_resource(dev, res);
res               830 drivers/memory/brcmstb_dpfe.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "dpfe-dmem");
res               831 drivers/memory/brcmstb_dpfe.c 	priv->dmem = devm_ioremap_resource(dev, res);
res               837 drivers/memory/brcmstb_dpfe.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "dpfe-imem");
res               838 drivers/memory/brcmstb_dpfe.c 	priv->imem = devm_ioremap_resource(dev, res);
res               106 drivers/memory/da8xx-ddrctl.c 	struct resource *res;
res               120 drivers/memory/da8xx-ddrctl.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               121 drivers/memory/da8xx-ddrctl.c 	ddrctl = devm_ioremap_resource(dev, res);
res               135 drivers/memory/da8xx-ddrctl.c 		if (knob->reg + sizeof(u32) > resource_size(res)) {
res              1540 drivers/memory/emif.c 	struct resource		*res;
res              1560 drivers/memory/emif.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1561 drivers/memory/emif.c 	emif->base = devm_ioremap_resource(emif->dev, res);
res               272 drivers/memory/jz4780-nemc.c 	struct resource *res;
res               290 drivers/memory/jz4780-nemc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               291 drivers/memory/jz4780-nemc.c 	nemc->base = devm_ioremap_resource(dev, res);
res               272 drivers/memory/mtk-smi.c 	struct resource *res;
res               282 drivers/memory/mtk-smi.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               283 drivers/memory/mtk-smi.c 	larb->base = devm_ioremap_resource(dev, res);
res               422 drivers/memory/mtk-smi.c 	struct resource *res;
res               456 drivers/memory/mtk-smi.c 		res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               457 drivers/memory/mtk-smi.c 		common->smi_ao_base = devm_ioremap_resource(dev, res);
res               469 drivers/memory/mtk-smi.c 		res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               470 drivers/memory/mtk-smi.c 		common->base = devm_ioremap_resource(dev, res);
res               270 drivers/memory/mvebu-devbus.c 	struct resource *res;
res               280 drivers/memory/mvebu-devbus.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               281 drivers/memory/mvebu-devbus.c 	devbus->base = devm_ioremap_resource(&pdev->dev, res);
res               910 drivers/memory/omap-gpmc.c 	struct resource *res = &gpmc->mem;
res               915 drivers/memory/omap-gpmc.c 	res->start = base;
res               916 drivers/memory/omap-gpmc.c 	res->end = base + size - 1;
res               917 drivers/memory/omap-gpmc.c 	r = request_resource(&gpmc_mem_root, res);
res               926 drivers/memory/omap-gpmc.c 	struct resource *res = &gpmc->mem;
res               930 drivers/memory/omap-gpmc.c 	r = release_resource(res);
res               931 drivers/memory/omap-gpmc.c 	res->start = 0;
res               932 drivers/memory/omap-gpmc.c 	res->end = 0;
res               984 drivers/memory/omap-gpmc.c 	struct resource *res = &gpmc->mem;
res              1001 drivers/memory/omap-gpmc.c 		r = adjust_resource(res, res->start & ~(size - 1), size);
res              1003 drivers/memory/omap-gpmc.c 		r = allocate_resource(&gpmc_mem_root, res, size, 0, ~0,
res              1011 drivers/memory/omap-gpmc.c 	r = gpmc_cs_set_memconf(cs, res->start, resource_size(res));
res              1013 drivers/memory/omap-gpmc.c 		release_resource(res);
res              1019 drivers/memory/omap-gpmc.c 	*base = res->start;
res              1030 drivers/memory/omap-gpmc.c 	struct resource *res = &gpmc->mem;
res              1040 drivers/memory/omap-gpmc.c 	if (res->flags)
res              1041 drivers/memory/omap-gpmc.c 		release_resource(res);
res              2036 drivers/memory/omap-gpmc.c 	struct resource res;
res              2050 drivers/memory/omap-gpmc.c 	if (of_address_to_resource(child, 0, &res) < 0) {
res              2065 drivers/memory/omap-gpmc.c 	ret = gpmc_cs_request(cs, resource_size(&res), &base);
res              2099 drivers/memory/omap-gpmc.c 	ret = gpmc_cs_remap(cs, res.start);
res              2102 drivers/memory/omap-gpmc.c 			cs, &res.start);
res              2103 drivers/memory/omap-gpmc.c 		if (res.start < GPMC_MEM_START) {
res              2107 drivers/memory/omap-gpmc.c 		} else if (res.end > GPMC_MEM_END) {
res              2348 drivers/memory/omap-gpmc.c 	struct resource *res;
res              2358 drivers/memory/omap-gpmc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              2359 drivers/memory/omap-gpmc.c 	if (res == NULL)
res              2362 drivers/memory/omap-gpmc.c 	phys_base = res->start;
res              2363 drivers/memory/omap-gpmc.c 	mem_size = resource_size(res);
res              2365 drivers/memory/omap-gpmc.c 	gpmc_base = devm_ioremap_resource(&pdev->dev, res);
res              2369 drivers/memory/omap-gpmc.c 	res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
res              2370 drivers/memory/omap-gpmc.c 	if (!res) {
res              2375 drivers/memory/omap-gpmc.c 	gpmc->irq = res->start;
res               247 drivers/memory/pl172.c 	pl172->base = devm_ioremap(dev, adev->res.start,
res               248 drivers/memory/pl172.c 				   resource_size(&adev->res));
res               353 drivers/memory/pl353-smc.c 	struct resource *res;
res               365 drivers/memory/pl353-smc.c 	res = &adev->res;
res               366 drivers/memory/pl353-smc.c 	pl353_smc_base = devm_ioremap_resource(&adev->dev, res);
res               626 drivers/memory/tegra/mc.c 	struct resource *res;
res               643 drivers/memory/tegra/mc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               644 drivers/memory/tegra/mc.c 	mc->regs = devm_ioremap_resource(&pdev->dev, res);
res              1088 drivers/memory/tegra/tegra124-emc.c 	struct resource *res;
res              1098 drivers/memory/tegra/tegra124-emc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1099 drivers/memory/tegra/tegra124-emc.c 	emc->regs = devm_ioremap_resource(&pdev->dev, res);
res               537 drivers/memory/tegra/tegra186.c 	struct resource *res;
res               546 drivers/memory/tegra/tegra186.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               547 drivers/memory/tegra/tegra186.c 	mc->regs = devm_ioremap_resource(&pdev->dev, res);
res               466 drivers/memory/tegra/tegra20-emc.c 	struct resource *res;
res               502 drivers/memory/tegra/tegra20-emc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               503 drivers/memory/tegra/tegra20-emc.c 	emc->regs = devm_ioremap_resource(&pdev->dev, res);
res               331 drivers/memory/ti-aemif.c 	struct resource *res;
res               365 drivers/memory/ti-aemif.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               366 drivers/memory/ti-aemif.c 	aemif->base = devm_ioremap_resource(dev, res);
res               278 drivers/memory/ti-emif-pm.c 	struct resource *res;
res               293 drivers/memory/ti-emif-pm.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               295 drivers/memory/ti-emif-pm.c 									  res);
res               301 drivers/memory/ti-emif-pm.c 	emif_data->pm_data.ti_emif_base_addr_phys = res->start;
res              2652 drivers/mfd/ab8500-debugfs.c 	struct resource *res;
res              2675 drivers/mfd/ab8500-debugfs.c 	res = platform_get_resource_byname(plf, 0, "IRQ_AB8500");
res              2676 drivers/mfd/ab8500-debugfs.c 	if (!res) {
res              2680 drivers/mfd/ab8500-debugfs.c 	irq_ab8500 = res->start;
res               195 drivers/mfd/ab8500-gpadc.c 	int res;
res               201 drivers/mfd/ab8500-gpadc.c 			res = ADC_CH_CHG_V_MIN + (ADC_CH_CHG_V_MAX -
res               207 drivers/mfd/ab8500-gpadc.c 		res = (int) (ad_value * gpadc->cal_data[ADC_INPUT_VMAIN].gain +
res               219 drivers/mfd/ab8500-gpadc.c 			res = ADC_CH_BTEMP_MIN + (ADC_CH_BTEMP_MAX -
res               225 drivers/mfd/ab8500-gpadc.c 		res = (int) (ad_value * gpadc->cal_data[ADC_INPUT_BTEMP].gain +
res               233 drivers/mfd/ab8500-gpadc.c 			res = ADC_CH_VBAT_MIN + (ADC_CH_VBAT_MAX -
res               239 drivers/mfd/ab8500-gpadc.c 		res = (int) (ad_value * gpadc->cal_data[ADC_INPUT_VBAT].gain +
res               244 drivers/mfd/ab8500-gpadc.c 		res = ADC_CH_DIETEMP_MIN +
res               250 drivers/mfd/ab8500-gpadc.c 		res = ADC_CH_ACCDET2_MIN +
res               256 drivers/mfd/ab8500-gpadc.c 		res = ADC_CH_CHG_V_MIN +
res               263 drivers/mfd/ab8500-gpadc.c 		res = ADC_CH_CHG_I_MIN +
res               269 drivers/mfd/ab8500-gpadc.c 		res = ADC_CH_BKBAT_MIN +
res               277 drivers/mfd/ab8500-gpadc.c 			res = ADC_CH_IBAT_MIN + (ADC_CH_IBAT_MAX -
res               283 drivers/mfd/ab8500-gpadc.c 		res = (int) (ad_value * gpadc->cal_data[ADC_INPUT_IBAT].gain +
res               291 drivers/mfd/ab8500-gpadc.c 		res = -EINVAL;
res               295 drivers/mfd/ab8500-gpadc.c 	return res;
res               126 drivers/mfd/altera-sysmgr.c 	struct resource *res;
res               135 drivers/mfd/altera-sysmgr.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               136 drivers/mfd/altera-sysmgr.c 	if (!res)
res               139 drivers/mfd/altera-sysmgr.c 	sysmgr_config.max_register = resource_size(res) -
res               143 drivers/mfd/altera-sysmgr.c 		sysmgr->base = (resource_size_t *)res->start;
res               150 drivers/mfd/altera-sysmgr.c 		sysmgr->base = devm_ioremap(dev, res->start,
res               151 drivers/mfd/altera-sysmgr.c 					    resource_size(res));
res               155 drivers/mfd/altera-sysmgr.c 		sysmgr_config.max_register = res->end - res->start - 3;
res                40 drivers/mfd/atmel-flexcom.c 	struct resource *res;
res                58 drivers/mfd/atmel-flexcom.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                59 drivers/mfd/atmel-flexcom.c 	ddata->base = devm_ioremap_resource(&pdev->dev, res);
res                78 drivers/mfd/atmel-hlcdc.c 	struct resource *res;
res                88 drivers/mfd/atmel-hlcdc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                89 drivers/mfd/atmel-hlcdc.c 	hregmap->regs = devm_ioremap_resource(dev, res);
res                30 drivers/mfd/bcm2835-pm.c 	struct resource *res;
res                42 drivers/mfd/bcm2835-pm.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                43 drivers/mfd/bcm2835-pm.c 	pm->base = devm_ioremap_resource(dev, res);
res                57 drivers/mfd/bcm2835-pm.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res                58 drivers/mfd/bcm2835-pm.c 	if (res) {
res                59 drivers/mfd/bcm2835-pm.c 		pm->asb = devm_ioremap_resource(dev, res);
res                32 drivers/mfd/cs5535-mfd.c 	struct resource *res;
res                34 drivers/mfd/cs5535-mfd.c 	res = platform_get_resource(pdev, IORESOURCE_IO, 0);
res                35 drivers/mfd/cs5535-mfd.c 	if (!res) {
res                40 drivers/mfd/cs5535-mfd.c 	if (!request_region(res->start, resource_size(res), DRV_NAME)) {
res                50 drivers/mfd/cs5535-mfd.c 	struct resource *res;
res                52 drivers/mfd/cs5535-mfd.c 	res = platform_get_resource(pdev, IORESOURCE_IO, 0);
res                53 drivers/mfd/cs5535-mfd.c 	if (!res) {
res                58 drivers/mfd/cs5535-mfd.c 	release_region(res->start, resource_size(res));
res                31 drivers/mfd/davinci_voicecodec.c 	struct resource *res;
res                49 drivers/mfd/davinci_voicecodec.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                51 drivers/mfd/davinci_voicecodec.c 	fifo_base = (dma_addr_t)res->start;
res                52 drivers/mfd/davinci_voicecodec.c 	davinci_vc->base = devm_ioremap_resource(&pdev->dev, res);
res                66 drivers/mfd/davinci_voicecodec.c 	res = platform_get_resource(pdev, IORESOURCE_DMA, 0);
res                67 drivers/mfd/davinci_voicecodec.c 	if (!res) {
res                73 drivers/mfd/davinci_voicecodec.c 	davinci_vc->davinci_vcif.dma_tx_channel = res->start;
res                76 drivers/mfd/davinci_voicecodec.c 	res = platform_get_resource(pdev, IORESOURCE_DMA, 1);
res                77 drivers/mfd/davinci_voicecodec.c 	if (!res) {
res                83 drivers/mfd/davinci_voicecodec.c 	davinci_vc->davinci_vcif.dma_rx_channel = res->start;
res              2699 drivers/mfd/db8500-prcmu.c 	struct resource *res;
res              2703 drivers/mfd/db8500-prcmu.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
res              2705 drivers/mfd/db8500-prcmu.c 	if (!res) {
res              2710 drivers/mfd/db8500-prcmu.c 	tcpm_base = ioremap(res->start, resource_size(res));
res              3080 drivers/mfd/db8500-prcmu.c 	struct resource *res;
res              3082 drivers/mfd/db8500-prcmu.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "prcmu");
res              3083 drivers/mfd/db8500-prcmu.c 	if (!res) {
res              3087 drivers/mfd/db8500-prcmu.c 	prcmu_base = devm_ioremap(&pdev->dev, res->start, resource_size(res));
res              3095 drivers/mfd/db8500-prcmu.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "prcmu-tcdm");
res              3096 drivers/mfd/db8500-prcmu.c 	if (!res) {
res              3100 drivers/mfd/db8500-prcmu.c 	tcdm_base = devm_ioremap(&pdev->dev, res->start,
res              3101 drivers/mfd/db8500-prcmu.c 			resource_size(res));
res               113 drivers/mfd/exynos-lpass.c 	struct resource *res;
res               119 drivers/mfd/exynos-lpass.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               120 drivers/mfd/exynos-lpass.c 	base_top = devm_ioremap_resource(dev, res);
res                29 drivers/mfd/ezx-pcap.c 	u16 res[2];
res               270 drivers/mfd/ezx-pcap.c 	u16 res[2];
res               288 drivers/mfd/ezx-pcap.c 	res[0] = (tmp & PCAP_ADR_ADD1_MASK) >> PCAP_ADR_ADD1_SHIFT;
res               289 drivers/mfd/ezx-pcap.c 	res[1] = (tmp & PCAP_ADR_ADD2_MASK) >> PCAP_ADR_ADD2_SHIFT;
res               296 drivers/mfd/ezx-pcap.c 	req->callback(req->data, res);
res               340 drivers/mfd/ezx-pcap.c static void pcap_adc_sync_cb(void *param, u16 res[])
res               344 drivers/mfd/ezx-pcap.c 	req->res[0] = res[0];
res               345 drivers/mfd/ezx-pcap.c 	req->res[1] = res[1];
res               350 drivers/mfd/ezx-pcap.c 								u16 res[])
res               361 drivers/mfd/ezx-pcap.c 	res[0] = sync_data.res[0];
res               362 drivers/mfd/ezx-pcap.c 	res[1] = sync_data.res[1];
res               127 drivers/mfd/fsl-imx25-tsadc.c 	struct resource *res;
res               135 drivers/mfd/fsl-imx25-tsadc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               136 drivers/mfd/fsl-imx25-tsadc.c 	iomem = devm_ioremap_resource(dev, res);
res                53 drivers/mfd/hi6421-pmic-core.c 	struct resource *res;
res                69 drivers/mfd/hi6421-pmic-core.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                70 drivers/mfd/hi6421-pmic-core.c 	base = devm_ioremap_resource(&pdev->dev, res);
res               105 drivers/mfd/hi655x-pmic.c 	pmic->res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               106 drivers/mfd/hi655x-pmic.c 	base = devm_ioremap_resource(dev, pmic->res);
res               519 drivers/mfd/htc-i2cpld.c 	struct resource *res;
res               536 drivers/mfd/htc-i2cpld.c 	res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
res               537 drivers/mfd/htc-i2cpld.c 	if (res) {
res               539 drivers/mfd/htc-i2cpld.c 		htcpld->chained_irq = res->start;
res               350 drivers/mfd/intel_msic.c 	struct resource *res;
res               389 drivers/mfd/intel_msic.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               390 drivers/mfd/intel_msic.c 	msic->irq_base = devm_ioremap_resource(&pdev->dev, res);
res               162 drivers/mfd/intel_quark_i2c_gpio.c 	struct resource *res = (struct resource *)cell->resources;
res               165 drivers/mfd/intel_quark_i2c_gpio.c 	res[INTEL_QUARK_IORES_MEM].start =
res               167 drivers/mfd/intel_quark_i2c_gpio.c 	res[INTEL_QUARK_IORES_MEM].end =
res               170 drivers/mfd/intel_quark_i2c_gpio.c 	res[INTEL_QUARK_IORES_IRQ].start = pdev->irq;
res               171 drivers/mfd/intel_quark_i2c_gpio.c 	res[INTEL_QUARK_IORES_IRQ].end = pdev->irq;
res               193 drivers/mfd/intel_quark_i2c_gpio.c 	struct resource *res = (struct resource *)cell->resources;
res               196 drivers/mfd/intel_quark_i2c_gpio.c 	res[INTEL_QUARK_IORES_MEM].start =
res               198 drivers/mfd/intel_quark_i2c_gpio.c 	res[INTEL_QUARK_IORES_MEM].end =
res               384 drivers/mfd/ipaq-micro.c 	struct resource *res;
res               394 drivers/mfd/ipaq-micro.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               395 drivers/mfd/ipaq-micro.c 	micro->base = devm_ioremap_resource(&pdev->dev, res);
res               399 drivers/mfd/ipaq-micro.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res               400 drivers/mfd/ipaq-micro.c 	if (!res)
res               403 drivers/mfd/ipaq-micro.c 	micro->sdlc = devm_ioremap_resource(&pdev->dev, res);
res                67 drivers/mfd/janz-cmodio.c 	struct resource *res;
res                72 drivers/mfd/janz-cmodio.c 	res = &priv->resources[devno * 3];
res                76 drivers/mfd/janz-cmodio.c 	cell->resources = res;
res                88 drivers/mfd/janz-cmodio.c 	res->flags = IORESOURCE_MEM;
res                89 drivers/mfd/janz-cmodio.c 	res->parent = &pci->resource[3];
res                90 drivers/mfd/janz-cmodio.c 	res->start = pci->resource[3].start + (CMODIO_MODULBUS_SIZE * modno);
res                91 drivers/mfd/janz-cmodio.c 	res->end = res->start + CMODIO_MODULBUS_SIZE - 1;
res                92 drivers/mfd/janz-cmodio.c 	res++;
res                95 drivers/mfd/janz-cmodio.c 	res->flags = IORESOURCE_MEM;
res                96 drivers/mfd/janz-cmodio.c 	res->parent = &pci->resource[4];
res                97 drivers/mfd/janz-cmodio.c 	res->start = pci->resource[4].start;
res                98 drivers/mfd/janz-cmodio.c 	res->end = pci->resource[4].end;
res                99 drivers/mfd/janz-cmodio.c 	res++;
res               108 drivers/mfd/janz-cmodio.c 	res->flags = IORESOURCE_IRQ;
res               109 drivers/mfd/janz-cmodio.c 	res->parent = NULL;
res               110 drivers/mfd/janz-cmodio.c 	res->start = 0;
res               111 drivers/mfd/janz-cmodio.c 	res->end = 0;
res               112 drivers/mfd/janz-cmodio.c 	res++;
res               912 drivers/mfd/lpc_ich.c static int lpc_ich_check_conflict_gpio(struct resource *res)
res               917 drivers/mfd/lpc_ich.c 	if (resource_size(res) >= 0x50 &&
res               918 drivers/mfd/lpc_ich.c 	    !acpi_check_region(res->start + 0x40, 0x10, "LPC ICH GPIO3"))
res               921 drivers/mfd/lpc_ich.c 	if (!acpi_check_region(res->start + 0x30, 0x10, "LPC ICH GPIO2"))
res               924 drivers/mfd/lpc_ich.c 	ret = acpi_check_region(res->start + 0x00, 0x30, "LPC ICH GPIO1");
res               938 drivers/mfd/lpc_ich.c 	struct resource *res;
res               949 drivers/mfd/lpc_ich.c 	res = &gpio_ich_res[ICH_RES_GPE0];
res               950 drivers/mfd/lpc_ich.c 	res->start = base_addr + ACPIBASE_GPE_OFF;
res               951 drivers/mfd/lpc_ich.c 	res->end = base_addr + ACPIBASE_GPE_END;
res               952 drivers/mfd/lpc_ich.c 	ret = acpi_check_resource_conflict(res);
res               976 drivers/mfd/lpc_ich.c 	res = &gpio_ich_res[ICH_RES_GPIO];
res               977 drivers/mfd/lpc_ich.c 	res->start = base_addr;
res               981 drivers/mfd/lpc_ich.c 		res->end = res->start + 128 - 1;
res               984 drivers/mfd/lpc_ich.c 		res->end = res->start + 64 - 1;
res               988 drivers/mfd/lpc_ich.c 	ret = lpc_ich_check_conflict_gpio(res);
res              1014 drivers/mfd/lpc_ich.c 	struct resource *res;
res              1029 drivers/mfd/lpc_ich.c 	res = wdt_io_res(ICH_RES_IO_TCO);
res              1030 drivers/mfd/lpc_ich.c 	res->start = base_addr + ACPIBASE_TCO_OFF;
res              1031 drivers/mfd/lpc_ich.c 	res->end = base_addr + ACPIBASE_TCO_END;
res              1033 drivers/mfd/lpc_ich.c 	res = wdt_io_res(ICH_RES_IO_SMI);
res              1034 drivers/mfd/lpc_ich.c 	res->start = base_addr + ACPIBASE_SMI_OFF;
res              1035 drivers/mfd/lpc_ich.c 	res->end = base_addr + ACPIBASE_SMI_END;
res              1062 drivers/mfd/lpc_ich.c 		res = wdt_mem_res(ICH_RES_MEM_GCS_PMC);
res              1063 drivers/mfd/lpc_ich.c 		res->start = base_addr + ACPIBASE_GCS_OFF;
res              1064 drivers/mfd/lpc_ich.c 		res->end = base_addr + ACPIBASE_GCS_END;
res              1070 drivers/mfd/lpc_ich.c 		res = wdt_mem_res(ICH_RES_MEM_GCS_PMC);
res              1071 drivers/mfd/lpc_ich.c 		res->start = base_addr + ACPIBASE_PMC_OFF;
res              1072 drivers/mfd/lpc_ich.c 		res->end = base_addr + ACPIBASE_PMC_END;
res              1089 drivers/mfd/lpc_ich.c 	struct resource *res = &intel_spi_res[0];
res              1103 drivers/mfd/lpc_ich.c 			res->start = spi_base & ~(SPIBASE_BYT_SZ - 1);
res              1104 drivers/mfd/lpc_ich.c 			res->end = res->start + SPIBASE_BYT_SZ - 1;
res              1112 drivers/mfd/lpc_ich.c 			res->start = spi_base + SPIBASE_LPT;
res              1113 drivers/mfd/lpc_ich.c 			res->end = res->start + SPIBASE_LPT_SZ - 1;
res              1134 drivers/mfd/lpc_ich.c 			res->start = spi_base & 0xfffffff0;
res              1135 drivers/mfd/lpc_ich.c 			res->end = res->start + SPIBASE_APL_SZ - 1;
res              1149 drivers/mfd/lpc_ich.c 	if (!res->start)
res                87 drivers/mfd/lpc_sch.c 			  struct resource *res, int size)
res               108 drivers/mfd/lpc_sch.c 	res->start = base_addr;
res               109 drivers/mfd/lpc_sch.c 	res->end = base_addr + size - 1;
res               110 drivers/mfd/lpc_sch.c 	res->flags = IORESOURCE_IO;
res               119 drivers/mfd/lpc_sch.c 	struct resource *res;
res               122 drivers/mfd/lpc_sch.c 	res = devm_kcalloc(&pdev->dev, 2, sizeof(*res), GFP_KERNEL);
res               123 drivers/mfd/lpc_sch.c 	if (!res)
res               126 drivers/mfd/lpc_sch.c 	ret = lpc_sch_get_io(pdev, where, name, res, size);
res               133 drivers/mfd/lpc_sch.c 	cell->resources = res;
res               142 drivers/mfd/lpc_sch.c 	res++;
res               144 drivers/mfd/lpc_sch.c 	res->start = irq;
res               145 drivers/mfd/lpc_sch.c 	res->end = irq;
res               146 drivers/mfd/lpc_sch.c 	res->flags = IORESOURCE_IRQ;
res               141 drivers/mfd/mfd-core.c 	struct resource *res;
res               157 drivers/mfd/mfd-core.c 	res = kcalloc(cell->num_resources, sizeof(*res), GFP_KERNEL);
res               158 drivers/mfd/mfd-core.c 	if (!res)
res               204 drivers/mfd/mfd-core.c 		res[r].name = cell->resources[r].name;
res               205 drivers/mfd/mfd-core.c 		res[r].flags = cell->resources[r].flags;
res               209 drivers/mfd/mfd-core.c 			res[r].parent = mem_base;
res               210 drivers/mfd/mfd-core.c 			res[r].start = mem_base->start +
res               212 drivers/mfd/mfd-core.c 			res[r].end = mem_base->start +
res               219 drivers/mfd/mfd-core.c 				res[r].start = res[r].end = irq_create_mapping(
res               222 drivers/mfd/mfd-core.c 				res[r].start = irq_base +
res               224 drivers/mfd/mfd-core.c 				res[r].end   = irq_base +
res               228 drivers/mfd/mfd-core.c 			res[r].parent = cell->resources[r].parent;
res               229 drivers/mfd/mfd-core.c 			res[r].start = cell->resources[r].start;
res               230 drivers/mfd/mfd-core.c 			res[r].end   = cell->resources[r].end;
res               235 drivers/mfd/mfd-core.c 				ret = acpi_check_resource_conflict(&res[r]);
res               242 drivers/mfd/mfd-core.c 	ret = platform_device_add_resources(pdev, res, cell->num_resources);
res               253 drivers/mfd/mfd-core.c 	kfree(res);
res               262 drivers/mfd/mfd-core.c 	kfree(res);
res               347 drivers/mfd/mfd-core.c static void devm_mfd_dev_release(struct device *dev, void *res)
res               133 drivers/mfd/mxs-lradc.c 	struct resource *res;
res               189 drivers/mfd/mxs-lradc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               190 drivers/mfd/mxs-lradc.c 	if (!res) {
res               197 drivers/mfd/mxs-lradc.c 		mx23_adc_resources[RES_MEM] = *res;
res               198 drivers/mfd/mxs-lradc.c 		mx23_touchscreen_resources[RES_MEM] = *res;
res               202 drivers/mfd/mxs-lradc.c 		mx28_adc_resources[RES_MEM] = *res;
res               203 drivers/mfd/mxs-lradc.c 		mx28_touchscreen_resources[RES_MEM] = *res;
res               146 drivers/mfd/omap-usb-host.c 			struct resource	*res, int num_resources, void *pdata,
res               159 drivers/mfd/omap-usb-host.c 	ret = platform_device_add_resources(child, res, num_resources);
res               196 drivers/mfd/omap-usb-host.c 	struct resource				*res;
res               200 drivers/mfd/omap-usb-host.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "ehci");
res               201 drivers/mfd/omap-usb-host.c 	if (!res) {
res               206 drivers/mfd/omap-usb-host.c 	resources[0] = *res;
res               208 drivers/mfd/omap-usb-host.c 	res = platform_get_resource_byname(pdev, IORESOURCE_IRQ, "ehci-irq");
res               209 drivers/mfd/omap-usb-host.c 	if (!res) {
res               214 drivers/mfd/omap-usb-host.c 	resources[1] = *res;
res               225 drivers/mfd/omap-usb-host.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "ohci");
res               226 drivers/mfd/omap-usb-host.c 	if (!res) {
res               231 drivers/mfd/omap-usb-host.c 	resources[0] = *res;
res               233 drivers/mfd/omap-usb-host.c 	res = platform_get_resource_byname(pdev, IORESOURCE_IRQ, "ohci-irq");
res               234 drivers/mfd/omap-usb-host.c 	if (!res) {
res               239 drivers/mfd/omap-usb-host.c 	resources[1] = *res;
res               535 drivers/mfd/omap-usb-host.c 	struct resource			*res;
res               570 drivers/mfd/omap-usb-host.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               571 drivers/mfd/omap-usb-host.c 	omap->uhh_base = devm_ioremap_resource(dev, res);
res               206 drivers/mfd/omap-usb-tll.c 	struct resource				*res;
res               213 drivers/mfd/omap-usb-tll.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               214 drivers/mfd/omap-usb-tll.c 	base = devm_ioremap_resource(dev, res);
res               173 drivers/mfd/pcf50633-adc.c 	int head, res;
res               188 drivers/mfd/pcf50633-adc.c 	res = adc_result(pcf);
res               193 drivers/mfd/pcf50633-adc.c 	req->callback(pcf, req->callback_param, res);
res               227 drivers/mfd/pcf50633-irq.c 	u8 res[5];
res               244 drivers/mfd/pcf50633-irq.c 	for (i = 0; i < ARRAY_SIZE(res); i++)
res               245 drivers/mfd/pcf50633-irq.c 		res[i] = ~pcf->pdata->resumers[i];
res               248 drivers/mfd/pcf50633-irq.c 					ARRAY_SIZE(res), &res[0]);
res               450 drivers/mfd/qcom_rpm.c 	const struct qcom_rpm_resource *res;
res               460 drivers/mfd/qcom_rpm.c 	res = &data->resource_table[resource];
res               461 drivers/mfd/qcom_rpm.c 	if (WARN_ON(res->size != count))
res               466 drivers/mfd/qcom_rpm.c 	for (i = 0; i < res->size; i++)
res               467 drivers/mfd/qcom_rpm.c 		writel_relaxed(buf[i], RPM_REQ_REG(rpm, res->target_id + i));
res               469 drivers/mfd/qcom_rpm.c 	bitmap_set((unsigned long *)sel_mask, res->select_id, 1);
res               533 drivers/mfd/qcom_rpm.c 	struct resource *res;
res               580 drivers/mfd/qcom_rpm.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               581 drivers/mfd/qcom_rpm.c 	rpm->status_regs = devm_ioremap_resource(&pdev->dev, res);
res               208 drivers/mfd/rave-sp.c static void rave_sp_unregister_event_notifier(struct device *dev, void *res)
res               211 drivers/mfd/rave-sp.c 	struct notifier_block *nb = *(struct notifier_block **)res;
res               763 drivers/mfd/sm501.c 			       struct resource *res,
res               767 drivers/mfd/sm501.c 	res->flags = IORESOURCE_MEM;
res               768 drivers/mfd/sm501.c 	res->parent = sm->io_res;
res               769 drivers/mfd/sm501.c 	res->start = sm->io_res->start + offs;
res               770 drivers/mfd/sm501.c 	res->end = res->start + size - 1;
res               779 drivers/mfd/sm501.c 			     struct resource *res,
res               785 drivers/mfd/sm501.c 	res->flags = IORESOURCE_MEM;
res               786 drivers/mfd/sm501.c 	res->parent = sm->mem_res;
res               787 drivers/mfd/sm501.c 	res->start = sm->mem_res->start + *offs;
res               788 drivers/mfd/sm501.c 	res->end = res->start + size - 1;
res               797 drivers/mfd/sm501.c 			     struct resource *res)
res               799 drivers/mfd/sm501.c 	res->flags = IORESOURCE_IRQ;
res               800 drivers/mfd/sm501.c 	res->parent = NULL;
res               801 drivers/mfd/sm501.c 	res->start = res->end = sm->irq;
res               301 drivers/mfd/sta2x11-mfd.c 	struct resource *res;
res               312 drivers/mfd/sta2x11-mfd.c 	res = platform_get_resource(dev, IORESOURCE_MEM, 0);
res               313 drivers/mfd/sta2x11-mfd.c 	if (!res)
res               316 drivers/mfd/sta2x11-mfd.c 	if (!request_mem_region(res->start, resource_size(res), name))
res               319 drivers/mfd/sta2x11-mfd.c 	mfd->regs[index] = ioremap(res->start, resource_size(res));
res               321 drivers/mfd/sta2x11-mfd.c 		release_mem_region(res->start, resource_size(res));
res                54 drivers/mfd/stm32-lptimer.c 	struct resource *res;
res                62 drivers/mfd/stm32-lptimer.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                63 drivers/mfd/stm32-lptimer.c 	mmio = devm_ioremap_resource(dev, res);
res               206 drivers/mfd/stm32-timers.c 	struct resource *res;
res               214 drivers/mfd/stm32-timers.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               215 drivers/mfd/stm32-timers.c 	mmio = devm_ioremap_resource(dev, res);
res               220 drivers/mfd/stm32-timers.c 	ddata->dma.phys_base = res->start;
res              1317 drivers/mfd/stmpe.c 			struct resource *res =
res              1321 drivers/mfd/stmpe.c 			if (res->flags & IORESOURCE_IRQ)
res              1322 drivers/mfd/stmpe.c 				res->start = res->end = block->irq + j;
res               152 drivers/mfd/sun6i-prcm.c 	struct resource *res;
res               161 drivers/mfd/sun6i-prcm.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               162 drivers/mfd/sun6i-prcm.c 	if (!res) {
res               168 drivers/mfd/sun6i-prcm.c 			      res, -1, NULL);
res                52 drivers/mfd/syscon.c 	struct resource res;
res                58 drivers/mfd/syscon.c 	if (of_address_to_resource(np, 0, &res)) {
res                63 drivers/mfd/syscon.c 	base = ioremap(res.start, resource_size(&res));
res               107 drivers/mfd/syscon.c 	syscon_config.max_register = resource_size(&res) - reg_io_width;
res               234 drivers/mfd/syscon.c 	struct resource *res;
res               241 drivers/mfd/syscon.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               242 drivers/mfd/syscon.c 	if (!res)
res               245 drivers/mfd/syscon.c 	base = devm_ioremap(dev, res->start, resource_size(res));
res               249 drivers/mfd/syscon.c 	syscon_config.max_register = res->end - res->start - 3;
res               260 drivers/mfd/syscon.c 	dev_dbg(dev, "regmap %pR registered\n", res);
res               125 drivers/mfd/ti_am335x_tscadc.c 	struct resource		*res;
res               184 drivers/mfd/ti_am335x_tscadc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               185 drivers/mfd/ti_am335x_tscadc.c 	tscadc->tscadc_phys_base = res->start;
res               186 drivers/mfd/ti_am335x_tscadc.c 	tscadc->tscadc_base = devm_ioremap_resource(&pdev->dev, res);
res               157 drivers/mfd/twl4030-power.c #define TWL_RESOURCE_SET(res, state)					\
res               158 drivers/mfd/twl4030-power.c 	{ MSG_SINGULAR(DEV_GRP_NULL, (res), (state)), TWL_DFLT_DELAY }
res               159 drivers/mfd/twl4030-power.c #define TWL_RESOURCE_ON(res)	TWL_RESOURCE_SET(res, RES_STATE_ACTIVE)
res               160 drivers/mfd/twl4030-power.c #define TWL_RESOURCE_OFF(res)	TWL_RESOURCE_SET(res, RES_STATE_OFF)
res               161 drivers/mfd/twl4030-power.c #define TWL_RESOURCE_RESET(res)	TWL_RESOURCE_SET(res, RES_STATE_WRST)
res               166 drivers/mfd/twl4030-power.c #define TWL_RESOURCE_SET_ACTIVE(res, state)			       	\
res               167 drivers/mfd/twl4030-power.c 	{ MSG_SINGULAR(DEV_GRP_NULL, (res), RES_STATE_ACTIVE), (state) }
res               177 drivers/mfd/twl4030-power.c #define TWL_REMAP_SLEEP(res, devgrp, typ, typ2)				\
res               178 drivers/mfd/twl4030-power.c 	{ .resource = (res), .devgroup = (devgrp),			\
res               182 drivers/mfd/twl4030-power.c #define TWL_REMAP_OFF(res, devgrp, typ, typ2)				\
res               183 drivers/mfd/twl4030-power.c 	{ .resource = (res), .devgroup = (devgrp),			\
res               218 drivers/misc/apds9802als.c 	int res;
res               227 drivers/misc/apds9802als.c 	res = sysfs_create_group(&client->dev.kobj, &m_als_gr);
res               228 drivers/misc/apds9802als.c 	if (res) {
res               239 drivers/misc/apds9802als.c 	return res;
res               242 drivers/misc/apds9802als.c 	return res;
res               120 drivers/misc/c2port/c2port-duramar2150.c 	struct resource *res;
res               123 drivers/misc/c2port/c2port-duramar2150.c 	res = request_region(0x325, 2, "c2port");
res               124 drivers/misc/c2port/c2port-duramar2150.c 	if (!res)
res               318 drivers/misc/cs5535-mfgpt.c 	struct resource *res;
res               334 drivers/misc/cs5535-mfgpt.c 	res = platform_get_resource(pdev, IORESOURCE_IO, 0);
res               335 drivers/misc/cs5535-mfgpt.c 	if (!res) {
res               340 drivers/misc/cs5535-mfgpt.c 	if (!request_region(res->start, resource_size(res), pdev->name)) {
res               346 drivers/misc/cs5535-mfgpt.c 	cs5535_mfgpt_chip.base = res->start;
res               350 drivers/misc/cs5535-mfgpt.c 	dev_info(&pdev->dev, "reserved resource region %pR\n", res);
res               184 drivers/misc/cxl/api.c 	int res;
res               189 drivers/misc/cxl/api.c 	res = afu_allocate_irqs(ctx, num);
res               190 drivers/misc/cxl/api.c 	if (res)
res               191 drivers/misc/cxl/api.c 		return res;
res               208 drivers/misc/cxl/api.c 	return res;
res              1179 drivers/misc/cxl/native.c 	int ph, ret = IRQ_HANDLED, res;
res              1190 drivers/misc/cxl/native.c 	if ((res = native_get_irq_info(afu, &irq_info))) {
res              1191 drivers/misc/cxl/native.c 		WARN(1, "Unable to get CXL IRQ Info: %i\n", res);
res               472 drivers/misc/genwqe/card_utils.c 	unsigned long res;
res               477 drivers/misc/genwqe/card_utils.c 			res = copy_to_user(sgl->user_addr,
res               479 drivers/misc/genwqe/card_utils.c 			if (res) {
res               482 drivers/misc/genwqe/card_utils.c 					__func__, res);
res               494 drivers/misc/genwqe/card_utils.c 			res = copy_to_user(sgl->user_addr + offset, sgl->lpage,
res               496 drivers/misc/genwqe/card_utils.c 			if (res) {
res               499 drivers/misc/genwqe/card_utils.c 					__func__, res);
res               444 drivers/misc/habanalabs/memory.c 	struct hl_vm_va_block *va_block, *res = NULL;
res               460 drivers/misc/habanalabs/memory.c 			res = va_block;
res               471 drivers/misc/habanalabs/memory.c 	if (!res)
res               474 drivers/misc/habanalabs/memory.c 		list_add(&va_block->node, &res->node);
res               107 drivers/misc/hmc6352.c 	int res;
res               109 drivers/misc/hmc6352.c 	res = sysfs_create_group(&client->dev.kobj, &m_compass_gr);
res               110 drivers/misc/hmc6352.c 	if (res) {
res               112 drivers/misc/hmc6352.c 		return res;
res               120 drivers/misc/isl29003.c static int isl29003_set_resolution(struct i2c_client *client, int res)
res               123 drivers/misc/isl29003.c 		ISL29003_RES_MASK, ISL29003_RES_SHIFT, res);
res               157 drivers/misc/isl29020.c 	int res;
res               159 drivers/misc/isl29020.c 	res = als_set_default_config(client);
res               160 drivers/misc/isl29020.c 	if (res <  0)
res               161 drivers/misc/isl29020.c 		return res;
res               163 drivers/misc/isl29020.c 	res = sysfs_create_group(&client->dev.kobj, &m_als_gr);
res               164 drivers/misc/isl29020.c 	if (res) {
res               166 drivers/misc/isl29020.c 		return res;
res               171 drivers/misc/isl29020.c 	return res;
res               774 drivers/misc/lis3lv02d/lis3lv02d.c 	const char *res;
res               779 drivers/misc/lis3lv02d/lis3lv02d.c 		res = fail;
res               782 drivers/misc/lis3lv02d/lis3lv02d.c 		res = irq;
res               786 drivers/misc/lis3lv02d/lis3lv02d.c 		res = ok;
res               789 drivers/misc/lis3lv02d/lis3lv02d.c 	return sprintf(buf, "%s %d %d %d\n", res,
res               376 drivers/misc/mei/hbm.c 			     struct hbm_props_response *res)
res               379 drivers/misc/mei/hbm.c 	const uuid_le *uuid = &res->client_properties.protocol_name;
res               389 drivers/misc/mei/hbm.c 	me_cl->props = res->client_properties;
res               390 drivers/misc/mei/hbm.c 	me_cl->client_id = res->me_addr;
res               170 drivers/misc/pci_endpoint_test.c 	bool res = true;
res               194 drivers/misc/pci_endpoint_test.c 		res = false;
res               200 drivers/misc/pci_endpoint_test.c 	return res;
res                68 drivers/misc/pvpanic.c pvpanic_walk_resources(struct acpi_resource *res, void *context)
res                72 drivers/misc/pvpanic.c 	if (acpi_dev_resource_io(res, &r)) {
res                79 drivers/misc/pvpanic.c 	} else if (acpi_dev_resource_memory(res, &r)) {
res               156 drivers/misc/sram.c static int sram_reserve_regions(struct sram_dev *sram, struct resource *res)
res               168 drivers/misc/sram.c 	size = resource_size(res);
res               191 drivers/misc/sram.c 		if (child_res.start < res->start || child_res.end > res->end) {
res               199 drivers/misc/sram.c 		block->start = child_res.start - res->start;
res               278 drivers/misc/sram.c 						 res->start + block->start);
res               303 drivers/misc/sram.c 				res->start + cur_start, cur_size, -1);
res               343 drivers/misc/sram.c 	struct resource *res;
res               354 drivers/misc/sram.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               355 drivers/misc/sram.c 	if (!res) {
res               360 drivers/misc/sram.c 	size = resource_size(res);
res               362 drivers/misc/sram.c 	if (!devm_request_mem_region(sram->dev, res->start, size, pdev->name)) {
res               368 drivers/misc/sram.c 		sram->virt_base = devm_ioremap(sram->dev, res->start, size);
res               370 drivers/misc/sram.c 		sram->virt_base = devm_ioremap_wc(sram->dev, res->start, size);
res               385 drivers/misc/sram.c 	ret = sram_reserve_regions(sram, res);
res               244 drivers/misc/vexpress-syscfg.c 	struct resource *res;
res               253 drivers/misc/vexpress-syscfg.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               254 drivers/misc/vexpress-syscfg.c 	syscfg->base = devm_ioremap_resource(&pdev->dev, res);
res               605 drivers/misc/xilinx_sdfec.c 	u32 res;
res               625 drivers/misc/xilinx_sdfec.c 	res = get_user_pages_fast((unsigned long)src_ptr, n, 0, page);
res               626 drivers/misc/xilinx_sdfec.c 	if (res < n) {
res               627 drivers/misc/xilinx_sdfec.c 		for (i = 0; i < res; i++)
res              1385 drivers/misc/xilinx_sdfec.c 	struct resource *res;
res              1401 drivers/misc/xilinx_sdfec.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1402 drivers/misc/xilinx_sdfec.c 	xsdfec->regs = devm_ioremap_resource(dev, res);
res              3014 drivers/mmc/core/block.c 	int res;
res              3016 drivers/mmc/core/block.c 	res  = bus_register(&mmc_rpmb_bus_type);
res              3017 drivers/mmc/core/block.c 	if (res < 0) {
res              3019 drivers/mmc/core/block.c 		return res;
res              3021 drivers/mmc/core/block.c 	res = alloc_chrdev_region(&mmc_rpmb_devt, 0, MAX_DEVICES, "rpmb");
res              3022 drivers/mmc/core/block.c 	if (res < 0) {
res              3032 drivers/mmc/core/block.c 	res = register_blkdev(MMC_BLOCK_MAJOR, "mmc");
res              3033 drivers/mmc/core/block.c 	if (res)
res              3036 drivers/mmc/core/block.c 	res = mmc_register_driver(&mmc_driver);
res              3037 drivers/mmc/core/block.c 	if (res)
res              3048 drivers/mmc/core/block.c 	return res;
res               444 drivers/mmc/host/android-goldfish.c 	struct resource *res;
res               449 drivers/mmc/host/android-goldfish.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               451 drivers/mmc/host/android-goldfish.c 	if (res == NULL || irq < 0)
res               462 drivers/mmc/host/android-goldfish.c 	pr_err("mmc: Mapping %lX to %lX\n", (long)res->start, (long)res->end);
res               463 drivers/mmc/host/android-goldfish.c 	host->reg_base = ioremap(res->start, resource_size(res));
res               878 drivers/mmc/host/au1xmmc.c 	struct resource *res;
res               881 drivers/mmc/host/au1xmmc.c 	res = platform_get_resource(host->pdev, IORESOURCE_DMA, 0);
res               882 drivers/mmc/host/au1xmmc.c 	if (!res)
res               884 drivers/mmc/host/au1xmmc.c 	txid = res->start;
res               886 drivers/mmc/host/au1xmmc.c 	res = platform_get_resource(host->pdev, IORESOURCE_DMA, 1);
res               887 drivers/mmc/host/au1xmmc.c 	if (!res)
res               889 drivers/mmc/host/au1xmmc.c 	rxid = res->start;
res               151 drivers/mmc/host/cavium-octeon.c 	struct resource	*res;
res               208 drivers/mmc/host/cavium-octeon.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               209 drivers/mmc/host/cavium-octeon.c 	if (!res) {
res               213 drivers/mmc/host/cavium-octeon.c 	base = devm_ioremap_resource(&pdev->dev, res);
res               219 drivers/mmc/host/cavium-octeon.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res               220 drivers/mmc/host/cavium-octeon.c 	if (!res) {
res               224 drivers/mmc/host/cavium-octeon.c 	base = devm_ioremap_resource(&pdev->dev, res);
res              1040 drivers/mmc/host/meson-gx-mmc.c 	struct resource *res;
res              1085 drivers/mmc/host/meson-gx-mmc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1086 drivers/mmc/host/meson-gx-mmc.c 	host->regs = devm_ioremap_resource(&pdev->dev, res);
res              1181 drivers/mmc/host/meson-gx-mmc.c 		host->bounce_dma_addr = res->start + SD_EMMC_SRAM_DATA_BUF_OFF;
res               632 drivers/mmc/host/meson-mx-sdio.c 	struct resource *res;
res               657 drivers/mmc/host/meson-mx-sdio.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               658 drivers/mmc/host/meson-mx-sdio.c 	host->base = devm_ioremap_resource(host->controller_dev, res);
res              1887 drivers/mmc/host/mmci.c 	host->phybase = dev->res.start;
res              1888 drivers/mmc/host/mmci.c 	host->base = devm_ioremap_resource(&dev->dev, &dev->res);
res              2048 drivers/mmc/host/mmci.c 		 amba_rev(dev), (unsigned long long)dev->res.start,
res              2179 drivers/mmc/host/mtk-sd.c 	struct resource *res;
res              2197 drivers/mmc/host/mtk-sd.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              2198 drivers/mmc/host/mtk-sd.c 	host->base = devm_ioremap_resource(&pdev->dev, res);
res              2204 drivers/mmc/host/mtk-sd.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res              2205 drivers/mmc/host/mtk-sd.c 	if (res) {
res              2206 drivers/mmc/host/mtk-sd.c 		host->top_base = devm_ioremap_resource(&pdev->dev, res);
res              1000 drivers/mmc/host/mxcmmc.c 	struct resource *res;
res              1011 drivers/mmc/host/mxcmmc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1022 drivers/mmc/host/mxcmmc.c 	host->base = devm_ioremap_resource(&pdev->dev, res);
res              1028 drivers/mmc/host/mxcmmc.c 	host->phys_base = res->start;
res              1126 drivers/mmc/host/mxcmmc.c 		res = platform_get_resource(pdev, IORESOURCE_DMA, 0);
res              1127 drivers/mmc/host/mxcmmc.c 		if (res) {
res              1128 drivers/mmc/host/mxcmmc.c 			host->dmareq = res->start;
res               703 drivers/mmc/host/omap.c 	char res[64], *buf = res;
res               710 drivers/mmc/host/omap.c 	dev_vdbg(mmc_dev(host->mmc), "%s\n", res);
res              1327 drivers/mmc/host/omap.c 	struct resource *res;
res              1349 drivers/mmc/host/omap.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1350 drivers/mmc/host/omap.c 	host->virt_base = devm_ioremap_resource(&pdev->dev, res);
res              1374 drivers/mmc/host/omap.c 	host->phys_base = res->start;
res               946 drivers/mmc/host/omap_hsmmc.c 	char res[256];
res               947 drivers/mmc/host/omap_hsmmc.c 	char *buf = res;
res               959 drivers/mmc/host/omap_hsmmc.c 	dev_vdbg(mmc_dev(host->mmc), "%s\n", res);
res              1820 drivers/mmc/host/omap_hsmmc.c 	struct resource *res;
res              1845 drivers/mmc/host/omap_hsmmc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1847 drivers/mmc/host/omap_hsmmc.c 	if (res == NULL || irq < 0)
res              1850 drivers/mmc/host/omap_hsmmc.c 	base = devm_ioremap_resource(&pdev->dev, res);
res              1871 drivers/mmc/host/omap_hsmmc.c 	host->mapbase	= res->start + pdata->reg_offset;
res                53 drivers/mmc/host/pxamci.c 	struct resource		*res;
res               183 drivers/mmc/host/pxamci.c 	config.src_addr = host->res->start + MMC_RXFIFO;
res               184 drivers/mmc/host/pxamci.c 	config.dst_addr = host->res->start + MMC_TXFIFO;
res               688 drivers/mmc/host/pxamci.c 	host->res = r;
res               650 drivers/mmc/host/renesas_sdhi_core.c 	struct resource *res;
res               659 drivers/mmc/host/renesas_sdhi_core.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               660 drivers/mmc/host/renesas_sdhi_core.c 	if (!res)
res               751 drivers/mmc/host/renesas_sdhi_core.c 	if (!host->bus_shift && resource_size(res) > 0x100) /* old way to determine the shift */
res               346 drivers/mmc/host/renesas_sdhi_sys_dmac.c 		struct resource *res = platform_get_resource(host->pdev,
res               352 drivers/mmc/host/renesas_sdhi_sys_dmac.c 		if (!res)
res               368 drivers/mmc/host/renesas_sdhi_sys_dmac.c 		cfg.dst_addr = res->start +
res               422 drivers/mmc/host/s3cmci.c 	int res;
res               435 drivers/mmc/host/s3cmci.c 			res = get_data_buffer(host, &host->pio_bytes,
res               437 drivers/mmc/host/s3cmci.c 			if (res) {
res               488 drivers/mmc/host/s3cmci.c 		res = get_data_buffer(host, &host->pio_bytes, &host->pio_ptr);
res               489 drivers/mmc/host/s3cmci.c 		if (res) {
res               506 drivers/mmc/host/s3cmci.c 	int res;
res               514 drivers/mmc/host/s3cmci.c 			res = get_data_buffer(host, &host->pio_bytes,
res               516 drivers/mmc/host/s3cmci.c 			if (res) {
res              1130 drivers/mmc/host/s3cmci.c 		int res = s3cmci_setup_data(host, cmd->data);
res              1134 drivers/mmc/host/s3cmci.c 		if (res) {
res              1135 drivers/mmc/host/s3cmci.c 			dbg(host, dbg_err, "setup data error %d\n", res);
res              1136 drivers/mmc/host/s3cmci.c 			cmd->error = res;
res              1137 drivers/mmc/host/s3cmci.c 			cmd->data->error = res;
res              1144 drivers/mmc/host/s3cmci.c 			res = s3cmci_prepare_dma(host, cmd->data);
res              1146 drivers/mmc/host/s3cmci.c 			res = s3cmci_prepare_pio(host, cmd->data);
res              1148 drivers/mmc/host/s3cmci.c 		if (res) {
res              1149 drivers/mmc/host/s3cmci.c 			dbg(host, dbg_err, "data prepare error %d\n", res);
res              1150 drivers/mmc/host/s3cmci.c 			cmd->error = res;
res              1151 drivers/mmc/host/s3cmci.c 			cmd->data->error = res;
res                31 drivers/mmc/host/sdhci-brcmstb.c 	int res;
res                38 drivers/mmc/host/sdhci-brcmstb.c 	res = clk_prepare_enable(clk);
res                39 drivers/mmc/host/sdhci-brcmstb.c 	if (res)
res                40 drivers/mmc/host/sdhci-brcmstb.c 		return res;
res                44 drivers/mmc/host/sdhci-brcmstb.c 		res = PTR_ERR(host);
res                49 drivers/mmc/host/sdhci-brcmstb.c 	res = mmc_of_parse(host->mmc);
res                50 drivers/mmc/host/sdhci-brcmstb.c 	if (res)
res                67 drivers/mmc/host/sdhci-brcmstb.c 	res = sdhci_add_host(host);
res                68 drivers/mmc/host/sdhci-brcmstb.c 	if (res)
res                73 drivers/mmc/host/sdhci-brcmstb.c 	return res;
res                79 drivers/mmc/host/sdhci-brcmstb.c 	return res;
res                25 drivers/mmc/host/sdhci-of-aspeed.c 	struct resource *res;
res               129 drivers/mmc/host/sdhci-of-aspeed.c 					      struct resource *res)
res               133 drivers/mmc/host/sdhci-of-aspeed.c 	if (!res || resource_type(res) != IORESOURCE_MEM)
res               136 drivers/mmc/host/sdhci-of-aspeed.c 	if (res->start < dev->parent->res->start)
res               139 drivers/mmc/host/sdhci-of-aspeed.c 	delta = res->start - dev->parent->res->start;
res               151 drivers/mmc/host/sdhci-of-aspeed.c 	struct resource *res;
res               163 drivers/mmc/host/sdhci-of-aspeed.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               164 drivers/mmc/host/sdhci-of-aspeed.c 	slot = aspeed_sdhci_calculate_slot(dev, res);
res               260 drivers/mmc/host/sdhci-of-aspeed.c 	sdc->res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               261 drivers/mmc/host/sdhci-of-aspeed.c 	sdc->regs = devm_ioremap_resource(&pdev->dev, sdc->res);
res                77 drivers/mmc/host/sdhci-pxav3.c 	struct resource *res;
res                84 drivers/mmc/host/sdhci-pxav3.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res                85 drivers/mmc/host/sdhci-pxav3.c 	if (!res) {
res                90 drivers/mmc/host/sdhci-pxav3.c 	regs = ioremap(res->start, resource_size(res));
res               124 drivers/mmc/host/sdhci-pxav3.c 	struct resource *res;
res               132 drivers/mmc/host/sdhci-pxav3.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
res               134 drivers/mmc/host/sdhci-pxav3.c 	if (res) {
res               135 drivers/mmc/host/sdhci-pxav3.c 		pxa->sdio3_conf_reg = devm_ioremap_resource(&pdev->dev, res);
res               484 drivers/mmc/host/sdhci-s3c.c 	struct resource *res;
res               558 drivers/mmc/host/sdhci-s3c.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               559 drivers/mmc/host/sdhci-s3c.c 	host->ioaddr = devm_ioremap_resource(&pdev->dev, res);
res               351 drivers/mmc/host/sdhci-st.c 	struct resource *res;
res               401 drivers/mmc/host/sdhci-st.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
res               403 drivers/mmc/host/sdhci-st.c 	pdata->top_ioaddr = devm_ioremap_resource(&pdev->dev, res);
res               438 drivers/mmc/host/sdhci_am654.c 	struct resource *res;
res               471 drivers/mmc/host/sdhci_am654.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res               472 drivers/mmc/host/sdhci_am654.c 	base = devm_ioremap_resource(dev, res);
res               116 drivers/mmc/host/sdhci_f_sdh30.c 	struct resource *res;
res               150 drivers/mmc/host/sdhci_f_sdh30.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               151 drivers/mmc/host/sdhci_f_sdh30.c 	host->ioaddr = devm_ioremap_resource(&pdev->dev, res);
res               404 drivers/mmc/host/sh_mmcif.c 	struct resource *res;
res               407 drivers/mmc/host/sh_mmcif.c 	res = platform_get_resource(host->pd, IORESOURCE_MEM, 0);
res               411 drivers/mmc/host/sh_mmcif.c 		cfg.src_addr = res->start + MMCIF_CE_DATA;
res               414 drivers/mmc/host/sh_mmcif.c 		cfg.dst_addr = res->start + MMCIF_CE_DATA;
res              1391 drivers/mmc/host/sh_mmcif.c 	struct resource *res;
res              1400 drivers/mmc/host/sh_mmcif.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1401 drivers/mmc/host/sh_mmcif.c 	reg = devm_ioremap_resource(dev, res);
res               132 drivers/mmc/host/tmio_mmc.c 	struct resource *res;
res               155 drivers/mmc/host/tmio_mmc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               156 drivers/mmc/host/tmio_mmc.c 	if (!res) {
res               168 drivers/mmc/host/tmio_mmc.c 	host->bus_shift = resource_size(res) >> 10;
res              1111 drivers/mmc/host/tmio_mmc_core.c 	struct resource *res;
res              1115 drivers/mmc/host/tmio_mmc_core.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1116 drivers/mmc/host/tmio_mmc_core.c 	ctl = devm_ioremap_resource(&pdev->dev, res);
res              1735 drivers/mmc/host/usdhi6rol0.c 	struct resource *res;
res              1785 drivers/mmc/host/usdhi6rol0.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1786 drivers/mmc/host/usdhi6rol0.c 	host->base = devm_ioremap_resource(dev, res);
res              1836 drivers/mmc/host/usdhi6rol0.c 	usdhi6_dma_request(host, res->start);
res               885 drivers/mmc/host/wmt-sdmmc.c 	struct resource *res;
res               913 drivers/mmc/host/wmt-sdmmc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               914 drivers/mmc/host/wmt-sdmmc.c 	release_mem_region(res->start, resource_size(res));
res               137 drivers/mtd/chips/cfi_util.c 	unsigned long onestat, res = 0;
res               161 drivers/mtd/chips/cfi_util.c 	res = onestat;
res               166 drivers/mtd/chips/cfi_util.c 		res |= (onestat >> (chip_mode * 32));
res               170 drivers/mtd/chips/cfi_util.c 		res |= (onestat >> (chip_mode * 16));
res               173 drivers/mtd/chips/cfi_util.c 		res |= (onestat >> (chip_mode * 8));
res               185 drivers/mtd/chips/cfi_util.c 		res = cfi16_to_cpu(map, res);
res               188 drivers/mtd/chips/cfi_util.c 		res = cfi32_to_cpu(map, res);
res               192 drivers/mtd/chips/cfi_util.c 	return res;
res               290 drivers/mtd/devices/bcm47xxsflash.c 	struct resource *res;
res               297 drivers/mtd/devices/bcm47xxsflash.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               298 drivers/mtd/devices/bcm47xxsflash.c 	if (!res) {
res               302 drivers/mtd/devices/bcm47xxsflash.c 	if (!devm_request_mem_region(dev, res->start, resource_size(res),
res               303 drivers/mtd/devices/bcm47xxsflash.c 				     res->name)) {
res               304 drivers/mtd/devices/bcm47xxsflash.c 		dev_err(dev, "can't request region for resource %pR\n", res);
res               323 drivers/mtd/devices/bcm47xxsflash.c 		b47s->window = ioremap_nocache(res->start, resource_size(res));
res               325 drivers/mtd/devices/bcm47xxsflash.c 		b47s->window = ioremap_cache(res->start, resource_size(res));
res               327 drivers/mtd/devices/bcm47xxsflash.c 		dev_err(dev, "ioremap failed for resource %pR\n", res);
res              2020 drivers/mtd/devices/st_spi_fsm.c 	struct resource *res;
res              2037 drivers/mtd/devices/st_spi_fsm.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              2038 drivers/mtd/devices/st_spi_fsm.c 	if (!res) {
res              2043 drivers/mtd/devices/st_spi_fsm.c 	fsm->base = devm_ioremap_resource(&pdev->dev, res);
res              2046 drivers/mtd/devices/st_spi_fsm.c 			"Failed to reserve memory region %pR\n", res);
res                65 drivers/mtd/hyperbus/hyperbus-core.c 	struct resource res;
res                81 drivers/mtd/hyperbus/hyperbus-core.c 	ret = of_address_to_resource(np, 0, &res);
res                87 drivers/mtd/hyperbus/hyperbus-core.c 	map->size = resource_size(&res);
res                88 drivers/mtd/hyperbus/hyperbus-core.c 	map->virt = devm_ioremap_resource(dev, &res);
res               140 drivers/mtd/inftlcore.c 	int res;
res               148 drivers/mtd/inftlcore.c 	res = mtd_read_oob(mtd, offs & ~(mtd->writesize - 1), &ops);
res               150 drivers/mtd/inftlcore.c 	return res;
res               160 drivers/mtd/inftlcore.c 	int res;
res               168 drivers/mtd/inftlcore.c 	res = mtd_write_oob(mtd, offs & ~(mtd->writesize - 1), &ops);
res               170 drivers/mtd/inftlcore.c 	return res;
res               180 drivers/mtd/inftlcore.c 	int res;
res               189 drivers/mtd/inftlcore.c 	res = mtd_write_oob(mtd, offs & ~(mtd->writesize - 1), &ops);
res               191 drivers/mtd/inftlcore.c 	return res;
res               149 drivers/mtd/maps/ixp4xx.c 	struct resource *res;
res                40 drivers/mtd/maps/lantiq-flash.c 	struct resource *res;
res               121 drivers/mtd/maps/lantiq-flash.c 	ltq_mtd->res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               122 drivers/mtd/maps/lantiq-flash.c 	if (!ltq_mtd->res) {
res               132 drivers/mtd/maps/lantiq-flash.c 	ltq_mtd->map->phys = ltq_mtd->res->start;
res               133 drivers/mtd/maps/lantiq-flash.c 	ltq_mtd->map->size = resource_size(ltq_mtd->res);
res               134 drivers/mtd/maps/lantiq-flash.c 	ltq_mtd->map->virt = devm_ioremap_resource(&pdev->dev, ltq_mtd->res);
res               276 drivers/mtd/maps/physmap-core.c 	const char **res;
res               283 drivers/mtd/maps/physmap-core.c 	res = devm_kcalloc(&dev->dev, count + 1, sizeof(*res), GFP_KERNEL);
res               284 drivers/mtd/maps/physmap-core.c 	if (!res)
res               287 drivers/mtd/maps/physmap-core.c 	count = of_property_read_string_array(dp, "linux,part-probe", res,
res               292 drivers/mtd/maps/physmap-core.c 	return res;
res               491 drivers/mtd/maps/physmap-core.c 		struct resource *res;
res               493 drivers/mtd/maps/physmap-core.c 		res = platform_get_resource(dev, IORESOURCE_MEM, i);
res               494 drivers/mtd/maps/physmap-core.c 		info->maps[i].virt = devm_ioremap_resource(&dev->dev, res);
res               501 drivers/mtd/maps/physmap-core.c 			   res);
res               506 drivers/mtd/maps/physmap-core.c 			info->maps[i].phys = res->start;
res               508 drivers/mtd/maps/physmap-core.c 		info->win_order = get_bitmask_order(resource_size(res)) - 1;
res                93 drivers/mtd/maps/pismo.c 	struct resource res = { };
res               100 drivers/mtd/maps/pismo.c 	res.start = base;
res               101 drivers/mtd/maps/pismo.c 	res.end = base + region->size - 1;
res               102 drivers/mtd/maps/pismo.c 	res.flags = IORESOURCE_MEM;
res               110 drivers/mtd/maps/pismo.c 		ret = platform_device_add_resources(dev, &res, 1);
res               101 drivers/mtd/maps/plat-ram.c 	struct resource *res;
res               126 drivers/mtd/maps/plat-ram.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               127 drivers/mtd/maps/plat-ram.c 	info->map.virt = devm_ioremap_resource(&pdev->dev, res);
res               134 drivers/mtd/maps/plat-ram.c 	dev_dbg(&pdev->dev, "got platform resource %p (0x%llx)\n", res,
res               135 drivers/mtd/maps/plat-ram.c 		(unsigned long long)res->start);
res               139 drivers/mtd/maps/plat-ram.c 	info->map.phys = res->start;
res               140 drivers/mtd/maps/plat-ram.c 	info->map.size = resource_size(res);
res                50 drivers/mtd/maps/pxa2xx-flash.c 	struct resource *res;
res                52 drivers/mtd/maps/pxa2xx-flash.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                53 drivers/mtd/maps/pxa2xx-flash.c 	if (!res)
res                62 drivers/mtd/maps/pxa2xx-flash.c 	info->map.phys = res->start;
res                63 drivers/mtd/maps/pxa2xx-flash.c 	info->map.size = resource_size(res);
res                48 drivers/mtd/maps/rbtx4939-flash.c 	struct resource *res;
res                57 drivers/mtd/maps/rbtx4939-flash.c 	res = platform_get_resource(dev, IORESOURCE_MEM, 0);
res                58 drivers/mtd/maps/rbtx4939-flash.c 	if (!res)
res                67 drivers/mtd/maps/rbtx4939-flash.c 	size = resource_size(res);
res                68 drivers/mtd/maps/rbtx4939-flash.c 	pr_notice("rbtx4939 platform flash device: %pR\n", res);
res                70 drivers/mtd/maps/rbtx4939-flash.c 	if (!devm_request_mem_region(&dev->dev, res->start, size,
res                75 drivers/mtd/maps/rbtx4939-flash.c 	info->map.phys = res->start;
res                67 drivers/mtd/maps/sa1100-flash.c static int sa1100_probe_subdev(struct sa_subdev_info *subdev, struct resource *res)
res                73 drivers/mtd/maps/sa1100-flash.c 	phys = res->start;
res                74 drivers/mtd/maps/sa1100-flash.c 	size = res->end - phys + 1;
res               193 drivers/mtd/maps/sa1100-flash.c 		struct resource *res;
res               195 drivers/mtd/maps/sa1100-flash.c 		res = platform_get_resource(pdev, IORESOURCE_MEM, i);
res               196 drivers/mtd/maps/sa1100-flash.c 		if (!res)
res               203 drivers/mtd/maps/sa1100-flash.c 		ret = sa1100_probe_subdev(subdev, res);
res               502 drivers/mtd/maps/vmu-flash.c 	unsigned short *res;
res               513 drivers/mtd/maps/vmu-flash.c 	res = (unsigned short *) (mq->recvbuf->buf);
res               514 drivers/mtd/maps/vmu-flash.c 	card->tempA = res[12];
res               515 drivers/mtd/maps/vmu-flash.c 	card->tempB = res[6];
res               149 drivers/mtd/mtd_blkdevs.c 		blk_status_t res;
res               172 drivers/mtd/mtd_blkdevs.c 		res = do_blktrans_request(dev->tr, dev, req);
res               175 drivers/mtd/mtd_blkdevs.c 		if (!blk_update_request(req, res, blk_rq_cur_bytes(req))) {
res               176 drivers/mtd/mtd_blkdevs.c 			__blk_mq_end_request(req, res);
res               548 drivers/mtd/mtdconcat.c 	int i, res = 0;
res               551 drivers/mtd/mtdconcat.c 		return res;
res               561 drivers/mtd/mtdconcat.c 		res = mtd_block_isbad(subdev, ofs);
res               565 drivers/mtd/mtdconcat.c 	return res;
res                70 drivers/mtd/mtdpart.c 	int res;
res                73 drivers/mtd/mtdpart.c 	res = part->parent->_read(part->parent, from + part->offset, len,
res                75 drivers/mtd/mtdpart.c 	if (unlikely(mtd_is_eccerr(res)))
res                81 drivers/mtd/mtdpart.c 	return res;
res               105 drivers/mtd/mtdpart.c 	int res;
res               108 drivers/mtd/mtdpart.c 	res = part->parent->_read_oob(part->parent, from + part->offset, ops);
res               109 drivers/mtd/mtdpart.c 	if (unlikely(mtd_is_eccerr(res)))
res               115 drivers/mtd/mtdpart.c 	return res;
res               264 drivers/mtd/mtdpart.c 	int res;
res               267 drivers/mtd/mtdpart.c 	res = part->parent->_block_markbad(part->parent, ofs);
res               268 drivers/mtd/mtdpart.c 	if (!res)
res               270 drivers/mtd/mtdpart.c 	return res;
res                36 drivers/mtd/nand/onenand/generic.c 	struct resource *res = pdev->resource;
res                37 drivers/mtd/nand/onenand/generic.c 	unsigned long size = resource_size(res);
res                44 drivers/mtd/nand/onenand/generic.c 	if (!request_mem_region(res->start, size, dev_name(&pdev->dev))) {
res                49 drivers/mtd/nand/onenand/generic.c 	info->onenand.base = ioremap(res->start, size);
res                76 drivers/mtd/nand/onenand/generic.c 	release_mem_region(res->start, size);
res                86 drivers/mtd/nand/onenand/generic.c 	struct resource *res = pdev->resource;
res                87 drivers/mtd/nand/onenand/generic.c 	unsigned long size = resource_size(res);
res                91 drivers/mtd/nand/onenand/generic.c 		release_mem_region(res->start, size);
res               464 drivers/mtd/nand/onenand/omap2.c 	struct resource *res;
res               470 drivers/mtd/nand/onenand/omap2.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               471 drivers/mtd/nand/onenand/omap2.c 	if (!res) {
res               489 drivers/mtd/nand/onenand/omap2.c 	c->phys_base = res->start;
res               491 drivers/mtd/nand/onenand/omap2.c 	c->onenand.base = devm_ioremap_resource(dev, res);
res               149 drivers/mtd/nand/onenand/onenand_bbt.c 	uint8_t res;
res               153 drivers/mtd/nand/onenand/onenand_bbt.c 	res = (bbm->bbt[block >> 3] >> (block & 0x06)) & 0x03;
res               156 drivers/mtd/nand/onenand/onenand_bbt.c 		(unsigned int) offs, block >> 1, res);
res               158 drivers/mtd/nand/onenand/onenand_bbt.c 	switch ((int) res) {
res               104 drivers/mtd/nand/raw/ams-delta.c 	u8 res;
res               106 drivers/mtd/nand/raw/ams-delta.c 	DECLARE_BITMAP(values, BITS_PER_TYPE(res)) = { 0, };
res               116 drivers/mtd/nand/raw/ams-delta.c 	res = values[0];
res               117 drivers/mtd/nand/raw/ams-delta.c 	return res;
res              1595 drivers/mtd/nand/raw/atmel/nand-controller.c 		struct resource res;
res              1598 drivers/mtd/nand/raw/atmel/nand-controller.c 		ret = of_address_to_resource(np, 0, &res);
res              1615 drivers/mtd/nand/raw/atmel/nand-controller.c 		nand->cs[i].io.dma = res.start;
res              1616 drivers/mtd/nand/raw/atmel/nand-controller.c 		nand->cs[i].io.virt = devm_ioremap_resource(nc->dev, &res);
res              1719 drivers/mtd/nand/raw/atmel/nand-controller.c 	struct resource *res;
res              1732 drivers/mtd/nand/raw/atmel/nand-controller.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1733 drivers/mtd/nand/raw/atmel/nand-controller.c 	nand->cs[0].io.virt = devm_ioremap_resource(dev, res);
res              1737 drivers/mtd/nand/raw/atmel/nand-controller.c 	nand->cs[0].io.dma = res->start;
res              2081 drivers/mtd/nand/raw/atmel/nand-controller.c 	struct resource res;
res              2115 drivers/mtd/nand/raw/atmel/nand-controller.c 	ret = of_address_to_resource(nfc_np, 0, &res);
res              2122 drivers/mtd/nand/raw/atmel/nand-controller.c 	iomem = devm_ioremap_resource(dev, &res);
res              2129 drivers/mtd/nand/raw/atmel/nand-controller.c 	regmap_conf.max_register = resource_size(&res) - 4;
res              2138 drivers/mtd/nand/raw/atmel/nand-controller.c 	ret = of_address_to_resource(nfc_np, 1, &res);
res              2145 drivers/mtd/nand/raw/atmel/nand-controller.c 	iomem = devm_ioremap_resource(dev, &res);
res              2152 drivers/mtd/nand/raw/atmel/nand-controller.c 	regmap_conf.max_register = resource_size(&res) - 4;
res              2161 drivers/mtd/nand/raw/atmel/nand-controller.c 	ret = of_address_to_resource(nfc_np, 2, &res);
res              2168 drivers/mtd/nand/raw/atmel/nand-controller.c 	nc->sram.virt = devm_ioremap_resource(dev, &res);
res              2174 drivers/mtd/nand/raw/atmel/nand-controller.c 	nc->sram.dma = res.start;
res               837 drivers/mtd/nand/raw/atmel/pmecc.c 	struct resource *res;
res               847 drivers/mtd/nand/raw/atmel/pmecc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, pmecc_res_idx);
res               848 drivers/mtd/nand/raw/atmel/pmecc.c 	pmecc->regs.base = devm_ioremap_resource(dev, res);
res               852 drivers/mtd/nand/raw/atmel/pmecc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, errloc_res_idx);
res               853 drivers/mtd/nand/raw/atmel/pmecc.c 	pmecc->regs.errloc = devm_ioremap_resource(dev, res);
res               864 drivers/mtd/nand/raw/atmel/pmecc.c static void devm_atmel_pmecc_put(struct device *dev, void *res)
res               866 drivers/mtd/nand/raw/atmel/pmecc.c 	struct atmel_pmecc **pmecc = res;
res                64 drivers/mtd/nand/raw/brcmnand/bcm63138_nand.c 	struct resource *res;
res                71 drivers/mtd/nand/raw/brcmnand/bcm63138_nand.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "nand-int-base");
res                72 drivers/mtd/nand/raw/brcmnand/bcm63138_nand.c 	priv->base = devm_ioremap_resource(dev, res);
res                91 drivers/mtd/nand/raw/brcmnand/bcm6368_nand.c 	struct resource *res;
res                98 drivers/mtd/nand/raw/brcmnand/bcm6368_nand.c 	res = platform_get_resource_byname(pdev,
res               100 drivers/mtd/nand/raw/brcmnand/bcm6368_nand.c 	priv->base = devm_ioremap_resource(dev, res);
res              2545 drivers/mtd/nand/raw/brcmnand/brcmnand.c 	struct resource *res;
res              2569 drivers/mtd/nand/raw/brcmnand/brcmnand.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              2570 drivers/mtd/nand/raw/brcmnand/brcmnand.c 	ctrl->nand_base = devm_ioremap_resource(dev, res);
res              2597 drivers/mtd/nand/raw/brcmnand/brcmnand.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "nand-cache");
res              2598 drivers/mtd/nand/raw/brcmnand/brcmnand.c 	if (res) {
res              2599 drivers/mtd/nand/raw/brcmnand/brcmnand.c 		ctrl->nand_fc = devm_ioremap_resource(dev, res);
res              2610 drivers/mtd/nand/raw/brcmnand/brcmnand.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "flash-dma");
res              2611 drivers/mtd/nand/raw/brcmnand/brcmnand.c 	if (res) {
res              2612 drivers/mtd/nand/raw/brcmnand/brcmnand.c 		ctrl->flash_dma_base = devm_ioremap_resource(dev, res);
res               106 drivers/mtd/nand/raw/brcmnand/iproc_nand.c 	struct resource *res;
res               115 drivers/mtd/nand/raw/brcmnand/iproc_nand.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "iproc-idm");
res               116 drivers/mtd/nand/raw/brcmnand/iproc_nand.c 	priv->idm_base = devm_ioremap_resource(dev, res);
res               120 drivers/mtd/nand/raw/brcmnand/iproc_nand.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "iproc-ext");
res               121 drivers/mtd/nand/raw/brcmnand/iproc_nand.c 	priv->ext_base = devm_ioremap_resource(dev, res);
res               149 drivers/mtd/nand/raw/denali_dt.c 	struct resource *res;
res               175 drivers/mtd/nand/raw/denali_dt.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "denali_reg");
res               176 drivers/mtd/nand/raw/denali_dt.c 	denali->reg = devm_ioremap_resource(dev, res);
res               180 drivers/mtd/nand/raw/denali_dt.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "nand_data");
res               181 drivers/mtd/nand/raw/denali_dt.c 	denali->host = devm_ioremap_resource(dev, res);
res               851 drivers/mtd/nand/raw/fsl_elbc_nand.c 	struct resource res;
res               867 drivers/mtd/nand/raw/fsl_elbc_nand.c 	ret = of_address_to_resource(node, 0, &res);
res               879 drivers/mtd/nand/raw/fsl_elbc_nand.c 		     == fsl_lbc_addr(res.start))
res               914 drivers/mtd/nand/raw/fsl_elbc_nand.c 	priv->vbase = ioremap(res.start, resource_size(&res));
res               922 drivers/mtd/nand/raw/fsl_elbc_nand.c 	mtd->name = kasprintf(GFP_KERNEL, "%llx.flash", (u64)res.start);
res               944 drivers/mtd/nand/raw/fsl_elbc_nand.c 		(unsigned long long)res.start, priv->bank);
res               644 drivers/mtd/nand/raw/fsl_ifc_nand.c 	int i, res, bitflips = 0;
res               651 drivers/mtd/nand/raw/fsl_ifc_nand.c 		res = nand_check_erased_ecc_chunk(buf, pkt_size, ecc, ecc_size,
res               654 drivers/mtd/nand/raw/fsl_ifc_nand.c 		if (res < 0)
res               657 drivers/mtd/nand/raw/fsl_ifc_nand.c 			mtd->ecc_stats.corrected += res;
res               659 drivers/mtd/nand/raw/fsl_ifc_nand.c 		bitflips = max(res, bitflips);
res               979 drivers/mtd/nand/raw/fsl_ifc_nand.c 	struct resource res;
res               992 drivers/mtd/nand/raw/fsl_ifc_nand.c 	ret = of_address_to_resource(node, 0, &res);
res              1000 drivers/mtd/nand/raw/fsl_ifc_nand.c 		if (match_bank(fsl_ifc_ctrl_dev->gregs, bank, res.start))
res              1038 drivers/mtd/nand/raw/fsl_ifc_nand.c 	priv->vbase = ioremap(res.start, resource_size(&res));
res              1059 drivers/mtd/nand/raw/fsl_ifc_nand.c 	mtd->name = kasprintf(GFP_KERNEL, "%llx.flash", (u64)res.start);
res              1081 drivers/mtd/nand/raw/fsl_ifc_nand.c 		 (unsigned long long)res.start, priv->bank);
res               975 drivers/mtd/nand/raw/fsmc_nand.c 	struct resource *res;
res               993 drivers/mtd/nand/raw/fsmc_nand.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "nand_data");
res               994 drivers/mtd/nand/raw/fsmc_nand.c 	host->data_va = devm_ioremap_resource(&pdev->dev, res);
res               998 drivers/mtd/nand/raw/fsmc_nand.c 	host->data_pa = (dma_addr_t)res->start;
res              1000 drivers/mtd/nand/raw/fsmc_nand.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "nand_addr");
res              1001 drivers/mtd/nand/raw/fsmc_nand.c 	host->addr_va = devm_ioremap_resource(&pdev->dev, res);
res              1005 drivers/mtd/nand/raw/fsmc_nand.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "nand_cmd");
res              1006 drivers/mtd/nand/raw/fsmc_nand.c 	host->cmd_va = devm_ioremap_resource(&pdev->dev, res);
res              1010 drivers/mtd/nand/raw/fsmc_nand.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "fsmc_regs");
res              1011 drivers/mtd/nand/raw/fsmc_nand.c 	base = devm_ioremap_resource(&pdev->dev, res);
res              1033 drivers/mtd/nand/raw/fsmc_nand.c 		pid |= (readl(base + resource_size(res) - 0x20 + 4 * i) &
res               210 drivers/mtd/nand/raw/gpio.c 	struct resource *res;
res               223 drivers/mtd/nand/raw/gpio.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               224 drivers/mtd/nand/raw/gpio.c 	chip->legacy.IO_ADDR_R = devm_ioremap_resource(dev, res);
res               228 drivers/mtd/nand/raw/gpio.c 	res = gpio_nand_get_io_sync(pdev);
res               229 drivers/mtd/nand/raw/gpio.c 	if (res) {
res               230 drivers/mtd/nand/raw/gpio.c 		gpiomtd->io_sync = devm_ioremap_resource(dev, res);
res              1098 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 	struct resources *res = &this->resources;
res              1108 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 		res->gpmi_regs = p;
res              1110 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 		res->bch_regs = p;
res               741 drivers/mtd/nand/raw/hisi504_nand.c 	struct resource	  *res;
res               759 drivers/mtd/nand/raw/hisi504_nand.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               760 drivers/mtd/nand/raw/hisi504_nand.c 	host->iobase = devm_ioremap_resource(dev, res);
res               764 drivers/mtd/nand/raw/hisi504_nand.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res               765 drivers/mtd/nand/raw/hisi504_nand.c 	host->mmio = devm_ioremap_resource(dev, res);
res               127 drivers/mtd/nand/raw/ingenic/ingenic_ecc.c 	struct resource *res;
res               137 drivers/mtd/nand/raw/ingenic/ingenic_ecc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               138 drivers/mtd/nand/raw/ingenic/ingenic_ecc.c 	ecc->base = devm_ioremap_resource(dev, res);
res               399 drivers/mtd/nand/raw/lpc32xx_mlc.c 	int res;
res               403 drivers/mtd/nand/raw/lpc32xx_mlc.c 	res = dma_map_sg(host->dma_chan->device->dev, &host->sgl, 1,
res               405 drivers/mtd/nand/raw/lpc32xx_mlc.c 	if (res != 1) {
res               442 drivers/mtd/nand/raw/lpc32xx_mlc.c 	int res;
res               476 drivers/mtd/nand/raw/lpc32xx_mlc.c 			res = lpc32xx_xmit_dma(mtd, dma_buf + i * 512, 512,
res               478 drivers/mtd/nand/raw/lpc32xx_mlc.c 			if (res)
res               479 drivers/mtd/nand/raw/lpc32xx_mlc.c 				return res;
res               508 drivers/mtd/nand/raw/lpc32xx_mlc.c 	int res;
res               524 drivers/mtd/nand/raw/lpc32xx_mlc.c 			res = lpc32xx_xmit_dma(mtd, dma_buf + i * 512, 512,
res               526 drivers/mtd/nand/raw/lpc32xx_mlc.c 			if (res)
res               527 drivers/mtd/nand/raw/lpc32xx_mlc.c 				return res;
res               680 drivers/mtd/nand/raw/lpc32xx_mlc.c 	int res;
res               725 drivers/mtd/nand/raw/lpc32xx_mlc.c 		res = -ENOENT;
res               728 drivers/mtd/nand/raw/lpc32xx_mlc.c 	res = clk_prepare_enable(host->clk);
res               729 drivers/mtd/nand/raw/lpc32xx_mlc.c 	if (res)
res               761 drivers/mtd/nand/raw/lpc32xx_mlc.c 		res = lpc32xx_dma_setup(host);
res               762 drivers/mtd/nand/raw/lpc32xx_mlc.c 		if (res) {
res               763 drivers/mtd/nand/raw/lpc32xx_mlc.c 			res = -EIO;
res               777 drivers/mtd/nand/raw/lpc32xx_mlc.c 		res = -EINVAL;
res               784 drivers/mtd/nand/raw/lpc32xx_mlc.c 		res = -ENXIO;
res               793 drivers/mtd/nand/raw/lpc32xx_mlc.c 	res = nand_scan(nand_chip, 1);
res               794 drivers/mtd/nand/raw/lpc32xx_mlc.c 	if (res)
res               799 drivers/mtd/nand/raw/lpc32xx_mlc.c 	res = mtd_device_register(mtd, host->ncfg->parts,
res               801 drivers/mtd/nand/raw/lpc32xx_mlc.c 	if (res)
res               821 drivers/mtd/nand/raw/lpc32xx_mlc.c 	return res;
res               434 drivers/mtd/nand/raw/lpc32xx_slc.c 	int res;
res               452 drivers/mtd/nand/raw/lpc32xx_slc.c 	res = dma_map_sg(host->dma_chan->device->dev, &host->sgl, 1,
res               454 drivers/mtd/nand/raw/lpc32xx_slc.c 	if (res != 1) {
res               494 drivers/mtd/nand/raw/lpc32xx_slc.c 	int res;
res               533 drivers/mtd/nand/raw/lpc32xx_slc.c 		res = lpc32xx_xmit_dma(mtd, SLC_DMA_DATA(host->io_base_dma),
res               536 drivers/mtd/nand/raw/lpc32xx_slc.c 		if (res)
res               537 drivers/mtd/nand/raw/lpc32xx_slc.c 			return res;
res               544 drivers/mtd/nand/raw/lpc32xx_slc.c 		res = lpc32xx_xmit_dma(mtd, SLC_ECC(host->io_base_dma),
res               546 drivers/mtd/nand/raw/lpc32xx_slc.c 		if (res)
res               547 drivers/mtd/nand/raw/lpc32xx_slc.c 			return res;
res               822 drivers/mtd/nand/raw/lpc32xx_slc.c 	int res;
res               864 drivers/mtd/nand/raw/lpc32xx_slc.c 		res = -ENOENT;
res               867 drivers/mtd/nand/raw/lpc32xx_slc.c 	res = clk_prepare_enable(host->clk);
res               868 drivers/mtd/nand/raw/lpc32xx_slc.c 	if (res)
res               907 drivers/mtd/nand/raw/lpc32xx_slc.c 		res = -ENOMEM;
res               911 drivers/mtd/nand/raw/lpc32xx_slc.c 	res = lpc32xx_nand_dma_setup(host);
res               912 drivers/mtd/nand/raw/lpc32xx_slc.c 	if (res) {
res               913 drivers/mtd/nand/raw/lpc32xx_slc.c 		res = -EIO;
res               919 drivers/mtd/nand/raw/lpc32xx_slc.c 	res = nand_scan(chip, 1);
res               920 drivers/mtd/nand/raw/lpc32xx_slc.c 	if (res)
res               924 drivers/mtd/nand/raw/lpc32xx_slc.c 	res = mtd_device_register(mtd, host->ncfg->parts,
res               926 drivers/mtd/nand/raw/lpc32xx_slc.c 	if (res)
res               940 drivers/mtd/nand/raw/lpc32xx_slc.c 	return res;
res              1371 drivers/mtd/nand/raw/meson_nand.c 	struct resource *res;
res              1388 drivers/mtd/nand/raw/meson_nand.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1389 drivers/mtd/nand/raw/meson_nand.c 	nfc->reg_base = devm_ioremap_resource(dev, res);
res               611 drivers/mtd/nand/raw/mpc5121_nfc.c 	struct resource res;
res               655 drivers/mtd/nand/raw/mpc5121_nfc.c 	retval = of_address_to_resource(dn, 0, &res);
res               667 drivers/mtd/nand/raw/mpc5121_nfc.c 	regs_paddr = res.start;
res               668 drivers/mtd/nand/raw/mpc5121_nfc.c 	regs_size = resource_size(&res);
res               498 drivers/mtd/nand/raw/mtk_ecc.c 	struct resource *res;
res               516 drivers/mtd/nand/raw/mtk_ecc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               517 drivers/mtd/nand/raw/mtk_ecc.c 	ecc->regs = devm_ioremap_resource(dev, res);
res              1495 drivers/mtd/nand/raw/mtk_nand.c 	struct resource *res;
res              1516 drivers/mtd/nand/raw/mtk_nand.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1517 drivers/mtd/nand/raw/mtk_nand.c 	nfc->regs = devm_ioremap_resource(dev, res);
res              1759 drivers/mtd/nand/raw/mxc_nand.c 	struct resource *res;
res              1816 drivers/mtd/nand/raw/mxc_nand.c 		res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1817 drivers/mtd/nand/raw/mxc_nand.c 		host->regs_ip = devm_ioremap_resource(&pdev->dev, res);
res              1821 drivers/mtd/nand/raw/mxc_nand.c 		res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res              1823 drivers/mtd/nand/raw/mxc_nand.c 		res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1826 drivers/mtd/nand/raw/mxc_nand.c 	host->base = devm_ioremap_resource(&pdev->dev, res);
res               320 drivers/mtd/nand/raw/nand_base.c 	int res;
res               327 drivers/mtd/nand/raw/nand_base.c 		res = chip->ecc.read_oob(chip, first_page + page_offset);
res               328 drivers/mtd/nand/raw/nand_base.c 		if (res < 0)
res               329 drivers/mtd/nand/raw/nand_base.c 			return res;
res               334 drivers/mtd/nand/raw/nand_base.c 			res = bad != 0xFF;
res               336 drivers/mtd/nand/raw/nand_base.c 			res = hweight8(bad) < chip->badblockbits;
res               337 drivers/mtd/nand/raw/nand_base.c 		if (res)
res               338 drivers/mtd/nand/raw/nand_base.c 			return res;
res               520 drivers/mtd/nand/raw/nand_base.c 	int ret = 0, res, page_offset;
res               536 drivers/mtd/nand/raw/nand_base.c 		res = nand_do_write_oob(chip,
res               541 drivers/mtd/nand/raw/nand_base.c 			ret = res;
res               584 drivers/mtd/nand/raw/nand_base.c 	int res, ret = 0;
res               606 drivers/mtd/nand/raw/nand_base.c 		res = nand_markbad_bbt(chip, ofs);
res               608 drivers/mtd/nand/raw/nand_base.c 			ret = res;
res               170 drivers/mtd/nand/raw/nand_bbt.c 	int res, ret = 0, i, j, act = 0;
res               193 drivers/mtd/nand/raw/nand_bbt.c 		res = mtd_read(mtd, from, len, &retlen, buf);
res               194 drivers/mtd/nand/raw/nand_bbt.c 		if (res < 0) {
res               195 drivers/mtd/nand/raw/nand_bbt.c 			if (mtd_is_eccerr(res)) {
res               198 drivers/mtd/nand/raw/nand_bbt.c 				return res;
res               199 drivers/mtd/nand/raw/nand_bbt.c 			} else if (mtd_is_bitflip(res)) {
res               202 drivers/mtd/nand/raw/nand_bbt.c 				ret = res;
res               205 drivers/mtd/nand/raw/nand_bbt.c 				return res;
res               264 drivers/mtd/nand/raw/nand_bbt.c 	int res = 0, i;
res               270 drivers/mtd/nand/raw/nand_bbt.c 				res = read_bbt(this, buf, td->pages[i],
res               273 drivers/mtd/nand/raw/nand_bbt.c 			if (res)
res               274 drivers/mtd/nand/raw/nand_bbt.c 				return res;
res               278 drivers/mtd/nand/raw/nand_bbt.c 		res = read_bbt(this, buf, td->pages[0],
res               280 drivers/mtd/nand/raw/nand_bbt.c 		if (res)
res               281 drivers/mtd/nand/raw/nand_bbt.c 			return res;
res               317 drivers/mtd/nand/raw/nand_bbt.c 	int res, ret = 0;
res               328 drivers/mtd/nand/raw/nand_bbt.c 		res = mtd_read_oob(mtd, offs, &ops);
res               329 drivers/mtd/nand/raw/nand_bbt.c 		if (res) {
res               330 drivers/mtd/nand/raw/nand_bbt.c 			if (!mtd_is_bitflip_or_eccerr(res))
res               331 drivers/mtd/nand/raw/nand_bbt.c 				return res;
res               332 drivers/mtd/nand/raw/nand_bbt.c 			else if (mtd_is_eccerr(res) || !ret)
res               333 drivers/mtd/nand/raw/nand_bbt.c 				ret = res;
res               689 drivers/mtd/nand/raw/nand_bbt.c 	int res;
res               694 drivers/mtd/nand/raw/nand_bbt.c 	res = nand_markbad_bbm(this, to);
res               695 drivers/mtd/nand/raw/nand_bbt.c 	if (res)
res               697 drivers/mtd/nand/raw/nand_bbt.c 			res, block);
res               719 drivers/mtd/nand/raw/nand_bbt.c 	int i, res, chip = 0;
res               757 drivers/mtd/nand/raw/nand_bbt.c 			res = block;
res               793 drivers/mtd/nand/raw/nand_bbt.c 			res = mtd_read(mtd, to, len, &retlen, buf);
res               794 drivers/mtd/nand/raw/nand_bbt.c 			if (res < 0) {
res               797 drivers/mtd/nand/raw/nand_bbt.c 					return res;
res               804 drivers/mtd/nand/raw/nand_bbt.c 			res = mtd_read_oob(mtd, to + mtd->writesize, &ops);
res               805 drivers/mtd/nand/raw/nand_bbt.c 			if (res < 0 || ops.oobretlen != ops.ooblen)
res               859 drivers/mtd/nand/raw/nand_bbt.c 		res = nand_erase_nand(this, &einfo, 1);
res               860 drivers/mtd/nand/raw/nand_bbt.c 		if (res < 0) {
res               862 drivers/mtd/nand/raw/nand_bbt.c 				res);
res               867 drivers/mtd/nand/raw/nand_bbt.c 		res = scan_write_bbt(this, to, len, buf,
res               870 drivers/mtd/nand/raw/nand_bbt.c 		if (res < 0) {
res               872 drivers/mtd/nand/raw/nand_bbt.c 				res);
res               886 drivers/mtd/nand/raw/nand_bbt.c 	pr_warn("nand_bbt: error while writing bad block table %d\n", res);
res               887 drivers/mtd/nand/raw/nand_bbt.c 	return res;
res               920 drivers/mtd/nand/raw/nand_bbt.c 	int i, chips, writeops, create, chipsel, res, res2;
res               936 drivers/mtd/nand/raw/nand_bbt.c 		res = res2 = 0;
res               986 drivers/mtd/nand/raw/nand_bbt.c 			res = read_abs_bbt(this, buf, rd, chipsel);
res               987 drivers/mtd/nand/raw/nand_bbt.c 			if (mtd_is_eccerr(res)) {
res              1008 drivers/mtd/nand/raw/nand_bbt.c 		if (mtd_is_bitflip(res) || mtd_is_bitflip(res2))
res              1019 drivers/mtd/nand/raw/nand_bbt.c 			res = write_bbt(this, buf, td, md, chipsel);
res              1020 drivers/mtd/nand/raw/nand_bbt.c 			if (res < 0)
res              1021 drivers/mtd/nand/raw/nand_bbt.c 				return res;
res              1026 drivers/mtd/nand/raw/nand_bbt.c 			res = write_bbt(this, buf, md, td, chipsel);
res              1027 drivers/mtd/nand/raw/nand_bbt.c 			if (res < 0)
res              1028 drivers/mtd/nand/raw/nand_bbt.c 				return res;
res              1044 drivers/mtd/nand/raw/nand_bbt.c 	int len, res = 0;
res              1075 drivers/mtd/nand/raw/nand_bbt.c 		res = write_bbt(this, buf, td, md, chipsel);
res              1076 drivers/mtd/nand/raw/nand_bbt.c 		if (res < 0)
res              1081 drivers/mtd/nand/raw/nand_bbt.c 		res = write_bbt(this, buf, md, td, chipsel);
res              1086 drivers/mtd/nand/raw/nand_bbt.c 	return res;
res              1214 drivers/mtd/nand/raw/nand_bbt.c 	int len, res;
res              1233 drivers/mtd/nand/raw/nand_bbt.c 		if ((res = nand_memory_bbt(this, bd))) {
res              1247 drivers/mtd/nand/raw/nand_bbt.c 		res = -ENOMEM;
res              1259 drivers/mtd/nand/raw/nand_bbt.c 	res = check_create(this, buf, bd);
res              1260 drivers/mtd/nand/raw/nand_bbt.c 	if (res)
res              1276 drivers/mtd/nand/raw/nand_bbt.c 	return res;
res              1417 drivers/mtd/nand/raw/nand_bbt.c 	int block, res;
res              1420 drivers/mtd/nand/raw/nand_bbt.c 	res = bbt_get_entry(this, block);
res              1423 drivers/mtd/nand/raw/nand_bbt.c 		 (unsigned int)offs, block, res);
res              1425 drivers/mtd/nand/raw/nand_bbt.c 	switch (res) {
res              2179 drivers/mtd/nand/raw/omap2.c 	struct resource			*res;
res              2214 drivers/mtd/nand/raw/omap2.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              2215 drivers/mtd/nand/raw/omap2.c 	nand_chip->legacy.IO_ADDR_R = devm_ioremap_resource(&pdev->dev, res);
res              2219 drivers/mtd/nand/raw/omap2.c 	info->phys_base = res->start;
res               384 drivers/mtd/nand/raw/omap_elm.c 	struct resource *res, *irq;
res               399 drivers/mtd/nand/raw/omap_elm.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               400 drivers/mtd/nand/raw/omap_elm.c 	info->elm_base = devm_ioremap_resource(&pdev->dev, res);
res                91 drivers/mtd/nand/raw/orion_nand.c 	struct resource *res;
res               104 drivers/mtd/nand/raw/orion_nand.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               105 drivers/mtd/nand/raw/orion_nand.c 	io_base = devm_ioremap_resource(&pdev->dev, res);
res                81 drivers/mtd/nand/raw/oxnas_nand.c 	struct resource *res;
res                94 drivers/mtd/nand/raw/oxnas_nand.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                95 drivers/mtd/nand/raw/oxnas_nand.c 	oxnas->io_base = devm_ioremap_resource(&pdev->dev, res);
res                81 drivers/mtd/nand/raw/pasemi_nand.c 	struct resource res;
res                85 drivers/mtd/nand/raw/pasemi_nand.c 	err = of_address_to_resource(np, 0, &res);
res                94 drivers/mtd/nand/raw/pasemi_nand.c 	dev_dbg(dev, "pasemi_nand at %pR\n", &res);
res               152 drivers/mtd/nand/raw/pasemi_nand.c 	dev_info(dev, "PA Semi NAND flash at %pR, control at I/O %x\n", &res,
res                29 drivers/mtd/nand/raw/plat_nand.c 	struct resource *res;
res                49 drivers/mtd/nand/raw/plat_nand.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                50 drivers/mtd/nand/raw/plat_nand.c 	data->io_base = devm_ioremap_resource(&pdev->dev, res);
res              2903 drivers/mtd/nand/raw/qcom_nandc.c 	struct resource *res;
res              2933 drivers/mtd/nand/raw/qcom_nandc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              2934 drivers/mtd/nand/raw/qcom_nandc.c 	nandc->base = devm_ioremap_resource(dev, res);
res              2938 drivers/mtd/nand/raw/qcom_nandc.c 	nandc->base_phys = res->start;
res              2939 drivers/mtd/nand/raw/qcom_nandc.c 	nandc->base_dma = dma_map_resource(dev, res->start,
res              2940 drivers/mtd/nand/raw/qcom_nandc.c 					   resource_size(res),
res              2974 drivers/mtd/nand/raw/qcom_nandc.c 	dma_unmap_resource(dev, res->start, resource_size(res),
res              2983 drivers/mtd/nand/raw/qcom_nandc.c 	struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              2995 drivers/mtd/nand/raw/qcom_nandc.c 	dma_unmap_resource(&pdev->dev, nandc->base_dma, resource_size(res),
res              1086 drivers/mtd/nand/raw/s3c2410.c 	struct resource *res;
res              1127 drivers/mtd/nand/raw/s3c2410.c 	res = pdev->resource;
res              1128 drivers/mtd/nand/raw/s3c2410.c 	size = resource_size(res);
res              1133 drivers/mtd/nand/raw/s3c2410.c 	info->regs = devm_ioremap_resource(&pdev->dev, res);
res               486 drivers/mtd/nand/raw/sh_flctl.c 	enum flctl_ecc_res_t res;
res               489 drivers/mtd/nand/raw/sh_flctl.c 	res = wait_recfifo_ready(flctl , sector);
res               491 drivers/mtd/nand/raw/sh_flctl.c 	if (res != FL_ERROR) {
res               498 drivers/mtd/nand/raw/sh_flctl.c 	return res;
res              1113 drivers/mtd/nand/raw/sh_flctl.c 	struct resource *res;
res              1125 drivers/mtd/nand/raw/sh_flctl.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1126 drivers/mtd/nand/raw/sh_flctl.c 	flctl->reg = devm_ioremap_resource(&pdev->dev, res);
res              1129 drivers/mtd/nand/raw/sh_flctl.c 	flctl->fifo = res->start + 0x24; /* FLDTFIFO */
res               127 drivers/mtd/nand/raw/socrates_nand.c 	int res;
res               164 drivers/mtd/nand/raw/socrates_nand.c 	res = nand_scan(nand_chip, 1);
res               165 drivers/mtd/nand/raw/socrates_nand.c 	if (res)
res               168 drivers/mtd/nand/raw/socrates_nand.c 	res = mtd_device_register(mtd, NULL, 0);
res               169 drivers/mtd/nand/raw/socrates_nand.c 	if (!res)
res               170 drivers/mtd/nand/raw/socrates_nand.c 		return res;
res               176 drivers/mtd/nand/raw/socrates_nand.c 	return res;
res              1867 drivers/mtd/nand/raw/stm32_fmc2_nand.c 	struct resource *res;
res              1884 drivers/mtd/nand/raw/stm32_fmc2_nand.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1885 drivers/mtd/nand/raw/stm32_fmc2_nand.c 	fmc2->io_base = devm_ioremap_resource(dev, res);
res              1889 drivers/mtd/nand/raw/stm32_fmc2_nand.c 	fmc2->io_phys_addr = res->start;
res              1896 drivers/mtd/nand/raw/stm32_fmc2_nand.c 		res = platform_get_resource(pdev, IORESOURCE_MEM, mem_region);
res              1897 drivers/mtd/nand/raw/stm32_fmc2_nand.c 		fmc2->data_base[chip_cs] = devm_ioremap_resource(dev, res);
res              1901 drivers/mtd/nand/raw/stm32_fmc2_nand.c 		fmc2->data_phys_addr[chip_cs] = res->start;
res              1903 drivers/mtd/nand/raw/stm32_fmc2_nand.c 		res = platform_get_resource(pdev, IORESOURCE_MEM,
res              1905 drivers/mtd/nand/raw/stm32_fmc2_nand.c 		fmc2->cmd_base[chip_cs] = devm_ioremap_resource(dev, res);
res              1909 drivers/mtd/nand/raw/stm32_fmc2_nand.c 		res = platform_get_resource(pdev, IORESOURCE_MEM,
res              1911 drivers/mtd/nand/raw/stm32_fmc2_nand.c 		fmc2->addr_base[chip_cs] = devm_ioremap_resource(dev, res);
res               182 drivers/mtd/nand/raw/tango_nand.c 	int i, res, meta_len, bitflips = 0;
res               186 drivers/mtd/nand/raw/tango_nand.c 		res = nand_check_erased_ecc_chunk(buf, pkt_size, ecc, ecc_size,
res               189 drivers/mtd/nand/raw/tango_nand.c 		if (res < 0)
res               192 drivers/mtd/nand/raw/tango_nand.c 			mtd->ecc_stats.corrected += res;
res               194 drivers/mtd/nand/raw/tango_nand.c 		bitflips = max(res, bitflips);
res               204 drivers/mtd/nand/raw/tango_nand.c 	u32 status, res;
res               212 drivers/mtd/nand/raw/tango_nand.c 	res = readl_relaxed(nfc->mem_base + ERROR_REPORT);
res               214 drivers/mtd/nand/raw/tango_nand.c 	if (DECODE_FAIL_PKT_0(res) || DECODE_FAIL_PKT_N(res))
res               219 drivers/mtd/nand/raw/tango_nand.c 		ERR_COUNT_PKT_0(res) + ERR_COUNT_PKT_N(res);
res               221 drivers/mtd/nand/raw/tango_nand.c 	return max(ERR_COUNT_PKT_0(res), ERR_COUNT_PKT_N(res));
res               239 drivers/mtd/nand/raw/tango_nand.c 	u32 res, val;
res               263 drivers/mtd/nand/raw/tango_nand.c 	res = wait_for_completion_timeout(&tx_done, HZ);
res               264 drivers/mtd/nand/raw/tango_nand.c 	if (res > 0)
res               280 drivers/mtd/nand/raw/tango_nand.c 	int err, res, len = mtd->writesize;
res               289 drivers/mtd/nand/raw/tango_nand.c 	res = decode_error_report(chip);
res               290 drivers/mtd/nand/raw/tango_nand.c 	if (res < 0) {
res               292 drivers/mtd/nand/raw/tango_nand.c 		res = check_erased_page(chip, buf);
res               295 drivers/mtd/nand/raw/tango_nand.c 	return res;
res               450 drivers/mtd/nand/raw/tango_nand.c static int oob_ecc(struct mtd_info *mtd, int idx, struct mtd_oob_region *res)
res               458 drivers/mtd/nand/raw/tango_nand.c 	res->offset = BBM_SIZE + METADATA_SIZE + ecc->bytes * idx;
res               459 drivers/mtd/nand/raw/tango_nand.c 	res->length = ecc->bytes;
res               464 drivers/mtd/nand/raw/tango_nand.c static int oob_free(struct mtd_info *mtd, int idx, struct mtd_oob_region *res)
res               536 drivers/mtd/nand/raw/tango_nand.c 	int err, res;
res               547 drivers/mtd/nand/raw/tango_nand.c 	res = of_property_count_u32_elems(np, "reg");
res               548 drivers/mtd/nand/raw/tango_nand.c 	if (res < 0)
res               549 drivers/mtd/nand/raw/tango_nand.c 		return res;
res               551 drivers/mtd/nand/raw/tango_nand.c 	if (res != 1)
res               620 drivers/mtd/nand/raw/tango_nand.c 	struct resource *res;
res               628 drivers/mtd/nand/raw/tango_nand.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               629 drivers/mtd/nand/raw/tango_nand.c 	nfc->reg_base = devm_ioremap_resource(&pdev->dev, res);
res               633 drivers/mtd/nand/raw/tango_nand.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res               634 drivers/mtd/nand/raw/tango_nand.c 	nfc->mem_base = devm_ioremap_resource(&pdev->dev, res);
res               638 drivers/mtd/nand/raw/tango_nand.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 2);
res               639 drivers/mtd/nand/raw/tango_nand.c 	nfc->pbus_base = devm_ioremap_resource(&pdev->dev, res);
res              1140 drivers/mtd/nand/raw/tegra_nand.c 	struct resource *res;
res              1151 drivers/mtd/nand/raw/tegra_nand.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1152 drivers/mtd/nand/raw/tegra_nand.c 	ctrl->regs = devm_ioremap_resource(&pdev->dev, res);
res               278 drivers/mtd/nand/raw/txx9ndfmc.c 	struct resource *res;
res               283 drivers/mtd/nand/raw/txx9ndfmc.c 	res = platform_get_resource(dev, IORESOURCE_MEM, 0);
res               284 drivers/mtd/nand/raw/txx9ndfmc.c 	drvdata->base = devm_ioremap_resource(&dev->dev, res);
res               813 drivers/mtd/nand/raw/vf610_nfc.c 	struct resource *res;
res               837 drivers/mtd/nand/raw/vf610_nfc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               838 drivers/mtd/nand/raw/vf610_nfc.c 	nfc->regs = devm_ioremap_resource(nfc->dev, res);
res               155 drivers/mtd/nand/raw/xway_nand.c 	struct resource *res;
res               166 drivers/mtd/nand/raw/xway_nand.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               167 drivers/mtd/nand/raw/xway_nand.c 	data->nandaddr = devm_ioremap_resource(&pdev->dev, res);
res               128 drivers/mtd/nftlcore.c 	int res;
res               136 drivers/mtd/nftlcore.c 	res = mtd_read_oob(mtd, offs & ~mask, &ops);
res               138 drivers/mtd/nftlcore.c 	return res;
res               149 drivers/mtd/nftlcore.c 	int res;
res               157 drivers/mtd/nftlcore.c 	res = mtd_write_oob(mtd, offs & ~mask, &ops);
res               159 drivers/mtd/nftlcore.c 	return res;
res               172 drivers/mtd/nftlcore.c 	int res;
res               181 drivers/mtd/nftlcore.c 	res = mtd_write_oob(mtd, offs & ~mask, &ops);
res               183 drivers/mtd/nftlcore.c 	return res;
res               759 drivers/mtd/nftlcore.c 		int res = mtd_read(mtd, ptr, 512, &retlen, buffer);
res               761 drivers/mtd/nftlcore.c 		if (res < 0 && !mtd_is_bitflip(res))
res               437 drivers/mtd/spi-nor/aspeed-smc.c 					  struct resource *res)
res               449 drivers/mtd/spi-nor/aspeed-smc.c 		offset = SEGMENT_ADDR_START(reg) - res->start;
res               646 drivers/mtd/spi-nor/aspeed-smc.c 				      struct resource *res)
res               665 drivers/mtd/spi-nor/aspeed-smc.c 	chip->ahb_base = aspeed_smc_chip_base(chip, res);
res               854 drivers/mtd/spi-nor/aspeed-smc.c 	struct resource *res;
res               873 drivers/mtd/spi-nor/aspeed-smc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               874 drivers/mtd/spi-nor/aspeed-smc.c 	controller->regs = devm_ioremap_resource(dev, res);
res               878 drivers/mtd/spi-nor/aspeed-smc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res               879 drivers/mtd/spi-nor/aspeed-smc.c 	controller->ahb_base = devm_ioremap_resource(dev, res);
res               883 drivers/mtd/spi-nor/aspeed-smc.c 	controller->ahb_window_size = resource_size(res);
res               885 drivers/mtd/spi-nor/aspeed-smc.c 	ret = aspeed_smc_setup_flash(controller, np, res);
res              1318 drivers/mtd/spi-nor/cadence-quadspi.c 	struct resource *res;
res              1348 drivers/mtd/spi-nor/cadence-quadspi.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1349 drivers/mtd/spi-nor/cadence-quadspi.c 	cqspi->iobase = devm_ioremap_resource(dev, res);
res               419 drivers/mtd/spi-nor/hisi-sfc.c 	struct resource *res;
res               430 drivers/mtd/spi-nor/hisi-sfc.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "control");
res               431 drivers/mtd/spi-nor/hisi-sfc.c 	host->regbase = devm_ioremap_resource(dev, res);
res               435 drivers/mtd/spi-nor/hisi-sfc.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "memory");
res               436 drivers/mtd/spi-nor/hisi-sfc.c 	host->iobase = devm_ioremap_resource(dev, res);
res               459 drivers/mtd/spi-nor/mtk-quadspi.c 	struct resource *res;
res               473 drivers/mtd/spi-nor/mtk-quadspi.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               474 drivers/mtd/spi-nor/mtk-quadspi.c 	mtk_nor->base = devm_ioremap_resource(&pdev->dev, res);
res               377 drivers/mtd/spi-nor/nxp-spifi.c 	struct resource *res;
res               384 drivers/mtd/spi-nor/nxp-spifi.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "spifi");
res               385 drivers/mtd/spi-nor/nxp-spifi.c 	spifi->io_base = devm_ioremap_resource(&pdev->dev, res);
res               389 drivers/mtd/spi-nor/nxp-spifi.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "flash");
res               390 drivers/mtd/spi-nor/nxp-spifi.c 	spifi->flash_base = devm_ioremap_resource(&pdev->dev, res);
res               120 drivers/mtd/tests/oobtest.c 	int res;
res               125 drivers/mtd/tests/oobtest.c 		res = *su1 ^ *su2;
res               126 drivers/mtd/tests/oobtest.c 		if (res) {
res               129 drivers/mtd/tests/oobtest.c 				*su1, *su2, res);
res               130 drivers/mtd/tests/oobtest.c 			bitflips += hweight8(res);
res               148 drivers/mtd/tests/oobtest.c 	int res;
res               153 drivers/mtd/tests/oobtest.c 		res = *su1 ^ 0xff;
res               154 drivers/mtd/tests/oobtest.c 		if (res) {
res               157 drivers/mtd/tests/oobtest.c 				*su1, res);
res               158 drivers/mtd/tests/oobtest.c 			bitflips += hweight8(res);
res               202 drivers/mux/core.c static void devm_mux_chip_release(struct device *dev, void *res)
res               204 drivers/mux/core.c 	struct mux_chip *mux_chip = *(struct mux_chip **)res;
res               242 drivers/mux/core.c static void devm_mux_chip_reg_release(struct device *dev, void *res)
res               244 drivers/mux/core.c 	struct mux_chip *mux_chip = *(struct mux_chip **)res;
res               262 drivers/mux/core.c 	int res;
res               268 drivers/mux/core.c 	res = mux_chip_register(mux_chip);
res               269 drivers/mux/core.c 	if (res) {
res               271 drivers/mux/core.c 		return res;
res               277 drivers/mux/core.c 	return res;
res               493 drivers/mux/core.c static void devm_mux_control_release(struct device *dev, void *res)
res               495 drivers/mux/core.c 	struct mux_control *mux = *(struct mux_control **)res;
res               102 drivers/net/arcnet/arc-rimi.c 	int res = -1;
res               110 drivers/net/arcnet/arc-rimi.c 			res = 1;
res               112 drivers/net/arcnet/arc-rimi.c 			res = 0;
res               117 drivers/net/arcnet/arc-rimi.c 	return res;
res               223 drivers/net/arcnet/arcnet.c static void arcnet_led_release(struct device *gendev, void *res)
res               238 drivers/net/arcnet/arcnet.c 	void *res;
res               240 drivers/net/arcnet/arcnet.c 	res = devres_alloc(arcnet_led_release, 0, GFP_KERNEL);
res               241 drivers/net/arcnet/arcnet.c 	if (!res) {
res               256 drivers/net/arcnet/arcnet.c 	devres_add(&netdev->dev, res);
res               439 drivers/net/arcnet/com90xx.c 	int res = -1;
res               447 drivers/net/arcnet/com90xx.c 			res = 1;
res               449 drivers/net/arcnet/com90xx.c 			res = 0;
res               454 drivers/net/arcnet/com90xx.c 	return res;
res              1227 drivers/net/bonding/bond_alb.c 	int res;
res              1237 drivers/net/bonding/bond_alb.c 		res = dev_set_mac_address(slave->dev, addr, NULL);
res              1243 drivers/net/bonding/bond_alb.c 		if (res)
res              1265 drivers/net/bonding/bond_alb.c 	return res;
res              1272 drivers/net/bonding/bond_alb.c 	int res;
res              1274 drivers/net/bonding/bond_alb.c 	res = tlb_initialize(bond);
res              1275 drivers/net/bonding/bond_alb.c 	if (res)
res              1276 drivers/net/bonding/bond_alb.c 		return res;
res              1280 drivers/net/bonding/bond_alb.c 		res = rlb_initialize(bond);
res              1281 drivers/net/bonding/bond_alb.c 		if (res) {
res              1283 drivers/net/bonding/bond_alb.c 			return res;
res              1612 drivers/net/bonding/bond_alb.c 	int res;
res              1614 drivers/net/bonding/bond_alb.c 	res = alb_set_slave_mac_addr(slave, slave->perm_hwaddr,
res              1616 drivers/net/bonding/bond_alb.c 	if (res)
res              1617 drivers/net/bonding/bond_alb.c 		return res;
res              1619 drivers/net/bonding/bond_alb.c 	res = alb_handle_addr_collision_on_attach(bond, slave);
res              1620 drivers/net/bonding/bond_alb.c 	if (res)
res              1621 drivers/net/bonding/bond_alb.c 		return res;
res              1767 drivers/net/bonding/bond_alb.c 	int res;
res              1772 drivers/net/bonding/bond_alb.c 	res = alb_set_mac_address(bond, addr);
res              1773 drivers/net/bonding/bond_alb.c 	if (res)
res              1774 drivers/net/bonding/bond_alb.c 		return res;
res               285 drivers/net/bonding/bond_main.c 	int res;
res               288 drivers/net/bonding/bond_main.c 		res = vlan_vid_add(slave->dev, proto, vid);
res               289 drivers/net/bonding/bond_main.c 		if (res)
res               304 drivers/net/bonding/bond_main.c 	return res;
res               375 drivers/net/bonding/bond_main.c 	int res;
res               380 drivers/net/bonding/bond_main.c 	res = __ethtool_get_link_ksettings(slave_dev, &ecmd);
res               381 drivers/net/bonding/bond_main.c 	if (res < 0)
res              1383 drivers/net/bonding/bond_main.c 	int res = 0, i;
res              1443 drivers/net/bonding/bond_main.c 			res = call_netdevice_notifiers(NETDEV_PRE_TYPE_CHANGE,
res              1445 drivers/net/bonding/bond_main.c 			res = notifier_to_errno(res);
res              1446 drivers/net/bonding/bond_main.c 			if (res) {
res              1477 drivers/net/bonding/bond_main.c 		res = -EOPNOTSUPP;
res              1492 drivers/net/bonding/bond_main.c 				res = -EOPNOTSUPP;
res              1505 drivers/net/bonding/bond_main.c 		res = bond_set_dev_addr(bond->dev, slave_dev);
res              1506 drivers/net/bonding/bond_main.c 		if (res)
res              1512 drivers/net/bonding/bond_main.c 		res = -ENOMEM;
res              1525 drivers/net/bonding/bond_main.c 	res = dev_set_mtu(slave_dev, bond->dev->mtu);
res              1526 drivers/net/bonding/bond_main.c 	if (res) {
res              1527 drivers/net/bonding/bond_main.c 		slave_err(bond_dev, slave_dev, "Error %d calling dev_set_mtu\n", res);
res              1545 drivers/net/bonding/bond_main.c 		res = dev_set_mac_address(slave_dev, (struct sockaddr *)&ss,
res              1547 drivers/net/bonding/bond_main.c 		if (res) {
res              1548 drivers/net/bonding/bond_main.c 			slave_err(bond_dev, slave_dev, "Error %d calling set_mac_address\n", res);
res              1557 drivers/net/bonding/bond_main.c 	res = dev_open(slave_dev, extack);
res              1558 drivers/net/bonding/bond_main.c 	if (res) {
res              1571 drivers/net/bonding/bond_main.c 		res = bond_alb_init_slave(bond, new_slave);
res              1572 drivers/net/bonding/bond_main.c 		if (res)
res              1576 drivers/net/bonding/bond_main.c 	res = vlan_vids_add_by_dev(slave_dev, bond_dev);
res              1577 drivers/net/bonding/bond_main.c 	if (res) {
res              1708 drivers/net/bonding/bond_main.c 			res = -EBUSY;
res              1717 drivers/net/bonding/bond_main.c 	res = netdev_rx_handler_register(slave_dev, bond_handle_frame,
res              1719 drivers/net/bonding/bond_main.c 	if (res) {
res              1720 drivers/net/bonding/bond_main.c 		slave_dbg(bond_dev, slave_dev, "Error %d calling netdev_rx_handler_register\n", res);
res              1724 drivers/net/bonding/bond_main.c 	res = bond_master_upper_dev_link(bond, new_slave, extack);
res              1725 drivers/net/bonding/bond_main.c 	if (res) {
res              1726 drivers/net/bonding/bond_main.c 		slave_dbg(bond_dev, slave_dev, "Error %d calling bond_master_upper_dev_link\n", res);
res              1730 drivers/net/bonding/bond_main.c 	res = bond_sysfs_slave_add(new_slave);
res              1731 drivers/net/bonding/bond_main.c 	if (res) {
res              1732 drivers/net/bonding/bond_main.c 		slave_dbg(bond_dev, slave_dev, "Error %d calling bond_sysfs_slave_add\n", res);
res              1742 drivers/net/bonding/bond_main.c 			res = dev_set_promiscuity(slave_dev, 1);
res              1743 drivers/net/bonding/bond_main.c 			if (res)
res              1749 drivers/net/bonding/bond_main.c 			res = dev_set_allmulti(slave_dev, 1);
res              1750 drivers/net/bonding/bond_main.c 			if (res) {
res              1855 drivers/net/bonding/bond_main.c 	return res;
res              2059 drivers/net/bonding/bond_main.c 	int i = 0, res = -ENODEV;
res              2064 drivers/net/bonding/bond_main.c 			res = 0;
res              2070 drivers/net/bonding/bond_main.c 	return res;
res              3419 drivers/net/bonding/bond_main.c 	u64 *res = (u64 *)_res;
res              3435 drivers/net/bonding/bond_main.c 			res[i] += delta;
res              3524 drivers/net/bonding/bond_main.c 	int res = 0;
res              3570 drivers/net/bonding/bond_main.c 		res = bond_slave_info_query(bond_dev, &k_sinfo);
res              3571 drivers/net/bonding/bond_main.c 		if (res == 0 &&
res              3575 drivers/net/bonding/bond_main.c 		return res;
res              3595 drivers/net/bonding/bond_main.c 		res = bond_enslave(bond_dev, slave_dev, NULL);
res              3599 drivers/net/bonding/bond_main.c 		res = bond_release(bond_dev, slave_dev);
res              3600 drivers/net/bonding/bond_main.c 		if (!res)
res              3605 drivers/net/bonding/bond_main.c 		res = bond_set_dev_addr(bond_dev, slave_dev);
res              3610 drivers/net/bonding/bond_main.c 		res = __bond_opt_set_notify(bond, BOND_OPT_ACTIVE_SLAVE,
res              3614 drivers/net/bonding/bond_main.c 		res = -EOPNOTSUPP;
res              3617 drivers/net/bonding/bond_main.c 	return res;
res              3716 drivers/net/bonding/bond_main.c 	int res = 0;
res              3724 drivers/net/bonding/bond_main.c 		res = dev_set_mtu(slave->dev, new_mtu);
res              3726 drivers/net/bonding/bond_main.c 		if (res) {
res              3736 drivers/net/bonding/bond_main.c 				  res, new_mtu);
res              3759 drivers/net/bonding/bond_main.c 	return res;
res              3774 drivers/net/bonding/bond_main.c 	int res = 0;
res              3795 drivers/net/bonding/bond_main.c 		res = dev_set_mac_address(slave->dev, addr, NULL);
res              3796 drivers/net/bonding/bond_main.c 		if (res) {
res              3804 drivers/net/bonding/bond_main.c 				  __func__, res);
res              3832 drivers/net/bonding/bond_main.c 	return res;
res              4842 drivers/net/bonding/bond_main.c 	int res;
res              4866 drivers/net/bonding/bond_main.c 	res = register_netdevice(bond_dev);
res              4873 drivers/net/bonding/bond_main.c 	if (res < 0)
res              4875 drivers/net/bonding/bond_main.c 	return res;
res              4919 drivers/net/bonding/bond_main.c 	int res;
res              4923 drivers/net/bonding/bond_main.c 	res = bond_check_params(&bonding_defaults);
res              4924 drivers/net/bonding/bond_main.c 	if (res)
res              4927 drivers/net/bonding/bond_main.c 	res = register_pernet_subsys(&bond_net_ops);
res              4928 drivers/net/bonding/bond_main.c 	if (res)
res              4931 drivers/net/bonding/bond_main.c 	res = bond_netlink_init();
res              4932 drivers/net/bonding/bond_main.c 	if (res)
res              4938 drivers/net/bonding/bond_main.c 		res = bond_create(&init_net, NULL);
res              4939 drivers/net/bonding/bond_main.c 		if (res)
res              4945 drivers/net/bonding/bond_main.c 	return res;
res                40 drivers/net/bonding/bond_sysfs.c 	int res = 0;
res                46 drivers/net/bonding/bond_sysfs.c 		if (res > (PAGE_SIZE - IFNAMSIZ)) {
res                48 drivers/net/bonding/bond_sysfs.c 			if ((PAGE_SIZE - res) > 10)
res                49 drivers/net/bonding/bond_sysfs.c 				res = PAGE_SIZE - 10;
res                50 drivers/net/bonding/bond_sysfs.c 			res += sprintf(buf + res, "++more++ ");
res                53 drivers/net/bonding/bond_sysfs.c 		res += sprintf(buf + res, "%s ", bond->dev->name);
res                55 drivers/net/bonding/bond_sysfs.c 	if (res)
res                56 drivers/net/bonding/bond_sysfs.c 		buf[res-1] = '\n'; /* eat the leftover space */
res                59 drivers/net/bonding/bond_sysfs.c 	return res;
res                86 drivers/net/bonding/bond_sysfs.c 	int rv, res = count;
res               102 drivers/net/bonding/bond_sysfs.c 			res = rv;
res               114 drivers/net/bonding/bond_sysfs.c 			res = -ENODEV;
res               123 drivers/net/bonding/bond_sysfs.c 	return res;
res               171 drivers/net/bonding/bond_sysfs.c 	int res = 0;
res               177 drivers/net/bonding/bond_sysfs.c 		if (res > (PAGE_SIZE - IFNAMSIZ)) {
res               179 drivers/net/bonding/bond_sysfs.c 			if ((PAGE_SIZE - res) > 10)
res               180 drivers/net/bonding/bond_sysfs.c 				res = PAGE_SIZE - 10;
res               181 drivers/net/bonding/bond_sysfs.c 			res += sprintf(buf + res, "++more++ ");
res               184 drivers/net/bonding/bond_sysfs.c 		res += sprintf(buf + res, "%s ", slave->dev->name);
res               189 drivers/net/bonding/bond_sysfs.c 	if (res)
res               190 drivers/net/bonding/bond_sysfs.c 		buf[res-1] = '\n'; /* eat the leftover space */
res               192 drivers/net/bonding/bond_sysfs.c 	return res;
res               291 drivers/net/bonding/bond_sysfs.c 	int i, res = 0;
res               295 drivers/net/bonding/bond_sysfs.c 			res += sprintf(buf + res, "%pI4 ",
res               298 drivers/net/bonding/bond_sysfs.c 	if (res)
res               299 drivers/net/bonding/bond_sysfs.c 		buf[res-1] = '\n'; /* eat the leftover space */
res               301 drivers/net/bonding/bond_sysfs.c 	return res;
res               595 drivers/net/bonding/bond_sysfs.c 	int res = 0;
res               601 drivers/net/bonding/bond_sysfs.c 		if (res > (PAGE_SIZE - IFNAMSIZ - 6)) {
res               603 drivers/net/bonding/bond_sysfs.c 			if ((PAGE_SIZE - res) > 10)
res               604 drivers/net/bonding/bond_sysfs.c 				res = PAGE_SIZE - 10;
res               605 drivers/net/bonding/bond_sysfs.c 			res += sprintf(buf + res, "++more++ ");
res               608 drivers/net/bonding/bond_sysfs.c 		res += sprintf(buf + res, "%s:%d ",
res               611 drivers/net/bonding/bond_sysfs.c 	if (res)
res               612 drivers/net/bonding/bond_sysfs.c 		buf[res-1] = '\n'; /* eat the leftover space */
res               616 drivers/net/bonding/bond_sysfs.c 	return res;
res               333 drivers/net/caif/caif_hsi.c 	int len, res;
res               347 drivers/net/caif/caif_hsi.c 				res = -EAGAIN;
res               359 drivers/net/caif/caif_hsi.c 		res = cfhsi->ops->cfhsi_tx(cfhsi->tx_buf, len, cfhsi->ops);
res               360 drivers/net/caif/caif_hsi.c 		if (WARN_ON(res < 0))
res               362 drivers/net/caif/caif_hsi.c 				__func__, res);
res               363 drivers/net/caif/caif_hsi.c 	} while (res < 0);
res               614 drivers/net/caif/caif_hsi.c 	int res;
res               693 drivers/net/caif/caif_hsi.c 		res = cfhsi->ops->cfhsi_rx(rx_ptr, rx_len,
res               695 drivers/net/caif/caif_hsi.c 		if (WARN_ON(res < 0)) {
res               697 drivers/net/caif/caif_hsi.c 				__func__, res);
res               769 drivers/net/caif/caif_hsi.c 	int res;
res               849 drivers/net/caif/caif_hsi.c 	res = cfhsi->ops->cfhsi_rx(cfhsi->rx_ptr, cfhsi->rx_len, cfhsi->ops);
res               851 drivers/net/caif/caif_hsi.c 	if (WARN_ON(res < 0))
res               852 drivers/net/caif/caif_hsi.c 		netdev_err(cfhsi->ndev, "%s: RX err %d.\n", __func__, res);
res               880 drivers/net/caif/caif_hsi.c 		res = cfhsi->ops->cfhsi_tx(cfhsi->tx_buf, len, cfhsi->ops);
res               881 drivers/net/caif/caif_hsi.c 		if (WARN_ON(res < 0)) {
res               883 drivers/net/caif/caif_hsi.c 				__func__, res);
res              1086 drivers/net/caif/caif_hsi.c 		int res;
res              1093 drivers/net/caif/caif_hsi.c 		res = cfhsi->ops->cfhsi_tx(cfhsi->tx_buf, len, cfhsi->ops);
res              1094 drivers/net/caif/caif_hsi.c 		if (WARN_ON(res < 0)) {
res              1096 drivers/net/caif/caif_hsi.c 				__func__, res);
res              1134 drivers/net/caif/caif_hsi.c 	int res;
res              1151 drivers/net/caif/caif_hsi.c 		res = -ENODEV;
res              1161 drivers/net/caif/caif_hsi.c 		res = -ENODEV;
res              1167 drivers/net/caif/caif_hsi.c 		res = -ENODEV;
res              1203 drivers/net/caif/caif_hsi.c 		res = -ENODEV;
res              1220 drivers/net/caif/caif_hsi.c 	res = cfhsi->ops->cfhsi_up(cfhsi->ops);
res              1221 drivers/net/caif/caif_hsi.c 	if (res) {
res              1224 drivers/net/caif/caif_hsi.c 			__func__, res);
res              1229 drivers/net/caif/caif_hsi.c 	res = cfhsi_flush_fifo(cfhsi);
res              1230 drivers/net/caif/caif_hsi.c 	if (res) {
res              1232 drivers/net/caif/caif_hsi.c 			__func__, res);
res              1235 drivers/net/caif/caif_hsi.c 	return res;
res              1248 drivers/net/caif/caif_hsi.c 	return res;
res               527 drivers/net/caif/caif_spi.c 		int res;
res               562 drivers/net/caif/caif_spi.c 			res = netif_rx_ni(skb);
res               564 drivers/net/caif/caif_spi.c 			res = cfspi_xmit(skb, cfspi->ndev);
res               566 drivers/net/caif/caif_spi.c 		if (!res) {
res               597 drivers/net/caif/caif_spi.c 	int res = 0;
res               617 drivers/net/caif/caif_spi.c 		res = -ENODEV;
res               624 drivers/net/caif/caif_spi.c 		res = -ENODEV;
res               644 drivers/net/caif/caif_spi.c 		res = -ENODEV;
res               674 drivers/net/caif/caif_spi.c 	return res;
res               730 drivers/net/caif/caif_spi.c 	int res;
res               752 drivers/net/caif/caif_spi.c 	res = register_netdev(ndev);
res               753 drivers/net/caif/caif_spi.c 	if (res) {
res               754 drivers/net/caif/caif_spi.c 		printk(KERN_ERR "CFSPI: Reg. error: %d.\n", res);
res               757 drivers/net/caif/caif_spi.c 	return res;
res               762 drivers/net/caif/caif_spi.c 	return res;
res              1272 drivers/net/can/at91_can.c 	struct resource *res;
res              1291 drivers/net/can/at91_can.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1293 drivers/net/can/at91_can.c 	if (!res || irq <= 0) {
res              1298 drivers/net/can/at91_can.c 	if (!request_mem_region(res->start,
res              1299 drivers/net/can/at91_can.c 				resource_size(res),
res              1305 drivers/net/can/at91_can.c 	addr = ioremap_nocache(res->start, resource_size(res));
res              1361 drivers/net/can/at91_can.c 	release_mem_region(res->start, resource_size(res));
res              1372 drivers/net/can/at91_can.c 	struct resource *res;
res              1378 drivers/net/can/at91_can.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1379 drivers/net/can/at91_can.c 	release_mem_region(res->start, resource_size(res));
res               520 drivers/net/can/c_can/c_can.c 	int res;
res               540 drivers/net/can/c_can/c_can.c 	res = c_can_wait_for_ctrl_init(dev, priv, CONTROL_INIT);
res               541 drivers/net/can/c_can/c_can.c 	if (res)
res               542 drivers/net/can/c_can/c_can.c 		return res;
res              1655 drivers/net/can/grcan.c 	struct resource *res;
res              1675 drivers/net/can/grcan.c 	res = platform_get_resource(ofdev, IORESOURCE_MEM, 0);
res              1676 drivers/net/can/grcan.c 	base = devm_ioremap_resource(&ofdev->dev, res);
res               945 drivers/net/can/ifi_canfd/ifi_canfd.c 	struct resource *res;
res               950 drivers/net/can/ifi_canfd/ifi_canfd.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               951 drivers/net/can/ifi_canfd/ifi_canfd.c 	addr = devm_ioremap_resource(dev, res);
res               781 drivers/net/can/janz-ican3.c 	int res;
res               803 drivers/net/can/janz-ican3.c 			res = ican3_send_msg(mod, &msg);
res               804 drivers/net/can/janz-ican3.c 			if (res)
res               805 drivers/net/can/janz-ican3.c 				return res;
res               830 drivers/net/can/janz-ican3.c 		res = ican3_send_msg(mod, &msg);
res               831 drivers/net/can/janz-ican3.c 		if (res)
res               832 drivers/net/can/janz-ican3.c 			return res;
res              1887 drivers/net/can/janz-ican3.c 	struct resource *res;
res              1946 drivers/net/can/janz-ican3.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1947 drivers/net/can/janz-ican3.c 	if (!res) {
res              1953 drivers/net/can/janz-ican3.c 	mod->dpm = ioremap(res->start, resource_size(res));
res              1963 drivers/net/can/janz-ican3.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res              1964 drivers/net/can/janz-ican3.c 	if (!res) {
res              1970 drivers/net/can/janz-ican3.c 	mod->ctrl = ioremap(res->start, resource_size(res));
res               326 drivers/net/can/kvaser_pciefd.c 	u32 res;
res               330 drivers/net/can/kvaser_pciefd.c 				 res, res & msk, 0, 10);
res               387 drivers/net/can/kvaser_pciefd.c 	int res, crc;
res               397 drivers/net/can/kvaser_pciefd.c 	res = kvaser_pciefd_spi_cmd(pcie, cmd, ARRAY_SIZE(cmd), (u8 *)img,
res               399 drivers/net/can/kvaser_pciefd.c 	if (res)
res               400 drivers/net/can/kvaser_pciefd.c 		return res;
res               437 drivers/net/can/kvaser_pciefd.c 	int res;
res               443 drivers/net/can/kvaser_pciefd.c 	res = kvaser_pciefd_spi_cmd(pcie, cmd, ARRAY_SIZE(cmd), cmd, 1);
res               444 drivers/net/can/kvaser_pciefd.c 	if (res)
res               456 drivers/net/can/kvaser_pciefd.c 		res = -ENODEV;
res               461 drivers/net/can/kvaser_pciefd.c 	res = kvaser_pciefd_spi_cmd(pcie, cmd, 1, cmd, 1);
res               462 drivers/net/can/kvaser_pciefd.c 	if (res) {
res               465 drivers/net/can/kvaser_pciefd.c 		res = -EIO;
res               471 drivers/net/can/kvaser_pciefd.c 	res = kvaser_pciefd_cfg_read_and_verify(pcie, img);
res               472 drivers/net/can/kvaser_pciefd.c 	if (res) {
res               473 drivers/net/can/kvaser_pciefd.c 		res = -EIO;
res               481 drivers/net/can/kvaser_pciefd.c 	return res;
res              1660 drivers/net/can/kvaser_pciefd.c 	int res = 0;
res              1663 drivers/net/can/kvaser_pciefd.c 		res = kvaser_pciefd_read_packet(pcie, &pos, dma_buf);
res              1664 drivers/net/can/kvaser_pciefd.c 	} while (!res && pos > 0 && pos < KVASER_PCIEFD_DMA_SIZE);
res              1666 drivers/net/can/kvaser_pciefd.c 	return res;
res                57 drivers/net/can/led.c static void can_led_release(struct device *gendev, void *res)
res                73 drivers/net/can/led.c 	void *res;
res                75 drivers/net/can/led.c 	res = devres_alloc(can_led_release, 0, GFP_KERNEL);
res                76 drivers/net/can/led.c 	if (!res) {
res                95 drivers/net/can/led.c 	devres_add(&netdev->dev, res);
res              1233 drivers/net/can/m_can/m_can.c 	int res;
res              1244 drivers/net/can/m_can/m_can.c 		res = 30 + step;
res              1247 drivers/net/can/m_can/m_can.c 		res = 0;
res              1250 drivers/net/can/m_can/m_can.c 	return res;
res                60 drivers/net/can/m_can/m_can_platform.c 	struct resource *res;
res                77 drivers/net/can/m_can/m_can_platform.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "m_can");
res                78 drivers/net/can/m_can/m_can_platform.c 	addr = devm_ioremap_resource(&pdev->dev, res);
res                86 drivers/net/can/m_can/m_can_platform.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "message_ram");
res                87 drivers/net/can/m_can/m_can_platform.c 	if (!res) {
res                92 drivers/net/can/m_can/m_can_platform.c 	mram_addr = devm_ioremap(&pdev->dev, res->start, resource_size(res));
res               156 drivers/net/can/sja1000/ems_pci.c 	unsigned char res;
res               164 drivers/net/can/sja1000/ems_pci.c 	res = priv->read_reg(priv, SJA1000_CDR);
res               166 drivers/net/can/sja1000/ems_pci.c 	if (res == CDR_PELICAN)
res               233 drivers/net/can/softing/softing_cs.c 		struct resource res[2];
res               264 drivers/net/can/softing/softing_cs.c 	dev->pdev.resource = dev->res;
res               265 drivers/net/can/softing/softing_cs.c 	dev->pdev.num_resources = ARRAY_SIZE(dev->res);
res               846 drivers/net/can/ti_hecc.c 	struct resource *res, *irq;
res               867 drivers/net/can/ti_hecc.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "hecc");
res               868 drivers/net/can/ti_hecc.c 	if (!res) {
res               873 drivers/net/can/ti_hecc.c 	priv->base = devm_ioremap_resource(&pdev->dev, res);
res               880 drivers/net/can/ti_hecc.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "hecc-ram");
res               881 drivers/net/can/ti_hecc.c 	if (!res) {
res               886 drivers/net/can/ti_hecc.c 	priv->hecc_ram = devm_ioremap_resource(&pdev->dev, res);
res               893 drivers/net/can/ti_hecc.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "mbx");
res               894 drivers/net/can/ti_hecc.c 	if (!res) {
res               899 drivers/net/can/ti_hecc.c 	priv->mbx = devm_ioremap_resource(&pdev->dev, res);
res               291 drivers/net/can/usb/usb_8dev.c static int usb_8dev_cmd_version(struct usb_8dev_priv *priv, u32 *res)
res               305 drivers/net/can/usb/usb_8dev.c 	*res = be32_to_cpup((__be32 *)inmsg.data);
res              1656 drivers/net/can/xilinx_can.c 	struct resource *res; /* IO mem resources */
res              1668 drivers/net/can/xilinx_can.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1669 drivers/net/can/xilinx_can.c 	addr = devm_ioremap_resource(&pdev->dev, res);
res              1044 drivers/net/dsa/lan9303-core.c 	int ctl, res;
res              1065 drivers/net/dsa/lan9303-core.c 	res =  lan9303_phy_write(ds, port, MII_BMCR, ctl);
res              1072 drivers/net/dsa/lan9303-core.c 		res =  regmap_write(chip->regmap,
res               187 drivers/net/dsa/mv88e6xxx/global2.c 			       int res, int reg)
res               193 drivers/net/dsa/mv88e6xxx/global2.c 				 (res << 5) | reg);
res                92 drivers/net/dsa/vitesse-vsc73xx-platform.c 	struct resource *res = NULL;
res               106 drivers/net/dsa/vitesse-vsc73xx-platform.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               107 drivers/net/dsa/vitesse-vsc73xx-platform.c 	if (!res) {
res               113 drivers/net/dsa/vitesse-vsc73xx-platform.c 	vsc_platform->base_addr = devm_ioremap_resource(&pdev->dev, res);
res               788 drivers/net/ethernet/8390/ne.c 	struct resource *res;
res               798 drivers/net/ethernet/8390/ne.c 	res = platform_get_resource(pdev, IORESOURCE_IO, 0);
res               799 drivers/net/ethernet/8390/ne.c 	if (res) {
res               800 drivers/net/ethernet/8390/ne.c 		dev->base_addr = res->start;
res               822 drivers/net/ethernet/8390/ne.c 	if (!res) {
res               249 drivers/net/ethernet/8390/xsurf100.c 	struct resource res[2] = {
res               319 drivers/net/ethernet/8390/xsurf100.c 						 zdev->slotaddr, res, 2,
res              1874 drivers/net/ethernet/adaptec/starfire.c 	int res;
res              1876 drivers/net/ethernet/adaptec/starfire.c 	res = mii_ethtool_set_link_ksettings(&np->mii_if, cmd);
res              1879 drivers/net/ethernet/adaptec/starfire.c 	return res;
res              1317 drivers/net/ethernet/altera/altera_tse_main.c 			   struct resource **res, void __iomem **ptr)
res              1322 drivers/net/ethernet/altera/altera_tse_main.c 	*res = platform_get_resource_byname(pdev, IORESOURCE_MEM, name);
res              1323 drivers/net/ethernet/altera/altera_tse_main.c 	if (*res == NULL) {
res              1328 drivers/net/ethernet/altera/altera_tse_main.c 	region = devm_request_mem_region(device, (*res)->start,
res              1329 drivers/net/ethernet/altera/altera_tse_main.c 					 resource_size(*res), dev_name(device));
res               500 drivers/net/ethernet/amd/7990.c 	int res;
res               506 drivers/net/ethernet/amd/7990.c 	res = lance_reset(dev);
res               510 drivers/net/ethernet/amd/7990.c 	return res;
res               671 drivers/net/ethernet/amd/am79c961a.c 	struct resource *res;
res               676 drivers/net/ethernet/amd/am79c961a.c 	res = platform_get_resource(pdev, IORESOURCE_IO, 0);
res               677 drivers/net/ethernet/amd/am79c961a.c 	if (!res)
res               694 drivers/net/ethernet/amd/am79c961a.c 	dev->base_addr = res->start;
res              1401 drivers/net/ethernet/amd/amd8111e.c 	int res;
res              1403 drivers/net/ethernet/amd/amd8111e.c 	res = mii_ethtool_set_link_ksettings(&lp->mii_if, cmd);
res              1405 drivers/net/ethernet/amd/amd8111e.c 	return res;
res               270 drivers/net/ethernet/amd/xgbe/xgbe-platform.c 		struct resource *res = &pdev->resource[i];
res               272 drivers/net/ethernet/amd/xgbe/xgbe-platform.c 		if (type == resource_type(res))
res                19 drivers/net/ethernet/apm/xgene-v2/main.c 	struct resource *res;
res                26 drivers/net/ethernet/apm/xgene-v2/main.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                27 drivers/net/ethernet/apm/xgene-v2/main.c 	if (!res) {
res                32 drivers/net/ethernet/apm/xgene-v2/main.c 	pdata->resources.base_addr = devm_ioremap(dev, res->start,
res                33 drivers/net/ethernet/apm/xgene-v2/main.c 						  resource_size(res));
res              1683 drivers/net/ethernet/apm/xgene/xgene_enet_main.c 	struct resource *res;
res              1692 drivers/net/ethernet/apm/xgene/xgene_enet_main.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, RES_ENET_CSR);
res              1693 drivers/net/ethernet/apm/xgene/xgene_enet_main.c 	if (!res) {
res              1697 drivers/net/ethernet/apm/xgene/xgene_enet_main.c 	pdata->base_addr = devm_ioremap(dev, res->start, resource_size(res));
res              1703 drivers/net/ethernet/apm/xgene/xgene_enet_main.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, RES_RING_CSR);
res              1704 drivers/net/ethernet/apm/xgene/xgene_enet_main.c 	if (!res) {
res              1708 drivers/net/ethernet/apm/xgene/xgene_enet_main.c 	pdata->ring_csr_addr = devm_ioremap(dev, res->start,
res              1709 drivers/net/ethernet/apm/xgene/xgene_enet_main.c 							resource_size(res));
res              1715 drivers/net/ethernet/apm/xgene/xgene_enet_main.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, RES_RING_CMD);
res              1716 drivers/net/ethernet/apm/xgene/xgene_enet_main.c 	if (!res) {
res              1720 drivers/net/ethernet/apm/xgene/xgene_enet_main.c 	pdata->ring_cmd_addr = devm_ioremap(dev, res->start,
res              1721 drivers/net/ethernet/apm/xgene/xgene_enet_main.c 							resource_size(res));
res              1637 drivers/net/ethernet/atheros/ag71xx.c 	struct resource *res;
res              1649 drivers/net/ethernet/atheros/ag71xx.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1650 drivers/net/ethernet/atheros/ag71xx.c 	if (!res)
res              1660 drivers/net/ethernet/atheros/ag71xx.c 		if (ar71xx_addr_ar7100[i] == res->start)
res              1690 drivers/net/ethernet/atheros/ag71xx.c 	ag->mac_base = devm_ioremap_nocache(&pdev->dev, res->start,
res              1691 drivers/net/ethernet/atheros/ag71xx.c 					    resource_size(res));
res              1341 drivers/net/ethernet/aurora/nb8800.c 	struct resource *res;
res              1357 drivers/net/ethernet/aurora/nb8800.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1358 drivers/net/ethernet/aurora/nb8800.c 	base = devm_ioremap_resource(&pdev->dev, res);
res              1362 drivers/net/ethernet/aurora/nb8800.c 	dev_dbg(&pdev->dev, "AU-NB8800 Ethernet at %pa\n", &res->start);
res              1408 drivers/net/ethernet/aurora/nb8800.c 		 (unsigned long)res->start);
res              2698 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c 	int rc = 0, res;
res              2709 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c 	res = bnx2x_run_loopback(bp, BNX2X_PHY_LOOPBACK);
res              2710 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c 	if (res) {
res              2711 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c 		DP(BNX2X_MSG_ETHTOOL, "  PHY loopback failed  (res %d)\n", res);
res              2715 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c 	res = bnx2x_run_loopback(bp, BNX2X_MAC_LOOPBACK);
res              2716 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c 	if (res) {
res              2717 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c 		DP(BNX2X_MSG_ETHTOOL, "  MAC loopback failed  (res %d)\n", res);
res              4585 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 	bool res;
res              4588 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 	res = false;
res              4593 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 			res |= true; /* Each bit is real error! */
res              4642 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 	return res;
res              4650 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 	bool res;
res              4653 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 	res = false;
res              4658 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 			res |= true; /* Each bit is real error! */
res              4786 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 	return res;
res              4793 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 	bool res;
res              4796 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 	res = false;
res              4801 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 			res = true; /* Each bit is real error! */
res              4860 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 	return res;
res              4867 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 	bool res = false;
res              4880 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 				res = true;
res              4887 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 				res = true;
res              4894 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 				res = true;
res              4909 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 	return res;
res              4916 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 	bool res;
res              4919 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 	res = false;
res              4924 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 			res = true; /* Each bit is real error! */
res              4945 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 	return res;
res              4951 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 	bool res = false;
res              4979 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 		res |= bnx2x_check_blocks_with_parity0(bp,
res              4981 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 		res |= bnx2x_check_blocks_with_parity1(bp,
res              4983 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 		res |= bnx2x_check_blocks_with_parity2(bp,
res              4985 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 		res |= bnx2x_check_blocks_with_parity3(bp,
res              4987 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 		res |= bnx2x_check_blocks_with_parity4(bp,
res              4994 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 	return res;
res                46 drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c 	u16 res = 0;
res                52 drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c 			res = size;
res                55 drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c 		if (res > sizeof(struct host_port_stats))
res                56 drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c 			res = sizeof(struct host_port_stats);
res                62 drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c 	if (!res) {
res                63 drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c 		res = offsetof(struct host_port_stats, not_used) + 4;
res                67 drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c 			res += offsetof(struct host_port_stats,
res                74 drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c 	res >>= 2;
res                76 drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c 	WARN_ON(res > 2 * DMAE_LEN32_RD_MAX);
res                77 drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c 	return res;
res               425 drivers/net/ethernet/broadcom/genet/bcmmii.c 	struct resource *pres, res;
res               429 drivers/net/ethernet/broadcom/genet/bcmmii.c 	memset(&res, 0, sizeof(res));
res               439 drivers/net/ethernet/broadcom/genet/bcmmii.c 	res.start = pres->start + GENET_UMAC_OFF + UMAC_MDIO_CMD;
res               440 drivers/net/ethernet/broadcom/genet/bcmmii.c 	res.end = res.start + 8;
res               441 drivers/net/ethernet/broadcom/genet/bcmmii.c 	res.flags = IORESOURCE_MEM;
res               459 drivers/net/ethernet/broadcom/genet/bcmmii.c 	ret = platform_device_add_resources(ppdev, &res, 1);
res              2534 drivers/net/ethernet/broadcom/sb1250-mac.c 	struct resource *res;
res              2538 drivers/net/ethernet/broadcom/sb1250-mac.c 	res = platform_get_resource(pldev, IORESOURCE_MEM, 0);
res              2539 drivers/net/ethernet/broadcom/sb1250-mac.c 	BUG_ON(!res);
res              2540 drivers/net/ethernet/broadcom/sb1250-mac.c 	sbm_base = ioremap_nocache(res->start, resource_size(res));
res              2555 drivers/net/ethernet/broadcom/sb1250-mac.c 		 sbmac_orig_hwaddr ? "" : "not ", (long long)res->start);
res              2576 drivers/net/ethernet/broadcom/sb1250-mac.c 	err = sbmac_init(pldev, res->start);
res              3327 drivers/net/ethernet/broadcom/tg3.c 	int res = tg3_nvram_read(tp, offset, &v);
res              3328 drivers/net/ethernet/broadcom/tg3.c 	if (!res)
res              3330 drivers/net/ethernet/broadcom/tg3.c 	return res;
res              5415 drivers/net/ethernet/broadcom/tg3.c 	int res = 0;
res              5453 drivers/net/ethernet/broadcom/tg3.c 		res = 1;
res              5455 drivers/net/ethernet/broadcom/tg3.c 	return res;
res                35 drivers/net/ethernet/cadence/macb_pci.c 	struct resource res[2];
res                47 drivers/net/ethernet/cadence/macb_pci.c 	memset(res, 0x00, sizeof(struct resource) * ARRAY_SIZE(res));
res                48 drivers/net/ethernet/cadence/macb_pci.c 	res[0].start = pci_resource_start(pdev, 0);
res                49 drivers/net/ethernet/cadence/macb_pci.c 	res[0].end = pci_resource_end(pdev, 0);
res                50 drivers/net/ethernet/cadence/macb_pci.c 	res[0].name = PCI_DRIVER_NAME;
res                51 drivers/net/ethernet/cadence/macb_pci.c 	res[0].flags = IORESOURCE_MEM;
res                52 drivers/net/ethernet/cadence/macb_pci.c 	res[1].start = pci_irq_vector(pdev, 0);
res                53 drivers/net/ethernet/cadence/macb_pci.c 	res[1].name = PCI_DRIVER_NAME;
res                54 drivers/net/ethernet/cadence/macb_pci.c 	res[1].flags = IORESOURCE_IRQ;
res                57 drivers/net/ethernet/cadence/macb_pci.c 		 &res[0].start);
res                83 drivers/net/ethernet/cadence/macb_pci.c 	plat_info.res = res;
res                84 drivers/net/ethernet/cadence/macb_pci.c 	plat_info.num_res = ARRAY_SIZE(res);
res               330 drivers/net/ethernet/calxeda/xgmac.c 	__le32 res[3];
res              1691 drivers/net/ethernet/calxeda/xgmac.c 	struct resource *res;
res              1696 drivers/net/ethernet/calxeda/xgmac.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1697 drivers/net/ethernet/calxeda/xgmac.c 	if (!res)
res              1700 drivers/net/ethernet/calxeda/xgmac.c 	if (!request_mem_region(res->start, resource_size(res), pdev->name))
res              1722 drivers/net/ethernet/calxeda/xgmac.c 	priv->base = ioremap(res->start, resource_size(res));
res              1808 drivers/net/ethernet/calxeda/xgmac.c 	release_mem_region(res->start, resource_size(res));
res              1823 drivers/net/ethernet/calxeda/xgmac.c 	struct resource *res;
res              1835 drivers/net/ethernet/calxeda/xgmac.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1836 drivers/net/ethernet/calxeda/xgmac.c 	release_mem_region(res->start, resource_size(res));
res               150 drivers/net/ethernet/chelsio/cxgb4/cudbg_entity.h 	u32 res;
res              1563 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c 	clk_info_buff->res = t4_read_reg(padap, TP_TIMER_RESOLUTION_A);
res              1564 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c 	clk_info_buff->tre = TIMERRESOLUTION_G(clk_info_buff->res);
res              1565 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c 	clk_info_buff->dack_re = DELAYEDACKRESOLUTION_G(clk_info_buff->res);
res               907 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 	u32 res = t4_read_reg(adap, TP_TIMER_RESOLUTION_A);
res               908 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 	unsigned int tre = TIMERRESOLUTION_G(res);
res               909 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 	unsigned int dack_re = DELAYEDACKRESOLUTION_G(res);
res               918 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 			     (cclk_ps << TIMESTAMPRESOLUTION_G(res)), 1000000));
res              1223 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 	int res = seq_open(file, &mboxlog_seq_ops);
res              1225 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 	if (!res) {
res              1230 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 	return res;
res              1927 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 	int res = seq_open(file, &mps_tcam_seq_ops);
res              1929 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 	if (!res) {
res              1934 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 	return res;
res              2559 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 	int res = seq_open(file, &dcb_info_seq_ops);
res              2561 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 	if (!res) {
res              2566 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 	return res;
res              3045 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 	int res = seq_open(file, &sge_qinfo_seq_ops);
res              3047 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 	if (!res) {
res              3052 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 	return res;
res               293 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c 	u64 res;
res               409 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c 			res = be64_to_cpu(cmd_rpl[0]);
res               411 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c 			if (FW_CMD_OP_G(res >> 32) == FW_DEBUG_CMD) {
res               413 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c 				res = FW_CMD_RETVAL_V(EIO);
res               426 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c 			return -FW_CMD_RETVAL_G((int)res);
res              2030 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c 	int res = seq_open(file, &mboxlog_seq_ops);
res              2032 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c 	if (!res) {
res              2037 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c 	return res;
res              2184 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c 	int res = seq_open(file, &sge_qinfo_seq_ops);
res              2186 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c 	if (!res) {
res              2190 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c 	return res;
res              2330 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c 	int res = seq_open(file, &sge_qstats_seq_ops);
res              2332 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c 	if (res == 0) {
res              2336 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c 	return res;
res              2428 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c 	int res = seq_open(file, &interfaces_seq_ops);
res              2430 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c 	if (res == 0) {
res              2434 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c 	return res;
res               154 drivers/net/ethernet/cirrus/ep93xx_eth.c 	struct resource		*res;
res               781 drivers/net/ethernet/cirrus/ep93xx_eth.c 	if (ep->res != NULL) {
res               821 drivers/net/ethernet/cirrus/ep93xx_eth.c 	ep->res = request_mem_region(mem->start, resource_size(mem),
res               823 drivers/net/ethernet/cirrus/ep93xx_eth.c 	if (ep->res == NULL) {
res                23 drivers/net/ethernet/cisco/enic/enic_clsf.c 	int res;
res                45 drivers/net/ethernet/cisco/enic/enic_clsf.c 	res = vnic_dev_classifier(enic->vdev, CLSF_ADD, &rq, &data);
res                47 drivers/net/ethernet/cisco/enic/enic_clsf.c 	res = (res == 0) ? rq : res;
res                49 drivers/net/ethernet/cisco/enic/enic_clsf.c 	return res;
res               129 drivers/net/ethernet/cisco/enic/enic_clsf.c 	bool res;
res               140 drivers/net/ethernet/cisco/enic/enic_clsf.c 			res = rps_may_expire_flow(enic->netdev, n->rq_id,
res               142 drivers/net/ethernet/cisco/enic/enic_clsf.c 			if (res) {
res               143 drivers/net/ethernet/cisco/enic/enic_clsf.c 				res = enic_delfltr(enic, n->fltr_id);
res               144 drivers/net/ethernet/cisco/enic/enic_clsf.c 				if (unlikely(res))
res               178 drivers/net/ethernet/cisco/enic/enic_clsf.c 	int res, i;
res               181 drivers/net/ethernet/cisco/enic/enic_clsf.c 	res = skb_flow_dissect_flow_keys(skb, &keys, 0);
res               182 drivers/net/ethernet/cisco/enic/enic_clsf.c 	if (!res || keys.basic.n_proto != htons(ETH_P_IP) ||
res               193 drivers/net/ethernet/cisco/enic/enic_clsf.c 			res = -EEXIST;
res               211 drivers/net/ethernet/cisco/enic/enic_clsf.c 			res = enic_delfltr(enic, n->fltr_id);
res               212 drivers/net/ethernet/cisco/enic/enic_clsf.c 			if (unlikely(res < 0))
res               214 drivers/net/ethernet/cisco/enic/enic_clsf.c 			res = enic_addfltr_5t(enic, &keys, rxq_index);
res               215 drivers/net/ethernet/cisco/enic/enic_clsf.c 			if (res < 0) {
res               224 drivers/net/ethernet/cisco/enic/enic_clsf.c 			res = enic_addfltr_5t(enic, &keys, rxq_index);
res               225 drivers/net/ethernet/cisco/enic/enic_clsf.c 			if (res < 0) {
res               249 drivers/net/ethernet/cisco/enic/enic_clsf.c 		n->fltr_id = res;
res               256 drivers/net/ethernet/cisco/enic/enic_clsf.c 			res = -EBUSY;
res               262 drivers/net/ethernet/cisco/enic/enic_clsf.c 			res = -ENOMEM;
res               267 drivers/net/ethernet/cisco/enic/enic_clsf.c 		res = enic_addfltr_5t(enic, &keys, rxq_index);
res               268 drivers/net/ethernet/cisco/enic/enic_clsf.c 		if (res < 0) {
res               274 drivers/net/ethernet/cisco/enic/enic_clsf.c 		n->fltr_id = res;
res               283 drivers/net/ethernet/cisco/enic/enic_clsf.c 	return res;
res              1605 drivers/net/ethernet/cisco/enic/enic_main.c 	int i, res;
res              1612 drivers/net/ethernet/cisco/enic/enic_main.c 			res = irq_cpu_rmap_add(enic->netdev->rx_cpu_rmap,
res              1614 drivers/net/ethernet/cisco/enic/enic_main.c 			if (unlikely(res)) {
res              2302 drivers/net/ethernet/cisco/enic/enic_main.c 	int res;
res              2306 drivers/net/ethernet/cisco/enic/enic_main.c 	res = vnic_dev_capable_rss_hash_type(enic->vdev, &rss_hash_type);
res              2308 drivers/net/ethernet/cisco/enic/enic_main.c 	if (res) {
res               124 drivers/net/ethernet/cisco/enic/vnic_dev.c 		vdev->res[type].count = count;
res               125 drivers/net/ethernet/cisco/enic/vnic_dev.c 		vdev->res[type].vaddr = (char __iomem *)bar[bar_num].vaddr +
res               127 drivers/net/ethernet/cisco/enic/vnic_dev.c 		vdev->res[type].bus_addr = bar[bar_num].bus_addr + bar_offset;
res               136 drivers/net/ethernet/cisco/enic/vnic_dev.c 	return vdev->res[type].count;
res               143 drivers/net/ethernet/cisco/enic/vnic_dev.c 	if (!vdev->res[type].vaddr)
res               151 drivers/net/ethernet/cisco/enic/vnic_dev.c 		return (char __iomem *)vdev->res[type].vaddr +
res               154 drivers/net/ethernet/cisco/enic/vnic_dev.c 		return (char __iomem *)vdev->res[type].vaddr;
res              1101 drivers/net/ethernet/cisco/enic/vnic_dev.c 	void __iomem *res;
res              1104 drivers/net/ethernet/cisco/enic/vnic_dev.c 	res = vnic_dev_get_res(vdev, RES_TYPE_DEVCMD2, 0);
res              1105 drivers/net/ethernet/cisco/enic/vnic_dev.c 	if (res) {
res                94 drivers/net/ethernet/cisco/enic/vnic_dev.h 	struct vnic_res res[RES_TYPE_MAX];
res              2555 drivers/net/ethernet/cortina/gemini.c 	struct resource *res;
res              2562 drivers/net/ethernet/cortina/gemini.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              2563 drivers/net/ethernet/cortina/gemini.c 	if (!res)
res              2565 drivers/net/ethernet/cortina/gemini.c 	geth->base = devm_ioremap_resource(dev, res);
res              1678 drivers/net/ethernet/dlink/sundance.c 	int res;
res              1680 drivers/net/ethernet/dlink/sundance.c 	res = mii_ethtool_set_link_ksettings(&np->mii_if, cmd);
res              1682 drivers/net/ethernet/dlink/sundance.c 	return res;
res               769 drivers/net/ethernet/dnet.c 	struct resource *res;
res               793 drivers/net/ethernet/dnet.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               794 drivers/net/ethernet/dnet.c 	bp->regs = devm_ioremap_resource(&pdev->dev, res);
res               842 drivers/net/ethernet/dnet.c 	       bp->regs, (unsigned int)res->start, dev->irq, dev->dev_addr);
res               647 drivers/net/ethernet/emulex/benet/be.h 	struct be_resources res;	/* resources available for the func */
res               700 drivers/net/ethernet/emulex/benet/be.h #define be_max_vlans(adapter)		(adapter->res.max_vlans)
res               701 drivers/net/ethernet/emulex/benet/be.h #define be_max_uc(adapter)		(adapter->res.max_uc_mac)
res               702 drivers/net/ethernet/emulex/benet/be.h #define be_max_mc(adapter)		(adapter->res.max_mcast_mac)
res               704 drivers/net/ethernet/emulex/benet/be.h #define be_max_rss(adapter)		(adapter->res.max_rss_qs)
res               705 drivers/net/ethernet/emulex/benet/be.h #define be_max_txqs(adapter)		(adapter->res.max_tx_qs)
res               706 drivers/net/ethernet/emulex/benet/be.h #define be_max_prio_txqs(adapter)	(adapter->res.max_prio_tx_qs)
res               707 drivers/net/ethernet/emulex/benet/be.h #define be_max_rxqs(adapter)		(adapter->res.max_rx_qs)
res               709 drivers/net/ethernet/emulex/benet/be.h #define be_max_func_eqs(adapter)	(adapter->res.max_evt_qs)
res               711 drivers/net/ethernet/emulex/benet/be.h #define be_max_nic_eqs(adapter)		(adapter->res.max_nic_evt_qs)
res               712 drivers/net/ethernet/emulex/benet/be.h #define be_if_cap_flags(adapter)	(adapter->res.if_cap_flags)
res              4320 drivers/net/ethernet/emulex/benet/be_cmds.c static void be_copy_nic_desc(struct be_resources *res,
res              4323 drivers/net/ethernet/emulex/benet/be_cmds.c 	res->max_uc_mac = le16_to_cpu(desc->unicast_mac_count);
res              4324 drivers/net/ethernet/emulex/benet/be_cmds.c 	res->max_vlans = le16_to_cpu(desc->vlan_count);
res              4325 drivers/net/ethernet/emulex/benet/be_cmds.c 	res->max_mcast_mac = le16_to_cpu(desc->mcast_mac_count);
res              4326 drivers/net/ethernet/emulex/benet/be_cmds.c 	res->max_tx_qs = le16_to_cpu(desc->txq_count);
res              4327 drivers/net/ethernet/emulex/benet/be_cmds.c 	res->max_rss_qs = le16_to_cpu(desc->rssq_count);
res              4328 drivers/net/ethernet/emulex/benet/be_cmds.c 	res->max_rx_qs = le16_to_cpu(desc->rq_count);
res              4329 drivers/net/ethernet/emulex/benet/be_cmds.c 	res->max_evt_qs = le16_to_cpu(desc->eq_count);
res              4330 drivers/net/ethernet/emulex/benet/be_cmds.c 	res->max_cq_count = le16_to_cpu(desc->cq_count);
res              4331 drivers/net/ethernet/emulex/benet/be_cmds.c 	res->max_iface_count = le16_to_cpu(desc->iface_count);
res              4332 drivers/net/ethernet/emulex/benet/be_cmds.c 	res->max_mcc_count = le16_to_cpu(desc->mcc_count);
res              4334 drivers/net/ethernet/emulex/benet/be_cmds.c 	res->if_cap_flags = le32_to_cpu(desc->cap_flags) &
res              4339 drivers/net/ethernet/emulex/benet/be_cmds.c int be_cmd_get_func_config(struct be_adapter *adapter, struct be_resources *res)
res              4395 drivers/net/ethernet/emulex/benet/be_cmds.c 		if (res)
res              4396 drivers/net/ethernet/emulex/benet/be_cmds.c 			be_copy_nic_desc(res, desc);
res              4432 drivers/net/ethernet/emulex/benet/be_cmds.c 			      struct be_resources *res,
res              4503 drivers/net/ethernet/emulex/benet/be_cmds.c 		res->max_vfs = le16_to_cpu(pcie->num_vfs);
res              4512 drivers/net/ethernet/emulex/benet/be_cmds.c 		be_copy_nic_desc(res, nic);
res              4517 drivers/net/ethernet/emulex/benet/be_cmds.c 		res->vf_if_cap_flags = vf_res->cap_flags;
res              2494 drivers/net/ethernet/emulex/benet/be_cmds.h 			   struct be_resources *res);
res              2496 drivers/net/ethernet/emulex/benet/be_cmds.h 			      struct be_resources *res,
res              2509 drivers/net/ethernet/emulex/benet/be_cmds.h 			    struct be_resources res, u16 num_vfs,
res              4027 drivers/net/ethernet/emulex/benet/be_main.c 	struct be_resources res = adapter->pool_res;
res              4028 drivers/net/ethernet/emulex/benet/be_main.c 	u32 vf_if_cap_flags = res.vf_if_cap_flags;
res              4038 drivers/net/ethernet/emulex/benet/be_main.c 				res.max_rss_qs / (num_vfs + 1));
res              4063 drivers/net/ethernet/emulex/benet/be_main.c 			if (res.if_cap_flags & BE_IF_FLAGS_DEFQ_RSS)
res              4081 drivers/net/ethernet/emulex/benet/be_main.c 	vft_res->max_tx_qs = res.max_tx_qs / (num_vfs + 1);
res              4082 drivers/net/ethernet/emulex/benet/be_main.c 	vft_res->max_cq_count = res.max_cq_count / (num_vfs + 1);
res              4088 drivers/net/ethernet/emulex/benet/be_main.c 		vft_res->max_uc_mac = res.max_uc_mac / (num_vfs + 1);
res              4091 drivers/net/ethernet/emulex/benet/be_main.c 		vft_res->max_vlans = res.max_vlans / (num_vfs + 1);
res              4094 drivers/net/ethernet/emulex/benet/be_main.c 		vft_res->max_iface_count = res.max_iface_count / (num_vfs + 1);
res              4097 drivers/net/ethernet/emulex/benet/be_main.c 		vft_res->max_mcc_count = res.max_mcc_count / (num_vfs + 1);
res              4152 drivers/net/ethernet/emulex/benet/be_main.c 	struct be_resources res = {0};
res              4162 drivers/net/ethernet/emulex/benet/be_main.c 			status = be_cmd_get_profile_config(adapter, &res, NULL,
res              4167 drivers/net/ethernet/emulex/benet/be_main.c 				cap_flags = res.if_cap_flags;
res              4314 drivers/net/ethernet/emulex/benet/be_main.c 			      struct be_resources *res)
res              4319 drivers/net/ethernet/emulex/benet/be_main.c 		res->max_uc_mac = BE_UC_PMAC_COUNT;
res              4321 drivers/net/ethernet/emulex/benet/be_main.c 		res->max_uc_mac = BE_VF_UC_PMAC_COUNT;
res              4330 drivers/net/ethernet/emulex/benet/be_main.c 			res->max_vlans = BE_NUM_VLANS_SUPPORTED/8;
res              4335 drivers/net/ethernet/emulex/benet/be_main.c 			res->max_vlans = (BE_NUM_VLANS_SUPPORTED / 4) - 1;
res              4337 drivers/net/ethernet/emulex/benet/be_main.c 		res->max_vlans = BE_NUM_VLANS_SUPPORTED;
res              4340 drivers/net/ethernet/emulex/benet/be_main.c 	res->max_mcast_mac = BE_MAX_MC;
res              4350 drivers/net/ethernet/emulex/benet/be_main.c 		res->max_tx_qs = 1;
res              4361 drivers/net/ethernet/emulex/benet/be_main.c 		res->max_tx_qs = super_nic_res.max_tx_qs ? : BE3_MAX_TX_QS;
res              4363 drivers/net/ethernet/emulex/benet/be_main.c 		res->max_tx_qs = BE3_MAX_TX_QS;
res              4368 drivers/net/ethernet/emulex/benet/be_main.c 		res->max_rss_qs = (adapter->be3_native) ?
res              4370 drivers/net/ethernet/emulex/benet/be_main.c 	res->max_rx_qs = res->max_rss_qs + 1;
res              4373 drivers/net/ethernet/emulex/benet/be_main.c 		res->max_evt_qs = (be_max_vfs(adapter) > 0) ?
res              4376 drivers/net/ethernet/emulex/benet/be_main.c 		res->max_evt_qs = 1;
res              4378 drivers/net/ethernet/emulex/benet/be_main.c 	res->if_cap_flags = BE_IF_CAP_FLAGS_WANT;
res              4379 drivers/net/ethernet/emulex/benet/be_main.c 	res->if_cap_flags &= ~BE_IF_FLAGS_DEFQ_RSS;
res              4381 drivers/net/ethernet/emulex/benet/be_main.c 		res->if_cap_flags &= ~BE_IF_FLAGS_RSS;
res              4425 drivers/net/ethernet/emulex/benet/be_main.c 	struct be_resources res = {0};
res              4428 drivers/net/ethernet/emulex/benet/be_main.c 	be_cmd_get_profile_config(adapter, &res, NULL, ACTIVE_PROFILE_TYPE,
res              4432 drivers/net/ethernet/emulex/benet/be_main.c 	if (BE3_chip(adapter) && !res.max_vfs) {
res              4434 drivers/net/ethernet/emulex/benet/be_main.c 		res.max_vfs = max_vfs > 0 ? min(MAX_VFS, max_vfs) : 0;
res              4437 drivers/net/ethernet/emulex/benet/be_main.c 	adapter->pool_res = res;
res              4491 drivers/net/ethernet/emulex/benet/be_main.c 	struct be_resources res = {0};
res              4499 drivers/net/ethernet/emulex/benet/be_main.c 		BEx_get_resources(adapter, &res);
res              4501 drivers/net/ethernet/emulex/benet/be_main.c 		status = be_cmd_get_func_config(adapter, &res);
res              4506 drivers/net/ethernet/emulex/benet/be_main.c 		if (res.max_rss_qs && res.max_rss_qs == res.max_rx_qs &&
res              4507 drivers/net/ethernet/emulex/benet/be_main.c 		    !(res.if_cap_flags & BE_IF_FLAGS_DEFQ_RSS))
res              4508 drivers/net/ethernet/emulex/benet/be_main.c 			res.max_rss_qs -= 1;
res              4512 drivers/net/ethernet/emulex/benet/be_main.c 	res.max_nic_evt_qs = be_roce_supported(adapter) ?
res              4513 drivers/net/ethernet/emulex/benet/be_main.c 				res.max_evt_qs / 2 : res.max_evt_qs;
res              4514 drivers/net/ethernet/emulex/benet/be_main.c 	adapter->res = res;
res              1023 drivers/net/ethernet/ethoc.c 	struct resource *res = NULL;
res              1043 drivers/net/ethernet/ethoc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1044 drivers/net/ethernet/ethoc.c 	if (!res) {
res              1050 drivers/net/ethernet/ethoc.c 	mmio = devm_request_mem_region(&pdev->dev, res->start,
res              1051 drivers/net/ethernet/ethoc.c 			resource_size(res), res->name);
res              1061 drivers/net/ethernet/ethoc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res              1062 drivers/net/ethernet/ethoc.c 	if (res) {
res              1063 drivers/net/ethernet/ethoc.c 		mem = devm_request_mem_region(&pdev->dev, res->start,
res              1064 drivers/net/ethernet/ethoc.c 			resource_size(res), res->name);
res              1077 drivers/net/ethernet/ethoc.c 	res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
res              1078 drivers/net/ethernet/ethoc.c 	if (!res) {
res              1084 drivers/net/ethernet/ethoc.c 	netdev->irq = res->start;
res               417 drivers/net/ethernet/ezchip/nps_enet.c 	s32 res;
res               422 drivers/net/ethernet/ezchip/nps_enet.c 	res = eth_mac_addr(ndev, p);
res               423 drivers/net/ethernet/ezchip/nps_enet.c 	if (!res) {
res               428 drivers/net/ethernet/ezchip/nps_enet.c 	return res;
res                56 drivers/net/ethernet/faraday/ftgmac100.c 	struct resource *res;
res              1738 drivers/net/ethernet/faraday/ftgmac100.c 	struct resource *res;
res              1748 drivers/net/ethernet/faraday/ftgmac100.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1749 drivers/net/ethernet/faraday/ftgmac100.c 	if (!res)
res              1778 drivers/net/ethernet/faraday/ftgmac100.c 	priv->res = request_mem_region(res->start, resource_size(res),
res              1780 drivers/net/ethernet/faraday/ftgmac100.c 	if (!priv->res) {
res              1786 drivers/net/ethernet/faraday/ftgmac100.c 	priv->base = ioremap(res->start, resource_size(res));
res              1894 drivers/net/ethernet/faraday/ftgmac100.c 	release_resource(priv->res);
res              1921 drivers/net/ethernet/faraday/ftgmac100.c 	release_resource(priv->res);
res                51 drivers/net/ethernet/faraday/ftmac100.c 	struct resource *res;
res              1056 drivers/net/ethernet/faraday/ftmac100.c 	struct resource *res;
res              1065 drivers/net/ethernet/faraday/ftmac100.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1066 drivers/net/ethernet/faraday/ftmac100.c 	if (!res)
res              1097 drivers/net/ethernet/faraday/ftmac100.c 	priv->res = request_mem_region(res->start, resource_size(res),
res              1099 drivers/net/ethernet/faraday/ftmac100.c 	if (!priv->res) {
res              1105 drivers/net/ethernet/faraday/ftmac100.c 	priv->base = ioremap(res->start, resource_size(res));
res              1142 drivers/net/ethernet/faraday/ftmac100.c 	release_resource(priv->res);
res              1161 drivers/net/ethernet/faraday/ftmac100.c 	release_resource(priv->res);
res               191 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c 	size_t res = DPAA_BP_RAW_SIZE / 4;
res               195 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c 		res *= 2;
res               196 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c 	return res;
res               235 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c 	net_dev->mem_start = priv->mac_dev->res->start;
res               236 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c 	net_dev->mem_end = priv->mac_dev->res->end;
res              1584 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c 	int res, i;
res              1591 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c 		res  = dpaa_eth_refill_bpool(dpaa_bp, countptr);
res              1592 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c 		if (res)
res              1593 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c 			return res;
res                47 drivers/net/ethernet/freescale/dpaa/dpaa_eth_sysfs.c 				(unsigned long long)mac_dev->res->start);
res               558 drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c 	int cpu, res;
res               574 drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c 		res = qman_portal_set_iperiod(portal, period);
res               575 drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c 		if (res)
res               577 drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c 		res = qman_dqrr_set_ithresh(portal, thresh);
res               578 drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c 		if (res) {
res               598 drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c 	return res;
res               345 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 	ch->xdp.res |= xdp_act;
res              1124 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 	ch->xdp.res = 0;
res              1183 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 	if (ch->xdp.res & XDP_REDIRECT)
res               325 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.h 	unsigned int res;
res               100 drivers/net/ethernet/freescale/enetc/enetc_pf.c 	int res = 0;
res               107 drivers/net/ethernet/freescale/enetc/enetc_pf.c 		res |= (hweight64(fold & (mask << i)) & 0x1) << i;
res               109 drivers/net/ethernet/freescale/enetc/enetc_pf.c 	return res;
res               283 drivers/net/ethernet/freescale/enetc/enetc_pf.c 	int res = 0;
res               287 drivers/net/ethernet/freescale/enetc/enetc_pf.c 		res |= (hweight8(vid & (BIT(i) | BIT(i + 6))) & 0x1) << i;
res               289 drivers/net/ethernet/freescale/enetc/enetc_pf.c 	return res;
res                69 drivers/net/ethernet/freescale/fec_mpc52xx_phy.c 	struct resource res;
res                86 drivers/net/ethernet/freescale/fec_mpc52xx_phy.c 	err = of_address_to_resource(np, 0, &res);
res                89 drivers/net/ethernet/freescale/fec_mpc52xx_phy.c 	priv->regs = ioremap(res.start, resource_size(&res));
res                95 drivers/net/ethernet/freescale/fec_mpc52xx_phy.c 	snprintf(bus->id, MII_BUS_ID_SIZE, "%x", res.start);
res               488 drivers/net/ethernet/freescale/fman/fman.c 	u32 res[(0x1000 - 0x848) / 4];	/* 0x848..0xFFF */
res               532 drivers/net/ethernet/freescale/fman/fman.c 	struct resource *res;
res              1739 drivers/net/ethernet/freescale/fman/fman.c 	fman->state->res = fman->dts_params.res;
res              2414 drivers/net/ethernet/freescale/fman/fman.c 	return fman->state->res;
res              2717 drivers/net/ethernet/freescale/fman/fman.c 	struct resource *res;
res              2740 drivers/net/ethernet/freescale/fman/fman.c 	res = platform_get_resource(of_dev, IORESOURCE_IRQ, 0);
res              2741 drivers/net/ethernet/freescale/fman/fman.c 	if (!res) {
res              2746 drivers/net/ethernet/freescale/fman/fman.c 	irq = res->start;
res              2749 drivers/net/ethernet/freescale/fman/fman.c 	res = platform_get_resource(of_dev, IORESOURCE_IRQ, 1);
res              2750 drivers/net/ethernet/freescale/fman/fman.c 	if (!res) {
res              2755 drivers/net/ethernet/freescale/fman/fman.c 	fman->dts_params.err_irq = res->start;
res              2758 drivers/net/ethernet/freescale/fman/fman.c 	res = platform_get_resource(of_dev, IORESOURCE_MEM, 0);
res              2759 drivers/net/ethernet/freescale/fman/fman.c 	if (!res) {
res              2765 drivers/net/ethernet/freescale/fman/fman.c 	phys_base_addr = res->start;
res              2766 drivers/net/ethernet/freescale/fman/fman.c 	mem_size = resource_size(res);
res              2832 drivers/net/ethernet/freescale/fman/fman.c 	fman->dts_params.res =
res              2835 drivers/net/ethernet/freescale/fman/fman.c 	if (!fman->dts_params.res) {
res               310 drivers/net/ethernet/freescale/fman/fman.h 	struct resource *res;                   /* FMan memory resource */
res              1759 drivers/net/ethernet/freescale/fman/fman_port.c 	struct resource res;
res              1848 drivers/net/ethernet/freescale/fman/fman_port.c 	err = of_address_to_resource(port_node, 0, &res);
res              1860 drivers/net/ethernet/freescale/fman/fman_port.c 	dev_res = __devm_request_region(port->dev, &res, res.start,
res              1861 drivers/net/ethernet/freescale/fman/fman_port.c 					resource_size(&res), "fman-port");
res              1869 drivers/net/ethernet/freescale/fman/fman_port.c 	port->dts_params.base_addr = devm_ioremap(port->dev, res.start,
res              1870 drivers/net/ethernet/freescale/fman/fman_port.c 						  resource_size(&res));
res               103 drivers/net/ethernet/freescale/fman/mac.c 		devm_ioremap(priv->dev, mac_dev->res->start,
res               104 drivers/net/ethernet/freescale/fman/mac.c 			     resource_size(mac_dev->res));
res               606 drivers/net/ethernet/freescale/fman/mac.c 	struct resource		 res;
res               686 drivers/net/ethernet/freescale/fman/mac.c 	err = of_address_to_resource(mac_node, 0, &res);
res               693 drivers/net/ethernet/freescale/fman/mac.c 	mac_dev->res = __devm_request_region(dev,
res               695 drivers/net/ethernet/freescale/fman/mac.c 					     res.start, res.end + 1 - res.start,
res               697 drivers/net/ethernet/freescale/fman/mac.c 	if (!mac_dev->res) {
res               703 drivers/net/ethernet/freescale/fman/mac.c 	priv->vaddr = devm_ioremap(dev, mac_dev->res->start,
res               704 drivers/net/ethernet/freescale/fman/mac.c 				   mac_dev->res->end + 1 - mac_dev->res->start);
res                48 drivers/net/ethernet/freescale/fman/mac.h 	struct resource		*res;
res               113 drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c 	struct resource res;
res               118 drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c 	int ret = of_address_to_resource(np, 0, &res);
res               122 drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c 	if (resource_size(&res) <= 13)
res               129 drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c 	snprintf(bus->id, MII_BUS_ID_SIZE, "%x", res.start);
res               141 drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c 	bitbang->dir = ioremap(res.start, resource_size(&res));
res               102 drivers/net/ethernet/freescale/fs_enet/mii-fec.c 	struct resource res;
res               126 drivers/net/ethernet/freescale/fs_enet/mii-fec.c 	ret = of_address_to_resource(ofdev->dev.of_node, 0, &res);
res               130 drivers/net/ethernet/freescale/fs_enet/mii-fec.c 	snprintf(new_bus->id, MII_BUS_ID_SIZE, "%x", res.start);
res               132 drivers/net/ethernet/freescale/fs_enet/mii-fec.c 	fec->fecp = ioremap(res.start, resource_size(&res));
res               258 drivers/net/ethernet/freescale/fsl_pq_mdio.c 		struct resource res;
res               263 drivers/net/ethernet/freescale/fsl_pq_mdio.c 		ret = of_address_to_resource(np, 0, &res);
res               271 drivers/net/ethernet/freescale/fsl_pq_mdio.c 		if ((start < res.start) || (end > res.end))
res               413 drivers/net/ethernet/freescale/fsl_pq_mdio.c 	struct resource res;
res               438 drivers/net/ethernet/freescale/fsl_pq_mdio.c 	err = of_address_to_resource(np, 0, &res);
res               445 drivers/net/ethernet/freescale/fsl_pq_mdio.c 		 (unsigned long long)res.start);
res               459 drivers/net/ethernet/freescale/fsl_pq_mdio.c 	if (data->mii_offset > resource_size(&res)) {
res               488 drivers/net/ethernet/freescale/fsl_pq_mdio.c 				  data->get_tbipa, priv->map, &res);
res               493 drivers/net/ethernet/freescale/fsl_pq_mdio.c 		data->ucc_configure(res.start, res.end);
res              1013 drivers/net/ethernet/freescale/gianfar.c 	u32 res;
res              1025 drivers/net/ethernet/freescale/gianfar.c 	res = gfar_read((void __iomem *)priv->gfargrp[0].regs + 0xd1c);
res              1026 drivers/net/ethernet/freescale/gianfar.c 	res &= 0x7f807f80;
res              1027 drivers/net/ethernet/freescale/gianfar.c 	if ((res & 0xffff) == (res >> 16))
res              3696 drivers/net/ethernet/freescale/ucc_geth.c 	struct resource res;
res              3782 drivers/net/ethernet/freescale/ucc_geth.c 	err = of_address_to_resource(np, 0, &res);
res              3786 drivers/net/ethernet/freescale/ucc_geth.c 	ug_info->uf_info.regs = res.start;
res               248 drivers/net/ethernet/freescale/xgmac_mdio.c 	struct resource res;
res               252 drivers/net/ethernet/freescale/xgmac_mdio.c 	ret = of_address_to_resource(np, 0, &res);
res               266 drivers/net/ethernet/freescale/xgmac_mdio.c 	snprintf(bus->id, MII_BUS_ID_SIZE, "%llx", (unsigned long long)res.start);
res                50 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c 	struct resource *res;
res               106 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c 			res = platform_get_resource(pdev, IORESOURCE_MEM,
res               108 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c 			if (!res) {
res               114 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c 								  res);
res               118 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c 			res = platform_get_resource(pdev, IORESOURCE_MEM,
res               120 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c 			if (!res) {
res               126 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c 								   res);
res               134 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "ppe-base");
res               135 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c 	if (!res) {
res               136 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c 		res = platform_get_resource(pdev, IORESOURCE_MEM, res_idx++);
res               137 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c 		if (!res) {
res               142 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c 	dsaf_dev->ppe_base = devm_ioremap_resource(&pdev->dev, res);
res               145 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c 	dsaf_dev->ppe_paddr = res->start;
res               148 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c 		res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
res               150 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c 		if (!res) {
res               151 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c 			res = platform_get_resource(pdev, IORESOURCE_MEM,
res               153 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c 			if (!res) {
res               159 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c 		dsaf_dev->io_base = devm_ioremap_resource(&pdev->dev, res);
res               980 drivers/net/ethernet/i825xx/82596.c 	int res = 0;
res               991 drivers/net/ethernet/i825xx/82596.c 			res = -EAGAIN;
res               996 drivers/net/ethernet/i825xx/82596.c 	res = init_rx_bufs(dev);
res               997 drivers/net/ethernet/i825xx/82596.c 	if (res)
res              1003 drivers/net/ethernet/i825xx/82596.c 		res = -EAGAIN;
res              1019 drivers/net/ethernet/i825xx/82596.c 	return res;
res                82 drivers/net/ethernet/i825xx/sni_82596.c 	struct  resource *res, *ca, *idprom, *options;
res                88 drivers/net/ethernet/i825xx/sni_82596.c 	res = platform_get_resource(dev, IORESOURCE_MEM, 0);
res                92 drivers/net/ethernet/i825xx/sni_82596.c 	if (!res || !ca || !options || !idprom)
res                94 drivers/net/ethernet/i825xx/sni_82596.c 	mpu_addr = ioremap_nocache(res->start, 4);
res               101 drivers/net/ethernet/i825xx/sni_82596.c 	printk(KERN_INFO "Found i82596 at 0x%x\n", res->start);
res               110 drivers/net/ethernet/i825xx/sni_82596.c 	netdevice->base_addr = res->start;
res               934 drivers/net/ethernet/ibm/emac/core.c 	int res;
res               936 drivers/net/ethernet/ibm/emac/core.c 	res = __emac_mdio_read((dev->mdio_instance &&
res               940 drivers/net/ethernet/ibm/emac/core.c 	return res;
res              2233 drivers/net/ethernet/ibm/emac/core.c 	int res = 0;
res              2242 drivers/net/ethernet/ibm/emac/core.c 		res = -EINVAL;
res              2250 drivers/net/ethernet/ibm/emac/core.c 	return res;
res              2543 drivers/net/ethernet/ibm/emac/core.c 	int res;
res              2545 drivers/net/ethernet/ibm/emac/core.c 	res = phy_read_status(dev->phy_dev);
res              2546 drivers/net/ethernet/ibm/emac/core.c 	if (res) {
res              2547 drivers/net/ethernet/ibm/emac/core.c 		dev_err(&dev->ofdev->dev, "link update failed (%d).", res);
res              2559 drivers/net/ethernet/ibm/emac/core.c 	int res;
res              2561 drivers/net/ethernet/ibm/emac/core.c 	res = phy_read_status(phy_dev);
res              2562 drivers/net/ethernet/ibm/emac/core.c 	if (res)
res              2563 drivers/net/ethernet/ibm/emac/core.c 		return res;
res              2592 drivers/net/ethernet/ibm/emac/core.c 	int res;
res              2601 drivers/net/ethernet/ibm/emac/core.c 		res = -ENODEV;
res              2607 drivers/net/ethernet/ibm/emac/core.c 		res = -ENOMEM;
res              2618 drivers/net/ethernet/ibm/emac/core.c 	res = of_mdiobus_register(dev->mii_bus, mii_np);
res              2619 drivers/net/ethernet/ibm/emac/core.c 	if (res) {
res              2621 drivers/net/ethernet/ibm/emac/core.c 			dev->mii_bus->name, res);
res              2626 drivers/net/ethernet/ibm/emac/core.c 	return res;
res              2659 drivers/net/ethernet/ibm/emac/core.c 	int res = 1;
res              2664 drivers/net/ethernet/ibm/emac/core.c 		res = emac_dt_mdio_probe(dev);
res              2665 drivers/net/ethernet/ibm/emac/core.c 		if (!res) {
res              2666 drivers/net/ethernet/ibm/emac/core.c 			res = emac_dt_phy_connect(dev, phy_handle);
res              2667 drivers/net/ethernet/ibm/emac/core.c 			if (res)
res              2673 drivers/net/ethernet/ibm/emac/core.c 	return res;
res              2701 drivers/net/ethernet/ibm/emac/core.c 			int res = emac_dt_mdio_probe(dev);
res              2703 drivers/net/ethernet/ibm/emac/core.c 			if (res)
res              2704 drivers/net/ethernet/ibm/emac/core.c 				return res;
res              2706 drivers/net/ethernet/ibm/emac/core.c 			res = of_phy_register_fixed_link(np);
res              2708 drivers/net/ethernet/ibm/emac/core.c 			if (res || !dev->phy_dev) {
res              2710 drivers/net/ethernet/ibm/emac/core.c 				return res ? res : -EINVAL;
res              2759 drivers/net/ethernet/ibm/emac/core.c 		int res = emac_dt_phy_probe(dev);
res              2761 drivers/net/ethernet/ibm/emac/core.c 		switch (res) {
res              2776 drivers/net/ethernet/ibm/emac/core.c 				res);
res              2777 drivers/net/ethernet/ibm/emac/core.c 			return res;
res              1419 drivers/net/ethernet/intel/ice/ice_common.c ice_aq_req_res(struct ice_hw *hw, enum ice_aq_res_ids res,
res              1431 drivers/net/ethernet/intel/ice/ice_common.c 	cmd_resp->res_id = cpu_to_le16(res);
res              1450 drivers/net/ethernet/intel/ice/ice_common.c 	if (res == ICE_GLOBAL_CFG_LOCK_RES_ID) {
res              1488 drivers/net/ethernet/intel/ice/ice_common.c ice_aq_release_res(struct ice_hw *hw, enum ice_aq_res_ids res, u8 sdp_number,
res              1498 drivers/net/ethernet/intel/ice/ice_common.c 	cmd->res_id = cpu_to_le16(res);
res              1514 drivers/net/ethernet/intel/ice/ice_common.c ice_acquire_res(struct ice_hw *hw, enum ice_aq_res_ids res,
res              1522 drivers/net/ethernet/intel/ice/ice_common.c 	status = ice_aq_req_res(hw, res, access, 0, &time_left, NULL);
res              1534 drivers/net/ethernet/intel/ice/ice_common.c 			  "resource %d acquire type %d failed.\n", res, access);
res              1541 drivers/net/ethernet/intel/ice/ice_common.c 		status = ice_aq_req_res(hw, res, access, 0, &time_left, NULL);
res              1573 drivers/net/ethernet/intel/ice/ice_common.c void ice_release_res(struct ice_hw *hw, enum ice_aq_res_ids res)
res              1578 drivers/net/ethernet/intel/ice/ice_common.c 	status = ice_aq_release_res(hw, res, 0, NULL);
res              1586 drivers/net/ethernet/intel/ice/ice_common.c 		status = ice_aq_release_res(hw, res, 0, NULL);
res                32 drivers/net/ethernet/intel/ice/ice_common.h ice_acquire_res(struct ice_hw *hw, enum ice_aq_res_ids res,
res                34 drivers/net/ethernet/intel/ice/ice_common.h void ice_release_res(struct ice_hw *hw, enum ice_aq_res_ids res);
res              2800 drivers/net/ethernet/intel/ice/ice_lib.c int ice_free_res(struct ice_res_tracker *res, u16 index, u16 id)
res              2805 drivers/net/ethernet/intel/ice/ice_lib.c 	if (!res || index >= res->end)
res              2809 drivers/net/ethernet/intel/ice/ice_lib.c 	for (i = index; i < res->end && res->list[i] == id; i++) {
res              2810 drivers/net/ethernet/intel/ice/ice_lib.c 		res->list[i] = 0;
res              2825 drivers/net/ethernet/intel/ice/ice_lib.c static int ice_search_res(struct ice_res_tracker *res, u16 needed, u16 id)
res              2829 drivers/net/ethernet/intel/ice/ice_lib.c 	if (needed > res->end)
res              2836 drivers/net/ethernet/intel/ice/ice_lib.c 		if (res->list[end++] & ICE_RES_VALID_BIT) {
res              2838 drivers/net/ethernet/intel/ice/ice_lib.c 			if ((start + needed) > res->end)
res              2847 drivers/net/ethernet/intel/ice/ice_lib.c 				res->list[i++] = id;
res              2851 drivers/net/ethernet/intel/ice/ice_lib.c 	} while (end < res->end);
res              2866 drivers/net/ethernet/intel/ice/ice_lib.c ice_get_res(struct ice_pf *pf, struct ice_res_tracker *res, u16 needed, u16 id)
res              2868 drivers/net/ethernet/intel/ice/ice_lib.c 	if (!res || !pf)
res              2871 drivers/net/ethernet/intel/ice/ice_lib.c 	if (!needed || needed > res->num_entries || id >= ICE_RES_VALID_BIT) {
res              2874 drivers/net/ethernet/intel/ice/ice_lib.c 			needed, res->num_entries, id);
res              2878 drivers/net/ethernet/intel/ice/ice_lib.c 	return ice_search_res(res, needed, id);
res                92 drivers/net/ethernet/intel/ice/ice_lib.h int ice_free_res(struct ice_res_tracker *res, u16 index, u16 id);
res                95 drivers/net/ethernet/intel/ice/ice_lib.h ice_get_res(struct ice_pf *pf, struct ice_res_tracker *res, u16 needed, u16 id);
res               176 drivers/net/ethernet/intel/ice/ice_switch.c 	struct ice_aqc_add_update_free_vsi_resp *res;
res               182 drivers/net/ethernet/intel/ice/ice_switch.c 	res = &desc.params.add_update_free_vsi_res;
res               199 drivers/net/ethernet/intel/ice/ice_switch.c 		vsi_ctx->vsi_num = le16_to_cpu(res->vsi_num) & ICE_AQ_VSI_NUM_M;
res               200 drivers/net/ethernet/intel/ice/ice_switch.c 		vsi_ctx->vsis_allocd = le16_to_cpu(res->vsi_used);
res               201 drivers/net/ethernet/intel/ice/ice_switch.c 		vsi_ctx->vsis_unallocated = le16_to_cpu(res->vsi_free);
res               236 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c 	struct ice_res_tracker *res;
res               241 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c 	res = pf->irq_tracker;
res               242 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c 	if (!res)
res               246 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c 	if (pf->sriov_base_vector < res->num_entries) {
res               247 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c 		res->end = res->num_entries;
res               249 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c 			res->num_entries - pf->sriov_base_vector;
res               727 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c 	int res;
res               736 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c 	res = max_res;
res               737 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c 	while ((res >= min_res) && !checked_min_res) {
res               740 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c 		num_all_res = pf->num_alloc_vfs * res;
res               742 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c 			return res;
res               744 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c 		if (res == min_res)
res               747 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c 		res = DIV_ROUND_UP(res, 2);
res               780 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c static int ice_get_max_valid_res_idx(struct ice_res_tracker *res)
res               784 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c 	if (!res)
res               787 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c 	for (i = res->num_entries - 1; i >= 0; i--)
res               788 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c 		if (res->list[i] & ICE_RES_VALID_BIT)
res               817 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c 	struct ice_res_tracker *res = pf->irq_tracker;
res               834 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c 	if (num_msix_needed > (pf_total_msix_vectors - res->num_entries)) {
res               836 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c 			res->num_entries - pf->sriov_base_vector;
res               837 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c 		res->end = pf->sriov_base_vector;
res                92 drivers/net/ethernet/lantiq_etop.c 	struct resource *res;
res               633 drivers/net/ethernet/lantiq_etop.c 	struct resource *res;
res               637 drivers/net/ethernet/lantiq_etop.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               638 drivers/net/ethernet/lantiq_etop.c 	if (!res) {
res               644 drivers/net/ethernet/lantiq_etop.c 	res = devm_request_mem_region(&pdev->dev, res->start,
res               645 drivers/net/ethernet/lantiq_etop.c 		resource_size(res), dev_name(&pdev->dev));
res               646 drivers/net/ethernet/lantiq_etop.c 	if (!res) {
res               653 drivers/net/ethernet/lantiq_etop.c 		res->start, resource_size(res));
res               670 drivers/net/ethernet/lantiq_etop.c 	priv->res = res;
res               427 drivers/net/ethernet/lantiq_xrx200.c 	struct resource *res;
res               448 drivers/net/ethernet/lantiq_xrx200.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               449 drivers/net/ethernet/lantiq_xrx200.c 	if (!res) {
res               454 drivers/net/ethernet/lantiq_xrx200.c 	priv->pmac_reg = devm_ioremap_resource(dev, res);
res              2707 drivers/net/ethernet/marvell/mv643xx_eth.c 	struct resource res;
res              2715 drivers/net/ethernet/marvell/mv643xx_eth.c 	memset(&res, 0, sizeof(res));
res              2716 drivers/net/ethernet/marvell/mv643xx_eth.c 	if (of_irq_to_resource(pnp, 0, &res) <= 0) {
res              2763 drivers/net/ethernet/marvell/mv643xx_eth.c 	ret = platform_device_add_resources(ppdev, &res, 1);
res              2837 drivers/net/ethernet/marvell/mv643xx_eth.c 	struct resource *res;
res              2844 drivers/net/ethernet/marvell/mv643xx_eth.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              2845 drivers/net/ethernet/marvell/mv643xx_eth.c 	if (res == NULL)
res              2853 drivers/net/ethernet/marvell/mv643xx_eth.c 	msp->base = devm_ioremap(&pdev->dev, res->start, resource_size(res));
res              3084 drivers/net/ethernet/marvell/mv643xx_eth.c 	struct resource *res;
res              3181 drivers/net/ethernet/marvell/mv643xx_eth.c 	res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
res              3182 drivers/net/ethernet/marvell/mv643xx_eth.c 	BUG_ON(!res);
res              3183 drivers/net/ethernet/marvell/mv643xx_eth.c 	dev->irq = res->start;
res              5696 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c 	struct resource *res;
res              5731 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c 		res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res              5741 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c 			release_resource(res);
res              5743 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c 		priv->iface_base = devm_ioremap_resource(&pdev->dev, res);
res                95 drivers/net/ethernet/marvell/octeontx2/af/common.h 	struct qmem	*res;
res               123 drivers/net/ethernet/marvell/octeontx2/af/common.h 	struct	npa_aq_res_s	res;
res               130 drivers/net/ethernet/marvell/octeontx2/af/common.h 	struct	npa_aq_res_s	res;
res               847 drivers/net/ethernet/marvell/octeontx2/af/rvu.c 	qmem_free(rvu->dev, aq->res);
res               870 drivers/net/ethernet/marvell/octeontx2/af/rvu.c 	err = qmem_alloc(rvu->dev, &aq->res, qsize, res_size);
res               421 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c 	result = (struct nix_aq_res_s *)aq->res->base;
res               543 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c 	inst.res_addr = (u64)aq->res->iova;
res               546 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c 	memset(aq->res->base, 0, aq->res->entry_sz);
res               548 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c 	ctx = aq->res->base + 128;
res               550 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c 	mask = aq->res->base + 256;
res                26 drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c 	result = (struct npa_aq_res_s *)aq->res->base;
res                95 drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c 	inst.res_addr = (u64)aq->res->iova;
res                98 drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c 	memset(aq->res->base, 0, aq->res->entry_sz);
res               100 drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c 	ctx = aq->res->base + 128;
res               102 drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c 	mask = aq->res->base + 256;
res              1402 drivers/net/ethernet/marvell/pxa168_eth.c 	struct resource *res;
res              1434 drivers/net/ethernet/marvell/pxa168_eth.c 	res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
res              1435 drivers/net/ethernet/marvell/pxa168_eth.c 	BUG_ON(!res);
res              1436 drivers/net/ethernet/marvell/pxa168_eth.c 	dev->irq = res->start;
res              1432 drivers/net/ethernet/marvell/skge.c 		u16 lpa, res;
res              1443 drivers/net/ethernet/marvell/skge.c 		res = xm_phy_read(hw, port, PHY_XMAC_RES_ABI);
res              1446 drivers/net/ethernet/marvell/skge.c 		switch (res & (PHY_X_RS_HD | PHY_X_RS_FD)) {
res               340 drivers/net/ethernet/mellanox/mlx4/alloc.c 	u32 res;
res               344 drivers/net/ethernet/mellanox/mlx4/alloc.c 	res = mlx4_bitmap_alloc_range(zone->bitmap, count,
res               347 drivers/net/ethernet/mellanox/mlx4/alloc.c 	if (res != (u32)-1) {
res               348 drivers/net/ethernet/mellanox/mlx4/alloc.c 		res += zone->offset;
res               362 drivers/net/ethernet/mellanox/mlx4/alloc.c 			res = mlx4_bitmap_alloc_range(it->bitmap, count,
res               364 drivers/net/ethernet/mellanox/mlx4/alloc.c 			if (res != (u32)-1) {
res               365 drivers/net/ethernet/mellanox/mlx4/alloc.c 				res += it->offset;
res               382 drivers/net/ethernet/mellanox/mlx4/alloc.c 			res = mlx4_bitmap_alloc_range(it->bitmap, count,
res               384 drivers/net/ethernet/mellanox/mlx4/alloc.c 			if (res != (u32)-1) {
res               385 drivers/net/ethernet/mellanox/mlx4/alloc.c 				res += it->offset;
res               401 drivers/net/ethernet/mellanox/mlx4/alloc.c 			res = mlx4_bitmap_alloc_range(curr_node->bitmap, count,
res               403 drivers/net/ethernet/mellanox/mlx4/alloc.c 			if (res != (u32)-1) {
res               404 drivers/net/ethernet/mellanox/mlx4/alloc.c 				res += curr_node->offset;
res               412 drivers/net/ethernet/mellanox/mlx4/alloc.c 	if (NULL != puid && res != (u32)-1)
res               414 drivers/net/ethernet/mellanox/mlx4/alloc.c 	return res;
res               457 drivers/net/ethernet/mellanox/mlx4/alloc.c 	int res = 0;
res               464 drivers/net/ethernet/mellanox/mlx4/alloc.c 		res = -1;
res               474 drivers/net/ethernet/mellanox/mlx4/alloc.c 	return res;
res               512 drivers/net/ethernet/mellanox/mlx4/alloc.c 	int res = -1;
res               521 drivers/net/ethernet/mellanox/mlx4/alloc.c 	res = __mlx4_alloc_from_zone(zone, count, align, skip_mask, puid);
res               526 drivers/net/ethernet/mellanox/mlx4/alloc.c 	return res;
res               532 drivers/net/ethernet/mellanox/mlx4/alloc.c 	int res = 0;
res               539 drivers/net/ethernet/mellanox/mlx4/alloc.c 		res = -1;
res               548 drivers/net/ethernet/mellanox/mlx4/alloc.c 	return res;
res               554 drivers/net/ethernet/mellanox/mlx4/alloc.c 	int res;
res               564 drivers/net/ethernet/mellanox/mlx4/alloc.c 		res = -1;
res               569 drivers/net/ethernet/mellanox/mlx4/alloc.c 	res = 0;
res               574 drivers/net/ethernet/mellanox/mlx4/alloc.c 	return res;
res              1713 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c 	int i, res = 0;
res              1716 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c 			res++;
res              1718 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c 	return res;
res              2333 drivers/net/ethernet/mellanox/mlx4/en_netdev.c 		mlx4_free_hwq_res(mdev->dev, &priv->res, MLX4_EN_PAGE_SIZE);
res              3383 drivers/net/ethernet/mellanox/mlx4/en_netdev.c 	err = mlx4_alloc_hwq_res(mdev->dev, &priv->res,
res                83 drivers/net/ethernet/mellanox/mlx4/en_resources.c 	context->db_rec_addr = cpu_to_be64(priv->res.db.dma << 2);
res              1232 drivers/net/ethernet/mellanox/mlx4/en_rx.c 	err = mlx4_qp_to_ready(mdev->dev, &priv->res.mtt, &context,
res               563 drivers/net/ethernet/mellanox/mlx4/mlx4_en.h 	struct mlx4_hwq_resources res;
res               240 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		struct res_common *res = rb_entry(node, struct res_common,
res               243 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		if (res_id < res->res_id)
res               245 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		else if (res_id > res->res_id)
res               248 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 			return res;
res               253 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static int res_tracker_insert(struct rb_root *root, struct res_common *res)
res               263 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		if (res->res_id < this->res_id)
res               265 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		else if (res->res_id > this->res_id)
res               272 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	rb_link_node(&res->node, parent, new);
res               273 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	rb_insert_color(&res->node, root);
res               893 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		    void *res, const char *func_name)
res               923 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	if (res)
res               924 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		*((struct res_common **)res) = r;
res               931 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c #define get_res(dev, slave, res_id, type, res) \
res               932 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	_get_res((dev), (slave), (res_id), (type), (res), __func__)
res              1336 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static int remove_qp_ok(struct res_qp *res)
res              1338 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	if (res->com.state == RES_QP_BUSY || atomic_read(&res->ref_count) ||
res              1339 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	    !list_empty(&res->mcg_list)) {
res              1341 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		       res->com.state, atomic_read(&res->ref_count));
res              1343 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	} else if (res->com.state != RES_QP_RESERVED) {
res              1350 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static int remove_mtt_ok(struct res_mtt *res, int order)
res              1352 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	if (res->com.state == RES_MTT_BUSY ||
res              1353 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	    atomic_read(&res->ref_count)) {
res              1356 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 			 mtt_states_str(res->com.state),
res              1357 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 			 atomic_read(&res->ref_count));
res              1359 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	} else if (res->com.state != RES_MTT_ALLOCATED)
res              1361 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	else if (res->order != order)
res              1367 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static int remove_mpt_ok(struct res_mpt *res)
res              1369 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	if (res->com.state == RES_MPT_BUSY)
res              1371 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	else if (res->com.state != RES_MPT_RESERVED)
res              1377 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static int remove_eq_ok(struct res_eq *res)
res              1379 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	if (res->com.state == RES_MPT_BUSY)
res              1381 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	else if (res->com.state != RES_MPT_RESERVED)
res              1387 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static int remove_counter_ok(struct res_counter *res)
res              1389 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	if (res->com.state == RES_COUNTER_BUSY)
res              1391 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	else if (res->com.state != RES_COUNTER_ALLOCATED)
res              1397 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static int remove_xrcdn_ok(struct res_xrcdn *res)
res              1399 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	if (res->com.state == RES_XRCD_BUSY)
res              1401 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	else if (res->com.state != RES_XRCD_ALLOCATED)
res              1407 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static int remove_fs_rule_ok(struct res_fs_rule *res)
res              1409 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	if (res->com.state == RES_FS_RULE_BUSY)
res              1411 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	else if (res->com.state != RES_FS_RULE_ALLOCATED)
res              1417 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static int remove_cq_ok(struct res_cq *res)
res              1419 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	if (res->com.state == RES_CQ_BUSY)
res              1421 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	else if (res->com.state != RES_CQ_ALLOCATED)
res              1427 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static int remove_srq_ok(struct res_srq *res)
res              1429 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	if (res->com.state == RES_SRQ_BUSY)
res              1431 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	else if (res->com.state != RES_SRQ_ALLOCATED)
res              1437 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static int remove_ok(struct res_common *res, enum mlx4_resource type, int extra)
res              1441 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		return remove_qp_ok((struct res_qp *)res);
res              1443 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		return remove_cq_ok((struct res_cq *)res);
res              1445 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		return remove_srq_ok((struct res_srq *)res);
res              1447 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		return remove_mpt_ok((struct res_mpt *)res);
res              1449 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		return remove_mtt_ok((struct res_mtt *)res, extra);
res              1453 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		return remove_eq_ok((struct res_eq *)res);
res              1455 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		return remove_counter_ok((struct res_counter *)res);
res              1457 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		return remove_xrcdn_ok((struct res_xrcdn *)res);
res              1459 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		return remove_fs_rule_ok((struct res_fs_rule *)res);
res              2012 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	struct mac_res *res, *tmp;
res              2014 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	list_for_each_entry_safe(res, tmp, mac_list, list) {
res              2015 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		if (res->smac_index == smac_index && res->port == (u8) port) {
res              2016 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 			*mac = res->mac;
res              2029 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	struct mac_res *res, *tmp;
res              2031 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	list_for_each_entry_safe(res, tmp, mac_list, list) {
res              2032 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		if (res->mac == mac && res->port == (u8) port) {
res              2034 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 			++res->ref_count;
res              2041 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	res = kzalloc(sizeof(*res), GFP_KERNEL);
res              2042 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	if (!res) {
res              2046 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	res->mac = mac;
res              2047 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	res->port = (u8) port;
res              2048 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	res->smac_index = smac_index;
res              2049 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	res->ref_count = 1;
res              2050 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	list_add_tail(&res->list,
res              2062 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	struct mac_res *res, *tmp;
res              2064 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	list_for_each_entry_safe(res, tmp, mac_list, list) {
res              2065 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		if (res->mac == mac && res->port == (u8) port) {
res              2066 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 			if (!--res->ref_count) {
res              2067 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 				list_del(&res->list);
res              2069 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 				kfree(res);
res              2082 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	struct mac_res *res, *tmp;
res              2085 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	list_for_each_entry_safe(res, tmp, mac_list, list) {
res              2086 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		list_del(&res->list);
res              2088 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		for (i = 0; i < res->ref_count; i++)
res              2089 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 			__mlx4_unregister_mac(dev, res->port, res->mac);
res              2090 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		mlx4_release_resource(dev, slave, RES_MAC, 1, res->port);
res              2091 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		kfree(res);
res              2136 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	struct vlan_res *res, *tmp;
res              2138 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	list_for_each_entry_safe(res, tmp, vlan_list, list) {
res              2139 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		if (res->vlan == vlan && res->port == (u8) port) {
res              2141 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 			++res->ref_count;
res              2148 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	res = kzalloc(sizeof(*res), GFP_KERNEL);
res              2149 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	if (!res) {
res              2153 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	res->vlan = vlan;
res              2154 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	res->port = (u8) port;
res              2155 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	res->vlan_index = vlan_index;
res              2156 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	res->ref_count = 1;
res              2157 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	list_add_tail(&res->list,
res              2170 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	struct vlan_res *res, *tmp;
res              2172 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	list_for_each_entry_safe(res, tmp, vlan_list, list) {
res              2173 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		if (res->vlan == vlan && res->port == (u8) port) {
res              2174 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 			if (!--res->ref_count) {
res              2175 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 				list_del(&res->list);
res              2178 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 				kfree(res);
res              2191 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	struct vlan_res *res, *tmp;
res              2194 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	list_for_each_entry_safe(res, tmp, vlan_list, list) {
res              2195 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		list_del(&res->list);
res              2197 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		for (i = 0; i < res->ref_count; i++)
res              2198 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 			__mlx4_unregister_vlan(dev, res->port, res->vlan);
res              2199 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		mlx4_release_resource(dev, slave, RES_VLAN, 1, res->port);
res              2200 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		kfree(res);
res              3159 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 			      int len, struct res_mtt **res)
res              3170 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 			*res = mtt;
res              4018 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	struct res_gid *res;
res              4020 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	list_for_each_entry(res, &rqp->mcg_list, list) {
res              4021 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		if (!memcmp(res->gid, gid, 16))
res              4022 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 			return res;
res              4031 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	struct res_gid *res;
res              4034 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	res = kzalloc(sizeof(*res), GFP_KERNEL);
res              4035 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	if (!res)
res              4040 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		kfree(res);
res              4043 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		memcpy(res->gid, gid, 16);
res              4044 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		res->prot = prot;
res              4045 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		res->steer = steer;
res              4046 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		res->reg_id = reg_id;
res              4047 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		list_add_tail(&res->list, &rqp->mcg_list);
res              4059 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	struct res_gid *res;
res              4063 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	res = find_gid(dev, slave, rqp, gid);
res              4064 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	if (!res || res->prot != prot || res->steer != steer)
res              4067 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		*reg_id = res->reg_id;
res              4068 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		list_del(&res->list);
res              4069 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		kfree(res);
res              4202 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	struct mac_res *res, *tmp;
res              4208 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		list_for_each_entry_safe(res, tmp, rlist, list) {
res              4209 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 			be_mac = cpu_to_be64(res->mac << 16);
res              4228 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	struct mac_res *res, *tmp;
res              4258 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	list_for_each_entry_safe(res, tmp, rlist, list) {
res              4259 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		if (port == res->port) {
res              4260 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 			be_mac = cpu_to_be64(res->mac << 16);
res               314 drivers/net/ethernet/mellanox/mlx5/core/dev.c 	struct mlx5_core_dev *res = NULL;
res               329 drivers/net/ethernet/mellanox/mlx5/core/dev.c 			res = tmp_dev;
res               334 drivers/net/ethernet/mellanox/mlx5/core/dev.c 	return res;
res               167 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_geneve.c 	int res = 0;
res               249 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_geneve.c 	res = mlx5_geneve_tlv_option_add(priv->mdev->geneve, option_key);
res               250 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_geneve.c 	if (res) {
res               257 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_geneve.c 		return res;
res               258 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/umem.c 	u16 res = xsk->refcnt ? params->num_channels : 0;
res               260 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/umem.c 	while (res) {
res               261 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/umem.c 		if (mlx5e_xsk_get_umem(params, xsk, res - 1))
res               263 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/umem.c 		--res;
res               266 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/umem.c 	return res;
res                93 drivers/net/ethernet/mellanox/mlx5/core/en_common.c 	struct mlx5e_resources *res = &mdev->mlx5e_res;
res                96 drivers/net/ethernet/mellanox/mlx5/core/en_common.c 	err = mlx5_core_alloc_pd(mdev, &res->pdn);
res               102 drivers/net/ethernet/mellanox/mlx5/core/en_common.c 	err = mlx5_core_alloc_transport_domain(mdev, &res->td.tdn);
res               108 drivers/net/ethernet/mellanox/mlx5/core/en_common.c 	err = mlx5e_create_mkey(mdev, res->pdn, &res->mkey);
res               114 drivers/net/ethernet/mellanox/mlx5/core/en_common.c 	err = mlx5_alloc_bfreg(mdev, &res->bfreg, false, false);
res               126 drivers/net/ethernet/mellanox/mlx5/core/en_common.c 	mlx5_core_destroy_mkey(mdev, &res->mkey);
res               128 drivers/net/ethernet/mellanox/mlx5/core/en_common.c 	mlx5_core_dealloc_transport_domain(mdev, res->td.tdn);
res               130 drivers/net/ethernet/mellanox/mlx5/core/en_common.c 	mlx5_core_dealloc_pd(mdev, res->pdn);
res               136 drivers/net/ethernet/mellanox/mlx5/core/en_common.c 	struct mlx5e_resources *res = &mdev->mlx5e_res;
res               138 drivers/net/ethernet/mellanox/mlx5/core/en_common.c 	mlx5_free_bfreg(mdev, &res->bfreg);
res               139 drivers/net/ethernet/mellanox/mlx5/core/en_common.c 	mlx5_core_destroy_mkey(mdev, &res->mkey);
res               140 drivers/net/ethernet/mellanox/mlx5/core/en_common.c 	mlx5_core_dealloc_transport_domain(mdev, res->td.tdn);
res               141 drivers/net/ethernet/mellanox/mlx5/core/en_common.c 	mlx5_core_dealloc_pd(mdev, res->pdn);
res               142 drivers/net/ethernet/mellanox/mlx5/core/en_common.c 	memset(res, 0, sizeof(*res));
res               222 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c 	int res;
res               243 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c 	res = mlx5_fpga_sbu_conn_sendmsg(fdev->ipsec->conn, &context->buf);
res               244 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c 	if (!res)
res               248 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c 	if (res) {
res               249 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c 		mlx5_fpga_warn(fdev, "Failed to send IPSec command: %d\n", res);
res               251 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c 		return ERR_PTR(res);
res               263 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c 	int res;
res               265 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c 	res = wait_for_completion_timeout(&context->complete, timeout);
res               266 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c 	if (!res) {
res               272 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c 		res = context->status_code;
res               274 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c 		res = -EIO;
res               276 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c 	return res;
res               629 drivers/net/ethernet/mellanox/mlx5/core/lag.c 	bool res;
res               633 drivers/net/ethernet/mellanox/mlx5/core/lag.c 	res  = ldev && __mlx5_lag_is_roce(ldev);
res               636 drivers/net/ethernet/mellanox/mlx5/core/lag.c 	return res;
res               643 drivers/net/ethernet/mellanox/mlx5/core/lag.c 	bool res;
res               647 drivers/net/ethernet/mellanox/mlx5/core/lag.c 	res  = ldev && __mlx5_lag_is_active(ldev);
res               650 drivers/net/ethernet/mellanox/mlx5/core/lag.c 	return res;
res               657 drivers/net/ethernet/mellanox/mlx5/core/lag.c 	bool res;
res               661 drivers/net/ethernet/mellanox/mlx5/core/lag.c 	res  = ldev && __mlx5_lag_is_sriov(ldev);
res               664 drivers/net/ethernet/mellanox/mlx5/core/lag.c 	return res;
res                28 drivers/net/ethernet/mellanox/mlx5/core/lag_mp.c 	bool res;
res                31 drivers/net/ethernet/mellanox/mlx5/core/lag_mp.c 	res  = ldev && __mlx5_lag_is_multipath(ldev);
res                33 drivers/net/ethernet/mellanox/mlx5/core/lag_mp.c 	return res;
res                65 drivers/net/ethernet/mellanox/mlx5/core/lib/geneve.c 	int res = 0;
res                87 drivers/net/ethernet/mellanox/mlx5/core/lib/geneve.c 			res = -EOPNOTSUPP;
res                93 drivers/net/ethernet/mellanox/mlx5/core/lib/geneve.c 		res = mlx5_geneve_tlv_option_create(geneve->mdev,
res                97 drivers/net/ethernet/mellanox/mlx5/core/lib/geneve.c 		if (res < 0) {
res               101 drivers/net/ethernet/mellanox/mlx5/core/lib/geneve.c 				       opt->type, opt->length, res);
res               106 drivers/net/ethernet/mellanox/mlx5/core/lib/geneve.c 		geneve->obj_id = res;
res               112 drivers/net/ethernet/mellanox/mlx5/core/lib/geneve.c 	return res;
res               175 drivers/net/ethernet/mellanox/mlx5/core/qp.c 	switch (common->res) {
res               203 drivers/net/ethernet/mellanox/mlx5/core/qp.c 	qp->common.res = rsc_type;
res               227 drivers/net/ethernet/mellanox/mlx5/core/qp.c 			  qp->qpn | (qp->common.res << MLX5_USER_INDEX_LEN));
res               733 drivers/net/ethernet/mellanox/mlx5/core/qp.c void mlx5_core_res_put(struct mlx5_core_rsc_common *res)
res               735 drivers/net/ethernet/mellanox/mlx5/core/qp.c 	mlx5_core_put_rsc(res);
res                78 drivers/net/ethernet/mellanox/mlxsw/core.c 	struct mlxsw_res res;
res              1106 drivers/net/ethernet/mellanox/mlxsw/core.c 	struct mlxsw_res *res;
res              1131 drivers/net/ethernet/mellanox/mlxsw/core.c 	res = mlxsw_driver->res_query_enabled ? &mlxsw_core->res : NULL;
res              1132 drivers/net/ethernet/mellanox/mlxsw/core.c 	err = mlxsw_bus->init(bus_priv, mlxsw_core, mlxsw_driver->profile, res);
res              1861 drivers/net/ethernet/mellanox/mlxsw/core.c 	return mlxsw_res_valid(&mlxsw_core->res, res_id);
res              1868 drivers/net/ethernet/mellanox/mlxsw/core.c 	return mlxsw_res_get(&mlxsw_core->res, res_id);
res              2122 drivers/net/ethernet/mellanox/mlxsw/core.c 			       struct mlxsw_res *res)
res              2129 drivers/net/ethernet/mellanox/mlxsw/core.c 	if (!res)
res              2147 drivers/net/ethernet/mellanox/mlxsw/core.c 			mlxsw_res_parse(res, id, data);
res               201 drivers/net/ethernet/mellanox/mlxsw/core.h 			       struct mlxsw_res *res);
res               360 drivers/net/ethernet/mellanox/mlxsw/core.h 		    struct mlxsw_res *res);
res               511 drivers/net/ethernet/mellanox/mlxsw/i2c.c 	       struct mlxsw_res *res)
res               534 drivers/net/ethernet/mellanox/mlxsw/i2c.c 	err = mlxsw_core_resources_query(mlxsw_core, mbox, res);
res              1056 drivers/net/ethernet/mellanox/mlxsw/pci.c 				struct mlxsw_res *res)
res              1067 drivers/net/ethernet/mellanox/mlxsw/pci.c 	MLXSW_RES_SET(res, KVD_SINGLE_SIZE, single_size);
res              1068 drivers/net/ethernet/mellanox/mlxsw/pci.c 	MLXSW_RES_SET(res, KVD_DOUBLE_SIZE, double_size);
res              1069 drivers/net/ethernet/mellanox/mlxsw/pci.c 	MLXSW_RES_SET(res, KVD_LINEAR_SIZE, linear_size);
res              1076 drivers/net/ethernet/mellanox/mlxsw/pci.c 				    struct mlxsw_res *res)
res              1165 drivers/net/ethernet/mellanox/mlxsw/pci.c 	if (profile->used_kvd_sizes && MLXSW_RES_VALID(res, KVD_SIZE)) {
res              1166 drivers/net/ethernet/mellanox/mlxsw/pci.c 		err = mlxsw_pci_profile_get_kvd_sizes(mlxsw_pci, profile, res);
res              1172 drivers/net/ethernet/mellanox/mlxsw/pci.c 					MLXSW_RES_GET(res, KVD_LINEAR_SIZE));
res              1176 drivers/net/ethernet/mellanox/mlxsw/pci.c 					MLXSW_RES_GET(res, KVD_SINGLE_SIZE));
res              1180 drivers/net/ethernet/mellanox/mlxsw/pci.c 					MLXSW_RES_GET(res, KVD_DOUBLE_SIZE));
res              1396 drivers/net/ethernet/mellanox/mlxsw/pci.c 			  struct mlxsw_res *res)
res              1474 drivers/net/ethernet/mellanox/mlxsw/pci.c 	err = mlxsw_core_resources_query(mlxsw_core, mbox, res);
res              1493 drivers/net/ethernet/mellanox/mlxsw/pci.c 	err = mlxsw_pci_config_profile(mlxsw_pci, mbox, profile, res);
res               118 drivers/net/ethernet/mellanox/mlxsw/resources.h static inline bool mlxsw_res_valid(struct mlxsw_res *res,
res               121 drivers/net/ethernet/mellanox/mlxsw/resources.h 	return res->valid[res_id];
res               124 drivers/net/ethernet/mellanox/mlxsw/resources.h #define MLXSW_RES_VALID(res, short_res_id)			\
res               125 drivers/net/ethernet/mellanox/mlxsw/resources.h 	mlxsw_res_valid(res, MLXSW_RES_ID_##short_res_id)
res               127 drivers/net/ethernet/mellanox/mlxsw/resources.h static inline u64 mlxsw_res_get(struct mlxsw_res *res,
res               130 drivers/net/ethernet/mellanox/mlxsw/resources.h 	if (WARN_ON(!res->valid[res_id]))
res               132 drivers/net/ethernet/mellanox/mlxsw/resources.h 	return res->values[res_id];
res               135 drivers/net/ethernet/mellanox/mlxsw/resources.h #define MLXSW_RES_GET(res, short_res_id)			\
res               136 drivers/net/ethernet/mellanox/mlxsw/resources.h 	mlxsw_res_get(res, MLXSW_RES_ID_##short_res_id)
res               138 drivers/net/ethernet/mellanox/mlxsw/resources.h static inline void mlxsw_res_set(struct mlxsw_res *res,
res               141 drivers/net/ethernet/mellanox/mlxsw/resources.h 	res->valid[res_id] = true;
res               142 drivers/net/ethernet/mellanox/mlxsw/resources.h 	res->values[res_id] = value;
res               145 drivers/net/ethernet/mellanox/mlxsw/resources.h #define MLXSW_RES_SET(res, short_res_id, value)			\
res               146 drivers/net/ethernet/mellanox/mlxsw/resources.h 	mlxsw_res_set(res, MLXSW_RES_ID_##short_res_id, value)
res               148 drivers/net/ethernet/mellanox/mlxsw/resources.h static inline void mlxsw_res_parse(struct mlxsw_res *res, u16 id, u64 value)
res               154 drivers/net/ethernet/mellanox/mlxsw/resources.h 			mlxsw_res_set(res, i, value);
res               112 drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c 	return mr_route->mfc->mfc_un.res.ttls[ivif] != 255;
res               318 drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c 		if (mfc->mfc_un.res.ttls[i] != 255) {
res               989 drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c 	if (mr_route->mfc->mfc_un.res.pkt != packets)
res               990 drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c 		mr_route->mfc->mfc_un.res.lastuse = jiffies;
res               991 drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c 	mr_route->mfc->mfc_un.res.pkt = packets;
res               992 drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c 	mr_route->mfc->mfc_un.res.bytes = bytes;
res               379 drivers/net/ethernet/mellanox/mlxsw/spectrum_qdisc.c 	struct red_stats *res = xstats_ptr;
res               389 drivers/net/ethernet/mellanox/mlxsw/spectrum_qdisc.c 	res->pdrop += pdrops;
res               390 drivers/net/ethernet/mellanox/mlxsw/spectrum_qdisc.c 	res->prob_drop += early_drops;
res               391 drivers/net/ethernet/mellanox/mlxsw/spectrum_qdisc.c 	res->prob_mark += marks;
res               464 drivers/net/ethernet/moxa/moxart_ether.c 	struct resource *res;
res               483 drivers/net/ethernet/moxa/moxart_ether.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               484 drivers/net/ethernet/moxa/moxart_ether.c 	ndev->base_addr = res->start;
res               485 drivers/net/ethernet/moxa/moxart_ether.c 	priv->base = devm_ioremap_resource(p_dev, res);
res               274 drivers/net/ethernet/mscc/ocelot_board.c 	} res[] = {
res               294 drivers/net/ethernet/mscc/ocelot_board.c 	for (i = 0; i < ARRAY_SIZE(res); i++) {
res               297 drivers/net/ethernet/mscc/ocelot_board.c 		target = ocelot_io_platform_init(ocelot, pdev, res[i].name);
res               299 drivers/net/ethernet/mscc/ocelot_board.c 			if (res[i].optional) {
res               300 drivers/net/ethernet/mscc/ocelot_board.c 				ocelot->targets[res[i].id] = NULL;
res               307 drivers/net/ethernet/mscc/ocelot_board.c 		ocelot->targets[res[i].id] = target;
res               376 drivers/net/ethernet/mscc/ocelot_board.c 		struct resource *res;
res               388 drivers/net/ethernet/mscc/ocelot_board.c 		res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
res               390 drivers/net/ethernet/mscc/ocelot_board.c 		regs = devm_ioremap_resource(&pdev->dev, res);
res               104 drivers/net/ethernet/mscc/ocelot_io.c 	struct resource *res;
res               107 drivers/net/ethernet/mscc/ocelot_io.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, name);
res               108 drivers/net/ethernet/mscc/ocelot_io.c 	regs = devm_ioremap_resource(ocelot->dev, res);
res               207 drivers/net/ethernet/natsemi/jazzsonic.c 	struct resource *res;
res               210 drivers/net/ethernet/natsemi/jazzsonic.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               211 drivers/net/ethernet/natsemi/jazzsonic.c 	if (!res)
res               225 drivers/net/ethernet/natsemi/jazzsonic.c 	dev->base_addr = res->start;
res              2601 drivers/net/ethernet/natsemi/natsemi.c 	int res;
res              2603 drivers/net/ethernet/natsemi/natsemi.c 	res = netdev_set_ecmd(dev, ecmd);
res              2605 drivers/net/ethernet/natsemi/natsemi.c 	return res;
res              2620 drivers/net/ethernet/natsemi/natsemi.c 	int res;
res              2623 drivers/net/ethernet/natsemi/natsemi.c 	res = netdev_set_sopass(dev, wol->sopass);
res              2625 drivers/net/ethernet/natsemi/natsemi.c 	return res;
res              2674 drivers/net/ethernet/natsemi/natsemi.c 	int res;
res              2682 drivers/net/ethernet/natsemi/natsemi.c 	res = netdev_get_eeprom(dev, eebuf);
res              2684 drivers/net/ethernet/natsemi/natsemi.c 	if (!res)
res              2687 drivers/net/ethernet/natsemi/natsemi.c 	return res;
res               553 drivers/net/ethernet/natsemi/ns83820.c 		long res;
res               563 drivers/net/ethernet/natsemi/ns83820.c 		res = ns83820_add_rx_skb(dev, skb);
res               566 drivers/net/ethernet/natsemi/ns83820.c 		if (res) {
res                53 drivers/net/ethernet/netronome/nfp/abm/cls.c 	if (knode->res && knode->res->class) {
res                57 drivers/net/ethernet/netronome/nfp/abm/cls.c 	if (knode->res && knode->res->classid >= abm->num_bands) {
res               199 drivers/net/ethernet/netronome/nfp/abm/cls.c 		    iter->band != knode->res->classid) {
res               212 drivers/net/ethernet/netronome/nfp/abm/cls.c 	match->band = knode->res->classid;
res                50 drivers/net/ethernet/netronome/nfp/abm/ctrl.c 		  unsigned int queue, bool is_u64, u64 *res)
res                71 drivers/net/ethernet/netronome/nfp/abm/ctrl.c 	*res = is_u64 ? val : val32;
res               363 drivers/net/ethernet/netronome/nfp/abm/ctrl.c 	int res;
res               368 drivers/net/ethernet/netronome/nfp/abm/ctrl.c 	res = nfp_pf_rtsym_read_optional(pf, NFP_RED_SUPPORT_SYM_NAME, 1);
res               369 drivers/net/ethernet/netronome/nfp/abm/ctrl.c 	if (res < 0)
res               370 drivers/net/ethernet/netronome/nfp/abm/ctrl.c 		return res;
res               371 drivers/net/ethernet/netronome/nfp/abm/ctrl.c 	abm->red_support = res;
res               374 drivers/net/ethernet/netronome/nfp/abm/ctrl.c 	res = nfp_pf_rtsym_read_optional(pf, NFP_NUM_BANDS_SYM_NAME, 1);
res               375 drivers/net/ethernet/netronome/nfp/abm/ctrl.c 	if (res < 0)
res               376 drivers/net/ethernet/netronome/nfp/abm/ctrl.c 		return res;
res               377 drivers/net/ethernet/netronome/nfp/abm/ctrl.c 	abm->num_bands = res;
res               379 drivers/net/ethernet/netronome/nfp/abm/ctrl.c 	res = nfp_pf_rtsym_read_optional(pf, NFP_NUM_PRIOS_SYM_NAME, 1);
res               380 drivers/net/ethernet/netronome/nfp/abm/ctrl.c 	if (res < 0)
res               381 drivers/net/ethernet/netronome/nfp/abm/ctrl.c 		return res;
res               382 drivers/net/ethernet/netronome/nfp/abm/ctrl.c 	abm->num_prios = res;
res               385 drivers/net/ethernet/netronome/nfp/abm/ctrl.c 	res = nfp_pf_rtsym_read_optional(pf, NFP_ACT_MASK_SYM_NAME,
res               387 drivers/net/ethernet/netronome/nfp/abm/ctrl.c 	if (res < 0)
res               388 drivers/net/ethernet/netronome/nfp/abm/ctrl.c 		return res;
res               389 drivers/net/ethernet/netronome/nfp/abm/ctrl.c 	abm->action_mask = res;
res               332 drivers/net/ethernet/netronome/nfp/bpf/offload.c 	long long int res;
res               390 drivers/net/ethernet/netronome/nfp/bpf/offload.c 	res = nfp_bpf_ctrl_alloc_map(bpf, &offmap->map);
res               391 drivers/net/ethernet/netronome/nfp/bpf/offload.c 	if (res < 0) {
res               393 drivers/net/ethernet/netronome/nfp/bpf/offload.c 		return res;
res               396 drivers/net/ethernet/netronome/nfp/bpf/offload.c 	nfp_map->tid = res;
res              1012 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c 	struct nfp_resource *res;
res              1021 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c 	res = nfp_resource_acquire(app->cpp, NFP_RESOURCE_NSP_DIAG);
res              1022 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c 	if (IS_ERR(res))
res              1023 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c 		return PTR_ERR(res);
res              1026 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c 		if (dump->len != nfp_resource_size(res)) {
res              1031 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c 		ret = nfp_cpp_read(app->cpp, nfp_resource_cpp_id(res),
res              1032 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c 				   nfp_resource_address(res),
res              1039 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c 		dump->len = nfp_resource_size(res);
res              1043 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c 	nfp_resource_release(res);
res                72 drivers/net/ethernet/netronome/nfp/nfpcore/nfp.h void nfp_resource_release(struct nfp_resource *res);
res                76 drivers/net/ethernet/netronome/nfp/nfpcore/nfp.h u32 nfp_resource_cpp_id(struct nfp_resource *res);
res                78 drivers/net/ethernet/netronome/nfp/nfpcore/nfp.h const char *nfp_resource_name(struct nfp_resource *res);
res                80 drivers/net/ethernet/netronome/nfp/nfpcore/nfp.h u64 nfp_resource_address(struct nfp_resource *res);
res                82 drivers/net/ethernet/netronome/nfp/nfpcore/nfp.h u64 nfp_resource_size(struct nfp_resource *res);
res               574 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 		struct resource *res;
res               576 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 		res = &nfp->pdev->resource[(i >> 3) * 2];
res               579 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 		if (!(resource_type(res) & IORESOURCE_MEM)) {
res               584 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 		bar->resource = res;
res               107 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c static void __resource_add(struct list_head *head, struct nfp_cpp_resource *res)
res               115 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c 		if (tmp->cpp_id > res->cpp_id)
res               118 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c 		if (tmp->cpp_id == res->cpp_id && tmp->start > res->start)
res               122 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c 	list_add_tail(&res->list, pos);
res               125 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c static void __resource_del(struct nfp_cpp_resource *res)
res               127 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c 	list_del_init(&res->list);
res               164 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c 	struct nfp_cpp_resource *res, *rtmp;
res               179 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c 	list_for_each_entry_safe(res, rtmp, &cpp->resource_list, list) {
res               180 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c 		struct nfp_cpp_area *area = container_of(res,
res               185 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c 			NFP_CPP_ID_TARGET_of(res->cpp_id),
res               186 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c 			NFP_CPP_ID_ACTION_of(res->cpp_id),
res               187 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c 			NFP_CPP_ID_TOKEN_of(res->cpp_id),
res               188 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c 			res->start, res->end,
res               189 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c 			res->name ? " " : "",
res               190 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c 			res->name ? res->name : "");
res               250 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c 	int res;
res               256 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c 	res = nfp_cppat_mu_locality_lsb(mode, addr40);
res               257 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c 	if (res < 0)
res               258 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c 		return res;
res               259 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c 	cpp->mu_locality_lsb = res;
res               624 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c 	struct resource *res = NULL;
res               627 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c 		res = area->cpp->op->area_resource(area);
res               629 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c 	return res;
res               277 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cpplib.c 	u8 __iomem *res;
res               283 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cpplib.c 	res = nfp_cpp_area_iomem(*area);
res               284 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cpplib.c 	if (!res)
res               287 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cpplib.c 	return res;
res               155 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_hwinfo.c 	struct nfp_resource *res;
res               161 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_hwinfo.c 	res = nfp_resource_acquire(cpp, NFP_RESOURCE_NFP_HWINFO);
res               162 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_hwinfo.c 	if (!IS_ERR(res)) {
res               163 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_hwinfo.c 		cpp_id = nfp_resource_cpp_id(res);
res               164 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_hwinfo.c 		cpp_addr = nfp_resource_address(res);
res               165 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_hwinfo.c 		*cpp_size = nfp_resource_size(res);
res               167 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_hwinfo.c 		nfp_resource_release(res);
res               171 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_hwinfo.c 	} else if (PTR_ERR(res) == -ENOENT) {
res                80 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nffw.c 	struct nfp_resource *res;
res                92 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nffw.c static u32 nffw_res_info_version_get(const struct nfp_nffw_info_data *res)
res                94 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nffw.c 	return (le32_to_cpu(res->flags[0]) >> 16) & 0xfff;
res                98 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nffw.c static u32 nffw_res_flg_init_get(const struct nfp_nffw_info_data *res)
res               100 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nffw.c 	return (le32_to_cpu(res->flags[0]) >> 0) & 1;
res               170 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nffw.c 	state->res = nfp_resource_acquire(cpp, NFP_RESOURCE_NFP_NFFW);
res               171 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nffw.c 	if (IS_ERR(state->res))
res               176 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nffw.c 	if (sizeof(*fwinf) > nfp_resource_size(state->res))
res               179 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nffw.c 	err = nfp_cpp_read(cpp, nfp_resource_cpp_id(state->res),
res               180 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nffw.c 			   nfp_resource_address(state->res),
res               196 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nffw.c 	nfp_resource_release(state->res);
res               208 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nffw.c 	nfp_resource_release(state->res);
res               128 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c 	struct nfp_resource *res;
res               234 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c 	nsp_cpp = nfp_resource_cpp_id(state->res);
res               235 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c 	nsp_status = nfp_resource_address(state->res) + NSP_STATUS;
res               274 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c 	struct nfp_resource *res;
res               278 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c 	res = nfp_resource_acquire(cpp, NFP_RESOURCE_NSP);
res               279 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c 	if (IS_ERR(res))
res               280 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c 		return (void *)res;
res               284 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c 		nfp_resource_release(res);
res               288 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c 	state->res = res;
res               305 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c 	nfp_resource_release(state->res);
res               366 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c 	nsp_cpp = nfp_resource_cpp_id(state->res);
res               367 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c 	nsp_base = nfp_resource_address(state->res);
res               445 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c 	err = nfp_cpp_readq(cpp, nfp_resource_cpp_id(nsp->res),
res               446 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c 			    nfp_resource_address(nsp->res) +
res               634 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c 	err = nfp_cpp_readq(cpp, nfp_resource_cpp_id(nsp->res),
res               635 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c 			    nfp_resource_address(nsp->res) + NFP_CAP_CMD_DMA_SG,
res               670 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c 	err = nfp_cpp_readq(cpp, nfp_resource_cpp_id(nsp->res),
res               671 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c 			    nfp_resource_address(nsp->res) +
res                69 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_resource.c static int nfp_cpp_resource_find(struct nfp_cpp *cpp, struct nfp_resource *res)
res                78 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_resource.c 	if (!strcmp(res->name, NFP_RESOURCE_TBL_NAME)) {
res                82 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_resource.c 	key = crc32_posix(res->name, NFP_RESOURCE_ENTRY_NAME_SZ);
res                96 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_resource.c 		res->mutex =
res                99 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_resource.c 		res->cpp_id = NFP_CPP_ID(entry.region.cpp_target,
res               102 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_resource.c 		res->addr = (u64)entry.region.page_offset << 8;
res               103 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_resource.c 		res->size = (u64)entry.region.page_size << 8;
res               112 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_resource.c nfp_resource_try_acquire(struct nfp_cpp *cpp, struct nfp_resource *res,
res               120 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_resource.c 	err = nfp_cpp_resource_find(cpp, res);
res               124 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_resource.c 	err = nfp_cpp_mutex_trylock(res->mutex);
res               133 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_resource.c 	nfp_cpp_mutex_free(res->mutex);
res               155 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_resource.c 	struct nfp_resource *res;
res               158 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_resource.c 	res = kzalloc(sizeof(*res), GFP_KERNEL);
res               159 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_resource.c 	if (!res)
res               162 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_resource.c 	strncpy(res->name, name, NFP_RESOURCE_ENTRY_NAME_SZ);
res               168 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_resource.c 		kfree(res);
res               173 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_resource.c 		err = nfp_resource_try_acquire(cpp, res, dev_mutex);
res               199 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_resource.c 	return res;
res               203 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_resource.c 	kfree(res);
res               213 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_resource.c void nfp_resource_release(struct nfp_resource *res)
res               215 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_resource.c 	nfp_cpp_mutex_unlock(res->mutex);
res               216 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_resource.c 	nfp_cpp_mutex_free(res->mutex);
res               217 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_resource.c 	kfree(res);
res               235 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_resource.c 	struct nfp_resource *res;
res               238 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_resource.c 		res = nfp_resource_acquire(cpp, name);
res               239 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_resource.c 		if (!IS_ERR(res)) {
res               240 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_resource.c 			nfp_resource_release(res);
res               244 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_resource.c 		if (PTR_ERR(res) != -ENOENT) {
res               246 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_resource.c 				name, PTR_ERR(res));
res               247 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_resource.c 			return PTR_ERR(res);
res               271 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_resource.c u32 nfp_resource_cpp_id(struct nfp_resource *res)
res               273 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_resource.c 	return res->cpp_id;
res               282 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_resource.c const char *nfp_resource_name(struct nfp_resource *res)
res               284 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_resource.c 	return res->name;
res               293 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_resource.c u64 nfp_resource_address(struct nfp_resource *res)
res               295 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_resource.c 	return res->addr;
res               304 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_resource.c u64 nfp_resource_size(struct nfp_resource *res)
res               306 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_resource.c 	return res->size;
res              1236 drivers/net/ethernet/nxp/lpc_eth.c 	struct resource *res;
res              1243 drivers/net/ethernet/nxp/lpc_eth.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1245 drivers/net/ethernet/nxp/lpc_eth.c 	if (!res || irq < 0) {
res              1284 drivers/net/ethernet/nxp/lpc_eth.c 	pldat->net_base = ioremap(res->start, resource_size(res));
res              1336 drivers/net/ethernet/nxp/lpc_eth.c 	netdev_dbg(ndev, "IO address space     :%pR\n", res);
res              1338 drivers/net/ethernet/nxp/lpc_eth.c 			(size_t)resource_size(res));
res              1389 drivers/net/ethernet/nxp/lpc_eth.c 	       (unsigned long)res->start, ndev->irq);
res              1826 drivers/net/ethernet/packetengines/hamachi.c 	int res;
res              1828 drivers/net/ethernet/packetengines/hamachi.c 	res = mii_ethtool_set_link_ksettings(&np->mii_if, cmd);
res              1830 drivers/net/ethernet/packetengines/hamachi.c 	return res;
res              3917 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	pci_ers_result_t res;
res              3920 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	res = qlcnic_attach_func(pdev) ? PCI_ERS_RESULT_DISCONNECT :
res              3924 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	return res;
res                72 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	struct qlcnic_resources *res = &sriov->ff_max;
res                85 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	info->max_tx_ques = res->num_tx_queues / max;
res                90 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	info->max_rx_mcast_mac_filters = res->num_rx_mcast_mac_filters;
res                96 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 		temp = res->num_rx_ucast_mac_filters - num_macs * num_vfs;
res                98 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 		temp = res->num_tx_mac_filters - num_macs * num_vfs;
res               101 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 		temp = res->num_rx_mcast_mac_filters - temp;
res               104 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 		info->max_tx_ques = res->num_tx_queues - sriov->num_vfs;
res               121 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	info->max_rx_ip_addr = res->num_destip / max;
res               122 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	info->max_rx_status_rings = res->num_rx_status_rings / max;
res               123 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	info->max_rx_buf_rings = res->num_rx_buf_rings / max;
res               124 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	info->max_rx_ques = res->num_rx_queues / max;
res               125 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	info->max_rx_lro_flow = res->num_lro_flows_supported / max;
res               126 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	info->max_tx_vlan_keys = res->num_txvlan_keys;
res               127 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	info->max_local_ipv6_addrs = res->max_local_ipv6_addrs;
res               128 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	info->max_remote_ipv6_addrs = res->max_remote_ipv6_addrs;
res               353 drivers/net/ethernet/qualcomm/emac/emac-sgmii.c 	struct resource *res;
res               396 drivers/net/ethernet/qualcomm/emac/emac-sgmii.c 	res = platform_get_resource(sgmii_pdev, IORESOURCE_MEM, 0);
res               397 drivers/net/ethernet/qualcomm/emac/emac-sgmii.c 	if (!res) {
res               402 drivers/net/ethernet/qualcomm/emac/emac-sgmii.c 	phy->base = ioremap(res->start, resource_size(res));
res               409 drivers/net/ethernet/qualcomm/emac/emac-sgmii.c 	res = platform_get_resource(sgmii_pdev, IORESOURCE_MEM, 1);
res               410 drivers/net/ethernet/qualcomm/emac/emac-sgmii.c 	if (res) {
res               411 drivers/net/ethernet/qualcomm/emac/emac-sgmii.c 		phy->digital = ioremap(res->start, resource_size(res));
res               768 drivers/net/ethernet/realtek/8139too.c 	} res[] = {
res               806 drivers/net/ethernet/realtek/8139too.c 	dev_dbg(d, "%s region size = 0x%02lX\n", res[bar].type, io_len);
res               808 drivers/net/ethernet/realtek/8139too.c 	if (!(pci_resource_flags(pdev, bar) & res[bar].mask)) {
res               810 drivers/net/ethernet/realtek/8139too.c 			res[bar].type);
res               816 drivers/net/ethernet/realtek/8139too.c 			res[bar].type);
res               823 drivers/net/ethernet/realtek/8139too.c 		dev_err(d, "cannot map %s\n", res[bar].type);
res               258 drivers/net/ethernet/realtek/atp.c 	int res;
res               355 drivers/net/ethernet/realtek/atp.c 	res = register_netdev(dev);
res               356 drivers/net/ethernet/realtek/atp.c 	if (res) {
res               358 drivers/net/ethernet/realtek/atp.c 		return res;
res               910 drivers/net/ethernet/renesas/ravb.h 	__le16 res;	/* Reserved bits */
res              1991 drivers/net/ethernet/renesas/ravb_main.c 	struct resource *res;
res              2001 drivers/net/ethernet/renesas/ravb_main.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              2002 drivers/net/ethernet/renesas/ravb_main.c 	if (!res) {
res              2019 drivers/net/ethernet/renesas/ravb_main.c 	ndev->base_addr = res->start;
res              2042 drivers/net/ethernet/renesas/ravb_main.c 	priv->addr = devm_ioremap_resource(&pdev->dev, res);
res              3241 drivers/net/ethernet/renesas/sh_eth.c 	struct resource *res;
res              3249 drivers/net/ethernet/renesas/sh_eth.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              3268 drivers/net/ethernet/renesas/sh_eth.c 	mdp->addr = devm_ioremap_resource(&pdev->dev, res);
res              3274 drivers/net/ethernet/renesas/sh_eth.c 	ndev->base_addr = res->start;
res               768 drivers/net/ethernet/sgi/ioc3-eth.c 	int i, found = 0, res = 0;
res               785 drivers/net/ethernet/sgi/ioc3-eth.c 			res = -ENODEV;
res               793 drivers/net/ethernet/sgi/ioc3-eth.c 	return res;
res                74 drivers/net/ethernet/sgi/meth.h 		tx_status_vector res;
res              2175 drivers/net/ethernet/sis/sis900.c 	int res;
res              2183 drivers/net/ethernet/sis/sis900.c 	res = sis900_read_eeprom(dev, eebuf);
res              2185 drivers/net/ethernet/sis/sis900.c 	if (!res)
res              2188 drivers/net/ethernet/sis/sis900.c 	return res;
res              2042 drivers/net/ethernet/smsc/smc911x.c 	struct resource *res;
res              2049 drivers/net/ethernet/smsc/smc911x.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              2050 drivers/net/ethernet/smsc/smc911x.c 	if (!res) {
res              2058 drivers/net/ethernet/smsc/smc911x.c 	if (!request_mem_region(res->start, SMC911X_IO_EXTENT, CARDNAME)) {
res              2085 drivers/net/ethernet/smsc/smc911x.c 	addr = ioremap(res->start, SMC911X_IO_EXTENT);
res              2093 drivers/net/ethernet/smsc/smc911x.c 	ndev->base_addr = res->start;
res              2100 drivers/net/ethernet/smsc/smc911x.c 		release_mem_region(res->start, SMC911X_IO_EXTENT);
res              2106 drivers/net/ethernet/smsc/smc911x.c 		lp->physaddr = res->start;
res              2118 drivers/net/ethernet/smsc/smc911x.c 	struct resource *res;
res              2135 drivers/net/ethernet/smsc/smc911x.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              2136 drivers/net/ethernet/smsc/smc911x.c 	release_mem_region(res->start, SMC911X_IO_EXTENT);
res              1974 drivers/net/ethernet/smsc/smc91c92_cs.c 		int res;
res              1977 drivers/net/ethernet/smsc/smc91c92_cs.c 		res = mii_nway_restart(&smc->mii_if);
res              1980 drivers/net/ethernet/smsc/smc91c92_cs.c 		return res;
res              2063 drivers/net/ethernet/smsc/smc91x.c 	struct resource * res;
res              2065 drivers/net/ethernet/smsc/smc91x.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "smc91x-attrib");
res              2066 drivers/net/ethernet/smsc/smc91x.c 	if (!res)
res              2072 drivers/net/ethernet/smsc/smc91x.c 	addr = ioremap(res->start, ATTRIB_SIZE);
res              2122 drivers/net/ethernet/smsc/smc91x.c 	struct resource * res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "smc91x-attrib");
res              2125 drivers/net/ethernet/smsc/smc91x.c 	if (!res)
res              2128 drivers/net/ethernet/smsc/smc91x.c 	if (!request_mem_region(res->start, ATTRIB_SIZE, CARDNAME))
res              2137 drivers/net/ethernet/smsc/smc91x.c 	struct resource * res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "smc91x-attrib");
res              2140 drivers/net/ethernet/smsc/smc91x.c 	if (res)
res              2141 drivers/net/ethernet/smsc/smc91x.c 		release_mem_region(res->start, ATTRIB_SIZE);
res              2147 drivers/net/ethernet/smsc/smc91x.c 		struct resource * res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "smc91x-data32");
res              2150 drivers/net/ethernet/smsc/smc91x.c 		if (!res)
res              2153 drivers/net/ethernet/smsc/smc91x.c 		if(!request_mem_region(res->start, SMC_DATA_EXTENT, CARDNAME)) {
res              2159 drivers/net/ethernet/smsc/smc91x.c 		lp->datacs = ioremap(res->start, SMC_DATA_EXTENT);
res              2167 drivers/net/ethernet/smsc/smc91x.c 		struct resource * res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "smc91x-data32");
res              2174 drivers/net/ethernet/smsc/smc91x.c 		if (res)
res              2175 drivers/net/ethernet/smsc/smc91x.c 			release_mem_region(res->start, SMC_DATA_EXTENT);
res              2236 drivers/net/ethernet/smsc/smc91x.c 	struct resource *res;
res              2329 drivers/net/ethernet/smsc/smc91x.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "smc91x-regs");
res              2330 drivers/net/ethernet/smsc/smc91x.c 	if (!res)
res              2331 drivers/net/ethernet/smsc/smc91x.c 		res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              2332 drivers/net/ethernet/smsc/smc91x.c 	if (!res) {
res              2338 drivers/net/ethernet/smsc/smc91x.c 	if (!request_mem_region(res->start, SMC_IO_EXTENT, CARDNAME)) {
res              2369 drivers/net/ethernet/smsc/smc91x.c 	addr = ioremap(res->start, SMC_IO_EXTENT);
res              2379 drivers/net/ethernet/smsc/smc91x.c 		lp->physaddr = res->start;
res              2397 drivers/net/ethernet/smsc/smc91x.c 	release_mem_region(res->start, SMC_IO_EXTENT);
res              2410 drivers/net/ethernet/smsc/smc91x.c 	struct resource *res;
res              2425 drivers/net/ethernet/smsc/smc91x.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "smc91x-regs");
res              2426 drivers/net/ethernet/smsc/smc91x.c 	if (!res)
res              2427 drivers/net/ethernet/smsc/smc91x.c 		res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              2428 drivers/net/ethernet/smsc/smc91x.c 	release_mem_region(res->start, SMC_IO_EXTENT);
res              2319 drivers/net/ethernet/smsc/smsc911x.c 	struct resource *res;
res              2334 drivers/net/ethernet/smsc/smsc911x.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
res              2336 drivers/net/ethernet/smsc/smsc911x.c 	if (!res)
res              2337 drivers/net/ethernet/smsc/smsc911x.c 		res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              2339 drivers/net/ethernet/smsc/smsc911x.c 	release_mem_region(res->start, resource_size(res));
res              2417 drivers/net/ethernet/smsc/smsc911x.c 	struct resource *res;
res              2421 drivers/net/ethernet/smsc/smsc911x.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
res              2423 drivers/net/ethernet/smsc/smsc911x.c 	if (!res)
res              2424 drivers/net/ethernet/smsc/smsc911x.c 		res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              2425 drivers/net/ethernet/smsc/smsc911x.c 	if (!res) {
res              2430 drivers/net/ethernet/smsc/smsc911x.c 	res_size = resource_size(res);
res              2442 drivers/net/ethernet/smsc/smsc911x.c 	if (!request_mem_region(res->start, res_size, SMSC_CHIPNAME)) {
res              2457 drivers/net/ethernet/smsc/smsc911x.c 	pdata->ioaddr = ioremap_nocache(res->start, res_size);
res              2571 drivers/net/ethernet/smsc/smsc911x.c 	release_mem_region(res->start, resource_size(res));
res               271 drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c 			      struct stmmac_resources *res)
res               283 drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c 	eqos->regs = res->addr;
res               402 drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c 		       struct stmmac_resources *res);
res               457 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c 	struct resource *res;
res               477 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "rgmii");
res               478 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c 	ethqos->rgmii_base = devm_ioremap_resource(&pdev->dev, res);
res               250 drivers/net/ethernet/stmicro/stmmac/dwmac-sti.c 	struct resource *res;
res               258 drivers/net/ethernet/stmicro/stmmac/dwmac-sti.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "sti-clkconf");
res               259 drivers/net/ethernet/stmicro/stmmac/dwmac-sti.c 	if (res)
res               260 drivers/net/ethernet/stmicro/stmmac/dwmac-sti.c 		dwmac->clk_sel_reg = res->start;
res               258 drivers/net/ethernet/stmicro/stmmac/stmmac.h 		     struct stmmac_resources *res);
res              4466 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		     struct stmmac_resources *res)
res              4487 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	priv->ioaddr = res->addr;
res              4488 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	priv->dev->base_addr = (unsigned long)res->addr;
res              4490 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	priv->dev->irq = res->irq;
res              4491 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	priv->wol_irq = res->wol_irq;
res              4492 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	priv->lpi_irq = res->lpi_irq;
res              4494 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	if (!IS_ERR_OR_NULL(res->mac))
res              4495 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		memcpy(priv->dev->dev_addr, res->mac, ETH_ALEN);
res               464 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	struct stmmac_resources res;
res               509 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	memset(&res, 0, sizeof(res));
res               510 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	res.addr = pcim_iomap_table(pdev)[i];
res               511 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	res.wol_irq = pdev->irq;
res               512 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	res.irq = pdev->irq;
res               514 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	return stmmac_dvr_probe(&pdev->dev, plat, &res);
res               648 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 	struct resource *res;
res               683 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               684 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 	stmmac_res->addr = devm_ioremap_resource(&pdev->dev, res);
res              7925 drivers/net/ethernet/sun/niu.c static int niu_set_ldg_timer_res(struct niu *np, int res)
res              7927 drivers/net/ethernet/sun/niu.c 	if (res < 0 || res > LDG_TIMER_RES_VAL)
res              7931 drivers/net/ethernet/sun/niu.c 	nw64(LDG_TIMER_RES, res);
res              2190 drivers/net/ethernet/sun/sunhme.c 	int res;
res              2198 drivers/net/ethernet/sun/sunhme.c 		res = request_irq(hp->irq, happy_meal_interrupt, IRQF_SHARED,
res              2200 drivers/net/ethernet/sun/sunhme.c 		if (res) {
res              2212 drivers/net/ethernet/sun/sunhme.c 	res = happy_meal_init(hp);
res              2215 drivers/net/ethernet/sun/sunhme.c 	if (res && ((hp->happy_flags & (HFLAG_QUATTRO|HFLAG_PCI)) != HFLAG_QUATTRO))
res              2217 drivers/net/ethernet/sun/sunhme.c 	return res;
res               838 drivers/net/ethernet/sun/sunqe.c 	int i, res;
res               851 drivers/net/ethernet/sun/sunqe.c 	res = -ENODEV;
res               868 drivers/net/ethernet/sun/sunqe.c 	res = -ENOMEM;
res               902 drivers/net/ethernet/sun/sunqe.c 	res = register_netdev(dev);
res               903 drivers/net/ethernet/sun/sunqe.c 	if (res)
res               928 drivers/net/ethernet/sun/sunqe.c 	return res;
res               228 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c int xlgmac_drv_probe(struct device *dev, struct xlgmac_resources *res)
res               248 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c 	pdata->dev_irq = res->irq;
res               249 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c 	pdata->mac_regs = res->addr;
res                28 drivers/net/ethernet/synopsys/dwc-xlgmac-pci.c 	struct xlgmac_resources res;
res                48 drivers/net/ethernet/synopsys/dwc-xlgmac-pci.c 	memset(&res, 0, sizeof(res));
res                49 drivers/net/ethernet/synopsys/dwc-xlgmac-pci.c 	res.irq = pcidev->irq;
res                50 drivers/net/ethernet/synopsys/dwc-xlgmac-pci.c 	res.addr = pcim_iomap_table(pcidev)[i];
res                52 drivers/net/ethernet/synopsys/dwc-xlgmac-pci.c 	return xlgmac_drv_probe(&pcidev->dev, &res);
res               649 drivers/net/ethernet/synopsys/dwc-xlgmac.h 		     struct xlgmac_resources *res);
res               911 drivers/net/ethernet/ti/cpmac.c 	int i, size, res;
res               922 drivers/net/ethernet/ti/cpmac.c 		res = -ENXIO;
res               931 drivers/net/ethernet/ti/cpmac.c 		res = -ENXIO;
res               941 drivers/net/ethernet/ti/cpmac.c 		res = -ENOMEM;
res               952 drivers/net/ethernet/ti/cpmac.c 			res = -ENOMEM;
res               969 drivers/net/ethernet/ti/cpmac.c 	res = request_irq(dev->irq, cpmac_irq, IRQF_SHARED, dev->name, dev);
res               970 drivers/net/ethernet/ti/cpmac.c 	if (res) {
res              1007 drivers/net/ethernet/ti/cpmac.c 	return res;
res              1181 drivers/net/ethernet/ti/cpmac.c 	int i, res;
res              1196 drivers/net/ethernet/ti/cpmac.c 		res = -ENXIO;
res              1226 drivers/net/ethernet/ti/cpmac.c 	res = mdiobus_register(cpmac_mii);
res              1227 drivers/net/ethernet/ti/cpmac.c 	if (res)
res              1230 drivers/net/ethernet/ti/cpmac.c 	res = platform_driver_register(&cpmac_driver);
res              1231 drivers/net/ethernet/ti/cpmac.c 	if (res)
res              1245 drivers/net/ethernet/ti/cpmac.c 	return res;
res               209 drivers/net/ethernet/ti/cpsw-phy-sel.c 	struct resource	*res;
res               226 drivers/net/ethernet/ti/cpsw-phy-sel.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "gmii-sel");
res               227 drivers/net/ethernet/ti/cpsw-phy-sel.c 	priv->gmii_sel = devm_ioremap_resource(&pdev->dev, res);
res              1397 drivers/net/ethernet/ti/davinci_emac.c 	struct resource *res;
res              1438 drivers/net/ethernet/ti/davinci_emac.c 	while ((res = platform_get_resource(priv->pdev, IORESOURCE_IRQ,
res              1440 drivers/net/ethernet/ti/davinci_emac.c 		for (irq_num = res->start; irq_num <= res->end; irq_num++) {
res              1539 drivers/net/ethernet/ti/davinci_emac.c 		res = platform_get_resource(priv->pdev, IORESOURCE_IRQ, q);
res              1544 drivers/net/ethernet/ti/davinci_emac.c 			irq_num = res->end;
res              1546 drivers/net/ethernet/ti/davinci_emac.c 		for (m = irq_num; m >= res->start; m--)
res              1565 drivers/net/ethernet/ti/davinci_emac.c 	struct resource *res;
res              1584 drivers/net/ethernet/ti/davinci_emac.c 	while ((res = platform_get_resource(priv->pdev, IORESOURCE_IRQ, i))) {
res              1585 drivers/net/ethernet/ti/davinci_emac.c 		for (irq_num = res->start; irq_num <= res->end; irq_num++)
res              1768 drivers/net/ethernet/ti/davinci_emac.c 	struct resource *res, *res_ctrl;
res              1820 drivers/net/ethernet/ti/davinci_emac.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1821 drivers/net/ethernet/ti/davinci_emac.c 	priv->emac_base_phys = res->start + pdata->ctrl_reg_offset;
res              1822 drivers/net/ethernet/ti/davinci_emac.c 	priv->remap_addr = devm_ioremap_resource(&pdev->dev, res);
res              1845 drivers/net/ethernet/ti/davinci_emac.c 		hw_ram_addr = (u32 __force)res->start + pdata->ctrl_ram_offset;
res              1863 drivers/net/ethernet/ti/davinci_emac.c 			(u32 __force)res->start + pdata->ctrl_ram_offset;
res              1888 drivers/net/ethernet/ti/davinci_emac.c 	res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
res              1889 drivers/net/ethernet/ti/davinci_emac.c 	if (!res) {
res              1894 drivers/net/ethernet/ti/davinci_emac.c 	ndev->irq = res->start;
res               345 drivers/net/ethernet/ti/davinci_mdio.c 	struct resource *res;
res               399 drivers/net/ethernet/ti/davinci_mdio.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               400 drivers/net/ethernet/ti/davinci_mdio.c 	data->regs = devm_ioremap(dev, res->start, resource_size(res));
res              1966 drivers/net/ethernet/ti/netcp_core.c 	struct resource res;
res              2008 drivers/net/ethernet/ti/netcp_core.c 		if (of_address_to_resource(node, NETCP_EFUSE_REG_INDEX, &res)) {
res              2013 drivers/net/ethernet/ti/netcp_core.c 		size = resource_size(&res);
res              2015 drivers/net/ethernet/ti/netcp_core.c 		if (!devm_request_mem_region(dev, res.start, size,
res              2022 drivers/net/ethernet/ti/netcp_core.c 		efuse = devm_ioremap_nocache(dev, res.start, size);
res              2025 drivers/net/ethernet/ti/netcp_core.c 			devm_release_mem_region(dev, res.start, size);
res              2037 drivers/net/ethernet/ti/netcp_core.c 		devm_release_mem_region(dev, res.start, size);
res              3229 drivers/net/ethernet/ti/netcp_ethss.c 	struct resource res;
res              3233 drivers/net/ethernet/ti/netcp_ethss.c 	ret = of_address_to_resource(node, XGBE_SS_REG_INDEX, &res);
res              3241 drivers/net/ethernet/ti/netcp_ethss.c 	regs = devm_ioremap_resource(gbe_dev->dev, &res);
res              3248 drivers/net/ethernet/ti/netcp_ethss.c 	ret = of_address_to_resource(node, XGBE_SM_REG_INDEX, &res);
res              3256 drivers/net/ethernet/ti/netcp_ethss.c 	regs = devm_ioremap_resource(gbe_dev->dev, &res);
res              3263 drivers/net/ethernet/ti/netcp_ethss.c 	ret = of_address_to_resource(node, XGBE_SERDES_REG_INDEX, &res);
res              3271 drivers/net/ethernet/ti/netcp_ethss.c 	regs = devm_ioremap_resource(gbe_dev->dev, &res);
res              3337 drivers/net/ethernet/ti/netcp_ethss.c 	struct resource res;
res              3341 drivers/net/ethernet/ti/netcp_ethss.c 	ret = of_address_to_resource(node, GBE_SS_REG_INDEX, &res);
res              3349 drivers/net/ethernet/ti/netcp_ethss.c 	regs = devm_ioremap_resource(gbe_dev->dev, &res);
res              3362 drivers/net/ethernet/ti/netcp_ethss.c 	struct resource res;
res              3366 drivers/net/ethernet/ti/netcp_ethss.c 	ret = of_address_to_resource(node, GBE_SGMII34_REG_INDEX, &res);
res              3374 drivers/net/ethernet/ti/netcp_ethss.c 	regs = devm_ioremap_resource(gbe_dev->dev, &res);
res              3382 drivers/net/ethernet/ti/netcp_ethss.c 	ret = of_address_to_resource(node, GBE_SM_REG_INDEX, &res);
res              3390 drivers/net/ethernet/ti/netcp_ethss.c 	regs = devm_ioremap_resource(gbe_dev->dev, &res);
res              3460 drivers/net/ethernet/ti/netcp_ethss.c 	struct resource res;
res              3492 drivers/net/ethernet/ti/netcp_ethss.c 	ret = of_address_to_resource(node, GBENU_SM_REG_INDEX, &res);
res              3500 drivers/net/ethernet/ti/netcp_ethss.c 	regs = devm_ioremap_resource(gbe_dev->dev, &res);
res              2693 drivers/net/ethernet/via/via-velocity.c 	struct resource res;
res              2699 drivers/net/ethernet/via/via-velocity.c 	ret = of_address_to_resource(vptr->dev->of_node, 0, &res);
res              2705 drivers/net/ethernet/via/via-velocity.c 	vptr->memaddr = res.start;
res              2707 drivers/net/ethernet/via/via-velocity.c 	if (resource_size(&res) < VELOCITY_IO_SIZE) {
res              1507 drivers/net/ethernet/via/via-velocity.h 	int res = -ENOENT;
res              1515 drivers/net/ethernet/via/via-velocity.h 			res = 0;
res              1519 drivers/net/ethernet/via/via-velocity.h 	return res;
res              1279 drivers/net/ethernet/xilinx/ll_temac_main.c 	struct resource *res;
res              1333 drivers/net/ethernet/xilinx/ll_temac_main.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1334 drivers/net/ethernet/xilinx/ll_temac_main.c 	lp->regs = devm_ioremap_nocache(&pdev->dev, res->start,
res              1335 drivers/net/ethernet/xilinx/ll_temac_main.c 					resource_size(res));
res              1428 drivers/net/ethernet/xilinx/ll_temac_main.c 		res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res              1429 drivers/net/ethernet/xilinx/ll_temac_main.c 		lp->sdma_regs = devm_ioremap_nocache(&pdev->dev, res->start,
res              1430 drivers/net/ethernet/xilinx/ll_temac_main.c 						     resource_size(res));
res                71 drivers/net/ethernet/xilinx/ll_temac_mdio.c 	struct resource res;
res                99 drivers/net/ethernet/xilinx/ll_temac_mdio.c 		of_address_to_resource(np, 0, &res);
res               101 drivers/net/ethernet/xilinx/ll_temac_mdio.c 			 (unsigned long long)res.start);
res              1791 drivers/net/ethernet/xilinx/xilinx_axienet_main.c 		struct resource *res = platform_get_resource(pdev,
res              1793 drivers/net/ethernet/xilinx/xilinx_axienet_main.c 		lp->dma_regs = devm_ioremap_resource(&pdev->dev, res);
res               824 drivers/net/ethernet/xilinx/xilinx_emaclite.c 	struct resource res;
res               837 drivers/net/ethernet/xilinx/xilinx_emaclite.c 	of_address_to_resource(npp, 0, &res);
res               838 drivers/net/ethernet/xilinx/xilinx_emaclite.c 	if (lp->ndev->mem_start != res.start) {
res               862 drivers/net/ethernet/xilinx/xilinx_emaclite.c 		 (unsigned long long)res.start);
res              1112 drivers/net/ethernet/xilinx/xilinx_emaclite.c 	struct resource *res;
res              1134 drivers/net/ethernet/xilinx/xilinx_emaclite.c 	res = platform_get_resource(ofdev, IORESOURCE_IRQ, 0);
res              1135 drivers/net/ethernet/xilinx/xilinx_emaclite.c 	if (!res) {
res              1141 drivers/net/ethernet/xilinx/xilinx_emaclite.c 	ndev->irq = res->start;
res              1143 drivers/net/ethernet/xilinx/xilinx_emaclite.c 	res = platform_get_resource(ofdev, IORESOURCE_MEM, 0);
res              1144 drivers/net/ethernet/xilinx/xilinx_emaclite.c 	lp->base_addr = devm_ioremap_resource(&ofdev->dev, res);
res              1150 drivers/net/ethernet/xilinx/xilinx_emaclite.c 	ndev->mem_start = res->start;
res              1151 drivers/net/ethernet/xilinx/xilinx_emaclite.c 	ndev->mem_end = res->end;
res               313 drivers/net/fddi/skfp/pmf.c 	struct smt_p_reason	*res ;
res               359 drivers/net/fddi/skfp/pmf.c 	res = (struct smt_p_reason *) pcon.pc_p ;
res               478 drivers/net/fddi/skfp/pmf.c 	res->rdf_reason = pcon.pc_badset ? pcon.pc_badset :
res               480 drivers/net/fddi/skfp/pmf.c 	if (set && (res->rdf_reason == SMT_RDF_SUCCESS)) {
res               192 drivers/net/fjes/fjes_main.c 	struct resource *res = data;
res               197 drivers/net/fjes/fjes_main.c 		res[0].start = addr->address.minimum;
res               198 drivers/net/fjes/fjes_main.c 		res[0].end = addr->address.minimum +
res               206 drivers/net/fjes/fjes_main.c 		res[1].start = irq->interrupts[0];
res               207 drivers/net/fjes/fjes_main.c 		res[1].end = irq->interrupts[0];
res              1212 drivers/net/fjes/fjes_main.c 	struct resource *res;
res              1264 drivers/net/fjes/fjes_main.c 	res = platform_get_resource(plat_dev, IORESOURCE_MEM, 0);
res              1265 drivers/net/fjes/fjes_main.c 	hw->hw_res.start = res->start;
res              1266 drivers/net/fjes/fjes_main.c 	hw->hw_res.size = resource_size(res);
res              1311 drivers/net/hamradio/dmascc.c 	int i, rr0, drr0, res;
res              1328 drivers/net/hamradio/dmascc.c 			res = get_dma_residue(priv->param.dma);
res              1331 drivers/net/hamradio/dmascc.c 			res = priv->tx_len[i] - priv->tx_ptr;
res              1339 drivers/net/hamradio/dmascc.c 		if (res) {
res               560 drivers/net/hippi/rrunner.h 	u32	res;
res               582 drivers/net/hippi/rrunner.h 	u32	res;
res               271 drivers/net/ieee802154/mac802154_hwsim.c 	int res = -EMSGSIZE;
res               281 drivers/net/ieee802154/mac802154_hwsim.c 	res = append_radio_msg(skb, phy);
res               282 drivers/net/ieee802154/mac802154_hwsim.c 	if (res < 0)
res               290 drivers/net/ieee802154/mac802154_hwsim.c 	return res;
res               297 drivers/net/ieee802154/mac802154_hwsim.c 	int idx, res = -ENODEV;
res               310 drivers/net/ieee802154/mac802154_hwsim.c 			res = -ENOMEM;
res               314 drivers/net/ieee802154/mac802154_hwsim.c 		res = hwsim_get_radio(skb, phy, info->snd_portid,
res               316 drivers/net/ieee802154/mac802154_hwsim.c 		if (res < 0) {
res               321 drivers/net/ieee802154/mac802154_hwsim.c 		res = genlmsg_reply(skb, info);
res               328 drivers/net/ieee802154/mac802154_hwsim.c 	return res;
res               336 drivers/net/ieee802154/mac802154_hwsim.c 	int res;
res               347 drivers/net/ieee802154/mac802154_hwsim.c 		res = hwsim_get_radio(skb, phy, NETLINK_CB(cb->skb).portid,
res               349 drivers/net/ieee802154/mac802154_hwsim.c 		if (res < 0)
res               162 drivers/net/net_failover.c 	u64 *res = (u64 *)_res;
res               178 drivers/net/net_failover.c 			res[i] += delta;
res               118 drivers/net/phy/mdio-mscc-miim.c 	struct resource *res;
res               123 drivers/net/phy/mdio-mscc-miim.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               124 drivers/net/phy/mdio-mscc-miim.c 	if (!res)
res               139 drivers/net/phy/mdio-mscc-miim.c 	dev->regs = devm_ioremap_resource(&pdev->dev, res);
res               145 drivers/net/phy/mdio-mscc-miim.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res               146 drivers/net/phy/mdio-mscc-miim.c 	if (res) {
res               147 drivers/net/phy/mdio-mscc-miim.c 		dev->phy_regs = devm_ioremap_resource(&pdev->dev, res);
res               188 drivers/net/phy/mdio-mux-bcm-iproc.c 	struct resource *res;
res               196 drivers/net/phy/mdio-mux-bcm-iproc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               197 drivers/net/phy/mdio-mux-bcm-iproc.c 	if (res->start & 0xfff) {
res               202 drivers/net/phy/mdio-mux-bcm-iproc.c 		res->start &= ~0xfff;
res               203 drivers/net/phy/mdio-mux-bcm-iproc.c 		res->end = res->start + MDIO_REG_ADDR_SPACE_SIZE - 1;
res               205 drivers/net/phy/mdio-mux-bcm-iproc.c 	md->base = devm_ioremap_resource(&pdev->dev, res);
res               101 drivers/net/phy/mdio-mux-mmioreg.c 	struct resource res;
res               111 drivers/net/phy/mdio-mux-mmioreg.c 	ret = of_address_to_resource(np, 0, &res);
res               117 drivers/net/phy/mdio-mux-mmioreg.c 	s->phys = res.start;
res               119 drivers/net/phy/mdio-mux-mmioreg.c 	s->iosize = resource_size(&res);
res               175 drivers/net/phy/mdio_bus.c static void _devm_mdiobus_free(struct device *dev, void *res)
res               177 drivers/net/phy/mdio_bus.c 	mdiobus_free(*(struct mii_bus **)res);
res               180 drivers/net/phy/mdio_bus.c static int devm_mdiobus_match(struct device *dev, void *res, void *data)
res               182 drivers/net/phy/mdio_bus.c 	struct mii_bus **r = res;
res              1908 drivers/net/phy/phy_device.c 	u16 res = BMCR_RESET;
res              1912 drivers/net/phy/phy_device.c 		res |= BMCR_ANRESTART;
res              1914 drivers/net/phy/phy_device.c 	ret = phy_modify(phydev, MII_BMCR, BMCR_ISOLATE, res);
res                68 drivers/net/rionet.c 	struct resource *res;
res               389 drivers/net/rionet.c 		if (peer->res)
res               390 drivers/net/rionet.c 			rio_release_outb_dbell(peer->rdev, peer->res);
res               434 drivers/net/rionet.c 		if (peer->res)
res               435 drivers/net/rionet.c 			rio_release_outb_dbell(rdev, peer->res);
res               609 drivers/net/rionet.c 		peer->res = rio_request_outb_dbell(peer->rdev,
res               612 drivers/net/rionet.c 		if (!peer->res) {
res               725 drivers/net/team/team.c 	rx_handler_result_t res;
res               737 drivers/net/team/team.c 		res = RX_HANDLER_EXACT;
res               739 drivers/net/team/team.c 		res = team->ops.receive(team, port, skb);
res               741 drivers/net/team/team.c 	if (res == RX_HANDLER_ANOTHER) {
res               753 drivers/net/team/team.c 	} else if (res == RX_HANDLER_EXACT) {
res               759 drivers/net/team/team.c 	return res;
res               165 drivers/net/usb/asix.h 	u8 res;
res               447 drivers/net/usb/asix_common.c 	__le16 res;
res               467 drivers/net/usb/asix_common.c 				(__u16)loc, 2, &res, 0);
res               472 drivers/net/usb/asix_common.c 			phy_id, loc, le16_to_cpu(res));
res               474 drivers/net/usb/asix_common.c 	return le16_to_cpu(res);
res               480 drivers/net/usb/asix_common.c 	__le16 res = cpu_to_le16(val);
res               503 drivers/net/usb/asix_common.c 		       (__u16)loc, 2, &res, 0);
res               511 drivers/net/usb/asix_common.c 	__le16 res;
res               531 drivers/net/usb/asix_common.c 		      (__u16)loc, 2, &res, 1);
res               536 drivers/net/usb/asix_common.c 			phy_id, loc, le16_to_cpu(res));
res               538 drivers/net/usb/asix_common.c 	return le16_to_cpu(res);
res               545 drivers/net/usb/asix_common.c 	__le16 res = cpu_to_le16(val);
res               568 drivers/net/usb/asix_common.c 		       (__u16)loc, 2, &res, 1);
res               355 drivers/net/usb/ax88179_178a.c 	u16 res;
res               357 drivers/net/usb/ax88179_178a.c 	ax88179_read_cmd(dev, AX_ACCESS_PHY, phy_id, (__u16)loc, 2, &res);
res               358 drivers/net/usb/ax88179_178a.c 	return res;
res               365 drivers/net/usb/ax88179_178a.c 	u16 res = (u16) val;
res               367 drivers/net/usb/ax88179_178a.c 	ax88179_write_cmd(dev, AX_ACCESS_PHY, phy_id, (__u16)loc, 2, &res);
res               284 drivers/net/usb/catc.c 	int res;
res               331 drivers/net/usb/catc.c 			if ((res = usb_submit_urb(catc->rx_urb, GFP_ATOMIC)) < 0) {
res               333 drivers/net/usb/catc.c 					"submit(rx_urb) status %d\n", res);
res               338 drivers/net/usb/catc.c 	res = usb_submit_urb (urb, GFP_ATOMIC);
res               339 drivers/net/usb/catc.c 	if (res)
res               343 drivers/net/usb/catc.c 			catc->usbdev->devpath, res);
res               223 drivers/net/usb/dm9601.c 	__le16 res;
res               230 drivers/net/usb/dm9601.c 	dm_read_shared_word(dev, 1, loc, &res);
res               234 drivers/net/usb/dm9601.c 		   phy_id, loc, le16_to_cpu(res));
res               236 drivers/net/usb/dm9601.c 	return le16_to_cpu(res);
res               243 drivers/net/usb/dm9601.c 	__le16 res = cpu_to_le16(val);
res               253 drivers/net/usb/dm9601.c 	dm_write_shared_word(dev, 1, loc, res);
res              1722 drivers/net/usb/hso.c 	int res;
res              1742 drivers/net/usb/hso.c 		res = serial->write_data(serial);
res              1743 drivers/net/usb/hso.c 		if (res >= 0)
res               665 drivers/net/usb/kaweth.c 	int res;
res               667 drivers/net/usb/kaweth.c 	res = usb_autopm_get_interface(kaweth->intf);
res               668 drivers/net/usb/kaweth.c 	if (res) {
res               672 drivers/net/usb/kaweth.c 	res = kaweth_resubmit_rx_urb(kaweth, GFP_KERNEL);
res               673 drivers/net/usb/kaweth.c 	if (res)
res               688 drivers/net/usb/kaweth.c 	res = usb_submit_urb(kaweth->irq_urb, GFP_KERNEL);
res               689 drivers/net/usb/kaweth.c 	if (res) {
res               781 drivers/net/usb/kaweth.c 	int res;
res               813 drivers/net/usb/kaweth.c 	if((res = usb_submit_urb(kaweth->tx_urb, GFP_ATOMIC)))
res               815 drivers/net/usb/kaweth.c 		dev_warn(&net->dev, "kaweth failed tx_urb %d\n", res);
res              4106 drivers/net/usb/lan78xx.c 	struct urb *res;
res              4122 drivers/net/usb/lan78xx.c 		while ((res = usb_get_from_anchor(&dev->deferred))) {
res              4123 drivers/net/usb/lan78xx.c 			skb = (struct sk_buff *)res->context;
res              4124 drivers/net/usb/lan78xx.c 			ret = usb_submit_urb(res, GFP_ATOMIC);
res              4127 drivers/net/usb/lan78xx.c 				usb_free_urb(res);
res               268 drivers/net/usb/pegasus.c 	u16 res;
res               270 drivers/net/usb/pegasus.c 	read_mii_word(pegasus, phy_id, loc, &res);
res               271 drivers/net/usb/pegasus.c 	return (int)res;
res               644 drivers/net/usb/pegasus.c 	int res, status = urb->status;
res               688 drivers/net/usb/pegasus.c 	res = usb_submit_urb(urb, GFP_ATOMIC);
res               689 drivers/net/usb/pegasus.c 	if (res == -ENODEV)
res               691 drivers/net/usb/pegasus.c 	if (res)
res               693 drivers/net/usb/pegasus.c 			  "can't resubmit interrupt urb, %d\n", res);
res               709 drivers/net/usb/pegasus.c 	int res;
res               720 drivers/net/usb/pegasus.c 	if ((res = usb_submit_urb(pegasus->tx_urb, GFP_ATOMIC))) {
res               721 drivers/net/usb/pegasus.c 		netif_warn(pegasus, tx_err, net, "fail tx, %d\n", res);
res               722 drivers/net/usb/pegasus.c 		switch (res) {
res               802 drivers/net/usb/pegasus.c 	int res = -ENOMEM;
res               806 drivers/net/usb/pegasus.c 		return res;
res               811 drivers/net/usb/pegasus.c 		return res;
res               817 drivers/net/usb/pegasus.c 		return res;
res               826 drivers/net/usb/pegasus.c 	int res=-ENOMEM;
res               835 drivers/net/usb/pegasus.c 	res = set_registers(pegasus, EthID, 6, net->dev_addr);
res               841 drivers/net/usb/pegasus.c 	if ((res = usb_submit_urb(pegasus->rx_urb, GFP_KERNEL))) {
res               842 drivers/net/usb/pegasus.c 		if (res == -ENODEV)
res               844 drivers/net/usb/pegasus.c 		netif_dbg(pegasus, ifup, net, "failed rx_urb, %d\n", res);
res               852 drivers/net/usb/pegasus.c 	if ((res = usb_submit_urb(pegasus->intr_urb, GFP_KERNEL))) {
res               853 drivers/net/usb/pegasus.c 		if (res == -ENODEV)
res               855 drivers/net/usb/pegasus.c 		netif_dbg(pegasus, ifup, net, "failed intr_urb, %d\n", res);
res               859 drivers/net/usb/pegasus.c 	res = enable_net_traffic(net, pegasus->usb);
res               860 drivers/net/usb/pegasus.c 	if (res < 0) {
res               862 drivers/net/usb/pegasus.c 			  "can't enable_net_traffic() - %d\n", res);
res               863 drivers/net/usb/pegasus.c 		res = -EIO;
res               871 drivers/net/usb/pegasus.c 	res = 0;
res               873 drivers/net/usb/pegasus.c 	return res;
res              1006 drivers/net/usb/pegasus.c 	int res;
res              1014 drivers/net/usb/pegasus.c 		res = 0;
res              1020 drivers/net/usb/pegasus.c 		res = 0;
res              1023 drivers/net/usb/pegasus.c 		res = -EOPNOTSUPP;
res              1025 drivers/net/usb/pegasus.c 	return res;
res              1142 drivers/net/usb/pegasus.c 	int res = -ENOMEM;
res              1162 drivers/net/usb/pegasus.c 	res = alloc_urbs(pegasus);
res              1163 drivers/net/usb/pegasus.c 	if (res < 0) {
res              1192 drivers/net/usb/pegasus.c 		res = -EIO;
res              1209 drivers/net/usb/pegasus.c 	res = register_netdev(net);
res              1210 drivers/net/usb/pegasus.c 	if (res)
res              1226 drivers/net/usb/pegasus.c 	return res;
res              1457 drivers/net/usb/r8152.c 	int res;
res              1505 drivers/net/usb/r8152.c 	res = usb_submit_urb(urb, GFP_ATOMIC);
res              1506 drivers/net/usb/r8152.c 	if (res == -ENODEV) {
res              1509 drivers/net/usb/r8152.c 	} else if (res) {
res              1511 drivers/net/usb/r8152.c 			  "can't resubmit intr, status %d\n", res);
res              2192 drivers/net/usb/r8152.c 	int res;
res              2204 drivers/net/usb/r8152.c 		res = r8152_tx_agg_fill(tp, agg);
res              2205 drivers/net/usb/r8152.c 		if (res) {
res              2208 drivers/net/usb/r8152.c 			if (res == -ENODEV) {
res              2216 drivers/net/usb/r8152.c 					   "failed tx_urb %d\n", res);
res              2224 drivers/net/usb/r8152.c 	} while (res == 0);
res              4276 drivers/net/usb/r8152.c 	int res = 0;
res              4278 drivers/net/usb/r8152.c 	res = alloc_all_mem(tp);
res              4279 drivers/net/usb/r8152.c 	if (res)
res              4282 drivers/net/usb/r8152.c 	res = usb_autopm_get_interface(tp->intf);
res              4283 drivers/net/usb/r8152.c 	if (res < 0)
res              4294 drivers/net/usb/r8152.c 	res = usb_submit_urb(tp->intr_urb, GFP_KERNEL);
res              4295 drivers/net/usb/r8152.c 	if (res) {
res              4296 drivers/net/usb/r8152.c 		if (res == -ENODEV)
res              4299 drivers/net/usb/r8152.c 			   res);
res              4320 drivers/net/usb/r8152.c 	return res;
res              4326 drivers/net/usb/r8152.c 	int res = 0;
res              4338 drivers/net/usb/r8152.c 	res = usb_autopm_get_interface(tp->intf);
res              4339 drivers/net/usb/r8152.c 	if (res < 0 || test_bit(RTL8152_UNPLUG, &tp->flags)) {
res              4354 drivers/net/usb/r8152.c 	return res;
res              5397 drivers/net/usb/r8152.c 	int res;
res              5402 drivers/net/usb/r8152.c 	res = usb_autopm_get_interface(tp->intf);
res              5403 drivers/net/usb/r8152.c 	if (res < 0)
res              5419 drivers/net/usb/r8152.c 			res = -EPERM;
res              5428 drivers/net/usb/r8152.c 		res = -EOPNOTSUPP;
res              5434 drivers/net/usb/r8152.c 	return res;
res               200 drivers/net/usb/rtl8150.c 	int res = -ENOMEM;
res               206 drivers/net/usb/rtl8150.c 		return res;
res               210 drivers/net/usb/rtl8150.c 		return res;
res               221 drivers/net/usb/rtl8150.c 	res = usb_submit_urb(async_urb, GFP_ATOMIC);
res               222 drivers/net/usb/rtl8150.c 	if (res) {
res               223 drivers/net/usb/rtl8150.c 		if (res == -ENODEV)
res               225 drivers/net/usb/rtl8150.c 		dev_err(&dev->udev->dev, "%s failed with %d\n", __func__, res);
res               227 drivers/net/usb/rtl8150.c 	return res;
res               385 drivers/net/usb/rtl8150.c 	unsigned pkt_len, res;
res               422 drivers/net/usb/rtl8150.c 	res = urb->actual_length;
res               423 drivers/net/usb/rtl8150.c 	pkt_len = res - 4;
res               479 drivers/net/usb/rtl8150.c 	int res;
res               522 drivers/net/usb/rtl8150.c 	res = usb_submit_urb (urb, GFP_ATOMIC);
res               523 drivers/net/usb/rtl8150.c 	if (res == -ENODEV)
res               525 drivers/net/usb/rtl8150.c 	else if (res)
res               528 drivers/net/usb/rtl8150.c 			dev->udev->bus->bus_name, dev->udev->devpath, res);
res               692 drivers/net/usb/rtl8150.c 	int count, res;
res               700 drivers/net/usb/rtl8150.c 	if ((res = usb_submit_urb(dev->tx_urb, GFP_ATOMIC))) {
res               702 drivers/net/usb/rtl8150.c 		if (res == -ENODEV)
res               705 drivers/net/usb/rtl8150.c 			dev_warn(&netdev->dev, "failed tx_urb %d\n", res);
res               734 drivers/net/usb/rtl8150.c 	int res;
res               745 drivers/net/usb/rtl8150.c 	if ((res = usb_submit_urb(dev->rx_urb, GFP_KERNEL))) {
res               746 drivers/net/usb/rtl8150.c 		if (res == -ENODEV)
res               748 drivers/net/usb/rtl8150.c 		dev_warn(&netdev->dev, "rx_urb submit failed: %d\n", res);
res               749 drivers/net/usb/rtl8150.c 		return res;
res               754 drivers/net/usb/rtl8150.c 	if ((res = usb_submit_urb(dev->intr_urb, GFP_KERNEL))) {
res               755 drivers/net/usb/rtl8150.c 		if (res == -ENODEV)
res               757 drivers/net/usb/rtl8150.c 		dev_warn(&netdev->dev, "intr_urb submit failed: %d\n", res);
res               759 drivers/net/usb/rtl8150.c 		return res;
res               765 drivers/net/usb/rtl8150.c 	return res;
res               841 drivers/net/usb/rtl8150.c 	int res = 0;
res               856 drivers/net/usb/rtl8150.c 		res = -EOPNOTSUPP;
res               859 drivers/net/usb/rtl8150.c 	return res;
res               179 drivers/net/usb/sr9700.c 	__le16 res;
res               195 drivers/net/usb/sr9700.c 	sr_share_read_word(dev, 1, loc, &res);
res               197 drivers/net/usb/sr9700.c 		res = le16_to_cpu(res) | BMSR_LSTATUS;
res               199 drivers/net/usb/sr9700.c 		res = le16_to_cpu(res) & ~BMSR_LSTATUS;
res               202 drivers/net/usb/sr9700.c 		   phy_id, loc, res);
res               204 drivers/net/usb/sr9700.c 	return res;
res               211 drivers/net/usb/sr9700.c 	__le16 res = cpu_to_le16(val);
res               221 drivers/net/usb/sr9700.c 	sr_share_write_word(dev, 1, loc, res);
res               338 drivers/net/usb/sr9800.c 	__le16 res = 0;
res               342 drivers/net/usb/sr9800.c 	sr_read_cmd(dev, SR_CMD_READ_MII_REG, phy_id, (__u16)loc, 2, &res);
res               348 drivers/net/usb/sr9800.c 		   phy_id, loc, le16_to_cpu(res));
res               350 drivers/net/usb/sr9800.c 	return le16_to_cpu(res);
res               357 drivers/net/usb/sr9800.c 	__le16 res = cpu_to_le16(val);
res               364 drivers/net/usb/sr9800.c 	sr_write_cmd(dev, SR_CMD_WRITE_MII_REG, phy_id, (__u16)loc, 2, &res);
res              1885 drivers/net/usb/usbnet.c 	struct urb              *res;
res              1893 drivers/net/usb/usbnet.c 		while ((res = usb_get_from_anchor(&dev->deferred))) {
res              1895 drivers/net/usb/usbnet.c 			skb = (struct sk_buff *)res->context;
res              1896 drivers/net/usb/usbnet.c 			retval = usb_submit_urb(res, GFP_ATOMIC);
res              1899 drivers/net/usb/usbnet.c 				kfree(res->sg);
res              1900 drivers/net/usb/usbnet.c 				usb_free_urb(res);
res              1064 drivers/net/wan/fsl_ucc_hdlc.c 	struct resource *res;
res              1080 drivers/net/wan/fsl_ucc_hdlc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1081 drivers/net/wan/fsl_ucc_hdlc.c 	if (!res) {
res              1085 drivers/net/wan/fsl_ucc_hdlc.c 	*ptr = ioremap(res->start, resource_size(res));
res              1097 drivers/net/wan/fsl_ucc_hdlc.c 		memset_io(*ptr, 0, resource_size(res));
res              1114 drivers/net/wan/fsl_ucc_hdlc.c 	struct resource res;
res              1166 drivers/net/wan/fsl_ucc_hdlc.c 	ret = of_address_to_resource(np, 0, &res);
res              1170 drivers/net/wan/fsl_ucc_hdlc.c 	ut_info->uf_info.regs = res.start;
res                80 drivers/net/wireless/ath/ar5523/ar5523.c 			cmd->res = -EOVERFLOW;
res                84 drivers/net/wireless/ath/ar5523/ar5523.c 			cmd->res = 0;
res               130 drivers/net/wireless/ath/ar5523/ar5523.c 		cmd->res = 0;
res               158 drivers/net/wireless/ath/ar5523/ar5523.c 		cmd->res = 0;
res               229 drivers/net/wireless/ath/ar5523/ar5523.c 		cmd->res = urb->status;
res               235 drivers/net/wireless/ath/ar5523/ar5523.c 		cmd->res = 0;
res               282 drivers/net/wireless/ath/ar5523/ar5523.c 		cmd->res = -ETIMEDOUT;
res               284 drivers/net/wireless/ath/ar5523/ar5523.c 	return cmd->res;
res                67 drivers/net/wireless/ath/ar5523/ar5523.h 	int			res;
res               440 drivers/net/wireless/ath/ath10k/ahb.c 	struct resource *res;
res               445 drivers/net/wireless/ath/ath10k/ahb.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               446 drivers/net/wireless/ath/ath10k/ahb.c 	if (!res) {
res               452 drivers/net/wireless/ath/ath10k/ahb.c 	ar_ahb->mem = devm_ioremap_resource(&pdev->dev, res);
res               459 drivers/net/wireless/ath/ath10k/ahb.c 	ar_ahb->mem_len = resource_size(res);
res               981 drivers/net/wireless/ath/ath10k/debug.c 	int res;
res               985 drivers/net/wireless/ath/ath10k/debug.c 	res = simple_write_to_buffer(buf, sizeof(buf) - 1, ppos,
res               987 drivers/net/wireless/ath/ath10k/debug.c 	if (res <= 0)
res               988 drivers/net/wireless/ath/ath10k/debug.c 		return res;
res               990 drivers/net/wireless/ath/ath10k/debug.c 	res = sscanf(buf, "%u %u", &amsdu, &ampdu);
res               992 drivers/net/wireless/ath/ath10k/debug.c 	if (res != 2)
res               997 drivers/net/wireless/ath/ath10k/debug.c 	res = ath10k_htt_h2t_aggr_cfg_msg(&ar->htt, ampdu, amsdu);
res               998 drivers/net/wireless/ath/ath10k/debug.c 	if (res)
res              1001 drivers/net/wireless/ath/ath10k/debug.c 	res = count;
res              1007 drivers/net/wireless/ath/ath10k/debug.c 	return res;
res              1165 drivers/net/wireless/ath/ath10k/htt_tx.c 	int res;
res              1171 drivers/net/wireless/ath/ath10k/htt_tx.c 	res = ath10k_htt_tx_alloc_msdu_id(htt, msdu);
res              1172 drivers/net/wireless/ath/ath10k/htt_tx.c 	if (res < 0)
res              1175 drivers/net/wireless/ath/ath10k/htt_tx.c 	msdu_id = res;
res              1186 drivers/net/wireless/ath/ath10k/htt_tx.c 		res = -ENOMEM;
res              1192 drivers/net/wireless/ath/ath10k/htt_tx.c 	res = dma_mapping_error(dev, skb_cb->paddr);
res              1193 drivers/net/wireless/ath/ath10k/htt_tx.c 	if (res) {
res              1194 drivers/net/wireless/ath/ath10k/htt_tx.c 		res = -EIO;
res              1210 drivers/net/wireless/ath/ath10k/htt_tx.c 	res = ath10k_htc_send(&htt->ar->htc, htt->eid, txdesc);
res              1211 drivers/net/wireless/ath/ath10k/htt_tx.c 	if (res)
res              1226 drivers/net/wireless/ath/ath10k/htt_tx.c 	return res;
res              1238 drivers/net/wireless/ath/ath10k/htt_tx.c 	int res, data_len;
res              1299 drivers/net/wireless/ath/ath10k/htt_tx.c 			res = -ENOMEM;
res              1306 drivers/net/wireless/ath/ath10k/htt_tx.c 		res = ath10k_htt_tx_alloc_msdu_id(htt, msdu);
res              1307 drivers/net/wireless/ath/ath10k/htt_tx.c 		if (res < 0) {
res              1308 drivers/net/wireless/ath/ath10k/htt_tx.c 			ath10k_err(ar, "msdu_id allocation failed %d\n", res);
res              1311 drivers/net/wireless/ath/ath10k/htt_tx.c 		msdu_id = res;
res              1337 drivers/net/wireless/ath/ath10k/htt_tx.c 	res = ath10k_htc_send(&htt->ar->htc, htt->eid, msdu);
res              1340 drivers/net/wireless/ath/ath10k/htt_tx.c 	return res;
res              1359 drivers/net/wireless/ath/ath10k/htt_tx.c 	int res;
res              1368 drivers/net/wireless/ath/ath10k/htt_tx.c 	res = ath10k_htt_tx_alloc_msdu_id(htt, msdu);
res              1369 drivers/net/wireless/ath/ath10k/htt_tx.c 	if (res < 0)
res              1372 drivers/net/wireless/ath/ath10k/htt_tx.c 	msdu_id = res;
res              1394 drivers/net/wireless/ath/ath10k/htt_tx.c 	res = dma_mapping_error(dev, skb_cb->paddr);
res              1395 drivers/net/wireless/ath/ath10k/htt_tx.c 	if (res) {
res              1396 drivers/net/wireless/ath/ath10k/htt_tx.c 		res = -EIO;
res              1527 drivers/net/wireless/ath/ath10k/htt_tx.c 	res = ath10k_hif_tx_sg(htt->ar,
res              1530 drivers/net/wireless/ath/ath10k/htt_tx.c 	if (res)
res              1540 drivers/net/wireless/ath/ath10k/htt_tx.c 	return res;
res              1559 drivers/net/wireless/ath/ath10k/htt_tx.c 	int res;
res              1568 drivers/net/wireless/ath/ath10k/htt_tx.c 	res = ath10k_htt_tx_alloc_msdu_id(htt, msdu);
res              1569 drivers/net/wireless/ath/ath10k/htt_tx.c 	if (res < 0)
res              1572 drivers/net/wireless/ath/ath10k/htt_tx.c 	msdu_id = res;
res              1594 drivers/net/wireless/ath/ath10k/htt_tx.c 	res = dma_mapping_error(dev, skb_cb->paddr);
res              1595 drivers/net/wireless/ath/ath10k/htt_tx.c 	if (res) {
res              1596 drivers/net/wireless/ath/ath10k/htt_tx.c 		res = -EIO;
res              1734 drivers/net/wireless/ath/ath10k/htt_tx.c 	res = ath10k_hif_tx_sg(htt->ar,
res              1737 drivers/net/wireless/ath/ath10k/htt_tx.c 	if (res)
res              1747 drivers/net/wireless/ath/ath10k/htt_tx.c 	return res;
res              1231 drivers/net/wireless/ath/ath10k/snoc.c 	struct resource *res;
res              1235 drivers/net/wireless/ath/ath10k/snoc.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "membase");
res              1236 drivers/net/wireless/ath/ath10k/snoc.c 	if (!res) {
res              1241 drivers/net/wireless/ath/ath10k/snoc.c 	ar_snoc->mem_pa = res->start;
res              1243 drivers/net/wireless/ath/ath10k/snoc.c 				    resource_size(res));
res              1251 drivers/net/wireless/ath/ath10k/snoc.c 		res = platform_get_resource(ar_snoc->dev, IORESOURCE_IRQ, i);
res              1252 drivers/net/wireless/ath/ath10k/snoc.c 		if (!res) {
res              1257 drivers/net/wireless/ath/ath10k/snoc.c 		ar_snoc->ce_irqs[i].irq_line = res->start;
res               182 drivers/net/wireless/ath/ath10k/spectral.c 	int res;
res               195 drivers/net/wireless/ath/ath10k/spectral.c 	res = ath10k_wmi_vdev_spectral_enable(ar, vdev_id,
res               198 drivers/net/wireless/ath/ath10k/spectral.c 	if (res < 0)
res               199 drivers/net/wireless/ath/ath10k/spectral.c 		return res;
res               201 drivers/net/wireless/ath/ath10k/spectral.c 	res = ath10k_wmi_vdev_spectral_enable(ar, vdev_id,
res               204 drivers/net/wireless/ath/ath10k/spectral.c 	if (res < 0)
res               205 drivers/net/wireless/ath/ath10k/spectral.c 		return res;
res               215 drivers/net/wireless/ath/ath10k/spectral.c 	int vdev_id, count, res = 0;
res               228 drivers/net/wireless/ath/ath10k/spectral.c 	res = ath10k_wmi_vdev_spectral_enable(ar, vdev_id,
res               231 drivers/net/wireless/ath/ath10k/spectral.c 	if (res < 0) {
res               232 drivers/net/wireless/ath/ath10k/spectral.c 		ath10k_warn(ar, "failed to enable spectral scan: %d\n", res);
res               233 drivers/net/wireless/ath/ath10k/spectral.c 		return res;
res               264 drivers/net/wireless/ath/ath10k/spectral.c 	res = ath10k_wmi_vdev_spectral_conf(ar, &arg);
res               265 drivers/net/wireless/ath/ath10k/spectral.c 	if (res < 0) {
res               266 drivers/net/wireless/ath/ath10k/spectral.c 		ath10k_warn(ar, "failed to configure spectral scan: %d\n", res);
res               267 drivers/net/wireless/ath/ath10k/spectral.c 		return res;
res               308 drivers/net/wireless/ath/ath10k/spectral.c 	int res;
res               324 drivers/net/wireless/ath/ath10k/spectral.c 			res = ath10k_spectral_scan_config(ar,
res               326 drivers/net/wireless/ath/ath10k/spectral.c 			if (res < 0) {
res               328 drivers/net/wireless/ath/ath10k/spectral.c 					    res);
res               330 drivers/net/wireless/ath/ath10k/spectral.c 			res = ath10k_spectral_scan_trigger(ar);
res               331 drivers/net/wireless/ath/ath10k/spectral.c 			if (res < 0) {
res               333 drivers/net/wireless/ath/ath10k/spectral.c 					    res);
res               336 drivers/net/wireless/ath/ath10k/spectral.c 			res = -EINVAL;
res               339 drivers/net/wireless/ath/ath10k/spectral.c 		res = ath10k_spectral_scan_config(ar, SPECTRAL_BACKGROUND);
res               341 drivers/net/wireless/ath/ath10k/spectral.c 		res = ath10k_spectral_scan_config(ar, SPECTRAL_MANUAL);
res               343 drivers/net/wireless/ath/ath10k/spectral.c 		res = ath10k_spectral_scan_config(ar, SPECTRAL_DISABLED);
res               345 drivers/net/wireless/ath/ath10k/spectral.c 		res = -EINVAL;
res               350 drivers/net/wireless/ath/ath10k/spectral.c 	if (res < 0)
res               351 drivers/net/wireless/ath/ath10k/spectral.c 		return res;
res              4110 drivers/net/wireless/ath/ath10k/wmi.c 	int buf_len, tlv_len, res, i = 0;
res              4161 drivers/net/wireless/ath/ath10k/wmi.c 			res = ath10k_dfs_fft_report(ar, phyerr, fftr, tsf);
res              4162 drivers/net/wireless/ath/ath10k/wmi.c 			if (res)
res              4175 drivers/net/wireless/ath/ath10k/wmi.c 	int buf_len, tlv_len, res, i = 0;
res              4210 drivers/net/wireless/ath/ath10k/wmi.c 			res = ath10k_spectral_process_fft(ar, phyerr,
res              4213 drivers/net/wireless/ath/ath10k/wmi.c 			if (res < 0) {
res              4215 drivers/net/wireless/ath/ath10k/wmi.c 					   res);
res                90 drivers/net/wireless/ath/ath5k/ahb.c 	struct resource *res;
res               102 drivers/net/wireless/ath/ath5k/ahb.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               103 drivers/net/wireless/ath/ath5k/ahb.c 	if (res == NULL) {
res               109 drivers/net/wireless/ath/ath5k/ahb.c 	mem = ioremap_nocache(res->start, resource_size(res));
res               116 drivers/net/wireless/ath/ath5k/ahb.c 	res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
res               117 drivers/net/wireless/ath/ath5k/ahb.c 	if (res == NULL) {
res               123 drivers/net/wireless/ath/ath5k/ahb.c 	irq = res->start;
res               174 drivers/net/wireless/ath/ath5k/debug.c 	int res;
res               175 drivers/net/wireless/ath/ath5k/debug.c 	res = seq_open(file, &register_seq_ops);
res               176 drivers/net/wireless/ath/ath5k/debug.c 	if (res == 0) {
res               180 drivers/net/wireless/ath/ath5k/debug.c 	return res;
res               909 drivers/net/wireless/ath/ath5k/debug.c 	bool res;
res               916 drivers/net/wireless/ath/ath5k/debug.c 	res = ath5k_hw_nvram_read(ah, AR5K_EEPROM_SIZE_UPPER, &val);
res               917 drivers/net/wireless/ath/ath5k/debug.c 	if (!res)
res              2682 drivers/net/wireless/ath/ath6kl/cfg80211.c 	int res;
res              2685 drivers/net/wireless/ath/ath6kl/cfg80211.c 	res = ath6kl_wmi_set_appie_cmd(ar->wmi, vif->fw_vif_idx,
res              2689 drivers/net/wireless/ath/ath6kl/cfg80211.c 	if (res)
res              2690 drivers/net/wireless/ath/ath6kl/cfg80211.c 		return res;
res              2693 drivers/net/wireless/ath/ath6kl/cfg80211.c 	res = ath6kl_set_ap_probe_resp_ies(vif, info->proberesp_ies,
res              2695 drivers/net/wireless/ath/ath6kl/cfg80211.c 	if (res)
res              2696 drivers/net/wireless/ath/ath6kl/cfg80211.c 		return res;
res              2699 drivers/net/wireless/ath/ath6kl/cfg80211.c 	res = ath6kl_wmi_set_appie_cmd(ar->wmi, vif->fw_vif_idx,
res              2703 drivers/net/wireless/ath/ath6kl/cfg80211.c 	if (res)
res              2704 drivers/net/wireless/ath/ath6kl/cfg80211.c 		return res;
res              2770 drivers/net/wireless/ath/ath6kl/cfg80211.c 	int res;
res              2783 drivers/net/wireless/ath/ath6kl/cfg80211.c 	res = ath6kl_set_ies(vif, &info->beacon);
res              2814 drivers/net/wireless/ath/ath6kl/cfg80211.c 	res = ath6kl_wmi_ap_hidden_ssid(ar->wmi, vif->fw_vif_idx, hidden);
res              2815 drivers/net/wireless/ath/ath6kl/cfg80211.c 	if (res)
res              2816 drivers/net/wireless/ath/ath6kl/cfg80211.c 		return res;
res              2897 drivers/net/wireless/ath/ath6kl/cfg80211.c 	res = ath6kl_wmi_ap_set_apsd(ar->wmi, vif->fw_vif_idx, true);
res              2898 drivers/net/wireless/ath/ath6kl/cfg80211.c 	if (res < 0)
res              2899 drivers/net/wireless/ath/ath6kl/cfg80211.c 		return res;
res              2919 drivers/net/wireless/ath/ath6kl/cfg80211.c 		res = ath6kl_wmi_set_inact_period(ar->wmi, vif->fw_vif_idx,
res              2921 drivers/net/wireless/ath/ath6kl/cfg80211.c 		if (res < 0)
res              2922 drivers/net/wireless/ath/ath6kl/cfg80211.c 			return res;
res              2939 drivers/net/wireless/ath/ath6kl/cfg80211.c 		res = ath6kl_wmi_set_ie_cmd(ar->wmi, vif->fw_vif_idx,
res              2944 drivers/net/wireless/ath/ath6kl/cfg80211.c 		if (res < 0)
res              2945 drivers/net/wireless/ath/ath6kl/cfg80211.c 			return res;
res              2949 drivers/net/wireless/ath/ath6kl/cfg80211.c 	res = ath6kl_wmi_ap_profile_commit(ar->wmi, vif->fw_vif_idx, &p);
res              2950 drivers/net/wireless/ath/ath6kl/cfg80211.c 	if (res < 0)
res              2951 drivers/net/wireless/ath/ath6kl/cfg80211.c 		return res;
res               378 drivers/net/wireless/ath/ath6kl/main.c 	int res;
res               402 drivers/net/wireless/ath/ath6kl/main.c 		res = ath6kl_wmi_addkey_cmd(
res               407 drivers/net/wireless/ath/ath6kl/main.c 		if (res) {
res               409 drivers/net/wireless/ath/ath6kl/main.c 				   "Delayed addkey failed: %d\n", res);
res               605 drivers/net/wireless/ath/ath6kl/main.c 	int res = 0;
res               613 drivers/net/wireless/ath/ath6kl/main.c 			res = ath6kl_commit_ch_switch(vif, channel);
res               618 drivers/net/wireless/ath/ath6kl/main.c 		if (res)
res               620 drivers/net/wireless/ath/ath6kl/main.c 				   vif->nw_type, res);
res              3393 drivers/net/wireless/ath/ath6kl/wmi.c 	int res;
res              3402 drivers/net/wireless/ath/ath6kl/wmi.c 	res = ath6kl_wmi_cmd_send(wmip, if_idx, skb, WMI_AP_CONFIG_COMMIT_CMDID,
res              3407 drivers/net/wireless/ath/ath6kl/wmi.c 		   le32_to_cpu(p->ctrl_flags), res);
res              3408 drivers/net/wireless/ath/ath6kl/wmi.c 	return res;
res                77 drivers/net/wireless/ath/ath9k/ahb.c 	struct resource *res;
res                89 drivers/net/wireless/ath/ath9k/ahb.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                90 drivers/net/wireless/ath/ath9k/ahb.c 	if (res == NULL) {
res                95 drivers/net/wireless/ath/ath9k/ahb.c 	mem = devm_ioremap_nocache(&pdev->dev, res->start, resource_size(res));
res               101 drivers/net/wireless/ath/ath9k/ahb.c 	res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
res               102 drivers/net/wireless/ath/ath9k/ahb.c 	if (res == NULL) {
res               107 drivers/net/wireless/ath/ath9k/ahb.c 	irq = res->start;
res                66 drivers/net/wireless/ath/carl9170/cmd.c 	__le32 *offs, *res;
res                74 drivers/net/wireless/ath/carl9170/cmd.c 	res = (__le32 *)out;
res                78 drivers/net/wireless/ath/carl9170/cmd.c 				4 * nregs, (u8 *)res);
res                89 drivers/net/wireless/ath/carl9170/cmd.c 		out[i] = le32_to_cpu(res[i]);
res               547 drivers/net/wireless/ath/carl9170/debug.c 	int err = 0, i, n = 0, max_len = 32, res;
res               556 drivers/net/wireless/ath/carl9170/debug.c 	res = sscanf(buf, "0x%X %d", &reg, &n);
res               557 drivers/net/wireless/ath/carl9170/debug.c 	if (res < 1) {
res               562 drivers/net/wireless/ath/carl9170/debug.c 	if (res == 1)
res               702 drivers/net/wireless/ath/carl9170/debug.c 	int res, val;
res               707 drivers/net/wireless/ath/carl9170/debug.c 	res = sscanf(buf, "%d", &val);
res               708 drivers/net/wireless/ath/carl9170/debug.c 	if (res != 1)
res               724 drivers/net/wireless/ath/carl9170/debug.c 	int err = 0, max_len = 22, res;
res               733 drivers/net/wireless/ath/carl9170/debug.c 	res = sscanf(buf, "0x%X 0x%X", &reg, &val);
res               734 drivers/net/wireless/ath/carl9170/debug.c 	if (res != 2) {
res              1218 drivers/net/wireless/ath/wcn36xx/main.c 	struct resource *res;
res              1223 drivers/net/wireless/ath/wcn36xx/main.c 	res = platform_get_resource_byname(pdev, IORESOURCE_IRQ, "tx");
res              1224 drivers/net/wireless/ath/wcn36xx/main.c 	if (!res) {
res              1228 drivers/net/wireless/ath/wcn36xx/main.c 	wcn->tx_irq = res->start;
res              1231 drivers/net/wireless/ath/wcn36xx/main.c 	res = platform_get_resource_byname(pdev, IORESOURCE_IRQ, "rx");
res              1232 drivers/net/wireless/ath/wcn36xx/main.c 	if (!res) {
res              1236 drivers/net/wireless/ath/wcn36xx/main.c 	wcn->rx_irq = res->start;
res               661 drivers/net/wireless/ath/wil6210/txrx.c 	int res = 0;
res               665 drivers/net/wireless/ath/wil6210/txrx.c 		res = *su1 - *su2;
res               666 drivers/net/wireless/ath/wil6210/txrx.c 		if (res)
res               669 drivers/net/wireless/ath/wil6210/txrx.c 	return res;
res               950 drivers/net/wireless/atmel/at76c50x-usb.c 		 m->mac_addr, m->res[0], m->res[1]);
res              1029 drivers/net/wireless/atmel/at76c50x-usb.c 		 m->res, m->multi_domain_capability_implemented,
res               232 drivers/net/wireless/atmel/at76c50x-usb.h 	u8 res[2];		/* ??? */
res               274 drivers/net/wireless/atmel/at76c50x-usb.h 	u8 res;
res                89 drivers/net/wireless/broadcom/b43/debugfs.c 	int res;
res                91 drivers/net/wireless/broadcom/b43/debugfs.c 	res = sscanf(buf, "0x%X 0x%X", &routing, &addr);
res                92 drivers/net/wireless/broadcom/b43/debugfs.c 	if (res != 2)
res               114 drivers/net/wireless/broadcom/b43/debugfs.c 	int res;
res               116 drivers/net/wireless/broadcom/b43/debugfs.c 	res = sscanf(buf, "0x%X 0x%X 0x%X 0x%X",
res               118 drivers/net/wireless/broadcom/b43/debugfs.c 	if (res != 4)
res               165 drivers/net/wireless/broadcom/b43/debugfs.c 	int res;
res               167 drivers/net/wireless/broadcom/b43/debugfs.c 	res = sscanf(buf, "0x%X 0x%X", &routing, &addr);
res               168 drivers/net/wireless/broadcom/b43/debugfs.c 	if (res != 2)
res               190 drivers/net/wireless/broadcom/b43/debugfs.c 	int res;
res               192 drivers/net/wireless/broadcom/b43/debugfs.c 	res = sscanf(buf, "0x%X 0x%X 0x%X 0x%X",
res               194 drivers/net/wireless/broadcom/b43/debugfs.c 	if (res != 4)
res               242 drivers/net/wireless/broadcom/b43/debugfs.c 	int res;
res               244 drivers/net/wireless/broadcom/b43/debugfs.c 	res = sscanf(buf, "0x%X", &addr);
res               245 drivers/net/wireless/broadcom/b43/debugfs.c 	if (res != 1)
res               261 drivers/net/wireless/broadcom/b43/debugfs.c 	int res;
res               264 drivers/net/wireless/broadcom/b43/debugfs.c 	res = sscanf(buf, "0x%X 0x%X 0x%X", &addr, &mask, &set);
res               265 drivers/net/wireless/broadcom/b43/debugfs.c 	if (res != 3)
res               306 drivers/net/wireless/broadcom/b43/debugfs.c 	int res;
res               308 drivers/net/wireless/broadcom/b43/debugfs.c 	res = sscanf(buf, "0x%X", &addr);
res               309 drivers/net/wireless/broadcom/b43/debugfs.c 	if (res != 1)
res               325 drivers/net/wireless/broadcom/b43/debugfs.c 	int res;
res               328 drivers/net/wireless/broadcom/b43/debugfs.c 	res = sscanf(buf, "0x%X 0x%X 0x%X", &addr, &mask, &set);
res               329 drivers/net/wireless/broadcom/b43/debugfs.c 	if (res != 3)
res                57 drivers/net/wireless/broadcom/b43/ppr.c 	u8 res = 0;
res                62 drivers/net/wireless/broadcom/b43/ppr.c 		res = max(*rate, res);
res                65 drivers/net/wireless/broadcom/b43/ppr.c 	return res;
res               811 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c 	int res = 0;
res               820 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c 	res = brcmf_sdio_sleep(sdiodev->bus, true);
res               822 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c 	return res;
res               198 drivers/net/wireless/broadcom/brcm80211/brcmfmac/btcoex.c 	bool res = false;
res               221 drivers/net/wireless/broadcom/brcm80211/brcmfmac/btcoex.c 			res = true;
res               225 drivers/net/wireless/broadcom/brcm80211/brcmfmac/btcoex.c 	brcmf_dbg(TRACE, "exit: result=%d\n", res);
res               226 drivers/net/wireless/broadcom/brcm80211/brcmfmac/btcoex.c 	return res;
res              1097 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h 			      s8 txpwrindex, bool res);
res               272 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 	int res, hdrlen;
res               281 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 	res = crypt->ops->decrypt_mpdu(skb, hdrlen, crypt->priv);
res               283 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 	if (res < 0) {
res               285 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 				     hdr->addr2, res);
res               286 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 		if (res == -2)
res               294 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 	return res;
res               304 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 	int res, hdrlen;
res               313 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 	res = crypt->ops->decrypt_msdu(skb, keyidx, hdrlen, crypt->priv);
res               315 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 	if (res < 0) {
res               143 drivers/net/wireless/intel/ipw2x00/libipw_tx.c 	int res;
res               151 drivers/net/wireless/intel/ipw2x00/libipw_tx.c 	res = 0;
res               153 drivers/net/wireless/intel/ipw2x00/libipw_tx.c 		res = crypt->ops->encrypt_mpdu(frag, hdr_len, crypt->priv);
res               156 drivers/net/wireless/intel/ipw2x00/libipw_tx.c 	if (res < 0) {
res               339 drivers/net/wireless/intel/ipw2x00/libipw_tx.c 		int res = 0;
res               353 drivers/net/wireless/intel/ipw2x00/libipw_tx.c 		res = crypt->ops->encrypt_msdu(skb_new, hdr_len, crypt->priv);
res               354 drivers/net/wireless/intel/ipw2x00/libipw_tx.c 		if (res < 0) {
res              1932 drivers/net/wireless/intel/iwlegacy/3945.c 	s32 res;
res              1963 drivers/net/wireless/intel/iwlegacy/3945.c 	res =
res              1967 drivers/net/wireless/intel/iwlegacy/3945.c 	*new_idx = res >> 19;
res              1121 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	u8 res;
res              1122 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	res = (chain_bitmap & BIT(0)) >> 0;
res              1123 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	res += (chain_bitmap & BIT(1)) >> 1;
res              1124 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	res += (chain_bitmap & BIT(2)) >> 2;
res              1125 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	res += (chain_bitmap & BIT(3)) >> 3;
res              1126 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	return res;
res               553 drivers/net/wireless/intel/iwlegacy/4965.c il4965_math_div_round(s32 num, s32 denom, s32 * res)
res               565 drivers/net/wireless/intel/iwlegacy/4965.c 	*res = ((num * 2 + denom) / (denom * 2)) * sign;
res              4921 drivers/net/wireless/intel/iwlegacy/common.c 	u32 res = (base & il_beacon_time_mask_high(il,
res              4929 drivers/net/wireless/intel/iwlegacy/common.c 		res += base_low - addon_low;
res              4931 drivers/net/wireless/intel/iwlegacy/common.c 		res += interval + base_low - addon_low;
res              4932 drivers/net/wireless/intel/iwlegacy/common.c 		res += (1 << il->hw_params.beacon_time_tsf_bits);
res              4934 drivers/net/wireless/intel/iwlegacy/common.c 		res += (1 << il->hw_params.beacon_time_tsf_bits);
res              4936 drivers/net/wireless/intel/iwlegacy/common.c 	return cpu_to_le32(res);
res                93 drivers/net/wireless/intel/iwlwifi/dvm/calib.c 	struct iwl_calib_result *res;
res                95 drivers/net/wireless/intel/iwlwifi/dvm/calib.c 	list_for_each_entry(res, &priv->calib_results, list) {
res                98 drivers/net/wireless/intel/iwlwifi/dvm/calib.c 		hcmd.len[0] = res->cmd_len;
res                99 drivers/net/wireless/intel/iwlwifi/dvm/calib.c 		hcmd.data[0] = &res->hdr;
res               104 drivers/net/wireless/intel/iwlwifi/dvm/calib.c 				ret, res->hdr.op_code);
res               115 drivers/net/wireless/intel/iwlwifi/dvm/calib.c 	struct iwl_calib_result *res, *tmp;
res               117 drivers/net/wireless/intel/iwlwifi/dvm/calib.c 	res = kmalloc(sizeof(*res) + len - sizeof(struct iwl_calib_hdr),
res               119 drivers/net/wireless/intel/iwlwifi/dvm/calib.c 	if (!res)
res               121 drivers/net/wireless/intel/iwlwifi/dvm/calib.c 	memcpy(&res->hdr, cmd, len);
res               122 drivers/net/wireless/intel/iwlwifi/dvm/calib.c 	res->cmd_len = len;
res               125 drivers/net/wireless/intel/iwlwifi/dvm/calib.c 		if (tmp->hdr.op_code == res->hdr.op_code) {
res               126 drivers/net/wireless/intel/iwlwifi/dvm/calib.c 			list_replace(&tmp->list, &res->list);
res               133 drivers/net/wireless/intel/iwlwifi/dvm/calib.c 	list_add_tail(&res->list, &priv->calib_results);
res               140 drivers/net/wireless/intel/iwlwifi/dvm/calib.c 	struct iwl_calib_result *res, *tmp;
res               142 drivers/net/wireless/intel/iwlwifi/dvm/calib.c 	list_for_each_entry_safe(res, tmp, &priv->calib_results, list) {
res               143 drivers/net/wireless/intel/iwlwifi/dvm/calib.c 		list_del(&res->list);
res               144 drivers/net/wireless/intel/iwlwifi/dvm/calib.c 		kfree(res);
res               115 drivers/net/wireless/intel/iwlwifi/dvm/devices.c 	u32 res = (base & iwl_beacon_time_mask_high(priv,
res               121 drivers/net/wireless/intel/iwlwifi/dvm/devices.c 		res += base_low - addon_low;
res               123 drivers/net/wireless/intel/iwlwifi/dvm/devices.c 		res += interval + base_low - addon_low;
res               124 drivers/net/wireless/intel/iwlwifi/dvm/devices.c 		res += (1 << IWLAGN_EXT_BEACON_TIME_POS);
res               126 drivers/net/wireless/intel/iwlwifi/dvm/devices.c 		res += (1 << IWLAGN_EXT_BEACON_TIME_POS);
res               128 drivers/net/wireless/intel/iwlwifi/dvm/devices.c 	return cpu_to_le32(res);
res               764 drivers/net/wireless/intel/iwlwifi/dvm/lib.c 	u8 res;
res               765 drivers/net/wireless/intel/iwlwifi/dvm/lib.c 	res = (chain_bitmap & BIT(0)) >> 0;
res               766 drivers/net/wireless/intel/iwlwifi/dvm/lib.c 	res += (chain_bitmap & BIT(1)) >> 1;
res               767 drivers/net/wireless/intel/iwlwifi/dvm/lib.c 	res += (chain_bitmap & BIT(2)) >> 2;
res               768 drivers/net/wireless/intel/iwlwifi/dvm/lib.c 	res += (chain_bitmap & BIT(3)) >> 3;
res               769 drivers/net/wireless/intel/iwlwifi/dvm/lib.c 	return res;
res               194 drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c 	int res;
res               199 drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c 	res = request_firmware(&fw, "iwl-dbg-tlv.ini", dev);
res               200 drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c 	if (res)
res               434 drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c 				      struct cfg80211_pmsr_result *res)
res               439 drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c 		if (!ether_addr_equal_unaligned(res->addr, entry->addr))
res               443 drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c 			res->ftm.lci_len = entry->lci_len;
res               444 drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c 			res->ftm.lci = entry->buf;
res               448 drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c 			res->ftm.civicloc_len = entry->civic_len;
res               449 drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c 			res->ftm.civicloc = entry->buf + entry->lci_len;
res               477 drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c 				     struct cfg80211_pmsr_result *res)
res               479 drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c 	s64 rtt_avg = div_s64(res->ftm.rtt_avg * 100, 6666);
res               482 drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c 	IWL_DEBUG_INFO(mvm, "\tstatus: %d\n", res->status);
res               483 drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c 	IWL_DEBUG_INFO(mvm, "\tBSSID: %pM\n", res->addr);
res               484 drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c 	IWL_DEBUG_INFO(mvm, "\thost time: %llu\n", res->host_time);
res               485 drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c 	IWL_DEBUG_INFO(mvm, "\tburst index: %hhu\n", res->ftm.burst_index);
res               486 drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c 	IWL_DEBUG_INFO(mvm, "\tsuccess num: %u\n", res->ftm.num_ftmr_successes);
res               487 drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c 	IWL_DEBUG_INFO(mvm, "\trssi: %d\n", res->ftm.rssi_avg);
res               488 drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c 	IWL_DEBUG_INFO(mvm, "\trssi spread: %hhu\n", res->ftm.rssi_spread);
res               489 drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c 	IWL_DEBUG_INFO(mvm, "\trtt: %lld\n", res->ftm.rtt_avg);
res               490 drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c 	IWL_DEBUG_INFO(mvm, "\trtt var: %llu\n", res->ftm.rtt_variance);
res               491 drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c 	IWL_DEBUG_INFO(mvm, "\trtt spread: %llu\n", res->ftm.rtt_spread);
res              1981 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c 	u8 res;
res              1995 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c 	res = (ppe[byte_num + 1] &
res              1998 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c 	res += (ppe[byte_num] >> bit_num) & (BIT(residue_bits) - 1);
res              2000 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c 	return res;
res              3599 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c 	int res;
res              3689 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c 	res = iwl_mvm_send_cmd_pdu(mvm, HOT_SPOT_CMD, 0, len,
res              3692 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c 	if (res) {
res              3693 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c 		IWL_ERR(mvm, "Couldn't send HOT_SPOT_CMD: %d\n", res);
res              3699 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c 	res = iwl_wait_notification(&mvm->notif_wait, &wait_time_event, 1);
res              3701 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c 	WARN_ON_ONCE(res);
res              3703 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c 	if (res) {
res              3710 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c 	return res;
res               102 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c 	int res;
res               159 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c 	res = memcmp(pn, ptk_pn->q[queue].pn[tid], IEEE80211_CCMP_PN_LEN);
res               160 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c 	if (res < 0)
res               162 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c 	if (!res && !(stats->flag & RX_FLAG_ALLOW_SAME_PN))
res               802 drivers/net/wireless/intel/iwlwifi/mvm/utils.c 	int res;
res               817 drivers/net/wireless/intel/iwlwifi/mvm/utils.c 	res = iwl_mvm_update_quotas(mvm, false, NULL);
res               818 drivers/net/wireless/intel/iwlwifi/mvm/utils.c 	if (res)
res               819 drivers/net/wireless/intel/iwlwifi/mvm/utils.c 		return res;
res              2200 drivers/net/wireless/intel/iwlwifi/pcie/rx.c 		int res = iwl_read32(trans, CSR_IML_RESP_ADDR);
res              2202 drivers/net/wireless/intel/iwlwifi/pcie/rx.c 		IWL_DEBUG_ISR(trans, "IML transfer status: %d\n", res);
res              2203 drivers/net/wireless/intel/iwlwifi/pcie/rx.c 		if (res == IWL_IMAGE_RESP_FAIL) {
res              2229 drivers/net/wireless/intel/iwlwifi/pcie/rx.c 		int res = iwl_read32(trans, CSR_IML_RESP_ADDR);
res              2231 drivers/net/wireless/intel/iwlwifi/pcie/rx.c 		IWL_DEBUG_ISR(trans, "IML transfer status: %d\n", res);
res              2232 drivers/net/wireless/intel/iwlwifi/pcie/rx.c 		if (res == IWL_IMAGE_RESP_FAIL) {
res               653 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c 	int res, hdrlen;
res               672 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c 	res = crypt->ops->decrypt_mpdu(skb, hdrlen, crypt->priv);
res               674 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c 	if (res < 0) {
res               676 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c 		       local->dev->name, hdr->addr2, res);
res               681 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c 	return res;
res               691 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c 	int res, hdrlen;
res               700 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c 	res = crypt->ops->decrypt_msdu(skb, keyidx, hdrlen, crypt->priv);
res               702 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c 	if (res < 0) {
res               321 drivers/net/wireless/intersil/hostap/hostap_80211_tx.c 	int prefix_len, postfix_len, hdr_len, res;
res               364 drivers/net/wireless/intersil/hostap/hostap_80211_tx.c 	res = 0;
res               366 drivers/net/wireless/intersil/hostap/hostap_80211_tx.c 		res = crypt->ops->encrypt_msdu(skb, hdr_len, crypt->priv);
res               367 drivers/net/wireless/intersil/hostap/hostap_80211_tx.c 	if (res == 0 && crypt->ops->encrypt_mpdu)
res               368 drivers/net/wireless/intersil/hostap/hostap_80211_tx.c 		res = crypt->ops->encrypt_mpdu(skb, hdr_len, crypt->priv);
res               370 drivers/net/wireless/intersil/hostap/hostap_80211_tx.c 	if (res < 0) {
res               225 drivers/net/wireless/intersil/hostap/hostap_cs.c 	int res;
res               228 drivers/net/wireless/intersil/hostap/hostap_cs.c 	res = pcmcia_write_config_byte(hw_priv->link, 0x10,
res               230 drivers/net/wireless/intersil/hostap/hostap_cs.c 	if (res != 0) {
res               232 drivers/net/wireless/intersil/hostap/hostap_cs.c 		       " res=%d\n", res);
res               236 drivers/net/wireless/intersil/hostap/hostap_cs.c 	res = pcmcia_write_config_byte(hw_priv->link, 0x12,
res               238 drivers/net/wireless/intersil/hostap/hostap_cs.c 	if (res != 0) {
res               240 drivers/net/wireless/intersil/hostap/hostap_cs.c 		       " res=%d\n", res);
res               262 drivers/net/wireless/intersil/hostap/hostap_cs.c 	int res, ret = 0;
res               289 drivers/net/wireless/intersil/hostap/hostap_cs.c 	res = pcmcia_write_config_byte(hw_priv->link, CISREG_COR,
res               291 drivers/net/wireless/intersil/hostap/hostap_cs.c 	if (res != 0) {
res               293 drivers/net/wireless/intersil/hostap/hostap_cs.c 		       dev->name, res);
res               302 drivers/net/wireless/intersil/hostap/hostap_cs.c 	res = pcmcia_write_config_byte(hw_priv->link, CISREG_COR,
res               305 drivers/net/wireless/intersil/hostap/hostap_cs.c 	if (res != 0) {
res               307 drivers/net/wireless/intersil/hostap/hostap_cs.c 		       dev->name, res);
res               326 drivers/net/wireless/intersil/hostap/hostap_cs.c 	int res;
res               333 drivers/net/wireless/intersil/hostap/hostap_cs.c 	res = pcmcia_read_config_byte(hw_priv->link, CISREG_COR, &val);
res               334 drivers/net/wireless/intersil/hostap/hostap_cs.c 	if (res != 0) {
res               336 drivers/net/wireless/intersil/hostap/hostap_cs.c 		       res);
res               343 drivers/net/wireless/intersil/hostap/hostap_cs.c 	res = pcmcia_write_config_byte(hw_priv->link, CISREG_COR, val);
res               344 drivers/net/wireless/intersil/hostap/hostap_cs.c 	if (res != 0) {
res               346 drivers/net/wireless/intersil/hostap/hostap_cs.c 		       res);
res               355 drivers/net/wireless/intersil/hostap/hostap_cs.c 	res = pcmcia_write_config_byte(hw_priv->link, CISREG_COR, val);
res               356 drivers/net/wireless/intersil/hostap/hostap_cs.c 	if (res != 0) {
res               358 drivers/net/wireless/intersil/hostap/hostap_cs.c 		       res);
res               371 drivers/net/wireless/intersil/hostap/hostap_cs.c 	int res;
res               383 drivers/net/wireless/intersil/hostap/hostap_cs.c 	res = pcmcia_read_config_byte(hw_priv->link, CISREG_COR, &old_cor);
res               384 drivers/net/wireless/intersil/hostap/hostap_cs.c 	if (res != 0) {
res               385 drivers/net/wireless/intersil/hostap/hostap_cs.c 		printk(KERN_DEBUG "%s failed 1 (%d)\n", __func__, res);
res               390 drivers/net/wireless/intersil/hostap/hostap_cs.c 	res = pcmcia_write_config_byte(hw_priv->link, CISREG_COR,
res               392 drivers/net/wireless/intersil/hostap/hostap_cs.c 	if (res != 0) {
res               393 drivers/net/wireless/intersil/hostap/hostap_cs.c 		printk(KERN_DEBUG "%s failed 2 (%d)\n", __func__, res);
res               400 drivers/net/wireless/intersil/hostap/hostap_cs.c 	res = pcmcia_write_config_byte(hw_priv->link, CISREG_CCSR, hcr);
res               401 drivers/net/wireless/intersil/hostap/hostap_cs.c 	if (res != 0) {
res               402 drivers/net/wireless/intersil/hostap/hostap_cs.c 		printk(KERN_DEBUG "%s failed 3 (%d)\n", __func__, res);
res               407 drivers/net/wireless/intersil/hostap/hostap_cs.c 	res = pcmcia_write_config_byte(hw_priv->link, CISREG_COR,
res               409 drivers/net/wireless/intersil/hostap/hostap_cs.c 	if (res != 0) {
res               410 drivers/net/wireless/intersil/hostap/hostap_cs.c 		printk(KERN_DEBUG "%s failed 4 (%d)\n", __func__, res);
res               246 drivers/net/wireless/intersil/hostap/hostap_download.c 	int res, i, found = 0;
res               267 drivers/net/wireless/intersil/hostap/hostap_download.c 		res = hfa384x_from_aux(dev, pda_addr[i], PRISM2_PDA_SIZE, buf);
res               268 drivers/net/wireless/intersil/hostap/hostap_download.c 		if (res)
res               270 drivers/net/wireless/intersil/hostap/hostap_download.c 		if (res == 0 && prism2_pda_ok(buf)) {
res               315 drivers/net/wireless/intersil/hostap/hostap_hw.c 	int err, res, issue, issued = 0;
res               380 drivers/net/wireless/intersil/hostap/hostap_hw.c 		res = schedule_timeout(2 * HZ);
res               382 drivers/net/wireless/intersil/hostap/hostap_hw.c 		res = -1;
res               420 drivers/net/wireless/intersil/hostap/hostap_hw.c 		       entry->type, res);
res               429 drivers/net/wireless/intersil/hostap/hostap_hw.c 		res = err;
res               438 drivers/net/wireless/intersil/hostap/hostap_hw.c 		       res, entry, entry->type, entry->cmd, entry->param0, reg,
res               448 drivers/net/wireless/intersil/hostap/hostap_hw.c 		res = -ETIMEDOUT;
res               455 drivers/net/wireless/intersil/hostap/hostap_hw.c 	if (entry->res) {
res               458 drivers/net/wireless/intersil/hostap/hostap_hw.c 		       dev->name, cmd, entry->res, entry->resp0);
res               462 drivers/net/wireless/intersil/hostap/hostap_hw.c 	res = entry->res;
res               465 drivers/net/wireless/intersil/hostap/hostap_hw.c 	return res;
res               580 drivers/net/wireless/intersil/hostap/hostap_hw.c 	int res, tries;
res               583 drivers/net/wireless/intersil/hostap/hostap_hw.c 	res = __hfa384x_cmd_no_wait(dev, cmd, param0, 4);
res               584 drivers/net/wireless/intersil/hostap/hostap_hw.c 	if (res)
res               585 drivers/net/wireless/intersil/hostap/hostap_hw.c 		return res;
res               606 drivers/net/wireless/intersil/hostap/hostap_hw.c         res = (HFA384X_INW(HFA384X_STATUS_OFF) &
res               610 drivers/net/wireless/intersil/hostap/hostap_hw.c 	if (res) {
res               612 drivers/net/wireless/intersil/hostap/hostap_hw.c 		       dev->name, cmd, res);
res               618 drivers/net/wireless/intersil/hostap/hostap_hw.c 	return res;
res               679 drivers/net/wireless/intersil/hostap/hostap_hw.c 	entry->res = (HFA384X_INW(HFA384X_STATUS_OFF) &
res               691 drivers/net/wireless/intersil/hostap/hostap_hw.c 					entry->res);
res               717 drivers/net/wireless/intersil/hostap/hostap_hw.c 		int res = hfa384x_cmd_issue(dev, entry);
res               719 drivers/net/wireless/intersil/hostap/hostap_hw.c 		__hostap_cmd_queue_free(local, entry, res);
res               728 drivers/net/wireless/intersil/hostap/hostap_hw.c 	int res = HFA384X_INW(o_off) & HFA384X_OFFSET_BUSY;
res               730 drivers/net/wireless/intersil/hostap/hostap_hw.c 	while (res && tries > 0) {
res               733 drivers/net/wireless/intersil/hostap/hostap_hw.c 		res = HFA384X_INW(o_off) & HFA384X_OFFSET_BUSY;
res               735 drivers/net/wireless/intersil/hostap/hostap_hw.c 	return res;
res               795 drivers/net/wireless/intersil/hostap/hostap_hw.c 	int res, rlen = 0;
res               812 drivers/net/wireless/intersil/hostap/hostap_hw.c 	res = mutex_lock_interruptible(&local->rid_bap_mtx);
res               813 drivers/net/wireless/intersil/hostap/hostap_hw.c 	if (res)
res               814 drivers/net/wireless/intersil/hostap/hostap_hw.c 		return res;
res               816 drivers/net/wireless/intersil/hostap/hostap_hw.c 	res = hfa384x_cmd(dev, HFA384X_CMDCODE_ACCESS, rid, NULL, NULL);
res               817 drivers/net/wireless/intersil/hostap/hostap_hw.c 	if (res) {
res               820 drivers/net/wireless/intersil/hostap/hostap_hw.c 		       dev->name, res, rid, len);
res               822 drivers/net/wireless/intersil/hostap/hostap_hw.c 		return res;
res               827 drivers/net/wireless/intersil/hostap/hostap_hw.c 	res = hfa384x_setup_bap(dev, BAP0, rid, 0);
res               828 drivers/net/wireless/intersil/hostap/hostap_hw.c 	if (res)
res               831 drivers/net/wireless/intersil/hostap/hostap_hw.c 	res = hfa384x_from_bap(dev, BAP0, &rec, sizeof(rec));
res               832 drivers/net/wireless/intersil/hostap/hostap_hw.c 	if (res)
res               837 drivers/net/wireless/intersil/hostap/hostap_hw.c 		res = -ENODATA;
res               846 drivers/net/wireless/intersil/hostap/hostap_hw.c 		res = -ENODATA;
res               849 drivers/net/wireless/intersil/hostap/hostap_hw.c 	res = hfa384x_from_bap(dev, BAP0, buf, len);
res               855 drivers/net/wireless/intersil/hostap/hostap_hw.c 	if (res) {
res               856 drivers/net/wireless/intersil/hostap/hostap_hw.c 		if (res != -ENODATA)
res               859 drivers/net/wireless/intersil/hostap/hostap_hw.c 			       len, res);
res               860 drivers/net/wireless/intersil/hostap/hostap_hw.c 		if (res == -ETIMEDOUT)
res               862 drivers/net/wireless/intersil/hostap/hostap_hw.c 		return res;
res               874 drivers/net/wireless/intersil/hostap/hostap_hw.c 	int res;
res               894 drivers/net/wireless/intersil/hostap/hostap_hw.c 	res = mutex_lock_interruptible(&local->rid_bap_mtx);
res               895 drivers/net/wireless/intersil/hostap/hostap_hw.c 	if (res)
res               896 drivers/net/wireless/intersil/hostap/hostap_hw.c 		return res;
res               899 drivers/net/wireless/intersil/hostap/hostap_hw.c 	res = hfa384x_setup_bap(dev, BAP0, rid, 0);
res               900 drivers/net/wireless/intersil/hostap/hostap_hw.c 	if (!res)
res               901 drivers/net/wireless/intersil/hostap/hostap_hw.c 		res = hfa384x_to_bap(dev, BAP0, &rec, sizeof(rec));
res               902 drivers/net/wireless/intersil/hostap/hostap_hw.c 	if (!res)
res               903 drivers/net/wireless/intersil/hostap/hostap_hw.c 		res = hfa384x_to_bap(dev, BAP0, buf, len);
res               906 drivers/net/wireless/intersil/hostap/hostap_hw.c 	if (res) {
res               908 drivers/net/wireless/intersil/hostap/hostap_hw.c 		       "failed - res=%d\n", dev->name, rid, len, res);
res               910 drivers/net/wireless/intersil/hostap/hostap_hw.c 		return res;
res               913 drivers/net/wireless/intersil/hostap/hostap_hw.c 	res = hfa384x_cmd(dev, HFA384X_CMDCODE_ACCESS_WRITE, rid, NULL, NULL);
res               916 drivers/net/wireless/intersil/hostap/hostap_hw.c 	if (res) {
res               919 drivers/net/wireless/intersil/hostap/hostap_hw.c 		       dev->name, res, rid, len);
res               921 drivers/net/wireless/intersil/hostap/hostap_hw.c 		if (res == -ETIMEDOUT)
res               925 drivers/net/wireless/intersil/hostap/hostap_hw.c 	return res;
res               998 drivers/net/wireless/intersil/hostap/hostap_hw.c 	int res;
res              1006 drivers/net/wireless/intersil/hostap/hostap_hw.c 	res = hfa384x_cmd(dev, HFA384X_CMDCODE_DISABLE, 0,
res              1008 drivers/net/wireless/intersil/hostap/hostap_hw.c 	if (res)
res              1012 drivers/net/wireless/intersil/hostap/hostap_hw.c 		res = hfa384x_cmd(dev, HFA384X_CMDCODE_ENABLE, 0,
res              1014 drivers/net/wireless/intersil/hostap/hostap_hw.c 		if (res)
res              1033 drivers/net/wireless/intersil/hostap/hostap_hw.c 	return res;
res              1683 drivers/net/wireless/intersil/hostap/hostap_hw.c 			       u16 resp0, u16 res)
res              1692 drivers/net/wireless/intersil/hostap/hostap_hw.c 	if (res) {
res              1694 drivers/net/wireless/intersil/hostap/hostap_hw.c 		       dev->name, res);
res              1754 drivers/net/wireless/intersil/hostap/hostap_hw.c 	int res;
res              1773 drivers/net/wireless/intersil/hostap/hostap_hw.c 	res = hfa384x_cmd_callback(
res              1779 drivers/net/wireless/intersil/hostap/hostap_hw.c 	if (res) {
res              1781 drivers/net/wireless/intersil/hostap/hostap_hw.c 		       "failed (res=%d)\n", dev->name, res);
res              1805 drivers/net/wireless/intersil/hostap/hostap_hw.c 	int hdr_len, data_len, idx, res, ret = -1;
res              1859 drivers/net/wireless/intersil/hostap/hostap_hw.c 	res = hfa384x_setup_bap(dev, BAP0, local->txfid[idx], 0);
res              1861 drivers/net/wireless/intersil/hostap/hostap_hw.c 	if (!res)
res              1862 drivers/net/wireless/intersil/hostap/hostap_hw.c 		res = hfa384x_to_bap(dev, BAP0, &txdesc, sizeof(txdesc));
res              1863 drivers/net/wireless/intersil/hostap/hostap_hw.c 	if (!res)
res              1864 drivers/net/wireless/intersil/hostap/hostap_hw.c 		res = hfa384x_to_bap(dev, BAP0, skb->data + hdr_len,
res              1868 drivers/net/wireless/intersil/hostap/hostap_hw.c 	if (!res)
res              1869 drivers/net/wireless/intersil/hostap/hostap_hw.c 		res = prism2_transmit(dev, idx);
res              1870 drivers/net/wireless/intersil/hostap/hostap_hw.c 	if (res) {
res              1928 drivers/net/wireless/intersil/hostap/hostap_hw.c 	int res, rx_pending = 0;
res              1950 drivers/net/wireless/intersil/hostap/hostap_hw.c 	res = hfa384x_setup_bap(dev, BAP0, rxfid, 0);
res              1951 drivers/net/wireless/intersil/hostap/hostap_hw.c 	if (!res)
res              1952 drivers/net/wireless/intersil/hostap/hostap_hw.c 		res = hfa384x_from_bap(dev, BAP0, &rxdesc, sizeof(rxdesc));
res              1954 drivers/net/wireless/intersil/hostap/hostap_hw.c 	if (res) {
res              1957 drivers/net/wireless/intersil/hostap/hostap_hw.c 		       res);
res              1958 drivers/net/wireless/intersil/hostap/hostap_hw.c 		if (res == -ETIMEDOUT) {
res              2000 drivers/net/wireless/intersil/hostap/hostap_hw.c 		res = hfa384x_from_bap(dev, BAP0, skb_put(skb, len), len);
res              2002 drivers/net/wireless/intersil/hostap/hostap_hw.c 	if (res) {
res              2218 drivers/net/wireless/intersil/hostap/hostap_hw.c 	int res, ret = 0;
res              2226 drivers/net/wireless/intersil/hostap/hostap_hw.c 	res = hfa384x_setup_bap(dev, BAP0, fid, 0);
res              2227 drivers/net/wireless/intersil/hostap/hostap_hw.c 	if (!res)
res              2228 drivers/net/wireless/intersil/hostap/hostap_hw.c 		res = hfa384x_from_bap(dev, BAP0, txdesc, sizeof(*txdesc));
res              2229 drivers/net/wireless/intersil/hostap/hostap_hw.c 	if (res) {
res              2232 drivers/net/wireless/intersil/hostap/hostap_hw.c 		if (res == -ETIMEDOUT) {
res              2319 drivers/net/wireless/intersil/hostap/hostap_hw.c 	int show_dump, res;
res              2326 drivers/net/wireless/intersil/hostap/hostap_hw.c 	res = hostap_tx_compl_read(local, 1, &txdesc, &payload);
res              2328 drivers/net/wireless/intersil/hostap/hostap_hw.c 	if (res)
res              2410 drivers/net/wireless/intersil/hostap/hostap_hw.c 	int res, left;
res              2417 drivers/net/wireless/intersil/hostap/hostap_hw.c 	res = hfa384x_setup_bap(dev, BAP0, fid, 0);
res              2418 drivers/net/wireless/intersil/hostap/hostap_hw.c 	if (!res)
res              2419 drivers/net/wireless/intersil/hostap/hostap_hw.c 		res = hfa384x_from_bap(dev, BAP0, &info, sizeof(info));
res              2420 drivers/net/wireless/intersil/hostap/hostap_hw.c 	if (res) {
res              2424 drivers/net/wireless/intersil/hostap/hostap_hw.c 		if (res == -ETIMEDOUT) {
res               259 drivers/net/wireless/intersil/hostap/hostap_info.c 	struct hfa384x_scan_result *res;
res               281 drivers/net/wireless/intersil/hostap/hostap_info.c 	res = (struct hfa384x_scan_result *) pos;
res               283 drivers/net/wireless/intersil/hostap/hostap_info.c 		memcpy(&results[i], &res[i],
res              2036 drivers/net/wireless/intersil/hostap/hostap_ioctl.c 	int res;
res              2057 drivers/net/wireless/intersil/hostap/hostap_ioctl.c 	res = prism2_translate_scan(local, info, extra, data->length);
res              2059 drivers/net/wireless/intersil/hostap/hostap_ioctl.c 	if (res >= 0) {
res              2060 drivers/net/wireless/intersil/hostap/hostap_ioctl.c 		data->length = res;
res              2064 drivers/net/wireless/intersil/hostap/hostap_ioctl.c 		return res;
res              2076 drivers/net/wireless/intersil/hostap/hostap_ioctl.c 	int res;
res              2090 drivers/net/wireless/intersil/hostap/hostap_ioctl.c 		res = prism2_ap_translate_scan(dev, info, extra);
res              2091 drivers/net/wireless/intersil/hostap/hostap_ioctl.c 		if (res >= 0) {
res              2093 drivers/net/wireless/intersil/hostap/hostap_ioctl.c 			       "(length=%d)\n", res);
res              2094 drivers/net/wireless/intersil/hostap/hostap_ioctl.c 			data->length = res;
res              2099 drivers/net/wireless/intersil/hostap/hostap_ioctl.c 			       res);
res              2101 drivers/net/wireless/intersil/hostap/hostap_ioctl.c 			return res;
res              3636 drivers/net/wireless/intersil/hostap/hostap_ioctl.c 	int max_len, res;
res              3642 drivers/net/wireless/intersil/hostap/hostap_ioctl.c 	res = local->func->get_rid(local->dev, param->u.rid.rid,
res              3644 drivers/net/wireless/intersil/hostap/hostap_ioctl.c 	if (res >= 0) {
res              3645 drivers/net/wireless/intersil/hostap/hostap_ioctl.c 		param->u.rid.len = res;
res              3649 drivers/net/wireless/intersil/hostap/hostap_ioctl.c 	return res;
res               556 drivers/net/wireless/intersil/hostap/hostap_wlan.h 			 u16 res);
res               559 drivers/net/wireless/intersil/hostap/hostap_wlan.h 	u16 resp0, res;
res              1959 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	int res = 0;
res              1971 drivers/net/wireless/intersil/prism54/isl_ioctl.c 			res = 1;
res              1975 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	res = (acl->policy == MAC_POLICY_ACCEPT) ? !res : res;
res              1978 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	return res;
res               504 drivers/net/wireless/intersil/prism54/oid_mgt.c 		union oid_res_t *res)
res               518 drivers/net/wireless/intersil/prism54/oid_mgt.c 	res->ptr = NULL;
res               551 drivers/net/wireless/intersil/prism54/oid_mgt.c 		res->u = ret ? 0 : le32_to_cpu(*(u32 *) _res);
res               553 drivers/net/wireless/intersil/prism54/oid_mgt.c 		res->ptr = kmalloc(reslen, GFP_KERNEL);
res               554 drivers/net/wireless/intersil/prism54/oid_mgt.c 		BUG_ON(res->ptr == NULL);
res               556 drivers/net/wireless/intersil/prism54/oid_mgt.c 			memset(res->ptr, 0, reslen);
res               558 drivers/net/wireless/intersil/prism54/oid_mgt.c 			memcpy(res->ptr, _res, reslen);
res               560 drivers/net/wireless/intersil/prism54/oid_mgt.c 				      res->ptr);
res               625 drivers/net/wireless/intersil/prism54/oid_mgt.c mgt_get(islpci_private *priv, enum oid_num_t n, void *res)
res               629 drivers/net/wireless/intersil/prism54/oid_mgt.c 	BUG_ON(res == NULL);
res               631 drivers/net/wireless/intersil/prism54/oid_mgt.c 	memcpy(res, priv->mib[n], isl_oid[n].size);
res               632 drivers/net/wireless/intersil/prism54/oid_mgt.c 	mgt_le_to_cpu(isl_oid[n].flags & OID_FLAG_TYPE, res);
res               664 drivers/net/wireless/intersil/prism54/oid_mgt.c 	struct islpci_mgmtframe *res;
res               669 drivers/net/wireless/intersil/prism54/oid_mgt.c 				     isl_oid[GEN_OID_MACADDRESS].size, &res);
res               671 drivers/net/wireless/intersil/prism54/oid_mgt.c 	if ((ret == 0) && res && (res->header->operation != PIMFOR_OP_ERROR))
res               672 drivers/net/wireless/intersil/prism54/oid_mgt.c 		memcpy(priv->ndev->dev_addr, res->data, ETH_ALEN);
res               675 drivers/net/wireless/intersil/prism54/oid_mgt.c 	if (res)
res               676 drivers/net/wireless/intersil/prism54/oid_mgt.c 		islpci_mgt_release(res);
res               986 drivers/net/wireless/mac80211_hwsim.c 	int res = -ENOENT;
res               991 drivers/net/wireless/mac80211_hwsim.c 			res = genlmsg_unicast(net, skb, portid);
res              1001 drivers/net/wireless/mac80211_hwsim.c 	return res;
res              3143 drivers/net/wireless/mac80211_hwsim.c 	int res = -EMSGSIZE;
res              3165 drivers/net/wireless/mac80211_hwsim.c 	res = append_radio_msg(skb, data->idx, &param);
res              3166 drivers/net/wireless/mac80211_hwsim.c 	if (res < 0)
res              3174 drivers/net/wireless/mac80211_hwsim.c 	return res;
res              3642 drivers/net/wireless/mac80211_hwsim.c 	int idx, res = -ENODEV;
res              3658 drivers/net/wireless/mac80211_hwsim.c 			res = -ENOMEM;
res              3662 drivers/net/wireless/mac80211_hwsim.c 		res = mac80211_hwsim_get_radio(skb, data, info->snd_portid,
res              3664 drivers/net/wireless/mac80211_hwsim.c 		if (res < 0) {
res              3669 drivers/net/wireless/mac80211_hwsim.c 		res = genlmsg_reply(skb, info);
res              3676 drivers/net/wireless/mac80211_hwsim.c 	return res;
res              3684 drivers/net/wireless/mac80211_hwsim.c 	int res = 0;
res              3700 drivers/net/wireless/mac80211_hwsim.c 		res = mac80211_hwsim_get_radio(skb, data,
res              3704 drivers/net/wireless/mac80211_hwsim.c 		if (res < 0)
res              3721 drivers/net/wireless/mac80211_hwsim.c 			res = -EMSGSIZE;
res              3727 drivers/net/wireless/mac80211_hwsim.c 	return res ?: skb->len;
res                40 drivers/net/wireless/marvell/libertas/debugfs.c 	ssize_t res;
res                49 drivers/net/wireless/marvell/libertas/debugfs.c 	res = simple_read_from_buffer(userbuf, count, ppos, buf, pos);
res                52 drivers/net/wireless/marvell/libertas/debugfs.c 	return res;
res               479 drivers/net/wireless/marvell/libertas/debugfs.c 	ssize_t res;
res               487 drivers/net/wireless/marvell/libertas/debugfs.c 	res = sscanf(buf, "%x %x", &offset, &value);
res               488 drivers/net/wireless/marvell/libertas/debugfs.c 	if (res != 2) {
res               489 drivers/net/wireless/marvell/libertas/debugfs.c 		res = -EFAULT;
res               493 drivers/net/wireless/marvell/libertas/debugfs.c 	res = lbs_set_reg(priv, CMD_MAC_REG_ACCESS, offset, value);
res               496 drivers/net/wireless/marvell/libertas/debugfs.c 	if (!res)
res               497 drivers/net/wireless/marvell/libertas/debugfs.c 		res = count;
res               500 drivers/net/wireless/marvell/libertas/debugfs.c 	return res;
res               551 drivers/net/wireless/marvell/libertas/debugfs.c 	ssize_t res;
res               559 drivers/net/wireless/marvell/libertas/debugfs.c 	res = sscanf(buf, "%x %x", &offset, &value);
res               560 drivers/net/wireless/marvell/libertas/debugfs.c 	if (res != 2) {
res               561 drivers/net/wireless/marvell/libertas/debugfs.c 		res = -EFAULT;
res               565 drivers/net/wireless/marvell/libertas/debugfs.c 	res = lbs_set_reg(priv, CMD_BBP_REG_ACCESS, offset, value);
res               568 drivers/net/wireless/marvell/libertas/debugfs.c 	if (!res)
res               569 drivers/net/wireless/marvell/libertas/debugfs.c 		res = count;
res               572 drivers/net/wireless/marvell/libertas/debugfs.c 	return res;
res               622 drivers/net/wireless/marvell/libertas/debugfs.c 	ssize_t res;
res               630 drivers/net/wireless/marvell/libertas/debugfs.c 	res = sscanf(buf, "%x %x", &offset, &value);
res               631 drivers/net/wireless/marvell/libertas/debugfs.c 	if (res != 2) {
res               632 drivers/net/wireless/marvell/libertas/debugfs.c 		res = -EFAULT;
res               636 drivers/net/wireless/marvell/libertas/debugfs.c 	res = lbs_set_reg(priv, CMD_RF_REG_ACCESS, offset, value);
res               639 drivers/net/wireless/marvell/libertas/debugfs.c 	if (!res)
res               640 drivers/net/wireless/marvell/libertas/debugfs.c 		res = count;
res               643 drivers/net/wireless/marvell/libertas/debugfs.c 	return res;
res               811 drivers/net/wireless/marvell/libertas/debugfs.c 	ssize_t res;
res               837 drivers/net/wireless/marvell/libertas/debugfs.c 	res = simple_read_from_buffer(userbuf, count, ppos, p, pos);
res               840 drivers/net/wireless/marvell/libertas/debugfs.c 	return res;
res               642 drivers/net/wireless/mediatek/mt7601u/phy.c 	s8 res[4];
res               688 drivers/net/wireless/mediatek/mt7601u/phy.c 		res[i] = mt7601u_bbp_rr(dev, 49);
res               691 drivers/net/wireless/mediatek/mt7601u/phy.c 	tssi_init_db = lin2dBd((short)res[1] - res[0]);
res               692 drivers/net/wireless/mediatek/mt7601u/phy.c 	tssi_init_hvga_db = lin2dBd(((short)res[3] - res[2]) * 4);
res               693 drivers/net/wireless/mediatek/mt7601u/phy.c 	dev->tssi_init = res[0];
res               694 drivers/net/wireless/mediatek/mt7601u/phy.c 	dev->tssi_init_hvga = res[2];
res               696 drivers/net/wireless/quantenna/qtnfmac/event.c 	int res;
res               715 drivers/net/wireless/quantenna/qtnfmac/event.c 	res = qtnf_event_parse(mac, skb);
res               718 drivers/net/wireless/quantenna/qtnfmac/event.c 	return res;
res                37 drivers/net/wireless/ralink/rt2x00/rt2x00soc.c 	struct resource *res;
res                39 drivers/net/wireless/ralink/rt2x00/rt2x00soc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                40 drivers/net/wireless/ralink/rt2x00/rt2x00soc.c 	if (!res)
res                43 drivers/net/wireless/ralink/rt2x00/rt2x00soc.c 	rt2x00dev->csr.base = ioremap(res->start, resource_size(res));
res               657 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c 	int res;
res               670 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c 	res = rtl8187_cmd_reset(dev);
res               671 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c 	if (res)
res               672 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c 		return res;
res               772 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c 	int res, i;
res               784 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c 	res = rtl8187_cmd_reset(dev);
res               785 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c 	if (res)
res               786 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c 		return res;
res              6382 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c 	int res;
res              6384 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c 	res = usb_register(&rtl8xxxu_driver);
res              6385 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c 	if (res < 0)
res              6386 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c 		pr_err(DRIVER_NAME ": usb_register() failed (%i)\n", res);
res              6388 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c 	return res;
res               379 drivers/net/wireless/realtek/rtw88/main.h 	s8 res:4;
res               381 drivers/net/wireless/realtek/rtw88/main.h 	s8 res:4;
res                93 drivers/net/wireless/realtek/rtw88/rtw8822b.h 	u8 res[3];
res                28 drivers/net/wireless/ti/wl1251/debugfs.c 	int res;							\
res                30 drivers/net/wireless/ti/wl1251/debugfs.c 	res = scnprintf(buf, buflen, fmt "\n", ##value);		\
res                31 drivers/net/wireless/ti/wl1251/debugfs.c 	return simple_read_from_buffer(userbuf, count, ppos, buf, res);	\
res                57 drivers/net/wireless/ti/wl1251/debugfs.c 	int res;							\
res                61 drivers/net/wireless/ti/wl1251/debugfs.c 	res = scnprintf(buf, buflen, fmt "\n",				\
res                63 drivers/net/wireless/ti/wl1251/debugfs.c 	return simple_read_from_buffer(userbuf, count, ppos, buf, res);	\
res               203 drivers/net/wireless/ti/wl1251/debugfs.c 	int res;
res               207 drivers/net/wireless/ti/wl1251/debugfs.c 	res = scnprintf(buf, sizeof(buf), "%u\n", queue_len);
res               208 drivers/net/wireless/ti/wl1251/debugfs.c 	return simple_read_from_buffer(userbuf, count, ppos, buf, res);
res                36 drivers/net/wireless/ti/wlcore/debugfs.c 	int res;
res                39 drivers/net/wireless/ti/wlcore/debugfs.c 	res = vscnprintf(buf, sizeof(buf), fmt, args);
res                42 drivers/net/wireless/ti/wlcore/debugfs.c 	return simple_read_from_buffer(userbuf, count, ppos, buf, res);
res                86 drivers/net/wireless/ti/wlcore/debugfs.c 	int res;
res                90 drivers/net/wireless/ti/wlcore/debugfs.c 	res = scnprintf(buf, sizeof(buf), "%u\n", queue_len);
res                91 drivers/net/wireless/ti/wlcore/debugfs.c 	return simple_read_from_buffer(userbuf, count, ppos, buf, res);
res               193 drivers/net/wireless/ti/wlcore/debugfs.c 	int res;
res               196 drivers/net/wireless/ti/wlcore/debugfs.c 	res = scnprintf(buf, sizeof(buf), "%d\n", state);
res               198 drivers/net/wireless/ti/wlcore/debugfs.c 	return simple_read_from_buffer(user_buf, count, ppos, buf, res);
res               437 drivers/net/wireless/ti/wlcore/debugfs.c 	int res = 0;
res               451 drivers/net/wireless/ti/wlcore/debugfs.c 	(res += scnprintf(buf + res, DRIVER_STATE_BUF_LEN - res,\
res               455 drivers/net/wireless/ti/wlcore/debugfs.c 	(res += scnprintf(buf + res, DRIVER_STATE_BUF_LEN - res,\
res               521 drivers/net/wireless/ti/wlcore/debugfs.c 	ret = simple_read_from_buffer(user_buf, count, ppos, buf, res);
res               537 drivers/net/wireless/ti/wlcore/debugfs.c 	int ret, res = 0;
res               549 drivers/net/wireless/ti/wlcore/debugfs.c 	(res += scnprintf(buf + res, buf_size - res,	\
res               564 drivers/net/wireless/ti/wlcore/debugfs.c 		res += scnprintf(buf + res, buf_size - res,	\
res               631 drivers/net/wireless/ti/wlcore/debugfs.c 	ret = simple_read_from_buffer(user_buf, count, ppos, buf, res);
res                81 drivers/net/wireless/ti/wlcore/debugfs.h 	int res, i;							\
res                86 drivers/net/wireless/ti/wlcore/debugfs.h 		res = snprintf(buf, sizeof(buf), "%s[%d] = %d\n",	\
res              6555 drivers/net/wireless/ti/wlcore/main.c 	struct resource *res;
res              6586 drivers/net/wireless/ti/wlcore/main.c 	res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
res              6587 drivers/net/wireless/ti/wlcore/main.c 	if (!res) {
res              6592 drivers/net/wireless/ti/wlcore/main.c 	wl->irq = res->start;
res              6593 drivers/net/wireless/ti/wlcore/main.c 	wl->irq_flags = res->flags & IRQF_TRIGGER_MASK;
res              6630 drivers/net/wireless/ti/wlcore/main.c 	res = platform_get_resource(pdev, IORESOURCE_IRQ, 1);
res              6631 drivers/net/wireless/ti/wlcore/main.c 	if (res) {
res              6632 drivers/net/wireless/ti/wlcore/main.c 		wl->wakeirq = res->start;
res              6633 drivers/net/wireless/ti/wlcore/main.c 		wl->wakeirq_flags = res->flags & IRQF_TRIGGER_MASK;
res               270 drivers/net/wireless/ti/wlcore/sdio.c 	struct resource res[2];
res               334 drivers/net/wireless/ti/wlcore/sdio.c 	memset(res, 0x00, sizeof(res));
res               336 drivers/net/wireless/ti/wlcore/sdio.c 	res[0].start = irq;
res               337 drivers/net/wireless/ti/wlcore/sdio.c 	res[0].flags = IORESOURCE_IRQ |
res               339 drivers/net/wireless/ti/wlcore/sdio.c 	res[0].name = "irq";
res               343 drivers/net/wireless/ti/wlcore/sdio.c 		res[1].start = wakeirq;
res               344 drivers/net/wireless/ti/wlcore/sdio.c 		res[1].flags = IORESOURCE_IRQ |
res               346 drivers/net/wireless/ti/wlcore/sdio.c 		res[1].name = "wakeirq";
res               351 drivers/net/wireless/ti/wlcore/sdio.c 	ret = platform_device_add_resources(glue->core, res, num_irqs);
res               468 drivers/net/wireless/ti/wlcore/spi.c 	struct resource res[1];
res               521 drivers/net/wireless/ti/wlcore/spi.c 	memset(res, 0x00, sizeof(res));
res               523 drivers/net/wireless/ti/wlcore/spi.c 	res[0].start = spi->irq;
res               524 drivers/net/wireless/ti/wlcore/spi.c 	res[0].flags = IORESOURCE_IRQ | irq_get_trigger_type(spi->irq);
res               525 drivers/net/wireless/ti/wlcore/spi.c 	res[0].name = "irq";
res               527 drivers/net/wireless/ti/wlcore/spi.c 	ret = platform_device_add_resources(glue->core, res, ARRAY_SIZE(res));
res                38 drivers/net/wireless/ti/wlcore/sysfs.c 	unsigned long res;
res                41 drivers/net/wireless/ti/wlcore/sysfs.c 	ret = kstrtoul(buf, 10, &res);
res                49 drivers/net/wireless/ti/wlcore/sysfs.c 	res = !!res;
res                51 drivers/net/wireless/ti/wlcore/sysfs.c 	if (res == wl->sg_enabled)
res                54 drivers/net/wireless/ti/wlcore/sysfs.c 	wl->sg_enabled = res;
res               497 drivers/nfc/nfcmrvl/fw_dnld.c 	int res;
res               513 drivers/nfc/nfcmrvl/fw_dnld.c 	res = request_firmware(&fw_dnld->fw, firmware_name,
res               515 drivers/nfc/nfcmrvl/fw_dnld.c 	if (res < 0) {
res               227 drivers/ntb/msi.c static void ntbm_msi_callback_release(struct device *dev, void *res)
res               229 drivers/ntb/msi.c 	struct ntb_msi_devres *dr = res;
res               320 drivers/ntb/msi.c static int ntbm_msi_callback_match(struct device *dev, void *res, void *data)
res               323 drivers/ntb/msi.c 	struct ntb_msi_devres *dr = res;
res              1474 drivers/ntb/ntb_transport.c 				 const struct dmaengine_result *res)
res              1479 drivers/ntb/ntb_transport.c 	if (res) {
res              1480 drivers/ntb/ntb_transport.c 		enum dmaengine_tx_result dma_err = res->result;
res              1594 drivers/ntb/ntb_transport.c 	int res;
res              1602 drivers/ntb/ntb_transport.c 	res = ntb_async_rx_submit(entry, offset);
res              1603 drivers/ntb/ntb_transport.c 	if (res < 0)
res              1728 drivers/ntb/ntb_transport.c 				 const struct dmaengine_result *res)
res              1735 drivers/ntb/ntb_transport.c 	if (res) {
res              1736 drivers/ntb/ntb_transport.c 		enum dmaengine_tx_result dma_err = res->result;
res              1866 drivers/ntb/ntb_transport.c 	int res;
res              1882 drivers/ntb/ntb_transport.c 	res = ntb_async_tx_submit(qp, entry);
res              1883 drivers/ntb/ntb_transport.c 	if (res < 0)
res               214 drivers/nvdimm/badrange.c 		struct badblocks *bb, const struct resource *res)
res               225 drivers/nvdimm/badrange.c 		if (bre_end < res->start)
res               227 drivers/nvdimm/badrange.c 		if (bre->start >  res->end)
res               230 drivers/nvdimm/badrange.c 		if (bre->start >= res->start) {
res               234 drivers/nvdimm/badrange.c 			if (bre_end <= res->end)
res               237 drivers/nvdimm/badrange.c 				len = res->start + resource_size(res)
res               239 drivers/nvdimm/badrange.c 			__add_badblock_range(bb, start - res->start, len);
res               246 drivers/nvdimm/badrange.c 		if (bre->start < res->start) {
res               249 drivers/nvdimm/badrange.c 			if (bre_end < res->end)
res               250 drivers/nvdimm/badrange.c 				len = bre->start + bre->length - res->start;
res               252 drivers/nvdimm/badrange.c 				len = resource_size(res);
res               270 drivers/nvdimm/badrange.c 		struct badblocks *bb, const struct resource *res)
res               282 drivers/nvdimm/badrange.c 	badblocks_populate(&nvdimm_bus->badrange, bb, res);
res                37 drivers/nvdimm/blk.c 		if (ns_offset < resource_size(nsblk->res[i])) {
res                38 drivers/nvdimm/blk.c 			if (ns_offset + len > resource_size(nsblk->res[i])) {
res                43 drivers/nvdimm/blk.c 			return nsblk->res[i]->start + ns_offset;
res                45 drivers/nvdimm/blk.c 		ns_offset -= resource_size(nsblk->res[i]);
res               934 drivers/nvdimm/bus.c 	pstart = nsio->res.start + offset;
res               935 drivers/nvdimm/bus.c 	pend = nsio->res.end - end_trunc;
res               283 drivers/nvdimm/claim.c 					nsio->res.start + offset, size);
res               305 drivers/nvdimm/claim.c 	struct resource *res = &nsio->res;
res               308 drivers/nvdimm/claim.c 	nsio->size = resource_size(res);
res               309 drivers/nvdimm/claim.c 	if (!devm_request_mem_region(dev, res->start, resource_size(res),
res               311 drivers/nvdimm/claim.c 		dev_warn(dev, "could not reserve region %pR\n", res);
res               319 drivers/nvdimm/claim.c 			&nsio->res);
res               321 drivers/nvdimm/claim.c 	nsio->addr = devm_memremap(dev, res->start, resource_size(res),
res               330 drivers/nvdimm/claim.c 	struct resource *res = &nsio->res;
res               334 drivers/nvdimm/claim.c 	devm_release_mem_region(dev, res->start, resource_size(res));
res               254 drivers/nvdimm/dimm_devs.c 	struct resource *res, *_r;
res               258 drivers/nvdimm/dimm_devs.c 	for_each_dpa_resource_safe(ndd, res, _r)
res               259 drivers/nvdimm/dimm_devs.c 		nvdimm_free_dpa(ndd, res);
res               566 drivers/nvdimm/dimm_devs.c 	struct resource *res;
res               591 drivers/nvdimm/dimm_devs.c 	if (info->res) {
res               592 drivers/nvdimm/dimm_devs.c 		if (info->res->start >= nd_mapping->start
res               593 drivers/nvdimm/dimm_devs.c 				&& info->res->start < map_end)
res               604 drivers/nvdimm/dimm_devs.c 	for_each_dpa_resource(ndd, res) {
res               605 drivers/nvdimm/dimm_devs.c 		if (strncmp(res->name, "pmem", 4) != 0)
res               607 drivers/nvdimm/dimm_devs.c 		if ((res->start >= blk_start && res->start < map_end)
res               608 drivers/nvdimm/dimm_devs.c 				|| (res->end >= blk_start
res               609 drivers/nvdimm/dimm_devs.c 					&& res->end <= map_end)) {
res               610 drivers/nvdimm/dimm_devs.c 			new = max(blk_start, min(map_end + 1, res->end + 1));
res               619 drivers/nvdimm/dimm_devs.c 	if (info->res && blk_start > info->res->start) {
res               620 drivers/nvdimm/dimm_devs.c 		info->res->start = max(info->res->start, blk_start);
res               621 drivers/nvdimm/dimm_devs.c 		if (info->res->start > info->res->end)
res               622 drivers/nvdimm/dimm_devs.c 			info->res->end = info->res->start - 1;
res               647 drivers/nvdimm/dimm_devs.c 		.res = NULL,
res               649 drivers/nvdimm/dimm_devs.c 	struct resource *res;
res               657 drivers/nvdimm/dimm_devs.c 	for_each_dpa_resource(ndd, res) {
res               658 drivers/nvdimm/dimm_devs.c 		if (strncmp(res->name, "blk", 3) != 0)
res               660 drivers/nvdimm/dimm_devs.c 		info.available -= resource_size(res);
res               678 drivers/nvdimm/dimm_devs.c 	struct resource *res;
res               687 drivers/nvdimm/dimm_devs.c 	for_each_dpa_resource(ndd, res) {
res               688 drivers/nvdimm/dimm_devs.c 		if (strcmp(res->name, "pmem-reserve") != 0)
res               690 drivers/nvdimm/dimm_devs.c 		if (resource_size(res) > max)
res               691 drivers/nvdimm/dimm_devs.c 			max = resource_size(res);
res               717 drivers/nvdimm/dimm_devs.c 	struct resource *res;
res               726 drivers/nvdimm/dimm_devs.c 	for_each_dpa_resource(ndd, res) {
res               727 drivers/nvdimm/dimm_devs.c 		if (res->start >= map_start && res->start < map_end) {
res               728 drivers/nvdimm/dimm_devs.c 			if (strncmp(res->name, "blk", 3) == 0)
res               730 drivers/nvdimm/dimm_devs.c 						max(map_start, res->start));
res               731 drivers/nvdimm/dimm_devs.c 			else if (res->end > map_end) {
res               735 drivers/nvdimm/dimm_devs.c 				busy += resource_size(res);
res               736 drivers/nvdimm/dimm_devs.c 		} else if (res->end >= map_start && res->end <= map_end) {
res               737 drivers/nvdimm/dimm_devs.c 			if (strncmp(res->name, "blk", 3) == 0) {
res               745 drivers/nvdimm/dimm_devs.c 				busy += resource_size(res);
res               746 drivers/nvdimm/dimm_devs.c 		} else if (map_start > res->start && map_start < res->end) {
res               760 drivers/nvdimm/dimm_devs.c 	nd_dbg_dpa(nd_region, ndd, res, "%s\n", reason);
res               764 drivers/nvdimm/dimm_devs.c void nvdimm_free_dpa(struct nvdimm_drvdata *ndd, struct resource *res)
res               767 drivers/nvdimm/dimm_devs.c 	kfree(res->name);
res               768 drivers/nvdimm/dimm_devs.c 	__release_region(&ndd->dpa, res->start, resource_size(res));
res               776 drivers/nvdimm/dimm_devs.c 	struct resource *res;
res               782 drivers/nvdimm/dimm_devs.c 	res = __request_region(&ndd->dpa, start, n, name, 0);
res               783 drivers/nvdimm/dimm_devs.c 	if (!res)
res               785 drivers/nvdimm/dimm_devs.c 	return res;
res               797 drivers/nvdimm/dimm_devs.c 	struct resource *res;
res               799 drivers/nvdimm/dimm_devs.c 	for_each_dpa_resource(ndd, res)
res               800 drivers/nvdimm/dimm_devs.c 		if (strcmp(res->name, label_id->id) == 0)
res               801 drivers/nvdimm/dimm_devs.c 			allocated += resource_size(res);
res                42 drivers/nvdimm/e820.c static int e820_register_one(struct resource *res, void *data)
res                48 drivers/nvdimm/e820.c 	ndr_desc.res = res;
res                50 drivers/nvdimm/e820.c 	ndr_desc.numa_node = e820_range_to_nid(res->start);
res               389 drivers/nvdimm/label.c 		struct resource *res;
res               402 drivers/nvdimm/label.c 		res = nvdimm_allocate_dpa(ndd, &label_id,
res               405 drivers/nvdimm/label.c 		nd_dbg_dpa(nd_region, ndd, res, "reserve\n");
res               406 drivers/nvdimm/label.c 		if (!res)
res               770 drivers/nvdimm/label.c 	struct resource *res;
res               782 drivers/nvdimm/label.c 	for_each_dpa_resource(ndd, res)
res               783 drivers/nvdimm/label.c 		if (strcmp(res->name, label_id.id) == 0)
res               786 drivers/nvdimm/label.c 	if (!res) {
res               806 drivers/nvdimm/label.c 	nd_label->rawsize = __cpu_to_le64(resource_size(res));
res               808 drivers/nvdimm/label.c 	nd_label->dpa = __cpu_to_le64(res->start);
res               823 drivers/nvdimm/label.c 	nd_dbg_dpa(nd_region, ndd, res, "\n");
res               864 drivers/nvdimm/label.c static bool is_old_resource(struct resource *res, struct resource **list, int n)
res               868 drivers/nvdimm/label.c 	if (res->flags & DPA_RESOURCE_ADJUSTED)
res               871 drivers/nvdimm/label.c 		if (res == list[i])
res               879 drivers/nvdimm/label.c 	struct resource *res;
res               881 drivers/nvdimm/label.c 	for_each_dpa_resource(ndd, res) {
res               882 drivers/nvdimm/label.c 		if (res->start != __le64_to_cpu(nd_label->dpa))
res               884 drivers/nvdimm/label.c 		if (resource_size(res) != __le64_to_cpu(nd_label->rawsize))
res               886 drivers/nvdimm/label.c 		return res;
res               909 drivers/nvdimm/label.c 	struct resource *res, **old_res_list;
res               919 drivers/nvdimm/label.c 	old_res_list = nsblk->res;
res               932 drivers/nvdimm/label.c 	for_each_dpa_resource(ndd, res) {
res               933 drivers/nvdimm/label.c 		if (strcmp(res->name, label_id.id) != 0)
res               935 drivers/nvdimm/label.c 		if (!is_old_resource(res, old_res_list, old_num_resources))
res               952 drivers/nvdimm/label.c 			res = to_resource(ndd, nd_label);
res               953 drivers/nvdimm/label.c 			if (res && is_old_resource(res, old_res_list,
res               972 drivers/nvdimm/label.c 	nsblk->res = NULL;
res               974 drivers/nvdimm/label.c 	for_each_dpa_resource(ndd, res) {
res               975 drivers/nvdimm/label.c 		if (strcmp(res->name, label_id.id) != 0)
res               977 drivers/nvdimm/label.c 		if (!nsblk_add_resource(nd_region, ndd, nsblk, res->start)) {
res               988 drivers/nvdimm/label.c 		struct resource *min = nsblk->res[min_dpa_idx];
res               990 drivers/nvdimm/label.c 		res = nsblk->res[i];
res               991 drivers/nvdimm/label.c 		if (res->start < min->start)
res               998 drivers/nvdimm/label.c 		res = nsblk->res[i];
res               999 drivers/nvdimm/label.c 		if (is_old_resource(res, old_res_list, old_num_resources))
res              1034 drivers/nvdimm/label.c 		nd_label->dpa = __cpu_to_le64(res->start);
res              1035 drivers/nvdimm/label.c 		nd_label->rawsize = __cpu_to_le64(resource_size(res));
res              1119 drivers/nvdimm/label.c 		res = to_resource(ndd, nd_label);
res              1120 drivers/nvdimm/label.c 		res->flags &= ~DPA_RESOURCE_ADJUSTED;
res              1146 drivers/nvdimm/label.c 	kfree(nsblk->res);
res              1147 drivers/nvdimm/label.c 	nsblk->res = old_res_list;
res              1252 drivers/nvdimm/label.c 		struct resource *res;
res              1262 drivers/nvdimm/label.c 		for_each_dpa_resource(ndd, res)
res              1263 drivers/nvdimm/label.c 			if (strncmp(res->name, "pmem", 4) == 0)
res              1296 drivers/nvdimm/label.c 	struct resource *res;
res              1302 drivers/nvdimm/label.c 	for_each_dpa_resource(to_ndd(nd_mapping), res)
res                43 drivers/nvdimm/namespace_devs.c 	kfree(nsblk->res);
res               149 drivers/nvdimm/namespace_devs.c 	if (region_intersects(nsio->res.start, resource_size(&nsio->res),
res               301 drivers/nvdimm/namespace_devs.c 	struct resource *res;
res               306 drivers/nvdimm/namespace_devs.c 	for_each_dpa_resource(ndd, res)
res               307 drivers/nvdimm/namespace_devs.c 		if (strcmp(res->name, label_id.id) == 0)
res               308 drivers/nvdimm/namespace_devs.c 			size += resource_size(res);
res               318 drivers/nvdimm/namespace_devs.c 	struct resource *res;
res               326 drivers/nvdimm/namespace_devs.c 	for_each_dpa_resource(ndd, res) {
res               327 drivers/nvdimm/namespace_devs.c 		if (strcmp(res->name, label_id.id) != 0)
res               333 drivers/nvdimm/namespace_devs.c 		if (res->flags & DPA_RESOURCE_ADJUSTED)
res               345 drivers/nvdimm/namespace_devs.c 		for_each_dpa_resource(ndd, res)
res               346 drivers/nvdimm/namespace_devs.c 			if (res == nsblk->res[i]) {
res               347 drivers/nvdimm/namespace_devs.c 				found = res;
res               385 drivers/nvdimm/namespace_devs.c 		resource_size_t size = resource_size(&nspm->nsio.res);
res               455 drivers/nvdimm/namespace_devs.c 		struct resource *res, *last;
res               459 drivers/nvdimm/namespace_devs.c 		for_each_dpa_resource(ndd, res)
res               460 drivers/nvdimm/namespace_devs.c 			if (strcmp(res->name, label_id->id) == 0)
res               461 drivers/nvdimm/namespace_devs.c 				last = res;
res               462 drivers/nvdimm/namespace_devs.c 		res = last;
res               463 drivers/nvdimm/namespace_devs.c 		if (!res)
res               466 drivers/nvdimm/namespace_devs.c 		if (n >= resource_size(res)) {
res               467 drivers/nvdimm/namespace_devs.c 			n -= resource_size(res);
res               468 drivers/nvdimm/namespace_devs.c 			nd_dbg_dpa(nd_region, ndd, res, "delete %d\n", rc);
res               469 drivers/nvdimm/namespace_devs.c 			nvdimm_free_dpa(ndd, res);
res               479 drivers/nvdimm/namespace_devs.c 			new_start = res->start + n;
res               481 drivers/nvdimm/namespace_devs.c 			new_start = res->start;
res               483 drivers/nvdimm/namespace_devs.c 		rc = adjust_resource(res, new_start, resource_size(res) - n);
res               485 drivers/nvdimm/namespace_devs.c 			res->flags |= DPA_RESOURCE_ADJUSTED;
res               486 drivers/nvdimm/namespace_devs.c 		nd_dbg_dpa(nd_region, ndd, res, "shrink %d\n", rc);
res               528 drivers/nvdimm/namespace_devs.c 	struct resource *res;
res               538 drivers/nvdimm/namespace_devs.c 	res = nvdimm_allocate_dpa(ndd, label_id, first_dpa, n);
res               539 drivers/nvdimm/namespace_devs.c 	if (!res)
res               542 drivers/nvdimm/namespace_devs.c 	nd_dbg_dpa(nd_region, ndd, res, "init %d\n", rc);
res               583 drivers/nvdimm/namespace_devs.c 			.res = valid,
res               621 drivers/nvdimm/namespace_devs.c 	struct resource *res, *exist = NULL, valid;
res               625 drivers/nvdimm/namespace_devs.c 	for_each_dpa_resource(ndd, res)
res               626 drivers/nvdimm/namespace_devs.c 		if (strcmp(label_id->id, res->name) == 0)
res               627 drivers/nvdimm/namespace_devs.c 			exist = res;
res               634 drivers/nvdimm/namespace_devs.c 	for_each_dpa_resource(ndd, res) {
res               635 drivers/nvdimm/namespace_devs.c 		struct resource *next = res->sibling, *new_res = NULL;
res               642 drivers/nvdimm/namespace_devs.c 		if (res->start > mapping_end)
res               644 drivers/nvdimm/namespace_devs.c 		if (res->end < nd_mapping->start)
res               648 drivers/nvdimm/namespace_devs.c 		if (!first++ && res->start > nd_mapping->start) {
res               650 drivers/nvdimm/namespace_devs.c 			valid.end = res->start - 1;
res               660 drivers/nvdimm/namespace_devs.c 			valid.start = res->start + resource_size(res);
res               662 drivers/nvdimm/namespace_devs.c 			space_valid(nd_region, ndd, label_id, res, next, exist,
res               671 drivers/nvdimm/namespace_devs.c 			valid.start = res->start + resource_size(res);
res               673 drivers/nvdimm/namespace_devs.c 			space_valid(nd_region, ndd, label_id, res, next, exist,
res               685 drivers/nvdimm/namespace_devs.c 			if (strcmp(res->name, label_id->id) == 0) {
res               687 drivers/nvdimm/namespace_devs.c 				rc = adjust_resource(res, res->start - allocate,
res               688 drivers/nvdimm/namespace_devs.c 						resource_size(res) + allocate);
res               701 drivers/nvdimm/namespace_devs.c 			} else if (strcmp(res->name, label_id->id) == 0) {
res               707 drivers/nvdimm/namespace_devs.c 			if (strcmp(res->name, label_id->id) == 0)
res               727 drivers/nvdimm/namespace_devs.c 			rc = adjust_resource(res, res->start, resource_size(res)
res               730 drivers/nvdimm/namespace_devs.c 				res->flags |= DPA_RESOURCE_ADJUSTED;
res               734 drivers/nvdimm/namespace_devs.c 			new_res = res;
res               770 drivers/nvdimm/namespace_devs.c 	struct resource *res;
res               775 drivers/nvdimm/namespace_devs.c 	for_each_dpa_resource(ndd, res) {
res               777 drivers/nvdimm/namespace_devs.c 		struct resource *next = res->sibling;
res               778 drivers/nvdimm/namespace_devs.c 		resource_size_t end = res->start + resource_size(res);
res               780 drivers/nvdimm/namespace_devs.c 		if (!next || strcmp(res->name, label_id->id) != 0
res               786 drivers/nvdimm/namespace_devs.c 		rc = adjust_resource(res, res->start, end - res->start);
res               787 drivers/nvdimm/namespace_devs.c 		nd_dbg_dpa(nd_region, ndd, res, "merge %d\n", rc);
res               790 drivers/nvdimm/namespace_devs.c 		res->flags |= DPA_RESOURCE_ADJUSTED;
res               838 drivers/nvdimm/namespace_devs.c 	struct resource *res, *_res;
res               840 drivers/nvdimm/namespace_devs.c 	for_each_dpa_resource_safe(ndd, res, _res)
res               841 drivers/nvdimm/namespace_devs.c 		if (strcmp(res->name, "pmem-reserve") == 0)
res               842 drivers/nvdimm/namespace_devs.c 			nvdimm_free_dpa(ndd, res);
res               923 drivers/nvdimm/namespace_devs.c 	struct resource *res = &nspm->nsio.res;
res               935 drivers/nvdimm/namespace_devs.c 		struct resource *res;
res               945 drivers/nvdimm/namespace_devs.c 		for_each_dpa_resource(ndd, res)
res               946 drivers/nvdimm/namespace_devs.c 			if (strcmp(res->name, label_id.id) == 0) {
res               947 drivers/nvdimm/namespace_devs.c 				offset = (res->start - nd_mapping->start)
res               957 drivers/nvdimm/namespace_devs.c 	res->start = nd_region->ndr_start + offset;
res               958 drivers/nvdimm/namespace_devs.c 	res->end = res->start + size - 1;
res              1118 drivers/nvdimm/namespace_devs.c 		return resource_size(&nspm->nsio.res);
res              1124 drivers/nvdimm/namespace_devs.c 		return resource_size(&nsio->res);
res              1243 drivers/nvdimm/namespace_devs.c 		struct resource *res;
res              1245 drivers/nvdimm/namespace_devs.c 		for_each_dpa_resource(ndd, res)
res              1246 drivers/nvdimm/namespace_devs.c 			if (strcmp(res->name, old_label_id.id) == 0)
res              1247 drivers/nvdimm/namespace_devs.c 				sprintf((void *) res->name, "%s",
res              1314 drivers/nvdimm/namespace_devs.c 	struct resource *res;
res              1319 drivers/nvdimm/namespace_devs.c 		res = &nspm->nsio.res;
res              1323 drivers/nvdimm/namespace_devs.c 		res = &nsio->res;
res              1328 drivers/nvdimm/namespace_devs.c 	if (resource_size(res) == 0)
res              1330 drivers/nvdimm/namespace_devs.c 	return sprintf(buf, "%#llx\n", (unsigned long long) res->start);
res              1425 drivers/nvdimm/namespace_devs.c 		struct resource *res;
res              1427 drivers/nvdimm/namespace_devs.c 		for_each_dpa_resource(ndd, res)
res              1428 drivers/nvdimm/namespace_devs.c 			if (strcmp(res->name, label_id.id) == 0)
res              1766 drivers/nvdimm/namespace_devs.c 	struct resource *res;
res              1781 drivers/nvdimm/namespace_devs.c 	res = &nsio->res;
res              1782 drivers/nvdimm/namespace_devs.c 	res->name = dev_name(&nd_region->dev);
res              1783 drivers/nvdimm/namespace_devs.c 	res->flags = IORESOURCE_MEM;
res              1784 drivers/nvdimm/namespace_devs.c 	res->start = nd_region->ndr_start;
res              1785 drivers/nvdimm/namespace_devs.c 	res->end = res->start + nd_region->ndr_size - 1;
res              1916 drivers/nvdimm/namespace_devs.c 	struct resource *res;
res              1944 drivers/nvdimm/namespace_devs.c 	res = &nspm->nsio.res;
res              1945 drivers/nvdimm/namespace_devs.c 	res->name = dev_name(&nd_region->dev);
res              1946 drivers/nvdimm/namespace_devs.c 	res->flags = IORESOURCE_MEM;
res              2042 drivers/nvdimm/namespace_devs.c 	struct resource *res;
res              2045 drivers/nvdimm/namespace_devs.c 	res = krealloc(nsblk->res,
res              2048 drivers/nvdimm/namespace_devs.c 	if (!res)
res              2050 drivers/nvdimm/namespace_devs.c 	nsblk->res = (struct resource **) res;
res              2051 drivers/nvdimm/namespace_devs.c 	for_each_dpa_resource(ndd, res)
res              2052 drivers/nvdimm/namespace_devs.c 		if (strcmp(res->name, label_id.id) == 0
res              2053 drivers/nvdimm/namespace_devs.c 				&& res->start == start) {
res              2054 drivers/nvdimm/namespace_devs.c 			nsblk->res[nsblk->num_resources++] = res;
res              2055 drivers/nvdimm/namespace_devs.c 			return res;
res              2089 drivers/nvdimm/namespace_devs.c 	struct resource *res;
res              2102 drivers/nvdimm/namespace_devs.c 	res = &nspm->nsio.res;
res              2103 drivers/nvdimm/namespace_devs.c 	res->name = dev_name(&nd_region->dev);
res              2104 drivers/nvdimm/namespace_devs.c 	res->flags = IORESOURCE_MEM;
res              2187 drivers/nvdimm/namespace_devs.c 		struct resource *res;
res              2197 drivers/nvdimm/namespace_devs.c 			res = nsblk_add_resource(nd_region, ndd,
res              2200 drivers/nvdimm/namespace_devs.c 			if (!res)
res              2202 drivers/nvdimm/namespace_devs.c 			nd_dbg_dpa(nd_region, ndd, res, "%d assign\n", count);
res              2225 drivers/nvdimm/namespace_devs.c 	struct resource *res;
res              2265 drivers/nvdimm/namespace_devs.c 	res = nsblk_add_resource(nd_region, ndd, nsblk,
res              2267 drivers/nvdimm/namespace_devs.c 	if (!res)
res              2269 drivers/nvdimm/namespace_devs.c 	nd_dbg_dpa(nd_region, ndd, res, "%d: assign\n", count);
res              2290 drivers/nvdimm/namespace_devs.c 		return memcmp(&nsblk_a->res[0]->start, &nsblk_b->res[0]->start,
res              2297 drivers/nvdimm/namespace_devs.c 	return memcmp(&nspm_a->nsio.res.start, &nspm_b->nsio.res.start,
res                98 drivers/nvdimm/nd-core.h 	struct resource *res;
res                90 drivers/nvdimm/nd.h #define nd_dbg_dpa(r, d, res, fmt, arg...) \
res                92 drivers/nvdimm/nd.h 		(r) ? dev_name((d)->dev) : "", res ? res->name : "null", \
res                93 drivers/nvdimm/nd.h 		(unsigned long long) (res ? resource_size(res) : 0), \
res                94 drivers/nvdimm/nd.h 		(unsigned long long) (res ? res->start : 0), ##arg)
res                96 drivers/nvdimm/nd.h #define for_each_dpa_resource(ndd, res) \
res                97 drivers/nvdimm/nd.h 	for (res = (ndd)->dpa.child; res; res = res->sibling)
res                99 drivers/nvdimm/nd.h #define for_each_dpa_resource_safe(ndd, res, next) \
res               100 drivers/nvdimm/nd.h 	for (res = (ndd)->dpa.child, next = res ? res->sibling : NULL; \
res               101 drivers/nvdimm/nd.h 			res; res = next, next = next ? next->sibling : NULL)
res               359 drivers/nvdimm/nd.h void nvdimm_free_dpa(struct nvdimm_drvdata *ndd, struct resource *res);
res               372 drivers/nvdimm/nd.h 		struct badblocks *bb, const struct resource *res);
res                72 drivers/nvdimm/of_pmem.c 		ndr_desc.res = &pdev->resource[i];
res                83 drivers/nvdimm/of_pmem.c 					ndr_desc.res, np);
res                86 drivers/nvdimm/of_pmem.c 					ndr_desc.res, np);
res               222 drivers/nvdimm/pfn_devs.c 		rc = sprintf(buf, "%#llx\n", (unsigned long long) nsio->res.start
res               250 drivers/nvdimm/pfn_devs.c 				resource_size(&nsio->res) - start_pad
res               395 drivers/nvdimm/pfn_devs.c 					+ (first_bad << 9)) - nsio->res.start,
res               580 drivers/nvdimm/pfn_devs.c 	if (offset >= resource_size(&nsio->res)) {
res               586 drivers/nvdimm/pfn_devs.c 	if ((align && !IS_ALIGNED(nsio->res.start + offset + start_pad, align))
res               665 drivers/nvdimm/pfn_devs.c 	struct resource *res = &pgmap->res;
res               674 drivers/nvdimm/pfn_devs.c 	resource_size_t base = nsio->res.start + start_pad;
res               675 drivers/nvdimm/pfn_devs.c 	resource_size_t end = nsio->res.end - end_trunc;
res               682 drivers/nvdimm/pfn_devs.c 	memcpy(res, &nsio->res, sizeof(*res));
res               683 drivers/nvdimm/pfn_devs.c 	res->start += start_pad;
res               684 drivers/nvdimm/pfn_devs.c 	res->end -= end_trunc;
res               691 drivers/nvdimm/pfn_devs.c 		nd_pfn->npfns = PHYS_PFN((resource_size(res) - offset));
res               752 drivers/nvdimm/pfn_devs.c 	start = nsio->res.start;
res               753 drivers/nvdimm/pfn_devs.c 	size = resource_size(&nsio->res);
res               358 drivers/nvdimm/pmem.c 	struct resource *res = &nsio->res;
res               387 drivers/nvdimm/pmem.c 	pmem->phys_addr = res->start;
res               388 drivers/nvdimm/pmem.c 	pmem->size = resource_size(res);
res               395 drivers/nvdimm/pmem.c 	if (!devm_request_mem_region(dev, res->start, resource_size(res),
res               397 drivers/nvdimm/pmem.c 		dev_warn(dev, "could not reserve region %pR\n", res);
res               413 drivers/nvdimm/pmem.c 		pmem->pfn_pad = resource_size(res) -
res               414 drivers/nvdimm/pmem.c 			resource_size(&pmem->pgmap.res);
res               416 drivers/nvdimm/pmem.c 		memcpy(&bb_res, &pmem->pgmap.res, sizeof(bb_res));
res               419 drivers/nvdimm/pmem.c 		memcpy(&pmem->pgmap.res, &nsio->res, sizeof(pmem->pgmap.res));
res               424 drivers/nvdimm/pmem.c 		memcpy(&bb_res, &pmem->pgmap.res, sizeof(bb_res));
res               431 drivers/nvdimm/pmem.c 		memcpy(&bb_res, &nsio->res, sizeof(bb_res));
res               568 drivers/nvdimm/pmem.c 	struct resource res;
res               605 drivers/nvdimm/pmem.c 	res.start = nsio->res.start + offset;
res               606 drivers/nvdimm/pmem.c 	res.end = nsio->res.end - end_trunc;
res               607 drivers/nvdimm/pmem.c 	nvdimm_badblocks_populate(nd_region, bb, &res);
res               124 drivers/nvdimm/region.c 		struct resource res;
res               127 drivers/nvdimm/region.c 			res.start = nd_region->ndr_start;
res               128 drivers/nvdimm/region.c 			res.end = nd_region->ndr_start +
res               131 drivers/nvdimm/region.c 					&nd_region->bb, &res);
res                33 drivers/nvdimm/region_devs.c 		struct resource *res = &nvdimm->flush_wpq[i];
res                34 drivers/nvdimm/region_devs.c 		unsigned long pfn = PHYS_PFN(res->start);
res                56 drivers/nvdimm/region_devs.c 				+ (res->start & ~PAGE_MASK));
res              1035 drivers/nvdimm/region_devs.c 	nd_region->ndr_size = resource_size(ndr_desc->res);
res              1036 drivers/nvdimm/region_devs.c 	nd_region->ndr_start = ndr_desc->res->start;
res                38 drivers/nvdimm/virtio_pmem.c 	struct resource res;
res                66 drivers/nvdimm/virtio_pmem.c 	res.start = vpmem->start;
res                67 drivers/nvdimm/virtio_pmem.c 	res.end   = vpmem->start + vpmem->size - 1;
res                81 drivers/nvdimm/virtio_pmem.c 	ndr_desc.res = &res;
res              1174 drivers/nvme/host/core.c 	union nvme_result res = { 0 };
res              1183 drivers/nvme/host/core.c 	ret = __nvme_submit_sync_cmd(dev->admin_q, &c, &res,
res              1186 drivers/nvme/host/core.c 		*result = le32_to_cpu(res.u32);
res              3943 drivers/nvme/host/core.c 		volatile union nvme_result *res)
res              3945 drivers/nvme/host/core.c 	u32 result = le32_to_cpu(res->u32);
res               145 drivers/nvme/host/fabrics.c 	union nvme_result res;
res               153 drivers/nvme/host/fabrics.c 	ret = __nvme_submit_sync_cmd(ctrl->fabrics_q, &cmd, &res, NULL, 0, 0,
res               157 drivers/nvme/host/fabrics.c 		*val = le64_to_cpu(res.u64);
res               191 drivers/nvme/host/fabrics.c 	union nvme_result res;
res               200 drivers/nvme/host/fabrics.c 	ret = __nvme_submit_sync_cmd(ctrl->fabrics_q, &cmd, &res, NULL, 0, 0,
res               204 drivers/nvme/host/fabrics.c 		*val = le64_to_cpu(res.u64);
res               370 drivers/nvme/host/fabrics.c 	union nvme_result res;
res               399 drivers/nvme/host/fabrics.c 	ret = __nvme_submit_sync_cmd(ctrl->fabrics_q, &cmd, &res,
res               403 drivers/nvme/host/fabrics.c 		nvmf_log_connect_error(ctrl, ret, le32_to_cpu(res.u32),
res               408 drivers/nvme/host/fabrics.c 	ctrl->cntlid = le16_to_cpu(res.u16);
res               441 drivers/nvme/host/fabrics.c 	union nvme_result res;
res               462 drivers/nvme/host/fabrics.c 	ret = __nvme_submit_sync_cmd(ctrl->connect_q, &cmd, &res,
res               466 drivers/nvme/host/fabrics.c 		nvmf_log_connect_error(ctrl, ret, le32_to_cpu(res.u32),
res              1769 drivers/nvme/host/fc.c 	int res;
res              1771 drivers/nvme/host/fc.c 	res = __nvme_fc_init_request(ctrl, queue, &op->op, rq, queue->rqcnt++);
res              1772 drivers/nvme/host/fc.c 	if (res)
res              1773 drivers/nvme/host/fc.c 		return res;
res              1777 drivers/nvme/host/fc.c 	return res;
res               147 drivers/nvme/host/lightnvm.c 	__u8			res[4];
res               154 drivers/nvme/host/lightnvm.c 	__u8			res;
res               471 drivers/nvme/host/nvme.h 		volatile union nvme_result *res);
res               628 drivers/nvme/host/tcp.c 	union nvme_result res = {};
res               630 drivers/nvme/host/tcp.c 	nvme_end_request(rq, cpu_to_le16(status << 1), res);
res               257 drivers/nvmem/bcm-ocotp.c 	struct resource *res;
res               272 drivers/nvmem/bcm-ocotp.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               273 drivers/nvmem/bcm-ocotp.c 	priv->base = devm_ioremap_resource(dev, res);
res               477 drivers/nvmem/core.c static void devm_nvmem_release(struct device *dev, void *res)
res               479 drivers/nvmem/core.c 	nvmem_unregister(*(struct nvmem_device **)res);
res               515 drivers/nvmem/core.c static int devm_nvmem_match(struct device *dev, void *res, void *data)
res               517 drivers/nvmem/core.c 	struct nvmem_device **r = res;
res               622 drivers/nvmem/core.c static int devm_nvmem_device_match(struct device *dev, void *res, void *data)
res               624 drivers/nvmem/core.c 	struct nvmem_device **nvmem = res;
res               632 drivers/nvmem/core.c static void devm_nvmem_device_release(struct device *dev, void *res)
res               634 drivers/nvmem/core.c 	nvmem_device_put(*(struct nvmem_device **)res);
res               831 drivers/nvmem/core.c static void devm_nvmem_cell_release(struct device *dev, void *res)
res               833 drivers/nvmem/core.c 	nvmem_cell_put(*(struct nvmem_cell **)res);
res               866 drivers/nvmem/core.c static int devm_nvmem_cell_match(struct device *dev, void *res, void *data)
res               868 drivers/nvmem/core.c 	struct nvmem_cell **c = res;
res               168 drivers/nvmem/lpc18xx_eeprom.c 	struct resource *res;
res               175 drivers/nvmem/lpc18xx_eeprom.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "reg");
res               176 drivers/nvmem/lpc18xx_eeprom.c 	eeprom->reg_base = devm_ioremap_resource(dev, res);
res               180 drivers/nvmem/lpc18xx_eeprom.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "mem");
res               181 drivers/nvmem/lpc18xx_eeprom.c 	eeprom->mem_base = devm_ioremap_resource(dev, res);
res               231 drivers/nvmem/lpc18xx_eeprom.c 	eeprom->size = resource_size(res);
res               232 drivers/nvmem/lpc18xx_eeprom.c 	lpc18xx_nvmem_config.size = resource_size(res);
res                71 drivers/nvmem/lpc18xx_otp.c 	struct resource *res;
res                77 drivers/nvmem/lpc18xx_otp.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                78 drivers/nvmem/lpc18xx_otp.c 	otp->base = devm_ioremap_resource(&pdev->dev, res);
res               197 drivers/nvmem/meson-mx-efuse.c 	struct resource *res;
res               207 drivers/nvmem/meson-mx-efuse.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               208 drivers/nvmem/meson-mx-efuse.c 	efuse->base = devm_ioremap_resource(&pdev->dev, res);
res                47 drivers/nvmem/mtk-efuse.c 	struct resource *res;
res                56 drivers/nvmem/mtk-efuse.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                57 drivers/nvmem/mtk-efuse.c 	priv->base = devm_ioremap_resource(dev, res);
res                65 drivers/nvmem/mtk-efuse.c 	econfig.size = resource_size(res);
res                40 drivers/nvmem/qfprom.c 	struct resource *res;
res                48 drivers/nvmem/qfprom.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                49 drivers/nvmem/qfprom.c 	priv->base = devm_ioremap_resource(dev, res);
res                53 drivers/nvmem/qfprom.c 	econfig.size = resource_size(res);
res               253 drivers/nvmem/rockchip-efuse.c 	struct resource *res;
res               270 drivers/nvmem/rockchip-efuse.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               271 drivers/nvmem/rockchip-efuse.c 	efuse->base = devm_ioremap_resource(dev, res);
res               282 drivers/nvmem/rockchip-efuse.c 		econfig.size = resource_size(res);
res                53 drivers/nvmem/stm32-romem.c 	struct arm_smccc_res res;
res                55 drivers/nvmem/stm32-romem.c 	arm_smccc_smc(STM32_SMC_BSEC, op, otp, data, 0, 0, 0, 0, &res);
res                56 drivers/nvmem/stm32-romem.c 	if (res.a0)
res                60 drivers/nvmem/stm32-romem.c 		*result = (u32)res.a1;
res               144 drivers/nvmem/stm32-romem.c 	struct resource *res;
res               150 drivers/nvmem/stm32-romem.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               151 drivers/nvmem/stm32-romem.c 	priv->base = devm_ioremap_resource(dev, res);
res               166 drivers/nvmem/stm32-romem.c 		priv->cfg.size = resource_size(res);
res               115 drivers/nvmem/sunxi_sid.c 	struct resource *res;
res               132 drivers/nvmem/sunxi_sid.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               133 drivers/nvmem/sunxi_sid.c 	sid->base = devm_ioremap_resource(dev, res);
res                35 drivers/nvmem/uniphier-efuse.c 	struct resource *res;
res                44 drivers/nvmem/uniphier-efuse.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                45 drivers/nvmem/uniphier-efuse.c 	priv->base = devm_ioremap_resource(dev, res);
res                53 drivers/nvmem/uniphier-efuse.c 	econfig.size = resource_size(res);
res               215 drivers/nvmem/vf610-ocotp.c 	struct resource *res;
res               222 drivers/nvmem/vf610-ocotp.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               223 drivers/nvmem/vf610-ocotp.c 	ocotp_dev->base = devm_ioremap_resource(dev, res);
res               236 drivers/nvmem/vf610-ocotp.c 	ocotp_config.size = resource_size(res);
res               329 drivers/of/address.c 			     struct device_node *np, struct resource *res)
res               332 drivers/of/address.c 	res->flags = range->flags;
res               333 drivers/of/address.c 	res->parent = res->child = res->sibling = NULL;
res               334 drivers/of/address.c 	res->name = np->full_name;
res               336 drivers/of/address.c 	if (res->flags & IORESOURCE_IO) {
res               347 drivers/of/address.c 		res->start = port;
res               355 drivers/of/address.c 		res->start = range->cpu_addr;
res               357 drivers/of/address.c 	res->end = res->start + range->size - 1;
res               361 drivers/of/address.c 	res->start = (resource_size_t)OF_BAD_ADDR;
res               362 drivers/of/address.c 	res->end = (resource_size_t)OF_BAD_ADDR;
res               834 drivers/of/address.c 	struct resource res;
res               837 drivers/of/address.c 		if (!of_address_to_resource(dn, 0, &res) &&
res               838 drivers/of/address.c 		    res.start == base_address)
res               857 drivers/of/address.c 	struct resource res;
res               859 drivers/of/address.c 	if (of_address_to_resource(np, index, &res))
res               862 drivers/of/address.c 	return ioremap(res.start, resource_size(&res));
res               883 drivers/of/address.c 	struct resource res;
res               886 drivers/of/address.c 	if (of_address_to_resource(np, index, &res))
res               890 drivers/of/address.c 		name = res.name;
res               891 drivers/of/address.c 	if (!request_mem_region(res.start, resource_size(&res), name))
res               894 drivers/of/address.c 	mem = ioremap(res.start, resource_size(&res));
res               896 drivers/of/address.c 		release_mem_region(res.start, resource_size(&res));
res               555 drivers/of/base.c 	int res;
res               558 drivers/of/base.c 	res = __of_device_is_compatible(device, compat, NULL, NULL);
res               560 drivers/of/base.c 	return res;
res               646 drivers/of/base.c 	bool res;
res               649 drivers/of/base.c 	res = __of_device_is_available(device);
res               651 drivers/of/base.c 	return res;
res                98 drivers/of/fdt.c 	void *res;
res               101 drivers/of/fdt.c 	res = *mem;
res               104 drivers/of/fdt.c 	return res;
res               291 drivers/of/irq.c 	int i, res;
res               303 drivers/of/irq.c 	res = of_parse_phandle_with_args(device, "interrupts-extended",
res               305 drivers/of/irq.c 	if (!res)
res               315 drivers/of/irq.c 		res = -EINVAL;
res               325 drivers/of/irq.c 		res = of_property_read_u32_index(device, "interrupts",
res               328 drivers/of/irq.c 		if (res)
res               336 drivers/of/irq.c 	res = of_irq_parse_raw(addr, out_irq);
res               339 drivers/of/irq.c 	return res;
res               452 drivers/of/irq.c int of_irq_to_resource_table(struct device_node *dev, struct resource *res,
res               457 drivers/of/irq.c 	for (i = 0; i < nr_irqs; i++, res++)
res               458 drivers/of/irq.c 		if (of_irq_to_resource(dev, i, res) <= 0)
res               113 drivers/of/platform.c 	struct resource *res, temp_res;
res               126 drivers/of/platform.c 		res = kcalloc(num_irq + num_reg, sizeof(*res), GFP_KERNEL);
res               127 drivers/of/platform.c 		if (!res) {
res               133 drivers/of/platform.c 		dev->resource = res;
res               134 drivers/of/platform.c 		for (i = 0; i < num_reg; i++, res++) {
res               135 drivers/of/platform.c 			rc = of_address_to_resource(np, i, res);
res               138 drivers/of/platform.c 		if (of_irq_to_resource_table(np, res, num_irq) != num_irq)
res               261 drivers/of/platform.c 	ret = of_address_to_resource(node, 0, &dev->res);
res               300 drivers/of/platform.c 	struct resource res;
res               311 drivers/of/platform.c 		if (!of_address_to_resource(np, 0, &res))
res               312 drivers/of/platform.c 			if (res.start != auxdata->phys_addr)
res               585 drivers/of/platform.c static void devm_of_platform_populate_release(struct device *dev, void *res)
res               587 drivers/of/platform.c 	of_platform_depopulate(*(struct device **)res);
res               624 drivers/of/platform.c static int devm_of_platform_match(struct device *dev, void *res, void *data)
res               626 drivers/of/platform.c 	struct device **ptr = res;
res              2537 drivers/of/unittest.c 	int res;
res              2544 drivers/of/unittest.c 	res = unittest_data_add();
res              2545 drivers/of/unittest.c 	if (res)
res              2546 drivers/of/unittest.c 		return res;
res                78 drivers/opp/ti-opp-supply.c 	struct resource *res;
res                86 drivers/opp/ti-opp-supply.c 	res = platform_get_resource(to_platform_device(dev), IORESOURCE_MEM, 0);
res                87 drivers/opp/ti-opp-supply.c 	if (!res) {
res                93 drivers/opp/ti-opp-supply.c 	base = ioremap_nocache(res->start, resource_size(res));
res              1348 drivers/parisc/ccio-dma.c ccio_init_resource(struct resource *res, char *name, void __iomem *ioaddr)
res              1352 drivers/parisc/ccio-dma.c 	res->parent = NULL;
res              1353 drivers/parisc/ccio-dma.c 	res->flags = IORESOURCE_MEM;
res              1359 drivers/parisc/ccio-dma.c 	res->start = (unsigned long)((signed) READ_U32(ioaddr) << 16);
res              1360 drivers/parisc/ccio-dma.c 	res->end = (unsigned long)((signed) (READ_U32(ioaddr + 4) << 16) - 1);
res              1361 drivers/parisc/ccio-dma.c 	res->name = name;
res              1365 drivers/parisc/ccio-dma.c 	if (res->end + 1 == res->start)
res              1373 drivers/parisc/ccio-dma.c 	result = insert_resource(&iomem_resource, res);
res              1376 drivers/parisc/ccio-dma.c 			__func__, (unsigned long)res->start, (unsigned long)res->end);
res              1382 drivers/parisc/ccio-dma.c 	struct resource *res = ioc->mmio_region;
res              1387 drivers/parisc/ccio-dma.c 	ccio_init_resource(res, name, &ioc->ioc_regs->io_io_low);
res              1388 drivers/parisc/ccio-dma.c 	ccio_init_resource(res + 1, name, &ioc->ioc_regs->io_io_low_hv);
res              1391 drivers/parisc/ccio-dma.c static int new_ioc_area(struct resource *res, unsigned long size,
res              1397 drivers/parisc/ccio-dma.c 	res->start = (max - size + 1) &~ (align - 1);
res              1398 drivers/parisc/ccio-dma.c 	res->end = res->start + size;
res              1404 drivers/parisc/ccio-dma.c 	if (!insert_resource(&iomem_resource, res))
res              1407 drivers/parisc/ccio-dma.c 	return new_ioc_area(res, size, min, max - size, align);
res              1410 drivers/parisc/ccio-dma.c static int expand_ioc_area(struct resource *res, unsigned long size,
res              1415 drivers/parisc/ccio-dma.c 	if (!res->parent)
res              1416 drivers/parisc/ccio-dma.c 		return new_ioc_area(res, size, min, max, align);
res              1418 drivers/parisc/ccio-dma.c 	start = (res->start - size) &~ (align - 1);
res              1419 drivers/parisc/ccio-dma.c 	len = res->end - start + 1;
res              1421 drivers/parisc/ccio-dma.c 		if (!adjust_resource(res, start, len))
res              1425 drivers/parisc/ccio-dma.c 	start = res->start;
res              1426 drivers/parisc/ccio-dma.c 	len = ((size + res->end + align) &~ (align - 1)) - start;
res              1428 drivers/parisc/ccio-dma.c 		if (!adjust_resource(res, start, len))
res              1443 drivers/parisc/ccio-dma.c 		struct resource *res, unsigned long size,
res              1453 drivers/parisc/ccio-dma.c 	    !allocate_resource(parent, res, size, min, max, align, NULL, NULL))
res              1457 drivers/parisc/ccio-dma.c 	    !allocate_resource(parent + 1, res, size, min, max, align,
res              1477 drivers/parisc/ccio-dma.c 	return allocate_resource(parent, res, size, min, max, align, NULL,NULL);
res              1481 drivers/parisc/ccio-dma.c 		struct resource *res)
res              1488 drivers/parisc/ccio-dma.c 	} else if ((ioc->mmio_region->start <= res->start) &&
res              1489 drivers/parisc/ccio-dma.c 			(res->end <= ioc->mmio_region->end)) {
res              1491 drivers/parisc/ccio-dma.c 	} else if (((ioc->mmio_region + 1)->start <= res->start) &&
res              1492 drivers/parisc/ccio-dma.c 			(res->end <= (ioc->mmio_region + 1)->end)) {
res              1503 drivers/parisc/ccio-dma.c 	return insert_resource(parent, res);
res               484 drivers/parisc/dino.c 	struct resource *res;
res               488 drivers/parisc/dino.c 	res = &dino_dev->hba.lmmio_space;
res               489 drivers/parisc/dino.c 	res->flags = IORESOURCE_MEM;
res               492 drivers/parisc/dino.c 	res->name = kmalloc(size+1, GFP_KERNEL);
res               493 drivers/parisc/dino.c 	if(res->name)
res               494 drivers/parisc/dino.c 		strcpy((char *)res->name, name);
res               496 drivers/parisc/dino.c 		res->name = dino_dev->hba.lmmio_space.name;
res               499 drivers/parisc/dino.c 	if (ccio_allocate_resource(dino_dev->hba.dev, res, _8MB,
res               513 drivers/parisc/dino.c 	bus->resource[1] = res;
res               518 drivers/parisc/dino.c 		if (res->start == F_EXTEND(0xf0000000UL | (i * _8MB)))
res               522 drivers/parisc/dino.c 	    i, res->start, base_addr + DINO_IO_ADDR_EN);
res               743 drivers/parisc/dino.c 	struct resource *res, *prevres = NULL;
res               755 drivers/parisc/dino.c 	res = &dino_dev->hba.lmmio_space;
res               775 drivers/parisc/dino.c 			prevres = res;
res               776 drivers/parisc/dino.c 			res->start = start;
res               777 drivers/parisc/dino.c 			res->end = end;
res               778 drivers/parisc/dino.c 			res->flags = IORESOURCE_MEM;
res               779 drivers/parisc/dino.c 			res->name = kmalloc(64, GFP_KERNEL);
res               780 drivers/parisc/dino.c 			if(res->name)
res               781 drivers/parisc/dino.c 				snprintf((char *)res->name, 64, "%s LMMIO %d",
res               783 drivers/parisc/dino.c 			res++;
res               788 drivers/parisc/dino.c 	res = &dino_dev->hba.lmmio_space;
res               791 drivers/parisc/dino.c 		if(res[i].flags == 0)
res               794 drivers/parisc/dino.c 		result = ccio_request_resource(dino_dev->hba.dev, &res[i]);
res               797 drivers/parisc/dino.c 			       "space %d (%pR)!\n", name, i, &res[i]);
res               810 drivers/parisc/dino.c 	struct resource *res;
res               865 drivers/parisc/dino.c 	res = &dino_dev->hba.io_space;
res               867 drivers/parisc/dino.c 		res->name = "Dino I/O Port";
res               869 drivers/parisc/dino.c 		res->name = "Cujo I/O Port";
res               871 drivers/parisc/dino.c 	res->start = HBA_PORT_BASE(dino_dev->hba.hba_num);
res               872 drivers/parisc/dino.c 	res->end = res->start + (HBA_PORT_SPACE_SIZE - 1);
res               873 drivers/parisc/dino.c 	res->flags = IORESOURCE_IO; /* do not mark it busy ! */
res               874 drivers/parisc/dino.c 	if (request_resource(&ioport_resource, res) < 0) {
res               877 drivers/parisc/dino.c 		       name, (unsigned long)res->start, (unsigned long)res->end,
res               372 drivers/parisc/eisa.c 		eisa_dev.root.res = &eisa_dev.hba.io_space;
res                82 drivers/parisc/eisa_enumerator.c 	struct resource *res;
res                89 drivers/parisc/eisa_enumerator.c 		if (NULL != (res = kzalloc(sizeof(struct resource), GFP_KERNEL))) {
res                92 drivers/parisc/eisa_enumerator.c 			res->name = name;
res                93 drivers/parisc/eisa_enumerator.c 			res->start = mem_parent->start + get_24(buf+len+2);
res                94 drivers/parisc/eisa_enumerator.c 			res->end = res->start + get_16(buf+len+5)*1024;
res                95 drivers/parisc/eisa_enumerator.c 			res->flags = IORESOURCE_MEM;
res                96 drivers/parisc/eisa_enumerator.c 			pr_cont("memory %pR ", res);
res                97 drivers/parisc/eisa_enumerator.c 			result = request_resource(mem_parent, res);
res               173 drivers/parisc/eisa_enumerator.c 	struct resource *res;
res               181 drivers/parisc/eisa_enumerator.c 		if (NULL != (res = kzalloc(sizeof(struct resource), GFP_KERNEL))) {
res               182 drivers/parisc/eisa_enumerator.c 			res->name = board;
res               183 drivers/parisc/eisa_enumerator.c 			res->start = get_16(buf+len+1);
res               184 drivers/parisc/eisa_enumerator.c 			res->end = get_16(buf+len+1)+(c&HPEE_PORT_SIZE_MASK)+1;
res               185 drivers/parisc/eisa_enumerator.c 			res->flags = IORESOURCE_IO;
res               186 drivers/parisc/eisa_enumerator.c 			pr_cont("ioports %pR ", res);
res               187 drivers/parisc/eisa_enumerator.c 			result = request_resource(io_parent, res);
res               318 drivers/parisc/eisa_enumerator.c 	int res=0;
res               399 drivers/parisc/eisa_enumerator.c 			res=-1;
res               412 drivers/parisc/eisa_enumerator.c 		res=-1;
res               418 drivers/parisc/eisa_enumerator.c 		res=-2;
res               421 drivers/parisc/eisa_enumerator.c 	return res;
res               203 drivers/parisc/gsc.c 	struct resource *res;
res               214 drivers/parisc/gsc.c 	res = request_mem_region(gsc_asic->hpa, 0x100000, gsc_asic->name);
res               215 drivers/parisc/gsc.c 	if (res) {
res               216 drivers/parisc/gsc.c 		res->flags = IORESOURCE_MEM; 	/* do not mark it busy ! */
res                41 drivers/parisc/iommu.h 		struct resource *res);
res                43 drivers/parisc/iommu.h 		struct resource *res, unsigned long size,
res                47 drivers/parisc/iommu.h #define ccio_request_resource(dev, res) insert_resource(&iomem_resource, res)
res                48 drivers/parisc/iommu.h #define ccio_allocate_resource(dev, res, size, min, max, align) \
res                49 drivers/parisc/iommu.h 		allocate_resource(&iomem_resource, res, size, min, max, \
res               802 drivers/parisc/lba_pci.c 			struct resource *res = &dev->resource[i];
res               805 drivers/parisc/lba_pci.c 			if (!res->start)
res               273 drivers/parport/parport_ax88796.c 	struct resource *res;
res               283 drivers/parport/parport_ax88796.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               284 drivers/parport/parport_ax88796.c 	if (res == NULL) {
res               290 drivers/parport/parport_ax88796.c 	size = resource_size(res);
res               293 drivers/parport/parport_ax88796.c 	dd->io = request_mem_region(res->start, size, pdev->name);
res               300 drivers/parport/parport_ax88796.c 	dd->base = ioremap(res->start, size);
res               627 drivers/parport/parport_ip32.c 	size_t res[2];	/* {[0] = res_a, [1] = res_b} */
res               655 drivers/parport/parport_ip32.c 	res[0] = (ctrl & MACEPAR_CTLSTAT_CTXA_VALID) ?
res               659 drivers/parport/parport_ip32.c 	res[1] = (ctrl & MACEPAR_CTLSTAT_CTXB_VALID) ?
res               664 drivers/parport/parport_ip32.c 		res[(diag & MACEPAR_DIAG_CTXINUSE) != 0] =
res               667 drivers/parport/parport_ip32.c 	parport_ip32_dma.left += res[0] + res[1];
res                39 drivers/pci/access.c 	int res;							\
res                44 drivers/pci/access.c 	res = bus->ops->read(bus, devfn, pos, len, &data);		\
res                47 drivers/pci/access.c 	return res;							\
res                54 drivers/pci/access.c 	int res;							\
res                58 drivers/pci/access.c 	res = bus->ops->write(bus, devfn, pos, len, value);		\
res                60 drivers/pci/access.c 	return res;							\
res                19 drivers/pci/bus.c void pci_add_resource_offset(struct list_head *resources, struct resource *res,
res                24 drivers/pci/bus.c 	entry = resource_list_create_entry(res, 0);
res                26 drivers/pci/bus.c 		pr_err("PCI: can't add host bridge window %pR\n", res);
res                35 drivers/pci/bus.c void pci_add_resource(struct list_head *resources, struct resource *res)
res                37 drivers/pci/bus.c 	pci_add_resource_offset(resources, res, 0);
res                47 drivers/pci/bus.c void pci_bus_add_resource(struct pci_bus *bus, struct resource *res,
res                54 drivers/pci/bus.c 		dev_err(&bus->dev, "can't add %pR resource\n", res);
res                58 drivers/pci/bus.c 	bus_res->res = res;
res                73 drivers/pci/bus.c 			return bus_res->res;
res                97 drivers/pci/bus.c 	struct resource *parent, *res;
res               101 drivers/pci/bus.c 		res = win->res;
res               102 drivers/pci/bus.c 		switch (resource_type(res)) {
res               113 drivers/pci/bus.c 		err = devm_request_resource(dev, parent, res);
res               137 drivers/pci/bus.c 					struct resource *res,
res               142 drivers/pci/bus.c 	pcibios_resource_to_bus(bus, &r, res);
res               149 drivers/pci/bus.c 		res->end = res->start - 1;
res               151 drivers/pci/bus.c 		pcibios_bus_to_resource(bus, res, &r);
res               154 drivers/pci/bus.c static int pci_bus_alloc_from_region(struct pci_bus *bus, struct resource *res,
res               177 drivers/pci/bus.c 		if ((res->flags ^ r->flags) & type_mask)
res               183 drivers/pci/bus.c 		    !(res->flags & IORESOURCE_PREFETCH))
res               201 drivers/pci/bus.c 		ret = allocate_resource(r, res, size, min_used, max,
res               224 drivers/pci/bus.c int pci_bus_alloc_resource(struct pci_bus *bus, struct resource *res,
res               236 drivers/pci/bus.c 	if (res->flags & IORESOURCE_MEM_64) {
res               237 drivers/pci/bus.c 		rc = pci_bus_alloc_from_region(bus, res, size, align, min,
res               243 drivers/pci/bus.c 		return pci_bus_alloc_from_region(bus, res, size, align, min,
res               249 drivers/pci/bus.c 	return pci_bus_alloc_from_region(bus, res, size, align, min,
res               264 drivers/pci/bus.c 	struct resource *res = &dev->resource[idx];
res               265 drivers/pci/bus.c 	struct resource orig_res = *res;
res               275 drivers/pci/bus.c 		if (resource_type(res) != resource_type(r))
res               278 drivers/pci/bus.c 		start = max(r->start, res->start);
res               279 drivers/pci/bus.c 		end = min(r->end, res->end);
res               284 drivers/pci/bus.c 		if (res->start == start && res->end == end)
res               287 drivers/pci/bus.c 		res->start = start;
res               288 drivers/pci/bus.c 		res->end = end;
res               289 drivers/pci/bus.c 		res->flags &= ~IORESOURCE_UNSET;
res               291 drivers/pci/bus.c 		pci_info(dev, "%pR clipped to %pR\n", &orig_res, res);
res               422 drivers/pci/controller/dwc/pci-dra7xx.c 	struct resource *res;
res               429 drivers/pci/controller/dwc/pci-dra7xx.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "ep_dbics");
res               430 drivers/pci/controller/dwc/pci-dra7xx.c 	pci->dbi_base = devm_ioremap_resource(dev, res);
res               434 drivers/pci/controller/dwc/pci-dra7xx.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "ep_dbics2");
res               435 drivers/pci/controller/dwc/pci-dra7xx.c 	pci->dbi_base2 = devm_ioremap_resource(dev, res);
res               439 drivers/pci/controller/dwc/pci-dra7xx.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "addr_space");
res               440 drivers/pci/controller/dwc/pci-dra7xx.c 	if (!res)
res               443 drivers/pci/controller/dwc/pci-dra7xx.c 	ep->phys_base = res->start;
res               444 drivers/pci/controller/dwc/pci-dra7xx.c 	ep->addr_size = resource_size(res);
res               462 drivers/pci/controller/dwc/pci-dra7xx.c 	struct resource *res;
res               482 drivers/pci/controller/dwc/pci-dra7xx.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "rc_dbics");
res               483 drivers/pci/controller/dwc/pci-dra7xx.c 	pci->dbi_base = devm_ioremap_resource(dev, res);
res               684 drivers/pci/controller/dwc/pci-dra7xx.c 	struct resource *res;
res               721 drivers/pci/controller/dwc/pci-dra7xx.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "ti_conf");
res               722 drivers/pci/controller/dwc/pci-dra7xx.c 	base = devm_ioremap_nocache(dev, res->start, resource_size(res));
res                87 drivers/pci/controller/dwc/pci-exynos.c 	struct resource *res;
res                93 drivers/pci/controller/dwc/pci-exynos.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                94 drivers/pci/controller/dwc/pci-exynos.c 	ep->mem_res->elbi_base = devm_ioremap_resource(dev, res);
res              1039 drivers/pci/controller/dwc/pci-imx6.c 		struct resource res;
res              1041 drivers/pci/controller/dwc/pci-imx6.c 		ret = of_address_to_resource(np, 0, &res);
res              1046 drivers/pci/controller/dwc/pci-imx6.c 		imx6_pcie->phy_base = devm_ioremap_resource(dev, &res);
res               870 drivers/pci/controller/dwc/pci-keystone.c 	struct resource *res;
res               873 drivers/pci/controller/dwc/pci-keystone.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "config");
res               874 drivers/pci/controller/dwc/pci-keystone.c 	pp->va_cfg0_base = devm_pci_remap_cfg_resource(dev, res);
res              1000 drivers/pci/controller/dwc/pci-keystone.c 	struct resource *res;
res              1006 drivers/pci/controller/dwc/pci-keystone.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "addr_space");
res              1007 drivers/pci/controller/dwc/pci-keystone.c 	if (!res)
res              1010 drivers/pci/controller/dwc/pci-keystone.c 	ep->phys_base = res->start;
res              1011 drivers/pci/controller/dwc/pci-keystone.c 	ep->addr_size = resource_size(res);
res              1198 drivers/pci/controller/dwc/pci-keystone.c 	struct resource *res;
res              1228 drivers/pci/controller/dwc/pci-keystone.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "app");
res              1229 drivers/pci/controller/dwc/pci-keystone.c 	ks_pcie->va_app_base = devm_ioremap_resource(dev, res);
res              1233 drivers/pci/controller/dwc/pci-keystone.c 	ks_pcie->app = *res;
res              1235 drivers/pci/controller/dwc/pci-keystone.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "dbics");
res              1236 drivers/pci/controller/dwc/pci-keystone.c 	base = devm_pci_remap_cfg_resource(dev, res);
res              1323 drivers/pci/controller/dwc/pci-keystone.c 		res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "atu");
res              1324 drivers/pci/controller/dwc/pci-keystone.c 		atu_base = devm_ioremap_resource(dev, res);
res                95 drivers/pci/controller/dwc/pci-layerscape-ep.c 	struct resource *res;
res               101 drivers/pci/controller/dwc/pci-layerscape-ep.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "addr_space");
res               102 drivers/pci/controller/dwc/pci-layerscape-ep.c 	if (!res)
res               105 drivers/pci/controller/dwc/pci-layerscape-ep.c 	ep->phys_base = res->start;
res               106 drivers/pci/controller/dwc/pci-layerscape-ep.c 	ep->addr_size = resource_size(res);
res               149 drivers/pci/controller/dwc/pci-meson.c 	struct resource *res;
res               151 drivers/pci/controller/dwc/pci-meson.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, id);
res               153 drivers/pci/controller/dwc/pci-meson.c 	return devm_ioremap_resource(dev, res);
res               161 drivers/pci/controller/dwc/pci-meson.c 	struct resource *res;
res               163 drivers/pci/controller/dwc/pci-meson.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, id);
res               164 drivers/pci/controller/dwc/pci-meson.c 	if (!res) {
res               169 drivers/pci/controller/dwc/pci-meson.c 	return devm_ioremap(dev, res->start, resource_size(res));
res               247 drivers/pci/controller/dwc/pci-meson.c 	struct meson_pcie_clk_res *res = &mp->clk_res;
res               249 drivers/pci/controller/dwc/pci-meson.c 	res->port_clk = meson_pcie_probe_clock(dev, "port", PORT_CLK_RATE);
res               250 drivers/pci/controller/dwc/pci-meson.c 	if (IS_ERR(res->port_clk))
res               251 drivers/pci/controller/dwc/pci-meson.c 		return PTR_ERR(res->port_clk);
res               253 drivers/pci/controller/dwc/pci-meson.c 	res->mipi_gate = meson_pcie_probe_clock(dev, "mipi", 0);
res               254 drivers/pci/controller/dwc/pci-meson.c 	if (IS_ERR(res->mipi_gate))
res               255 drivers/pci/controller/dwc/pci-meson.c 		return PTR_ERR(res->mipi_gate);
res               257 drivers/pci/controller/dwc/pci-meson.c 	res->general_clk = meson_pcie_probe_clock(dev, "general", 0);
res               258 drivers/pci/controller/dwc/pci-meson.c 	if (IS_ERR(res->general_clk))
res               259 drivers/pci/controller/dwc/pci-meson.c 		return PTR_ERR(res->general_clk);
res               261 drivers/pci/controller/dwc/pci-meson.c 	res->clk = meson_pcie_probe_clock(dev, "pclk", 0);
res               262 drivers/pci/controller/dwc/pci-meson.c 	if (IS_ERR(res->clk))
res               263 drivers/pci/controller/dwc/pci-meson.c 		return PTR_ERR(res->clk);
res                49 drivers/pci/controller/dwc/pcie-al.c 	struct resource *res;
res                56 drivers/pci/controller/dwc/pcie-al.c 	res = devm_kzalloc(dev, sizeof(*res), GFP_KERNEL);
res                57 drivers/pci/controller/dwc/pcie-al.c 	if (!res)
res                60 drivers/pci/controller/dwc/pcie-al.c 	ret = acpi_get_rc_resources(dev, "AMZN0001", root->segment, res);
res                67 drivers/pci/controller/dwc/pcie-al.c 	dev_dbg(dev, "Root port dbi res: %pR\n", res);
res                69 drivers/pci/controller/dwc/pcie-al.c 	al_pcie->dbi_base = devm_pci_remap_cfg_resource(dev, res);
res                74 drivers/pci/controller/dwc/pcie-al.c 			res, err);
res               457 drivers/pci/controller/dwc/pcie-artpec6.c 	struct resource *res;
res               464 drivers/pci/controller/dwc/pcie-artpec6.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "dbi2");
res               465 drivers/pci/controller/dwc/pcie-artpec6.c 	pci->dbi_base2 = devm_ioremap_resource(dev, res);
res               469 drivers/pci/controller/dwc/pcie-artpec6.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "addr_space");
res               470 drivers/pci/controller/dwc/pcie-artpec6.c 	if (!res)
res               473 drivers/pci/controller/dwc/pcie-artpec6.c 	ep->phys_base = res->start;
res               474 drivers/pci/controller/dwc/pcie-artpec6.c 	ep->addr_size = resource_size(res);
res               150 drivers/pci/controller/dwc/pcie-designware-host.c 	unsigned int res, bit, ctrl;
res               156 drivers/pci/controller/dwc/pcie-designware-host.c 	res = ctrl * MSI_REG_CTRL_BLOCK_SIZE;
res               160 drivers/pci/controller/dwc/pcie-designware-host.c 	dw_pcie_wr_own_conf(pp, PCIE_MSI_INTR0_MASK + res, 4,
res               169 drivers/pci/controller/dwc/pcie-designware-host.c 	unsigned int res, bit, ctrl;
res               175 drivers/pci/controller/dwc/pcie-designware-host.c 	res = ctrl * MSI_REG_CTRL_BLOCK_SIZE;
res               179 drivers/pci/controller/dwc/pcie-designware-host.c 	dw_pcie_wr_own_conf(pp, PCIE_MSI_INTR0_MASK + res, 4,
res               188 drivers/pci/controller/dwc/pcie-designware-host.c 	unsigned int res, bit, ctrl;
res               191 drivers/pci/controller/dwc/pcie-designware-host.c 	res = ctrl * MSI_REG_CTRL_BLOCK_SIZE;
res               194 drivers/pci/controller/dwc/pcie-designware-host.c 	dw_pcie_wr_own_conf(pp, PCIE_MSI_INTR0_STATUS + res, 4, BIT(bit));
res               357 drivers/pci/controller/dwc/pcie-designware-host.c 		switch (resource_type(win->res)) {
res               359 drivers/pci/controller/dwc/pcie-designware-host.c 			ret = devm_pci_remap_iospace(dev, win->res,
res               363 drivers/pci/controller/dwc/pcie-designware-host.c 					 ret, win->res);
res               366 drivers/pci/controller/dwc/pcie-designware-host.c 				pp->io = win->res;
res               373 drivers/pci/controller/dwc/pcie-designware-host.c 			pp->mem = win->res;
res               379 drivers/pci/controller/dwc/pcie-designware-host.c 			pp->cfg = win->res;
res               386 drivers/pci/controller/dwc/pcie-designware-host.c 			pp->busn = win->res;
res               149 drivers/pci/controller/dwc/pcie-designware-plat.c 	struct resource *res;
res               156 drivers/pci/controller/dwc/pcie-designware-plat.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "dbi2");
res               157 drivers/pci/controller/dwc/pcie-designware-plat.c 	pci->dbi_base2 = devm_ioremap_resource(dev, res);
res               161 drivers/pci/controller/dwc/pcie-designware-plat.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "addr_space");
res               162 drivers/pci/controller/dwc/pcie-designware-plat.c 	if (!res)
res               165 drivers/pci/controller/dwc/pcie-designware-plat.c 	ep->phys_base = res->start;
res               166 drivers/pci/controller/dwc/pcie-designware-plat.c 	ep->addr_size = resource_size(res);
res               181 drivers/pci/controller/dwc/pcie-designware-plat.c 	struct resource *res;  /* Resource from DT */
res               208 drivers/pci/controller/dwc/pcie-designware-plat.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "dbi");
res               209 drivers/pci/controller/dwc/pcie-designware-plat.c 	if (!res)
res               210 drivers/pci/controller/dwc/pcie-designware-plat.c 		res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               212 drivers/pci/controller/dwc/pcie-designware-plat.c 	pci->dbi_base = devm_ioremap_resource(dev, res);
res                81 drivers/pci/controller/dwc/pcie-hisi.c 	struct resource *res;
res                89 drivers/pci/controller/dwc/pcie-hisi.c 	res = devm_kzalloc(dev, sizeof(*res), GFP_KERNEL);
res                90 drivers/pci/controller/dwc/pcie-hisi.c 	if (!res)
res                93 drivers/pci/controller/dwc/pcie-hisi.c 	ret = acpi_get_rc_resources(dev, "HISI0081", root->segment, res);
res                99 drivers/pci/controller/dwc/pcie-hisi.c 	reg_base = devm_pci_remap_cfgspace(dev, res->start, resource_size(res));
res               348 drivers/pci/controller/dwc/pcie-hisi.c 	struct resource *res;
res               351 drivers/pci/controller/dwc/pcie-hisi.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res               352 drivers/pci/controller/dwc/pcie-hisi.c 	if (!res) {
res               357 drivers/pci/controller/dwc/pcie-hisi.c 	reg_base = devm_pci_remap_cfgspace(dev, res->start, resource_size(res));
res               307 drivers/pci/controller/dwc/pcie-histb.c 	struct resource *res;
res               327 drivers/pci/controller/dwc/pcie-histb.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "control");
res               328 drivers/pci/controller/dwc/pcie-histb.c 	hipcie->ctrl = devm_ioremap_resource(dev, res);
res               334 drivers/pci/controller/dwc/pcie-histb.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "rc-dbi");
res               335 drivers/pci/controller/dwc/pcie-histb.c 	pci->dbi_base = devm_ioremap_resource(dev, res);
res               165 drivers/pci/controller/dwc/pcie-qcom.c 	union qcom_pcie_resources res;
res               213 drivers/pci/controller/dwc/pcie-qcom.c 	struct qcom_pcie_resources_2_1_0 *res = &pcie->res.v2_1_0;
res               218 drivers/pci/controller/dwc/pcie-qcom.c 	res->supplies[0].supply = "vdda";
res               219 drivers/pci/controller/dwc/pcie-qcom.c 	res->supplies[1].supply = "vdda_phy";
res               220 drivers/pci/controller/dwc/pcie-qcom.c 	res->supplies[2].supply = "vdda_refclk";
res               221 drivers/pci/controller/dwc/pcie-qcom.c 	ret = devm_regulator_bulk_get(dev, ARRAY_SIZE(res->supplies),
res               222 drivers/pci/controller/dwc/pcie-qcom.c 				      res->supplies);
res               226 drivers/pci/controller/dwc/pcie-qcom.c 	res->iface_clk = devm_clk_get(dev, "iface");
res               227 drivers/pci/controller/dwc/pcie-qcom.c 	if (IS_ERR(res->iface_clk))
res               228 drivers/pci/controller/dwc/pcie-qcom.c 		return PTR_ERR(res->iface_clk);
res               230 drivers/pci/controller/dwc/pcie-qcom.c 	res->core_clk = devm_clk_get(dev, "core");
res               231 drivers/pci/controller/dwc/pcie-qcom.c 	if (IS_ERR(res->core_clk))
res               232 drivers/pci/controller/dwc/pcie-qcom.c 		return PTR_ERR(res->core_clk);
res               234 drivers/pci/controller/dwc/pcie-qcom.c 	res->phy_clk = devm_clk_get(dev, "phy");
res               235 drivers/pci/controller/dwc/pcie-qcom.c 	if (IS_ERR(res->phy_clk))
res               236 drivers/pci/controller/dwc/pcie-qcom.c 		return PTR_ERR(res->phy_clk);
res               238 drivers/pci/controller/dwc/pcie-qcom.c 	res->pci_reset = devm_reset_control_get_exclusive(dev, "pci");
res               239 drivers/pci/controller/dwc/pcie-qcom.c 	if (IS_ERR(res->pci_reset))
res               240 drivers/pci/controller/dwc/pcie-qcom.c 		return PTR_ERR(res->pci_reset);
res               242 drivers/pci/controller/dwc/pcie-qcom.c 	res->axi_reset = devm_reset_control_get_exclusive(dev, "axi");
res               243 drivers/pci/controller/dwc/pcie-qcom.c 	if (IS_ERR(res->axi_reset))
res               244 drivers/pci/controller/dwc/pcie-qcom.c 		return PTR_ERR(res->axi_reset);
res               246 drivers/pci/controller/dwc/pcie-qcom.c 	res->ahb_reset = devm_reset_control_get_exclusive(dev, "ahb");
res               247 drivers/pci/controller/dwc/pcie-qcom.c 	if (IS_ERR(res->ahb_reset))
res               248 drivers/pci/controller/dwc/pcie-qcom.c 		return PTR_ERR(res->ahb_reset);
res               250 drivers/pci/controller/dwc/pcie-qcom.c 	res->por_reset = devm_reset_control_get_exclusive(dev, "por");
res               251 drivers/pci/controller/dwc/pcie-qcom.c 	if (IS_ERR(res->por_reset))
res               252 drivers/pci/controller/dwc/pcie-qcom.c 		return PTR_ERR(res->por_reset);
res               254 drivers/pci/controller/dwc/pcie-qcom.c 	res->phy_reset = devm_reset_control_get_exclusive(dev, "phy");
res               255 drivers/pci/controller/dwc/pcie-qcom.c 	return PTR_ERR_OR_ZERO(res->phy_reset);
res               260 drivers/pci/controller/dwc/pcie-qcom.c 	struct qcom_pcie_resources_2_1_0 *res = &pcie->res.v2_1_0;
res               262 drivers/pci/controller/dwc/pcie-qcom.c 	reset_control_assert(res->pci_reset);
res               263 drivers/pci/controller/dwc/pcie-qcom.c 	reset_control_assert(res->axi_reset);
res               264 drivers/pci/controller/dwc/pcie-qcom.c 	reset_control_assert(res->ahb_reset);
res               265 drivers/pci/controller/dwc/pcie-qcom.c 	reset_control_assert(res->por_reset);
res               266 drivers/pci/controller/dwc/pcie-qcom.c 	reset_control_assert(res->pci_reset);
res               267 drivers/pci/controller/dwc/pcie-qcom.c 	clk_disable_unprepare(res->iface_clk);
res               268 drivers/pci/controller/dwc/pcie-qcom.c 	clk_disable_unprepare(res->core_clk);
res               269 drivers/pci/controller/dwc/pcie-qcom.c 	clk_disable_unprepare(res->phy_clk);
res               270 drivers/pci/controller/dwc/pcie-qcom.c 	regulator_bulk_disable(ARRAY_SIZE(res->supplies), res->supplies);
res               275 drivers/pci/controller/dwc/pcie-qcom.c 	struct qcom_pcie_resources_2_1_0 *res = &pcie->res.v2_1_0;
res               281 drivers/pci/controller/dwc/pcie-qcom.c 	ret = regulator_bulk_enable(ARRAY_SIZE(res->supplies), res->supplies);
res               287 drivers/pci/controller/dwc/pcie-qcom.c 	ret = reset_control_assert(res->ahb_reset);
res               293 drivers/pci/controller/dwc/pcie-qcom.c 	ret = clk_prepare_enable(res->iface_clk);
res               299 drivers/pci/controller/dwc/pcie-qcom.c 	ret = clk_prepare_enable(res->phy_clk);
res               305 drivers/pci/controller/dwc/pcie-qcom.c 	ret = clk_prepare_enable(res->core_clk);
res               311 drivers/pci/controller/dwc/pcie-qcom.c 	ret = reset_control_deassert(res->ahb_reset);
res               327 drivers/pci/controller/dwc/pcie-qcom.c 	ret = reset_control_deassert(res->phy_reset);
res               333 drivers/pci/controller/dwc/pcie-qcom.c 	ret = reset_control_deassert(res->pci_reset);
res               339 drivers/pci/controller/dwc/pcie-qcom.c 	ret = reset_control_deassert(res->por_reset);
res               345 drivers/pci/controller/dwc/pcie-qcom.c 	ret = reset_control_deassert(res->axi_reset);
res               364 drivers/pci/controller/dwc/pcie-qcom.c 	clk_disable_unprepare(res->core_clk);
res               366 drivers/pci/controller/dwc/pcie-qcom.c 	clk_disable_unprepare(res->phy_clk);
res               368 drivers/pci/controller/dwc/pcie-qcom.c 	clk_disable_unprepare(res->iface_clk);
res               370 drivers/pci/controller/dwc/pcie-qcom.c 	regulator_bulk_disable(ARRAY_SIZE(res->supplies), res->supplies);
res               377 drivers/pci/controller/dwc/pcie-qcom.c 	struct qcom_pcie_resources_1_0_0 *res = &pcie->res.v1_0_0;
res               381 drivers/pci/controller/dwc/pcie-qcom.c 	res->vdda = devm_regulator_get(dev, "vdda");
res               382 drivers/pci/controller/dwc/pcie-qcom.c 	if (IS_ERR(res->vdda))
res               383 drivers/pci/controller/dwc/pcie-qcom.c 		return PTR_ERR(res->vdda);
res               385 drivers/pci/controller/dwc/pcie-qcom.c 	res->iface = devm_clk_get(dev, "iface");
res               386 drivers/pci/controller/dwc/pcie-qcom.c 	if (IS_ERR(res->iface))
res               387 drivers/pci/controller/dwc/pcie-qcom.c 		return PTR_ERR(res->iface);
res               389 drivers/pci/controller/dwc/pcie-qcom.c 	res->aux = devm_clk_get(dev, "aux");
res               390 drivers/pci/controller/dwc/pcie-qcom.c 	if (IS_ERR(res->aux))
res               391 drivers/pci/controller/dwc/pcie-qcom.c 		return PTR_ERR(res->aux);
res               393 drivers/pci/controller/dwc/pcie-qcom.c 	res->master_bus = devm_clk_get(dev, "master_bus");
res               394 drivers/pci/controller/dwc/pcie-qcom.c 	if (IS_ERR(res->master_bus))
res               395 drivers/pci/controller/dwc/pcie-qcom.c 		return PTR_ERR(res->master_bus);
res               397 drivers/pci/controller/dwc/pcie-qcom.c 	res->slave_bus = devm_clk_get(dev, "slave_bus");
res               398 drivers/pci/controller/dwc/pcie-qcom.c 	if (IS_ERR(res->slave_bus))
res               399 drivers/pci/controller/dwc/pcie-qcom.c 		return PTR_ERR(res->slave_bus);
res               401 drivers/pci/controller/dwc/pcie-qcom.c 	res->core = devm_reset_control_get_exclusive(dev, "core");
res               402 drivers/pci/controller/dwc/pcie-qcom.c 	return PTR_ERR_OR_ZERO(res->core);
res               407 drivers/pci/controller/dwc/pcie-qcom.c 	struct qcom_pcie_resources_1_0_0 *res = &pcie->res.v1_0_0;
res               409 drivers/pci/controller/dwc/pcie-qcom.c 	reset_control_assert(res->core);
res               410 drivers/pci/controller/dwc/pcie-qcom.c 	clk_disable_unprepare(res->slave_bus);
res               411 drivers/pci/controller/dwc/pcie-qcom.c 	clk_disable_unprepare(res->master_bus);
res               412 drivers/pci/controller/dwc/pcie-qcom.c 	clk_disable_unprepare(res->iface);
res               413 drivers/pci/controller/dwc/pcie-qcom.c 	clk_disable_unprepare(res->aux);
res               414 drivers/pci/controller/dwc/pcie-qcom.c 	regulator_disable(res->vdda);
res               419 drivers/pci/controller/dwc/pcie-qcom.c 	struct qcom_pcie_resources_1_0_0 *res = &pcie->res.v1_0_0;
res               424 drivers/pci/controller/dwc/pcie-qcom.c 	ret = reset_control_deassert(res->core);
res               430 drivers/pci/controller/dwc/pcie-qcom.c 	ret = clk_prepare_enable(res->aux);
res               436 drivers/pci/controller/dwc/pcie-qcom.c 	ret = clk_prepare_enable(res->iface);
res               442 drivers/pci/controller/dwc/pcie-qcom.c 	ret = clk_prepare_enable(res->master_bus);
res               448 drivers/pci/controller/dwc/pcie-qcom.c 	ret = clk_prepare_enable(res->slave_bus);
res               454 drivers/pci/controller/dwc/pcie-qcom.c 	ret = regulator_enable(res->vdda);
res               472 drivers/pci/controller/dwc/pcie-qcom.c 	clk_disable_unprepare(res->slave_bus);
res               474 drivers/pci/controller/dwc/pcie-qcom.c 	clk_disable_unprepare(res->master_bus);
res               476 drivers/pci/controller/dwc/pcie-qcom.c 	clk_disable_unprepare(res->iface);
res               478 drivers/pci/controller/dwc/pcie-qcom.c 	clk_disable_unprepare(res->aux);
res               480 drivers/pci/controller/dwc/pcie-qcom.c 	reset_control_assert(res->core);
res               497 drivers/pci/controller/dwc/pcie-qcom.c 	struct qcom_pcie_resources_2_3_2 *res = &pcie->res.v2_3_2;
res               502 drivers/pci/controller/dwc/pcie-qcom.c 	res->supplies[0].supply = "vdda";
res               503 drivers/pci/controller/dwc/pcie-qcom.c 	res->supplies[1].supply = "vddpe-3v3";
res               504 drivers/pci/controller/dwc/pcie-qcom.c 	ret = devm_regulator_bulk_get(dev, ARRAY_SIZE(res->supplies),
res               505 drivers/pci/controller/dwc/pcie-qcom.c 				      res->supplies);
res               509 drivers/pci/controller/dwc/pcie-qcom.c 	res->aux_clk = devm_clk_get(dev, "aux");
res               510 drivers/pci/controller/dwc/pcie-qcom.c 	if (IS_ERR(res->aux_clk))
res               511 drivers/pci/controller/dwc/pcie-qcom.c 		return PTR_ERR(res->aux_clk);
res               513 drivers/pci/controller/dwc/pcie-qcom.c 	res->cfg_clk = devm_clk_get(dev, "cfg");
res               514 drivers/pci/controller/dwc/pcie-qcom.c 	if (IS_ERR(res->cfg_clk))
res               515 drivers/pci/controller/dwc/pcie-qcom.c 		return PTR_ERR(res->cfg_clk);
res               517 drivers/pci/controller/dwc/pcie-qcom.c 	res->master_clk = devm_clk_get(dev, "bus_master");
res               518 drivers/pci/controller/dwc/pcie-qcom.c 	if (IS_ERR(res->master_clk))
res               519 drivers/pci/controller/dwc/pcie-qcom.c 		return PTR_ERR(res->master_clk);
res               521 drivers/pci/controller/dwc/pcie-qcom.c 	res->slave_clk = devm_clk_get(dev, "bus_slave");
res               522 drivers/pci/controller/dwc/pcie-qcom.c 	if (IS_ERR(res->slave_clk))
res               523 drivers/pci/controller/dwc/pcie-qcom.c 		return PTR_ERR(res->slave_clk);
res               525 drivers/pci/controller/dwc/pcie-qcom.c 	res->pipe_clk = devm_clk_get(dev, "pipe");
res               526 drivers/pci/controller/dwc/pcie-qcom.c 	return PTR_ERR_OR_ZERO(res->pipe_clk);
res               531 drivers/pci/controller/dwc/pcie-qcom.c 	struct qcom_pcie_resources_2_3_2 *res = &pcie->res.v2_3_2;
res               533 drivers/pci/controller/dwc/pcie-qcom.c 	clk_disable_unprepare(res->slave_clk);
res               534 drivers/pci/controller/dwc/pcie-qcom.c 	clk_disable_unprepare(res->master_clk);
res               535 drivers/pci/controller/dwc/pcie-qcom.c 	clk_disable_unprepare(res->cfg_clk);
res               536 drivers/pci/controller/dwc/pcie-qcom.c 	clk_disable_unprepare(res->aux_clk);
res               538 drivers/pci/controller/dwc/pcie-qcom.c 	regulator_bulk_disable(ARRAY_SIZE(res->supplies), res->supplies);
res               543 drivers/pci/controller/dwc/pcie-qcom.c 	struct qcom_pcie_resources_2_3_2 *res = &pcie->res.v2_3_2;
res               545 drivers/pci/controller/dwc/pcie-qcom.c 	clk_disable_unprepare(res->pipe_clk);
res               550 drivers/pci/controller/dwc/pcie-qcom.c 	struct qcom_pcie_resources_2_3_2 *res = &pcie->res.v2_3_2;
res               556 drivers/pci/controller/dwc/pcie-qcom.c 	ret = regulator_bulk_enable(ARRAY_SIZE(res->supplies), res->supplies);
res               562 drivers/pci/controller/dwc/pcie-qcom.c 	ret = clk_prepare_enable(res->aux_clk);
res               568 drivers/pci/controller/dwc/pcie-qcom.c 	ret = clk_prepare_enable(res->cfg_clk);
res               574 drivers/pci/controller/dwc/pcie-qcom.c 	ret = clk_prepare_enable(res->master_clk);
res               580 drivers/pci/controller/dwc/pcie-qcom.c 	ret = clk_prepare_enable(res->slave_clk);
res               610 drivers/pci/controller/dwc/pcie-qcom.c 	clk_disable_unprepare(res->master_clk);
res               612 drivers/pci/controller/dwc/pcie-qcom.c 	clk_disable_unprepare(res->cfg_clk);
res               614 drivers/pci/controller/dwc/pcie-qcom.c 	clk_disable_unprepare(res->aux_clk);
res               617 drivers/pci/controller/dwc/pcie-qcom.c 	regulator_bulk_disable(ARRAY_SIZE(res->supplies), res->supplies);
res               624 drivers/pci/controller/dwc/pcie-qcom.c 	struct qcom_pcie_resources_2_3_2 *res = &pcie->res.v2_3_2;
res               629 drivers/pci/controller/dwc/pcie-qcom.c 	ret = clk_prepare_enable(res->pipe_clk);
res               640 drivers/pci/controller/dwc/pcie-qcom.c 	struct qcom_pcie_resources_2_4_0 *res = &pcie->res.v2_4_0;
res               646 drivers/pci/controller/dwc/pcie-qcom.c 	res->clks[0].id = "aux";
res               647 drivers/pci/controller/dwc/pcie-qcom.c 	res->clks[1].id = "master_bus";
res               648 drivers/pci/controller/dwc/pcie-qcom.c 	res->clks[2].id = "slave_bus";
res               649 drivers/pci/controller/dwc/pcie-qcom.c 	res->clks[3].id = "iface";
res               652 drivers/pci/controller/dwc/pcie-qcom.c 	res->num_clks = is_ipq ? 3 : 4;
res               654 drivers/pci/controller/dwc/pcie-qcom.c 	ret = devm_clk_bulk_get(dev, res->num_clks, res->clks);
res               658 drivers/pci/controller/dwc/pcie-qcom.c 	res->axi_m_reset = devm_reset_control_get_exclusive(dev, "axi_m");
res               659 drivers/pci/controller/dwc/pcie-qcom.c 	if (IS_ERR(res->axi_m_reset))
res               660 drivers/pci/controller/dwc/pcie-qcom.c 		return PTR_ERR(res->axi_m_reset);
res               662 drivers/pci/controller/dwc/pcie-qcom.c 	res->axi_s_reset = devm_reset_control_get_exclusive(dev, "axi_s");
res               663 drivers/pci/controller/dwc/pcie-qcom.c 	if (IS_ERR(res->axi_s_reset))
res               664 drivers/pci/controller/dwc/pcie-qcom.c 		return PTR_ERR(res->axi_s_reset);
res               671 drivers/pci/controller/dwc/pcie-qcom.c 		res->pipe_reset = devm_reset_control_get_exclusive(dev, "pipe");
res               672 drivers/pci/controller/dwc/pcie-qcom.c 		if (IS_ERR(res->pipe_reset))
res               673 drivers/pci/controller/dwc/pcie-qcom.c 			return PTR_ERR(res->pipe_reset);
res               675 drivers/pci/controller/dwc/pcie-qcom.c 		res->axi_m_vmid_reset = devm_reset_control_get_exclusive(dev,
res               677 drivers/pci/controller/dwc/pcie-qcom.c 		if (IS_ERR(res->axi_m_vmid_reset))
res               678 drivers/pci/controller/dwc/pcie-qcom.c 			return PTR_ERR(res->axi_m_vmid_reset);
res               680 drivers/pci/controller/dwc/pcie-qcom.c 		res->axi_s_xpu_reset = devm_reset_control_get_exclusive(dev,
res               682 drivers/pci/controller/dwc/pcie-qcom.c 		if (IS_ERR(res->axi_s_xpu_reset))
res               683 drivers/pci/controller/dwc/pcie-qcom.c 			return PTR_ERR(res->axi_s_xpu_reset);
res               685 drivers/pci/controller/dwc/pcie-qcom.c 		res->parf_reset = devm_reset_control_get_exclusive(dev, "parf");
res               686 drivers/pci/controller/dwc/pcie-qcom.c 		if (IS_ERR(res->parf_reset))
res               687 drivers/pci/controller/dwc/pcie-qcom.c 			return PTR_ERR(res->parf_reset);
res               689 drivers/pci/controller/dwc/pcie-qcom.c 		res->phy_reset = devm_reset_control_get_exclusive(dev, "phy");
res               690 drivers/pci/controller/dwc/pcie-qcom.c 		if (IS_ERR(res->phy_reset))
res               691 drivers/pci/controller/dwc/pcie-qcom.c 			return PTR_ERR(res->phy_reset);
res               694 drivers/pci/controller/dwc/pcie-qcom.c 	res->axi_m_sticky_reset = devm_reset_control_get_exclusive(dev,
res               696 drivers/pci/controller/dwc/pcie-qcom.c 	if (IS_ERR(res->axi_m_sticky_reset))
res               697 drivers/pci/controller/dwc/pcie-qcom.c 		return PTR_ERR(res->axi_m_sticky_reset);
res               699 drivers/pci/controller/dwc/pcie-qcom.c 	res->pipe_sticky_reset = devm_reset_control_get_exclusive(dev,
res               701 drivers/pci/controller/dwc/pcie-qcom.c 	if (IS_ERR(res->pipe_sticky_reset))
res               702 drivers/pci/controller/dwc/pcie-qcom.c 		return PTR_ERR(res->pipe_sticky_reset);
res               704 drivers/pci/controller/dwc/pcie-qcom.c 	res->pwr_reset = devm_reset_control_get_exclusive(dev, "pwr");
res               705 drivers/pci/controller/dwc/pcie-qcom.c 	if (IS_ERR(res->pwr_reset))
res               706 drivers/pci/controller/dwc/pcie-qcom.c 		return PTR_ERR(res->pwr_reset);
res               708 drivers/pci/controller/dwc/pcie-qcom.c 	res->ahb_reset = devm_reset_control_get_exclusive(dev, "ahb");
res               709 drivers/pci/controller/dwc/pcie-qcom.c 	if (IS_ERR(res->ahb_reset))
res               710 drivers/pci/controller/dwc/pcie-qcom.c 		return PTR_ERR(res->ahb_reset);
res               713 drivers/pci/controller/dwc/pcie-qcom.c 		res->phy_ahb_reset = devm_reset_control_get_exclusive(dev, "phy_ahb");
res               714 drivers/pci/controller/dwc/pcie-qcom.c 		if (IS_ERR(res->phy_ahb_reset))
res               715 drivers/pci/controller/dwc/pcie-qcom.c 			return PTR_ERR(res->phy_ahb_reset);
res               723 drivers/pci/controller/dwc/pcie-qcom.c 	struct qcom_pcie_resources_2_4_0 *res = &pcie->res.v2_4_0;
res               725 drivers/pci/controller/dwc/pcie-qcom.c 	reset_control_assert(res->axi_m_reset);
res               726 drivers/pci/controller/dwc/pcie-qcom.c 	reset_control_assert(res->axi_s_reset);
res               727 drivers/pci/controller/dwc/pcie-qcom.c 	reset_control_assert(res->pipe_reset);
res               728 drivers/pci/controller/dwc/pcie-qcom.c 	reset_control_assert(res->pipe_sticky_reset);
res               729 drivers/pci/controller/dwc/pcie-qcom.c 	reset_control_assert(res->phy_reset);
res               730 drivers/pci/controller/dwc/pcie-qcom.c 	reset_control_assert(res->phy_ahb_reset);
res               731 drivers/pci/controller/dwc/pcie-qcom.c 	reset_control_assert(res->axi_m_sticky_reset);
res               732 drivers/pci/controller/dwc/pcie-qcom.c 	reset_control_assert(res->pwr_reset);
res               733 drivers/pci/controller/dwc/pcie-qcom.c 	reset_control_assert(res->ahb_reset);
res               734 drivers/pci/controller/dwc/pcie-qcom.c 	clk_bulk_disable_unprepare(res->num_clks, res->clks);
res               739 drivers/pci/controller/dwc/pcie-qcom.c 	struct qcom_pcie_resources_2_4_0 *res = &pcie->res.v2_4_0;
res               745 drivers/pci/controller/dwc/pcie-qcom.c 	ret = reset_control_assert(res->axi_m_reset);
res               751 drivers/pci/controller/dwc/pcie-qcom.c 	ret = reset_control_assert(res->axi_s_reset);
res               759 drivers/pci/controller/dwc/pcie-qcom.c 	ret = reset_control_assert(res->pipe_reset);
res               765 drivers/pci/controller/dwc/pcie-qcom.c 	ret = reset_control_assert(res->pipe_sticky_reset);
res               771 drivers/pci/controller/dwc/pcie-qcom.c 	ret = reset_control_assert(res->phy_reset);
res               777 drivers/pci/controller/dwc/pcie-qcom.c 	ret = reset_control_assert(res->phy_ahb_reset);
res               785 drivers/pci/controller/dwc/pcie-qcom.c 	ret = reset_control_assert(res->axi_m_sticky_reset);
res               791 drivers/pci/controller/dwc/pcie-qcom.c 	ret = reset_control_assert(res->pwr_reset);
res               797 drivers/pci/controller/dwc/pcie-qcom.c 	ret = reset_control_assert(res->ahb_reset);
res               805 drivers/pci/controller/dwc/pcie-qcom.c 	ret = reset_control_deassert(res->phy_ahb_reset);
res               811 drivers/pci/controller/dwc/pcie-qcom.c 	ret = reset_control_deassert(res->phy_reset);
res               817 drivers/pci/controller/dwc/pcie-qcom.c 	ret = reset_control_deassert(res->pipe_reset);
res               823 drivers/pci/controller/dwc/pcie-qcom.c 	ret = reset_control_deassert(res->pipe_sticky_reset);
res               831 drivers/pci/controller/dwc/pcie-qcom.c 	ret = reset_control_deassert(res->axi_m_reset);
res               837 drivers/pci/controller/dwc/pcie-qcom.c 	ret = reset_control_deassert(res->axi_m_sticky_reset);
res               843 drivers/pci/controller/dwc/pcie-qcom.c 	ret = reset_control_deassert(res->axi_s_reset);
res               849 drivers/pci/controller/dwc/pcie-qcom.c 	ret = reset_control_deassert(res->pwr_reset);
res               855 drivers/pci/controller/dwc/pcie-qcom.c 	ret = reset_control_deassert(res->ahb_reset);
res               863 drivers/pci/controller/dwc/pcie-qcom.c 	ret = clk_bulk_prepare_enable(res->num_clks, res->clks);
res               891 drivers/pci/controller/dwc/pcie-qcom.c 	reset_control_assert(res->ahb_reset);
res               893 drivers/pci/controller/dwc/pcie-qcom.c 	reset_control_assert(res->pwr_reset);
res               895 drivers/pci/controller/dwc/pcie-qcom.c 	reset_control_assert(res->axi_s_reset);
res               897 drivers/pci/controller/dwc/pcie-qcom.c 	reset_control_assert(res->axi_m_sticky_reset);
res               899 drivers/pci/controller/dwc/pcie-qcom.c 	reset_control_assert(res->axi_m_reset);
res               901 drivers/pci/controller/dwc/pcie-qcom.c 	reset_control_assert(res->pipe_sticky_reset);
res               903 drivers/pci/controller/dwc/pcie-qcom.c 	reset_control_assert(res->pipe_reset);
res               905 drivers/pci/controller/dwc/pcie-qcom.c 	reset_control_assert(res->phy_reset);
res               907 drivers/pci/controller/dwc/pcie-qcom.c 	reset_control_assert(res->phy_ahb_reset);
res               913 drivers/pci/controller/dwc/pcie-qcom.c 	struct qcom_pcie_resources_2_3_3 *res = &pcie->res.v2_3_3;
res               921 drivers/pci/controller/dwc/pcie-qcom.c 	res->iface = devm_clk_get(dev, "iface");
res               922 drivers/pci/controller/dwc/pcie-qcom.c 	if (IS_ERR(res->iface))
res               923 drivers/pci/controller/dwc/pcie-qcom.c 		return PTR_ERR(res->iface);
res               925 drivers/pci/controller/dwc/pcie-qcom.c 	res->axi_m_clk = devm_clk_get(dev, "axi_m");
res               926 drivers/pci/controller/dwc/pcie-qcom.c 	if (IS_ERR(res->axi_m_clk))
res               927 drivers/pci/controller/dwc/pcie-qcom.c 		return PTR_ERR(res->axi_m_clk);
res               929 drivers/pci/controller/dwc/pcie-qcom.c 	res->axi_s_clk = devm_clk_get(dev, "axi_s");
res               930 drivers/pci/controller/dwc/pcie-qcom.c 	if (IS_ERR(res->axi_s_clk))
res               931 drivers/pci/controller/dwc/pcie-qcom.c 		return PTR_ERR(res->axi_s_clk);
res               933 drivers/pci/controller/dwc/pcie-qcom.c 	res->ahb_clk = devm_clk_get(dev, "ahb");
res               934 drivers/pci/controller/dwc/pcie-qcom.c 	if (IS_ERR(res->ahb_clk))
res               935 drivers/pci/controller/dwc/pcie-qcom.c 		return PTR_ERR(res->ahb_clk);
res               937 drivers/pci/controller/dwc/pcie-qcom.c 	res->aux_clk = devm_clk_get(dev, "aux");
res               938 drivers/pci/controller/dwc/pcie-qcom.c 	if (IS_ERR(res->aux_clk))
res               939 drivers/pci/controller/dwc/pcie-qcom.c 		return PTR_ERR(res->aux_clk);
res               942 drivers/pci/controller/dwc/pcie-qcom.c 		res->rst[i] = devm_reset_control_get(dev, rst_names[i]);
res               943 drivers/pci/controller/dwc/pcie-qcom.c 		if (IS_ERR(res->rst[i]))
res               944 drivers/pci/controller/dwc/pcie-qcom.c 			return PTR_ERR(res->rst[i]);
res               952 drivers/pci/controller/dwc/pcie-qcom.c 	struct qcom_pcie_resources_2_3_3 *res = &pcie->res.v2_3_3;
res               954 drivers/pci/controller/dwc/pcie-qcom.c 	clk_disable_unprepare(res->iface);
res               955 drivers/pci/controller/dwc/pcie-qcom.c 	clk_disable_unprepare(res->axi_m_clk);
res               956 drivers/pci/controller/dwc/pcie-qcom.c 	clk_disable_unprepare(res->axi_s_clk);
res               957 drivers/pci/controller/dwc/pcie-qcom.c 	clk_disable_unprepare(res->ahb_clk);
res               958 drivers/pci/controller/dwc/pcie-qcom.c 	clk_disable_unprepare(res->aux_clk);
res               963 drivers/pci/controller/dwc/pcie-qcom.c 	struct qcom_pcie_resources_2_3_3 *res = &pcie->res.v2_3_3;
res               969 drivers/pci/controller/dwc/pcie-qcom.c 	for (i = 0; i < ARRAY_SIZE(res->rst); i++) {
res               970 drivers/pci/controller/dwc/pcie-qcom.c 		ret = reset_control_assert(res->rst[i]);
res               979 drivers/pci/controller/dwc/pcie-qcom.c 	for (i = 0; i < ARRAY_SIZE(res->rst); i++) {
res               980 drivers/pci/controller/dwc/pcie-qcom.c 		ret = reset_control_deassert(res->rst[i]);
res               994 drivers/pci/controller/dwc/pcie-qcom.c 	ret = clk_prepare_enable(res->iface);
res              1000 drivers/pci/controller/dwc/pcie-qcom.c 	ret = clk_prepare_enable(res->axi_m_clk);
res              1006 drivers/pci/controller/dwc/pcie-qcom.c 	ret = clk_prepare_enable(res->axi_s_clk);
res              1012 drivers/pci/controller/dwc/pcie-qcom.c 	ret = clk_prepare_enable(res->ahb_clk);
res              1018 drivers/pci/controller/dwc/pcie-qcom.c 	ret = clk_prepare_enable(res->aux_clk);
res              1053 drivers/pci/controller/dwc/pcie-qcom.c 	clk_disable_unprepare(res->ahb_clk);
res              1055 drivers/pci/controller/dwc/pcie-qcom.c 	clk_disable_unprepare(res->axi_s_clk);
res              1057 drivers/pci/controller/dwc/pcie-qcom.c 	clk_disable_unprepare(res->axi_m_clk);
res              1059 drivers/pci/controller/dwc/pcie-qcom.c 	clk_disable_unprepare(res->iface);
res              1065 drivers/pci/controller/dwc/pcie-qcom.c 	for (i = 0; i < ARRAY_SIZE(res->rst); i++)
res              1066 drivers/pci/controller/dwc/pcie-qcom.c 		reset_control_assert(res->rst[i]);
res              1177 drivers/pci/controller/dwc/pcie-qcom.c 	struct resource *res;
res              1212 drivers/pci/controller/dwc/pcie-qcom.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "parf");
res              1213 drivers/pci/controller/dwc/pcie-qcom.c 	pcie->parf = devm_ioremap_resource(dev, res);
res              1219 drivers/pci/controller/dwc/pcie-qcom.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "dbi");
res              1220 drivers/pci/controller/dwc/pcie-qcom.c 	pci->dbi_base = devm_pci_remap_cfg_resource(dev, res);
res              1226 drivers/pci/controller/dwc/pcie-qcom.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "elbi");
res              1227 drivers/pci/controller/dwc/pcie-qcom.c 	pcie->elbi = devm_ioremap_resource(dev, res);
res               408 drivers/pci/controller/dwc/pcie-uniphier.c 	struct resource *res;
res               418 drivers/pci/controller/dwc/pcie-uniphier.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "dbi");
res               419 drivers/pci/controller/dwc/pcie-uniphier.c 	priv->pci.dbi_base = devm_pci_remap_cfg_resource(dev, res);
res               423 drivers/pci/controller/dwc/pcie-uniphier.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "link");
res               424 drivers/pci/controller/dwc/pcie-uniphier.c 	priv->base = devm_ioremap_resource(dev, res);
res               964 drivers/pci/controller/pci-aardvark.c 		struct resource *res = win->res;
res               966 drivers/pci/controller/pci-aardvark.c 		switch (resource_type(res)) {
res               968 drivers/pci/controller/pci-aardvark.c 			err = devm_pci_remap_iospace(dev, res, iobase);
res               971 drivers/pci/controller/pci-aardvark.c 					 err, res);
res               976 drivers/pci/controller/pci-aardvark.c 			res_valid |= !(res->flags & IORESOURCE_PREFETCH);
res               979 drivers/pci/controller/pci-aardvark.c 			pcie->root_bus_nr = res->start;
res              1001 drivers/pci/controller/pci-aardvark.c 	struct resource *res;
res              1012 drivers/pci/controller/pci-aardvark.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1013 drivers/pci/controller/pci-aardvark.c 	pcie->base = devm_ioremap_resource(dev, res);
res               444 drivers/pci/controller/pci-ftpci100.c 	LIST_HEAD(res);
res               484 drivers/pci/controller/pci-ftpci100.c 						    &res, &io_base);
res               488 drivers/pci/controller/pci-ftpci100.c 	ret = devm_request_pci_bus_resources(dev, &res);
res               493 drivers/pci/controller/pci-ftpci100.c 	resource_list_for_each_entry(win, &res) {
res               494 drivers/pci/controller/pci-ftpci100.c 		switch (resource_type(win->res)) {
res               496 drivers/pci/controller/pci-ftpci100.c 			io = win->res;
res               514 drivers/pci/controller/pci-ftpci100.c 			mem = win->res;
res               572 drivers/pci/controller/pci-ftpci100.c 	list_splice_init(&res, &host->windows);
res               584 drivers/pci/controller/pci-ftpci100.c 	pci_free_resource_list(&res);
res              1198 drivers/pci/controller/pci-hyperv.c 	u64 res;
res              1239 drivers/pci/controller/pci-hyperv.c 			res = 1;
res              1248 drivers/pci/controller/pci-hyperv.c 			res = 1;
res              1265 drivers/pci/controller/pci-hyperv.c 	res = hv_do_hypercall(HVCALL_RETARGET_INTERRUPT | (var_size << 17),
res              1271 drivers/pci/controller/pci-hyperv.c 	if (res) {
res              1273 drivers/pci/controller/pci-hyperv.c 			"%s() failed: %#llx", __func__, res);
res               678 drivers/pci/controller/pci-mvebu.c 						 const struct resource *res,
res               697 drivers/pci/controller/pci-mvebu.c 	if (res->flags & IORESOURCE_IO)
res               700 drivers/pci/controller/pci-mvebu.c 	else if (res->flags & IORESOURCE_MEM)
res              1494 drivers/pci/controller/pci-tegra.c 	struct resource *pads, *afi, *res;
res              1533 drivers/pci/controller/pci-tegra.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "cs");
res              1534 drivers/pci/controller/pci-tegra.c 	if (!res) {
res              1539 drivers/pci/controller/pci-tegra.c 	pcie->cs = *res;
res              2164 drivers/pci/controller/pci-tegra.c 	struct resource res;
res              2173 drivers/pci/controller/pci-tegra.c 		err = of_pci_range_to_resource(&range, np, &res);
res              2177 drivers/pci/controller/pci-tegra.c 		switch (res.flags & IORESOURCE_TYPE_BITS) {
res              2180 drivers/pci/controller/pci-tegra.c 			pcie->offset.io = res.start - range.pci_addr;
res              2182 drivers/pci/controller/pci-tegra.c 			memcpy(&pcie->pio, &res, sizeof(res));
res              2198 drivers/pci/controller/pci-tegra.c 			memcpy(&res, &pcie->io, sizeof(res));
res              2208 drivers/pci/controller/pci-tegra.c 			pcie->offset.mem = res.start - range.pci_addr;
res              2210 drivers/pci/controller/pci-tegra.c 			if (res.flags & IORESOURCE_PREFETCH) {
res              2211 drivers/pci/controller/pci-tegra.c 				memcpy(&pcie->prefetch, &res, sizeof(res));
res              2214 drivers/pci/controller/pci-tegra.c 				memcpy(&pcie->mem, &res, sizeof(res));
res               119 drivers/pci/controller/pci-thunder-ecam.c 	node_bits = (cfg->res.start >> 32) & (1 << 12);
res               337 drivers/pci/controller/pci-thunder-pem.c 	struct resource *res;
res               344 drivers/pci/controller/pci-thunder-pem.c 	res = request_mem_region(start, end - start + 1, regionid);
res               345 drivers/pci/controller/pci-thunder-pem.c 	if (res)
res               346 drivers/pci/controller/pci-thunder-pem.c 		res->flags &= ~IORESOURCE_BUSY;
res               351 drivers/pci/controller/pci-thunder-pem.c 		 res ? "has been" : "could not be");
res               399 drivers/pci/controller/pci-thunder-pem.c 		thunder_pem_reserve_range(dev, root->segment, &cfg->res);
res               532 drivers/pci/controller/pci-v3-semi.c 	switch (resource_type(win->res)) {
res               534 drivers/pci/controller/pci-v3-semi.c 		io = win->res;
res               555 drivers/pci/controller/pci-v3-semi.c 		mem = win->res;
res               603 drivers/pci/controller/pci-v3-semi.c 		dev_dbg(dev, "BUS %pR\n", win->res);
res               604 drivers/pci/controller/pci-v3-semi.c 		host->busnr = win->res->start;
res               608 drivers/pci/controller/pci-v3-semi.c 			 resource_type(win->res));
res               744 drivers/pci/controller/pci-v3-semi.c 	LIST_HEAD(res);
res               796 drivers/pci/controller/pci-v3-semi.c 	ret = devm_of_pci_get_host_bridge_resources(dev, 0, 0xff, &res,
res               801 drivers/pci/controller/pci-v3-semi.c 	ret = devm_request_pci_bus_resources(dev, &res);
res               855 drivers/pci/controller/pci-v3-semi.c 	resource_list_for_each_entry(win, &res) {
res               934 drivers/pci/controller/pci-v3-semi.c 	list_splice_init(&res, &host->windows);
res                66 drivers/pci/controller/pci-versatile.c 						     struct list_head *res)
res                72 drivers/pci/controller/pci-versatile.c 	err = devm_of_pci_get_host_bridge_resources(dev, 0, 0xff, res, &iobase);
res                76 drivers/pci/controller/pci-versatile.c 	err = devm_request_pci_bus_resources(dev, res);
res                80 drivers/pci/controller/pci-versatile.c 	resource_list_for_each_entry_safe(win, tmp, res) {
res                81 drivers/pci/controller/pci-versatile.c 		struct resource *res = win->res;
res                83 drivers/pci/controller/pci-versatile.c 		switch (resource_type(res)) {
res                85 drivers/pci/controller/pci-versatile.c 			err = devm_pci_remap_iospace(dev, res, iobase);
res                88 drivers/pci/controller/pci-versatile.c 					 err, res);
res                93 drivers/pci/controller/pci-versatile.c 			res_valid |= !(res->flags & IORESOURCE_PREFETCH);
res                95 drivers/pci/controller/pci-versatile.c 			writel(res->start >> 28, PCI_IMAP(mem));
res               110 drivers/pci/controller/pci-versatile.c 	pci_free_resource_list(res);
res               117 drivers/pci/controller/pci-versatile.c 	struct resource *res;
res               129 drivers/pci/controller/pci-versatile.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               130 drivers/pci/controller/pci-versatile.c 	versatile_pci_base = devm_ioremap_resource(dev, res);
res               134 drivers/pci/controller/pci-versatile.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res               135 drivers/pci/controller/pci-versatile.c 	versatile_cfg_base[0] = devm_ioremap_resource(dev, res);
res               139 drivers/pci/controller/pci-versatile.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 2);
res               140 drivers/pci/controller/pci-versatile.c 	versatile_cfg_base[1] = devm_pci_remap_cfg_resource(dev, res);
res               445 drivers/pci/controller/pci-xgene-msi.c 	struct resource *res;
res               455 drivers/pci/controller/pci-xgene-msi.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               456 drivers/pci/controller/pci-xgene-msi.c 	xgene_msi->msi_regs = devm_ioremap_resource(&pdev->dev, res);
res               462 drivers/pci/controller/pci-xgene-msi.c 	xgene_msi->msi_addr = res->start;
res               196 drivers/pci/controller/pci-xgene.c 				  struct resource *res)
res               221 drivers/pci/controller/pci-xgene.c 	*res = *entry->res;
res               351 drivers/pci/controller/pci-xgene.c 	struct resource *res;
res               353 drivers/pci/controller/pci-xgene.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "csr");
res               354 drivers/pci/controller/pci-xgene.c 	port->csr_base = devm_pci_remap_cfg_resource(dev, res);
res               358 drivers/pci/controller/pci-xgene.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "cfg");
res               359 drivers/pci/controller/pci-xgene.c 	port->cfg_base = devm_ioremap_resource(dev, res);
res               362 drivers/pci/controller/pci-xgene.c 	port->cfg_addr = res->start;
res               368 drivers/pci/controller/pci-xgene.c 				    struct resource *res, u32 offset,
res               372 drivers/pci/controller/pci-xgene.c 	resource_size_t size = resource_size(res);
res               373 drivers/pci/controller/pci-xgene.c 	u64 restype = resource_type(res);
res               409 drivers/pci/controller/pci-xgene.c 				 struct list_head *res,
res               416 drivers/pci/controller/pci-xgene.c 	resource_list_for_each_entry(window, res) {
res               417 drivers/pci/controller/pci-xgene.c 		struct resource *res = window->res;
res               418 drivers/pci/controller/pci-xgene.c 		u64 restype = resource_type(res);
res               420 drivers/pci/controller/pci-xgene.c 		dev_dbg(dev, "%pR\n", res);
res               424 drivers/pci/controller/pci-xgene.c 			xgene_pcie_setup_ob_reg(port, res, OMR3BARL, io_base,
res               425 drivers/pci/controller/pci-xgene.c 						res->start - window->offset);
res               426 drivers/pci/controller/pci-xgene.c 			ret = devm_pci_remap_iospace(dev, res, io_base);
res               431 drivers/pci/controller/pci-xgene.c 			if (res->flags & IORESOURCE_PREFETCH)
res               432 drivers/pci/controller/pci-xgene.c 				xgene_pcie_setup_ob_reg(port, res, OMR2BARL,
res               433 drivers/pci/controller/pci-xgene.c 							res->start,
res               434 drivers/pci/controller/pci-xgene.c 							res->start -
res               437 drivers/pci/controller/pci-xgene.c 				xgene_pcie_setup_ob_reg(port, res, OMR1BARL,
res               438 drivers/pci/controller/pci-xgene.c 							res->start,
res               439 drivers/pci/controller/pci-xgene.c 							res->start -
res               445 drivers/pci/controller/pci-xgene.c 			dev_err(dev, "invalid resource %pR\n", res);
res               570 drivers/pci/controller/pci-xgene.c static int xgene_pcie_setup(struct xgene_pcie_port *port, struct list_head *res,
res               583 drivers/pci/controller/pci-xgene.c 	ret = xgene_pcie_map_ranges(port, res, io_base);
res               614 drivers/pci/controller/pci-xgene.c 	LIST_HEAD(res);
res               637 drivers/pci/controller/pci-xgene.c 	ret = devm_of_pci_get_host_bridge_resources(dev, 0, 0xff, &res,
res               642 drivers/pci/controller/pci-xgene.c 	ret = devm_request_pci_bus_resources(dev, &res);
res               646 drivers/pci/controller/pci-xgene.c 	ret = xgene_pcie_setup(port, &res, iobase);
res               650 drivers/pci/controller/pci-xgene.c 	list_splice_init(&res, &bridge->windows);
res               671 drivers/pci/controller/pci-xgene.c 	pci_free_resource_list(&res);
res               220 drivers/pci/controller/pcie-altera-msi.c 	struct resource *res;
res               231 drivers/pci/controller/pcie-altera-msi.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "csr");
res               232 drivers/pci/controller/pcie-altera-msi.c 	msi->csr_base = devm_ioremap_resource(&pdev->dev, res);
res               238 drivers/pci/controller/pcie-altera-msi.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
res               240 drivers/pci/controller/pcie-altera-msi.c 	msi->vector_base = devm_ioremap_resource(&pdev->dev, res);
res               246 drivers/pci/controller/pcie-altera-msi.c 	msi->vector_phy = res->start;
res               689 drivers/pci/controller/pcie-altera.c 		struct resource *res = win->res;
res               691 drivers/pci/controller/pcie-altera.c 		if (resource_type(res) == IORESOURCE_MEM)
res               692 drivers/pci/controller/pcie-altera.c 			res_valid |= !(res->flags & IORESOURCE_PREFETCH);
res               440 drivers/pci/controller/pcie-cadence-ep.c 	struct resource *res;
res               451 drivers/pci/controller/pcie-cadence-ep.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "reg");
res               452 drivers/pci/controller/pcie-cadence-ep.c 	pcie->reg_base = devm_ioremap_resource(dev, res);
res               458 drivers/pci/controller/pcie-cadence-ep.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "mem");
res               459 drivers/pci/controller/pcie-cadence-ep.c 	if (!res) {
res               463 drivers/pci/controller/pcie-cadence-ep.c 	pcie->mem_res = res;
res               244 drivers/pci/controller/pcie-cadence-host.c 	struct resource *res;
res               270 drivers/pci/controller/pcie-cadence-host.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "reg");
res               271 drivers/pci/controller/pcie-cadence-host.c 	pcie->reg_base = devm_ioremap_resource(dev, res);
res               277 drivers/pci/controller/pcie-cadence-host.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "cfg");
res               278 drivers/pci/controller/pcie-cadence-host.c 	rc->cfg_base = devm_pci_remap_cfg_resource(dev, res);
res               283 drivers/pci/controller/pcie-cadence-host.c 	rc->cfg_res = res;
res               285 drivers/pci/controller/pcie-cadence-host.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "mem");
res               286 drivers/pci/controller/pcie-cadence-host.c 	if (!res) {
res               290 drivers/pci/controller/pcie-cadence-host.c 	pcie->mem_res = res;
res              1027 drivers/pci/controller/pcie-iproc.c 		struct resource *res = window->res;
res              1028 drivers/pci/controller/pcie-iproc.c 		u64 res_type = resource_type(res);
res              1035 drivers/pci/controller/pcie-iproc.c 			ret = iproc_pcie_setup_ob(pcie, res->start,
res              1036 drivers/pci/controller/pcie-iproc.c 						  res->start - window->offset,
res              1037 drivers/pci/controller/pcie-iproc.c 						  resource_size(res));
res              1042 drivers/pci/controller/pcie-iproc.c 			dev_err(dev, "invalid resource %pR\n", res);
res              1189 drivers/pci/controller/pcie-iproc.c 	struct resource *res;
res              1193 drivers/pci/controller/pcie-iproc.c 	res = devm_kzalloc(dev, sizeof(struct resource), GFP_KERNEL);
res              1194 drivers/pci/controller/pcie-iproc.c 	if (!res)
res              1198 drivers/pci/controller/pcie-iproc.c 		if (tmp->res->start < range->cpu_addr)
res              1202 drivers/pci/controller/pcie-iproc.c 	res->start = range->cpu_addr;
res              1203 drivers/pci/controller/pcie-iproc.c 	res->end = res->start + range->size - 1;
res              1205 drivers/pci/controller/pcie-iproc.c 	entry = resource_list_create_entry(res, 0);
res              1209 drivers/pci/controller/pcie-iproc.c 	entry->offset = res->start - range->cpu_addr;
res              1254 drivers/pci/controller/pcie-iproc.c 	struct resource res;
res              1266 drivers/pci/controller/pcie-iproc.c 	ret = of_address_to_resource(msi_node, 0, &res);
res              1272 drivers/pci/controller/pcie-iproc.c 	*msi_addr = res.start + GITS_TRANSLATER;
res              1486 drivers/pci/controller/pcie-iproc.c int iproc_pcie_setup(struct iproc_pcie *pcie, struct list_head *res)
res              1501 drivers/pci/controller/pcie-iproc.c 	ret = devm_request_pci_bus_resources(dev, res);
res              1521 drivers/pci/controller/pcie-iproc.c 		ret = iproc_pcie_map_ranges(pcie, res);
res              1546 drivers/pci/controller/pcie-iproc.c 	list_splice_init(res, &host->windows);
res               109 drivers/pci/controller/pcie-iproc.h int iproc_pcie_setup(struct iproc_pcie *pcie, struct list_head *res);
res              1041 drivers/pci/controller/pcie-mediatek.c 		switch (resource_type(win->res)) {
res              1043 drivers/pci/controller/pcie-mediatek.c 			err = devm_pci_remap_iospace(dev, win->res, io_base);
res              1046 drivers/pci/controller/pcie-mediatek.c 					 err, win->res);
res              1051 drivers/pci/controller/pcie-mediatek.c 			memcpy(&pcie->mem, win->res, sizeof(*win->res));
res              1055 drivers/pci/controller/pcie-mediatek.c 			pcie->busnr = win->res->start;
res               428 drivers/pci/controller/pcie-mobiveil.c 	struct resource *res;
res               431 drivers/pci/controller/pcie-mobiveil.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
res               433 drivers/pci/controller/pcie-mobiveil.c 	pcie->config_axi_slave_base = devm_pci_remap_cfg_resource(dev, res);
res               436 drivers/pci/controller/pcie-mobiveil.c 	pcie->ob_io_res = res;
res               439 drivers/pci/controller/pcie-mobiveil.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
res               441 drivers/pci/controller/pcie-mobiveil.c 	pcie->csr_axi_slave_base = devm_pci_remap_cfg_resource(dev, res);
res               444 drivers/pci/controller/pcie-mobiveil.c 	pcie->pcie_reg_base = res->start;
res               447 drivers/pci/controller/pcie-mobiveil.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "apb_csr");
res               448 drivers/pci/controller/pcie-mobiveil.c 	pcie->apb_csr_base = devm_pci_remap_cfg_resource(dev, res);
res               640 drivers/pci/controller/pcie-mobiveil.c 		if (resource_type(win->res) == IORESOURCE_MEM)
res               642 drivers/pci/controller/pcie-mobiveil.c 		else if (resource_type(win->res) == IORESOURCE_IO)
res               649 drivers/pci/controller/pcie-mobiveil.c 				   win->res->start,
res               650 drivers/pci/controller/pcie-mobiveil.c 				   win->res->start - win->offset,
res               651 drivers/pci/controller/pcie-mobiveil.c 				   type, resource_size(win->res));
res               338 drivers/pci/controller/pcie-rcar.c 				   struct resource *res)
res               351 drivers/pci/controller/pcie-rcar.c 	size = resource_size(res);
res               355 drivers/pci/controller/pcie-rcar.c 	if (res->flags & IORESOURCE_IO)
res               356 drivers/pci/controller/pcie-rcar.c 		res_start = pci_pio_to_address(res->start);
res               358 drivers/pci/controller/pcie-rcar.c 		res_start = res->start;
res               366 drivers/pci/controller/pcie-rcar.c 	if (res->flags & IORESOURCE_IO)
res               379 drivers/pci/controller/pcie-rcar.c 		struct resource *res = win->res;
res               381 drivers/pci/controller/pcie-rcar.c 		if (!res->flags)
res               384 drivers/pci/controller/pcie-rcar.c 		switch (resource_type(res)) {
res               387 drivers/pci/controller/pcie-rcar.c 			rcar_pcie_setup_window(i, pci, res);
res               391 drivers/pci/controller/pcie-rcar.c 			pci->root_bus_nr = res->start;
res               397 drivers/pci/controller/pcie-rcar.c 		pci_add_resource(resource, res);
res               976 drivers/pci/controller/pcie-rcar.c 	struct resource res;
res               983 drivers/pci/controller/pcie-rcar.c 	err = of_address_to_resource(dev->of_node, 0, &res);
res               987 drivers/pci/controller/pcie-rcar.c 	pcie->base = devm_ioremap_resource(dev, &res);
res               959 drivers/pci/controller/pcie-rockchip-host.c 	LIST_HEAD(res);
res               999 drivers/pci/controller/pcie-rockchip-host.c 						    &res, &io_base);
res              1003 drivers/pci/controller/pcie-rockchip-host.c 	err = devm_request_pci_bus_resources(dev, &res);
res              1008 drivers/pci/controller/pcie-rockchip-host.c 	resource_list_for_each_entry(win, &res) {
res              1009 drivers/pci/controller/pcie-rockchip-host.c 		switch (resource_type(win->res)) {
res              1011 drivers/pci/controller/pcie-rockchip-host.c 			io = win->res;
res              1024 drivers/pci/controller/pcie-rockchip-host.c 			mem = win->res;
res              1030 drivers/pci/controller/pcie-rockchip-host.c 			rockchip->root_bus_nr = win->res->start;
res              1047 drivers/pci/controller/pcie-rockchip-host.c 	list_splice_init(&res, &bridge->windows);
res              1074 drivers/pci/controller/pcie-rockchip-host.c 	pci_free_resource_list(&res);
res               239 drivers/pci/controller/pcie-tango.c 	struct resource *res;
res               253 drivers/pci/controller/pcie-tango.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res               254 drivers/pci/controller/pcie-tango.c 	pcie->base = devm_ioremap_resource(dev, res);
res               270 drivers/pci/controller/pcie-tango.c 	pcie->msi_doorbell = range.pci_addr + res->start + SMP8759_DOORBELL;
res               778 drivers/pci/controller/pcie-xilinx-nwl.c 	struct resource *res;
res               780 drivers/pci/controller/pcie-xilinx-nwl.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "breg");
res               781 drivers/pci/controller/pcie-xilinx-nwl.c 	pcie->breg_base = devm_ioremap_resource(dev, res);
res               784 drivers/pci/controller/pcie-xilinx-nwl.c 	pcie->phys_breg_base = res->start;
res               786 drivers/pci/controller/pcie-xilinx-nwl.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "pcireg");
res               787 drivers/pci/controller/pcie-xilinx-nwl.c 	pcie->pcireg_base = devm_ioremap_resource(dev, res);
res               790 drivers/pci/controller/pcie-xilinx-nwl.c 	pcie->phys_pcie_reg_base = res->start;
res               792 drivers/pci/controller/pcie-xilinx-nwl.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "cfg");
res               793 drivers/pci/controller/pcie-xilinx-nwl.c 	pcie->ecam_base = devm_pci_remap_cfg_resource(dev, res);
res               796 drivers/pci/controller/pcie-xilinx-nwl.c 	pcie->phys_ecam_base = res->start;
res               825 drivers/pci/controller/pcie-xilinx-nwl.c 	LIST_HEAD(res);
res               848 drivers/pci/controller/pcie-xilinx-nwl.c 	err = devm_of_pci_get_host_bridge_resources(dev, 0, 0xff, &res,
res               855 drivers/pci/controller/pcie-xilinx-nwl.c 	err = devm_request_pci_bus_resources(dev, &res);
res               865 drivers/pci/controller/pcie-xilinx-nwl.c 	list_splice_init(&res, &bridge->windows);
res               894 drivers/pci/controller/pcie-xilinx-nwl.c 	pci_free_resource_list(&res);
res               623 drivers/pci/controller/pcie-xilinx.c 	LIST_HEAD(res);
res               650 drivers/pci/controller/pcie-xilinx.c 	err = devm_of_pci_get_host_bridge_resources(dev, 0, 0xff, &res,
res               657 drivers/pci/controller/pcie-xilinx.c 	err = devm_request_pci_bus_resources(dev, &res);
res               662 drivers/pci/controller/pcie-xilinx.c 	list_splice_init(&res, &bridge->windows);
res               687 drivers/pci/controller/pcie-xilinx.c 	pci_free_resource_list(&res);
res               566 drivers/pci/controller/vmd.c 	struct resource *res;
res               617 drivers/pci/controller/vmd.c 	res = &vmd->dev->resource[VMD_CFGBAR];
res               621 drivers/pci/controller/vmd.c 		.end   = vmd->busn_start + (resource_size(res) >> 20) - 1,
res               642 drivers/pci/controller/vmd.c 	res = &vmd->dev->resource[VMD_MEMBAR1];
res               643 drivers/pci/controller/vmd.c 	upper_bits = upper_32_bits(res->end);
res               644 drivers/pci/controller/vmd.c 	flags = res->flags & ~IORESOURCE_SIZEALIGN;
res               649 drivers/pci/controller/vmd.c 		.start = res->start,
res               650 drivers/pci/controller/vmd.c 		.end   = res->end,
res               652 drivers/pci/controller/vmd.c 		.parent = res,
res               655 drivers/pci/controller/vmd.c 	res = &vmd->dev->resource[VMD_MEMBAR2];
res               656 drivers/pci/controller/vmd.c 	upper_bits = upper_32_bits(res->end);
res               657 drivers/pci/controller/vmd.c 	flags = res->flags & ~IORESOURCE_SIZEALIGN;
res               662 drivers/pci/controller/vmd.c 		.start = res->start + membar2_offset,
res               663 drivers/pci/controller/vmd.c 		.end   = res->end,
res               665 drivers/pci/controller/vmd.c 		.parent = res,
res                58 drivers/pci/ecam.c 	cfg->res.start = cfgres->start;
res                59 drivers/pci/ecam.c 	cfg->res.end = cfgres->end;
res                60 drivers/pci/ecam.c 	cfg->res.flags = IORESOURCE_MEM | IORESOURCE_BUSY;
res                61 drivers/pci/ecam.c 	cfg->res.name = "PCI ECAM";
res                63 drivers/pci/ecam.c 	conflict = request_resource_conflict(&iomem_resource, &cfg->res);
res                67 drivers/pci/ecam.c 			&cfg->res, conflict->name, conflict);
res                93 drivers/pci/ecam.c 	dev_info(dev, "ECAM at %pR for %pR\n", &cfg->res, &cfg->busr);
res               120 drivers/pci/ecam.c 	if (cfg->res.parent)
res               121 drivers/pci/ecam.c 		release_resource(&cfg->res);
res                20 drivers/pci/endpoint/pci-epc-core.c static void devm_pci_epc_release(struct device *dev, void *res)
res                22 drivers/pci/endpoint/pci-epc-core.c 	struct pci_epc *epc = *(struct pci_epc **)res;
res                27 drivers/pci/endpoint/pci-epc-core.c static int devm_pci_epc_match(struct device *dev, void *res, void *match_data)
res                29 drivers/pci/endpoint/pci-epc-core.c 	struct pci_epc **epc = res;
res                51 drivers/pci/host-bridge.c 			     struct resource *res)
res                58 drivers/pci/host-bridge.c 		if (resource_contains(window->res, res)) {
res                64 drivers/pci/host-bridge.c 	region->start = res->start - offset;
res                65 drivers/pci/host-bridge.c 	region->end = res->end - offset;
res                75 drivers/pci/host-bridge.c void pcibios_bus_to_resource(struct pci_bus *bus, struct resource *res,
res                85 drivers/pci/host-bridge.c 		if (resource_type(res) != resource_type(window->res))
res                88 drivers/pci/host-bridge.c 		bus_region.start = window->res->start - window->offset;
res                89 drivers/pci/host-bridge.c 		bus_region.end = window->res->end - window->offset;
res                97 drivers/pci/host-bridge.c 	res->start = region->start + offset;
res                98 drivers/pci/host-bridge.c 	res->end = region->end + offset;
res               733 drivers/pci/hotplug/acpiphp_glue.c 			struct resource *res = &dev->resource[i];
res               734 drivers/pci/hotplug/acpiphp_glue.c 			if ((res->flags & type_mask) && !res->start &&
res               735 drivers/pci/hotplug/acpiphp_glue.c 					res->end) {
res                66 drivers/pci/hotplug/acpiphp_ibm.c 		u8  res[3];
res              1253 drivers/pci/hotplug/cpqphp_core.c 	struct pci_resource *res;
res              1275 drivers/pci/hotplug/cpqphp_core.c 		res = ctrl->io_head;
res              1276 drivers/pci/hotplug/cpqphp_core.c 		while (res) {
res              1277 drivers/pci/hotplug/cpqphp_core.c 			tres = res;
res              1278 drivers/pci/hotplug/cpqphp_core.c 			res = res->next;
res              1282 drivers/pci/hotplug/cpqphp_core.c 		res = ctrl->mem_head;
res              1283 drivers/pci/hotplug/cpqphp_core.c 		while (res) {
res              1284 drivers/pci/hotplug/cpqphp_core.c 			tres = res;
res              1285 drivers/pci/hotplug/cpqphp_core.c 			res = res->next;
res              1289 drivers/pci/hotplug/cpqphp_core.c 		res = ctrl->p_mem_head;
res              1290 drivers/pci/hotplug/cpqphp_core.c 		while (res) {
res              1291 drivers/pci/hotplug/cpqphp_core.c 			tres = res;
res              1292 drivers/pci/hotplug/cpqphp_core.c 			res = res->next;
res              1296 drivers/pci/hotplug/cpqphp_core.c 		res = ctrl->bus_head;
res              1297 drivers/pci/hotplug/cpqphp_core.c 		while (res) {
res              1298 drivers/pci/hotplug/cpqphp_core.c 			tres = res;
res              1299 drivers/pci/hotplug/cpqphp_core.c 			res = res->next;
res              1313 drivers/pci/hotplug/cpqphp_core.c 			res = next->io_head;
res              1314 drivers/pci/hotplug/cpqphp_core.c 			while (res) {
res              1315 drivers/pci/hotplug/cpqphp_core.c 				tres = res;
res              1316 drivers/pci/hotplug/cpqphp_core.c 				res = res->next;
res              1320 drivers/pci/hotplug/cpqphp_core.c 			res = next->mem_head;
res              1321 drivers/pci/hotplug/cpqphp_core.c 			while (res) {
res              1322 drivers/pci/hotplug/cpqphp_core.c 				tres = res;
res              1323 drivers/pci/hotplug/cpqphp_core.c 				res = res->next;
res              1327 drivers/pci/hotplug/cpqphp_core.c 			res = next->p_mem_head;
res              1328 drivers/pci/hotplug/cpqphp_core.c 			while (res) {
res              1329 drivers/pci/hotplug/cpqphp_core.c 				tres = res;
res              1330 drivers/pci/hotplug/cpqphp_core.c 				res = res->next;
res              1334 drivers/pci/hotplug/cpqphp_core.c 			res = next->bus_head;
res              1335 drivers/pci/hotplug/cpqphp_core.c 			while (res) {
res              1336 drivers/pci/hotplug/cpqphp_core.c 				tres = res;
res              1337 drivers/pci/hotplug/cpqphp_core.c 				res = res->next;
res              1476 drivers/pci/hotplug/cpqphp_pci.c 	struct pci_resource *res, *tres;
res              1478 drivers/pci/hotplug/cpqphp_pci.c 	res = resources->io_head;
res              1481 drivers/pci/hotplug/cpqphp_pci.c 	while (res) {
res              1482 drivers/pci/hotplug/cpqphp_pci.c 		tres = res;
res              1483 drivers/pci/hotplug/cpqphp_pci.c 		res = res->next;
res              1487 drivers/pci/hotplug/cpqphp_pci.c 	res = resources->mem_head;
res              1490 drivers/pci/hotplug/cpqphp_pci.c 	while (res) {
res              1491 drivers/pci/hotplug/cpqphp_pci.c 		tres = res;
res              1492 drivers/pci/hotplug/cpqphp_pci.c 		res = res->next;
res              1496 drivers/pci/hotplug/cpqphp_pci.c 	res = resources->p_mem_head;
res              1499 drivers/pci/hotplug/cpqphp_pci.c 	while (res) {
res              1500 drivers/pci/hotplug/cpqphp_pci.c 		tres = res;
res              1501 drivers/pci/hotplug/cpqphp_pci.c 		res = res->next;
res              1505 drivers/pci/hotplug/cpqphp_pci.c 	res = resources->bus_head;
res              1508 drivers/pci/hotplug/cpqphp_pci.c 	while (res) {
res              1509 drivers/pci/hotplug/cpqphp_pci.c 		tres = res;
res              1510 drivers/pci/hotplug/cpqphp_pci.c 		res = res->next;
res              1523 drivers/pci/hotplug/cpqphp_pci.c 	struct pci_resource *res, *tres;
res              1525 drivers/pci/hotplug/cpqphp_pci.c 	res = func->io_head;
res              1528 drivers/pci/hotplug/cpqphp_pci.c 	while (res) {
res              1529 drivers/pci/hotplug/cpqphp_pci.c 		tres = res;
res              1530 drivers/pci/hotplug/cpqphp_pci.c 		res = res->next;
res              1534 drivers/pci/hotplug/cpqphp_pci.c 	res = func->mem_head;
res              1537 drivers/pci/hotplug/cpqphp_pci.c 	while (res) {
res              1538 drivers/pci/hotplug/cpqphp_pci.c 		tres = res;
res              1539 drivers/pci/hotplug/cpqphp_pci.c 		res = res->next;
res              1543 drivers/pci/hotplug/cpqphp_pci.c 	res = func->p_mem_head;
res              1546 drivers/pci/hotplug/cpqphp_pci.c 	while (res) {
res              1547 drivers/pci/hotplug/cpqphp_pci.c 		tres = res;
res              1548 drivers/pci/hotplug/cpqphp_pci.c 		res = res->next;
res              1552 drivers/pci/hotplug/cpqphp_pci.c 	res = func->bus_head;
res              1555 drivers/pci/hotplug/cpqphp_pci.c 	while (res) {
res              1556 drivers/pci/hotplug/cpqphp_pci.c 		tres = res;
res              1557 drivers/pci/hotplug/cpqphp_pci.c 		res = res->next;
res                32 drivers/pci/hotplug/cpqphp_sysfs.c 	struct pci_resource *res;
res                36 drivers/pci/hotplug/cpqphp_sysfs.c 	res = ctrl->mem_head;
res                37 drivers/pci/hotplug/cpqphp_sysfs.c 	while (res && index--) {
res                38 drivers/pci/hotplug/cpqphp_sysfs.c 		out += sprintf(out, "start = %8.8x, length = %8.8x\n", res->base, res->length);
res                39 drivers/pci/hotplug/cpqphp_sysfs.c 		res = res->next;
res                43 drivers/pci/hotplug/cpqphp_sysfs.c 	res = ctrl->p_mem_head;
res                44 drivers/pci/hotplug/cpqphp_sysfs.c 	while (res && index--) {
res                45 drivers/pci/hotplug/cpqphp_sysfs.c 		out += sprintf(out, "start = %8.8x, length = %8.8x\n", res->base, res->length);
res                46 drivers/pci/hotplug/cpqphp_sysfs.c 		res = res->next;
res                50 drivers/pci/hotplug/cpqphp_sysfs.c 	res = ctrl->io_head;
res                51 drivers/pci/hotplug/cpqphp_sysfs.c 	while (res && index--) {
res                52 drivers/pci/hotplug/cpqphp_sysfs.c 		out += sprintf(out, "start = %8.8x, length = %8.8x\n", res->base, res->length);
res                53 drivers/pci/hotplug/cpqphp_sysfs.c 		res = res->next;
res                57 drivers/pci/hotplug/cpqphp_sysfs.c 	res = ctrl->bus_head;
res                58 drivers/pci/hotplug/cpqphp_sysfs.c 	while (res && index--) {
res                59 drivers/pci/hotplug/cpqphp_sysfs.c 		out += sprintf(out, "start = %8.8x, length = %8.8x\n", res->base, res->length);
res                60 drivers/pci/hotplug/cpqphp_sysfs.c 		res = res->next;
res                70 drivers/pci/hotplug/cpqphp_sysfs.c 	struct pci_resource *res;
res                82 drivers/pci/hotplug/cpqphp_sysfs.c 		res = new_slot->mem_head;
res                83 drivers/pci/hotplug/cpqphp_sysfs.c 		while (res && index--) {
res                84 drivers/pci/hotplug/cpqphp_sysfs.c 			out += sprintf(out, "start = %8.8x, length = %8.8x\n", res->base, res->length);
res                85 drivers/pci/hotplug/cpqphp_sysfs.c 			res = res->next;
res                89 drivers/pci/hotplug/cpqphp_sysfs.c 		res = new_slot->p_mem_head;
res                90 drivers/pci/hotplug/cpqphp_sysfs.c 		while (res && index--) {
res                91 drivers/pci/hotplug/cpqphp_sysfs.c 			out += sprintf(out, "start = %8.8x, length = %8.8x\n", res->base, res->length);
res                92 drivers/pci/hotplug/cpqphp_sysfs.c 			res = res->next;
res                96 drivers/pci/hotplug/cpqphp_sysfs.c 		res = new_slot->io_head;
res                97 drivers/pci/hotplug/cpqphp_sysfs.c 		while (res && index--) {
res                98 drivers/pci/hotplug/cpqphp_sysfs.c 			out += sprintf(out, "start = %8.8x, length = %8.8x\n", res->base, res->length);
res                99 drivers/pci/hotplug/cpqphp_sysfs.c 			res = res->next;
res               103 drivers/pci/hotplug/cpqphp_sysfs.c 		res = new_slot->bus_head;
res               104 drivers/pci/hotplug/cpqphp_sysfs.c 		while (res && index--) {
res               105 drivers/pci/hotplug/cpqphp_sysfs.c 			out += sprintf(out, "start = %8.8x, length = %8.8x\n", res->base, res->length);
res               106 drivers/pci/hotplug/cpqphp_sysfs.c 			res = res->next;
res               445 drivers/pci/hotplug/ibmphp_res.c 	struct resource_node *res = NULL;
res               451 drivers/pci/hotplug/ibmphp_res.c 				res = bus_cur->firstMem;
res               455 drivers/pci/hotplug/ibmphp_res.c 				res = bus_cur->firstPFMem;
res               459 drivers/pci/hotplug/ibmphp_res.c 				res = bus_cur->firstIO;
res               463 drivers/pci/hotplug/ibmphp_res.c 	if (res) {
res               464 drivers/pci/hotplug/ibmphp_res.c 		while (res) {
res               465 drivers/pci/hotplug/ibmphp_res.c 			if (res->rangeno == rangeno)
res               467 drivers/pci/hotplug/ibmphp_res.c 			if (res->next)
res               468 drivers/pci/hotplug/ibmphp_res.c 				res = res->next;
res               469 drivers/pci/hotplug/ibmphp_res.c 			else if (res->nextRange)
res               470 drivers/pci/hotplug/ibmphp_res.c 				res = res->nextRange;
res               479 drivers/pci/hotplug/ibmphp_res.c 			while (res) {
res               480 drivers/pci/hotplug/ibmphp_res.c 				++res->rangeno;
res               481 drivers/pci/hotplug/ibmphp_res.c 				res = res->next;
res               487 drivers/pci/hotplug/ibmphp_res.c static void fix_me(struct resource_node *res, struct bus_node *bus_cur, struct range_node *range)
res               490 drivers/pci/hotplug/ibmphp_res.c 	switch (res->type) {
res               502 drivers/pci/hotplug/ibmphp_res.c 	while (res) {
res               503 drivers/pci/hotplug/ibmphp_res.c 		if (res->rangeno == -1) {
res               505 drivers/pci/hotplug/ibmphp_res.c 				if ((res->start >= range->start) && (res->end <= range->end)) {
res               506 drivers/pci/hotplug/ibmphp_res.c 					res->rangeno = range->rangeno;
res               507 drivers/pci/hotplug/ibmphp_res.c 					debug("%s->rangeno in fix_resources is %d\n", str, res->rangeno);
res               508 drivers/pci/hotplug/ibmphp_res.c 					switch (res->type) {
res               524 drivers/pci/hotplug/ibmphp_res.c 		if (res->next)
res               525 drivers/pci/hotplug/ibmphp_res.c 			res = res->next;
res               527 drivers/pci/hotplug/ibmphp_res.c 			res = res->nextRange;
res               545 drivers/pci/hotplug/ibmphp_res.c 	struct resource_node *res;
res               550 drivers/pci/hotplug/ibmphp_res.c 		res = bus_cur->firstIO;
res               552 drivers/pci/hotplug/ibmphp_res.c 		fix_me(res, bus_cur, range);
res               555 drivers/pci/hotplug/ibmphp_res.c 		res = bus_cur->firstMem;
res               557 drivers/pci/hotplug/ibmphp_res.c 		fix_me(res, bus_cur, range);
res               560 drivers/pci/hotplug/ibmphp_res.c 		res = bus_cur->firstPFMem;
res               562 drivers/pci/hotplug/ibmphp_res.c 		fix_me(res, bus_cur, range);
res               575 drivers/pci/hotplug/ibmphp_res.c int ibmphp_add_resource(struct resource_node *res)
res               585 drivers/pci/hotplug/ibmphp_res.c 	if (!res) {
res               590 drivers/pci/hotplug/ibmphp_res.c 	bus_cur = find_bus_wprev(res->busno, NULL, 0);
res               599 drivers/pci/hotplug/ibmphp_res.c 	switch (res->type) {
res               617 drivers/pci/hotplug/ibmphp_res.c 		if ((res->start >= range_cur->start) && (res->end <= range_cur->end)) {
res               618 drivers/pci/hotplug/ibmphp_res.c 			res->rangeno = range_cur->rangeno;
res               630 drivers/pci/hotplug/ibmphp_res.c 		switch (res->type) {
res               641 drivers/pci/hotplug/ibmphp_res.c 		res->rangeno = -1;
res               644 drivers/pci/hotplug/ibmphp_res.c 	debug("The range is %d\n", res->rangeno);
res               647 drivers/pci/hotplug/ibmphp_res.c 		switch (res->type) {
res               649 drivers/pci/hotplug/ibmphp_res.c 				bus_cur->firstIO = res;
res               652 drivers/pci/hotplug/ibmphp_res.c 				bus_cur->firstMem = res;
res               655 drivers/pci/hotplug/ibmphp_res.c 				bus_cur->firstPFMem = res;
res               658 drivers/pci/hotplug/ibmphp_res.c 		res->next = NULL;
res               659 drivers/pci/hotplug/ibmphp_res.c 		res->nextRange = NULL;
res               667 drivers/pci/hotplug/ibmphp_res.c 			if (res_cur->rangeno >= res->rangeno)
res               678 drivers/pci/hotplug/ibmphp_res.c 			debug("i should be here, [%x - %x]\n", res->start, res->end);
res               679 drivers/pci/hotplug/ibmphp_res.c 			res_prev->nextRange = res;
res               680 drivers/pci/hotplug/ibmphp_res.c 			res->next = NULL;
res               681 drivers/pci/hotplug/ibmphp_res.c 			res->nextRange = NULL;
res               682 drivers/pci/hotplug/ibmphp_res.c 		} else if (res_cur->rangeno == res->rangeno) {
res               685 drivers/pci/hotplug/ibmphp_res.c 				if (res->start < res_cur->start)
res               692 drivers/pci/hotplug/ibmphp_res.c 				res_prev->next = res;
res               693 drivers/pci/hotplug/ibmphp_res.c 				res->next = NULL;
res               694 drivers/pci/hotplug/ibmphp_res.c 				res->nextRange = res_prev->nextRange;
res               696 drivers/pci/hotplug/ibmphp_res.c 			} else if (res->start < res_cur->start) {
res               699 drivers/pci/hotplug/ibmphp_res.c 					switch (res->type) {
res               701 drivers/pci/hotplug/ibmphp_res.c 							bus_cur->firstIO = res;
res               704 drivers/pci/hotplug/ibmphp_res.c 							bus_cur->firstMem = res;
res               707 drivers/pci/hotplug/ibmphp_res.c 							bus_cur->firstPFMem = res;
res               711 drivers/pci/hotplug/ibmphp_res.c 					res_prev->next = res;
res               713 drivers/pci/hotplug/ibmphp_res.c 					res_prev->nextRange = res;
res               715 drivers/pci/hotplug/ibmphp_res.c 				res->next = res_cur;
res               716 drivers/pci/hotplug/ibmphp_res.c 				res->nextRange = NULL;
res               722 drivers/pci/hotplug/ibmphp_res.c 				res->next = NULL;
res               723 drivers/pci/hotplug/ibmphp_res.c 				switch (res->type) {
res               725 drivers/pci/hotplug/ibmphp_res.c 						res->nextRange = bus_cur->firstIO;
res               726 drivers/pci/hotplug/ibmphp_res.c 						bus_cur->firstIO = res;
res               729 drivers/pci/hotplug/ibmphp_res.c 						res->nextRange = bus_cur->firstMem;
res               730 drivers/pci/hotplug/ibmphp_res.c 						bus_cur->firstMem = res;
res               733 drivers/pci/hotplug/ibmphp_res.c 						res->nextRange = bus_cur->firstPFMem;
res               734 drivers/pci/hotplug/ibmphp_res.c 						bus_cur->firstPFMem = res;
res               737 drivers/pci/hotplug/ibmphp_res.c 			} else if (res_cur->rangeno > res->rangeno) {
res               739 drivers/pci/hotplug/ibmphp_res.c 				res_prev->nextRange = res;
res               740 drivers/pci/hotplug/ibmphp_res.c 				res->next = NULL;
res               741 drivers/pci/hotplug/ibmphp_res.c 				res->nextRange = res_cur;
res               757 drivers/pci/hotplug/ibmphp_res.c int ibmphp_remove_resource(struct resource_node *res)
res               765 drivers/pci/hotplug/ibmphp_res.c 	if (!res)  {
res               770 drivers/pci/hotplug/ibmphp_res.c 	bus_cur = find_bus_wprev(res->busno, NULL, 0);
res               777 drivers/pci/hotplug/ibmphp_res.c 	switch (res->type) {
res               797 drivers/pci/hotplug/ibmphp_res.c 		if ((res_cur->start == res->start) && (res_cur->end == res->end))
res               807 drivers/pci/hotplug/ibmphp_res.c 		if (res->type == PFMEM) {
res               817 drivers/pci/hotplug/ibmphp_res.c 				if ((res_cur->start == res->start) && (res_cur->end == res->end)) {
res               859 drivers/pci/hotplug/ibmphp_res.c 			switch (res->type) {
res               871 drivers/pci/hotplug/ibmphp_res.c 			switch (res->type) {
res               883 drivers/pci/hotplug/ibmphp_res.c 			switch (res->type) {
res               917 drivers/pci/hotplug/ibmphp_res.c static struct range_node *find_range(struct bus_node *bus_cur, struct resource_node *res)
res               921 drivers/pci/hotplug/ibmphp_res.c 	switch (res->type) {
res               936 drivers/pci/hotplug/ibmphp_res.c 		if (res->rangeno == range->rangeno)
res               952 drivers/pci/hotplug/ibmphp_res.c int ibmphp_check_resource(struct resource_node *res, u8 bridge)
res               964 drivers/pci/hotplug/ibmphp_res.c 	if (!res)
res               969 drivers/pci/hotplug/ibmphp_res.c 		if (res->type == IO)
res               974 drivers/pci/hotplug/ibmphp_res.c 		tmp_divide = res->len;
res               976 drivers/pci/hotplug/ibmphp_res.c 	bus_cur = find_bus_wprev(res->busno, NULL, 0);
res               989 drivers/pci/hotplug/ibmphp_res.c 	res->len -= 1;
res               991 drivers/pci/hotplug/ibmphp_res.c 	switch (res->type) {
res              1024 drivers/pci/hotplug/ibmphp_res.c 			if ((res_cur->start != range->start) && (len_tmp >= res->len)) {
res              1039 drivers/pci/hotplug/ibmphp_res.c 						while ((len_tmp = res_cur->start - 1 - tmp_start) >= res->len) {
res              1052 drivers/pci/hotplug/ibmphp_res.c 					if (flag && len_cur == res->len) {
res              1054 drivers/pci/hotplug/ibmphp_res.c 						res->start = start_cur;
res              1055 drivers/pci/hotplug/ibmphp_res.c 						res->len += 1; /* To restore the balance */
res              1056 drivers/pci/hotplug/ibmphp_res.c 						res->end = res->start + res->len - 1;
res              1066 drivers/pci/hotplug/ibmphp_res.c 			if ((range->end != res_cur->end) && (len_tmp >= res->len)) {
res              1080 drivers/pci/hotplug/ibmphp_res.c 						while ((len_tmp = range->end - tmp_start) >= res->len) {
res              1092 drivers/pci/hotplug/ibmphp_res.c 					if (flag && len_cur == res->len) {
res              1093 drivers/pci/hotplug/ibmphp_res.c 						res->start = start_cur;
res              1094 drivers/pci/hotplug/ibmphp_res.c 						res->len += 1; /* To restore the balance */
res              1095 drivers/pci/hotplug/ibmphp_res.c 						res->end = res->start + res->len - 1;
res              1107 drivers/pci/hotplug/ibmphp_res.c 				if ((res_cur->start != range->start) &&	(len_tmp >= res->len)) {
res              1119 drivers/pci/hotplug/ibmphp_res.c 							while ((len_tmp = res_cur->start - 1 - tmp_start) >= res->len) {
res              1132 drivers/pci/hotplug/ibmphp_res.c 						if (flag && len_cur == res->len) {
res              1133 drivers/pci/hotplug/ibmphp_res.c 							res->start = start_cur;
res              1134 drivers/pci/hotplug/ibmphp_res.c 							res->len += 1; /* To restore the balance */
res              1135 drivers/pci/hotplug/ibmphp_res.c 							res->end = res->start + res->len - 1;
res              1144 drivers/pci/hotplug/ibmphp_res.c 				if (len_tmp >= res->len) {
res              1156 drivers/pci/hotplug/ibmphp_res.c 							while ((len_tmp = res_cur->start - 1 - tmp_start) >= res->len) {
res              1169 drivers/pci/hotplug/ibmphp_res.c 						if (flag && len_cur == res->len) {
res              1170 drivers/pci/hotplug/ibmphp_res.c 							res->start = start_cur;
res              1171 drivers/pci/hotplug/ibmphp_res.c 							res->len += 1; /* To restore the balance */
res              1172 drivers/pci/hotplug/ibmphp_res.c 							res->end = res->start + res->len - 1;
res              1191 drivers/pci/hotplug/ibmphp_res.c 		switch (res->type) {
res              1205 drivers/pci/hotplug/ibmphp_res.c 			if (len_tmp >= res->len) {
res              1217 drivers/pci/hotplug/ibmphp_res.c 						while ((len_tmp = range->end - tmp_start) >= res->len) {
res              1230 drivers/pci/hotplug/ibmphp_res.c 					if (flag && len_cur == res->len) {
res              1231 drivers/pci/hotplug/ibmphp_res.c 						res->start = start_cur;
res              1232 drivers/pci/hotplug/ibmphp_res.c 						res->len += 1; /* To restore the balance */
res              1233 drivers/pci/hotplug/ibmphp_res.c 						res->end = res->start + res->len - 1;
res              1246 drivers/pci/hotplug/ibmphp_res.c 			res->start = start_cur;
res              1247 drivers/pci/hotplug/ibmphp_res.c 			res->len += 1; /* To restore the balance */
res              1248 drivers/pci/hotplug/ibmphp_res.c 			res->end = res->start + res->len - 1;
res              1257 drivers/pci/hotplug/ibmphp_res.c 			switch (res->type) {
res              1271 drivers/pci/hotplug/ibmphp_res.c 				if (len_tmp >= res->len) {
res              1283 drivers/pci/hotplug/ibmphp_res.c 							while ((len_tmp = range->end - tmp_start) >= res->len) {
res              1296 drivers/pci/hotplug/ibmphp_res.c 						if (flag && len_cur == res->len) {
res              1297 drivers/pci/hotplug/ibmphp_res.c 							res->start = start_cur;
res              1298 drivers/pci/hotplug/ibmphp_res.c 							res->len += 1; /* To restore the balance */
res              1299 drivers/pci/hotplug/ibmphp_res.c 							res->end = res->start + res->len - 1;
res              1312 drivers/pci/hotplug/ibmphp_res.c 				res->start = start_cur;
res              1313 drivers/pci/hotplug/ibmphp_res.c 				res->len += 1; /* To restore the balance */
res              1314 drivers/pci/hotplug/ibmphp_res.c 				res->end = res->start + res->len - 1;
res              1320 drivers/pci/hotplug/ibmphp_res.c 				res->start = start_cur;
res              1321 drivers/pci/hotplug/ibmphp_res.c 				res->len += 1; /* To restore the balance */
res              1322 drivers/pci/hotplug/ibmphp_res.c 				res->end = res->start + res->len - 1;
res              1428 drivers/pci/hotplug/ibmphp_res.c 	struct resource_node *res = NULL;
res              1433 drivers/pci/hotplug/ibmphp_res.c 			if (ibmphp_find_resource(bus_prev, range_cur->start, &res, IO) < 0)
res              1435 drivers/pci/hotplug/ibmphp_res.c 			ibmphp_remove_resource(res);
res              1447 drivers/pci/hotplug/ibmphp_res.c 			if (ibmphp_find_resource(bus_prev, range_cur->start, &res, MEM) < 0)
res              1450 drivers/pci/hotplug/ibmphp_res.c 			ibmphp_remove_resource(res);
res              1461 drivers/pci/hotplug/ibmphp_res.c 			if (ibmphp_find_resource(bus_prev, range_cur->start, &res, PFMEM) < 0)
res              1464 drivers/pci/hotplug/ibmphp_res.c 			ibmphp_remove_resource(res);
res              1479 drivers/pci/hotplug/ibmphp_res.c int ibmphp_find_resource(struct bus_node *bus, u32 start_address, struct resource_node **res, int flag)
res              1509 drivers/pci/hotplug/ibmphp_res.c 			*res = res_cur;
res              1523 drivers/pci/hotplug/ibmphp_res.c 					*res = res_cur;
res              1538 drivers/pci/hotplug/ibmphp_res.c 	if (*res)
res              1539 drivers/pci/hotplug/ibmphp_res.c 		debug("*res->start = %x\n", (*res)->start);
res              1758 drivers/pci/hotplug/ibmphp_res.c 	struct resource_node *res;
res              1807 drivers/pci/hotplug/ibmphp_res.c 			res = bus_cur->firstIO;
res              1808 drivers/pci/hotplug/ibmphp_res.c 			while (res) {
res              1809 drivers/pci/hotplug/ibmphp_res.c 				debug_pci("The range # is %d\n", res->rangeno);
res              1810 drivers/pci/hotplug/ibmphp_res.c 				debug_pci("The bus, devfnc is %d, %x\n", res->busno, res->devfunc);
res              1811 drivers/pci/hotplug/ibmphp_res.c 				debug_pci("[%x - %x], len=%x\n", res->start, res->end, res->len);
res              1812 drivers/pci/hotplug/ibmphp_res.c 				if (res->next)
res              1813 drivers/pci/hotplug/ibmphp_res.c 					res = res->next;
res              1814 drivers/pci/hotplug/ibmphp_res.c 				else if (res->nextRange)
res              1815 drivers/pci/hotplug/ibmphp_res.c 					res = res->nextRange;
res              1822 drivers/pci/hotplug/ibmphp_res.c 			res = bus_cur->firstMem;
res              1823 drivers/pci/hotplug/ibmphp_res.c 			while (res) {
res              1824 drivers/pci/hotplug/ibmphp_res.c 				debug_pci("The range # is %d\n", res->rangeno);
res              1825 drivers/pci/hotplug/ibmphp_res.c 				debug_pci("The bus, devfnc is %d, %x\n", res->busno, res->devfunc);
res              1826 drivers/pci/hotplug/ibmphp_res.c 				debug_pci("[%x - %x], len=%x\n", res->start, res->end, res->len);
res              1827 drivers/pci/hotplug/ibmphp_res.c 				if (res->next)
res              1828 drivers/pci/hotplug/ibmphp_res.c 					res = res->next;
res              1829 drivers/pci/hotplug/ibmphp_res.c 				else if (res->nextRange)
res              1830 drivers/pci/hotplug/ibmphp_res.c 					res = res->nextRange;
res              1837 drivers/pci/hotplug/ibmphp_res.c 			res = bus_cur->firstPFMem;
res              1838 drivers/pci/hotplug/ibmphp_res.c 			while (res) {
res              1839 drivers/pci/hotplug/ibmphp_res.c 				debug_pci("The range # is %d\n", res->rangeno);
res              1840 drivers/pci/hotplug/ibmphp_res.c 				debug_pci("The bus, devfnc is %d, %x\n", res->busno, res->devfunc);
res              1841 drivers/pci/hotplug/ibmphp_res.c 				debug_pci("[%x - %x], len=%x\n", res->start, res->end, res->len);
res              1842 drivers/pci/hotplug/ibmphp_res.c 				if (res->next)
res              1843 drivers/pci/hotplug/ibmphp_res.c 					res = res->next;
res              1844 drivers/pci/hotplug/ibmphp_res.c 				else if (res->nextRange)
res              1845 drivers/pci/hotplug/ibmphp_res.c 					res = res->nextRange;
res              1853 drivers/pci/hotplug/ibmphp_res.c 			res = bus_cur->firstPFMemFromMem;
res              1854 drivers/pci/hotplug/ibmphp_res.c 			while (res) {
res              1855 drivers/pci/hotplug/ibmphp_res.c 				debug_pci("The range # is %d\n", res->rangeno);
res              1856 drivers/pci/hotplug/ibmphp_res.c 				debug_pci("The bus, devfnc is %d, %x\n", res->busno, res->devfunc);
res              1857 drivers/pci/hotplug/ibmphp_res.c 				debug_pci("[%x - %x], len=%x\n", res->start, res->end, res->len);
res              1858 drivers/pci/hotplug/ibmphp_res.c 				res = res->next;
res                29 drivers/pci/hotplug/shpchp_sysfs.c 	struct resource *res;
res                36 drivers/pci/hotplug/shpchp_sysfs.c 	pci_bus_for_each_resource(bus, res, index) {
res                37 drivers/pci/hotplug/shpchp_sysfs.c 		if (res && (res->flags & IORESOURCE_MEM) &&
res                38 drivers/pci/hotplug/shpchp_sysfs.c 				!(res->flags & IORESOURCE_PREFETCH)) {
res                40 drivers/pci/hotplug/shpchp_sysfs.c 				       (unsigned long long)res->start,
res                41 drivers/pci/hotplug/shpchp_sysfs.c 				       (unsigned long long)resource_size(res));
res                45 drivers/pci/hotplug/shpchp_sysfs.c 	pci_bus_for_each_resource(bus, res, index) {
res                46 drivers/pci/hotplug/shpchp_sysfs.c 		if (res && (res->flags & IORESOURCE_MEM) &&
res                47 drivers/pci/hotplug/shpchp_sysfs.c 			       (res->flags & IORESOURCE_PREFETCH)) {
res                49 drivers/pci/hotplug/shpchp_sysfs.c 				       (unsigned long long)res->start,
res                50 drivers/pci/hotplug/shpchp_sysfs.c 				       (unsigned long long)resource_size(res));
res                54 drivers/pci/hotplug/shpchp_sysfs.c 	pci_bus_for_each_resource(bus, res, index) {
res                55 drivers/pci/hotplug/shpchp_sysfs.c 		if (res && (res->flags & IORESOURCE_IO)) {
res                57 drivers/pci/hotplug/shpchp_sysfs.c 				       (unsigned long long)res->start,
res                58 drivers/pci/hotplug/shpchp_sysfs.c 				       (unsigned long long)resource_size(res));
res               144 drivers/pci/iov.c 	struct resource *res;
res               173 drivers/pci/iov.c 		res = &dev->resource[i + PCI_IOV_RESOURCES];
res               174 drivers/pci/iov.c 		if (!res->parent)
res               177 drivers/pci/iov.c 		virtfn->resource[i].flags = res->flags;
res               179 drivers/pci/iov.c 		virtfn->resource[i].start = res->start + size * id;
res               181 drivers/pci/iov.c 		rc = request_resource(res, &virtfn->resource[i]);
res               446 drivers/pci/iov.c 	struct resource *res;
res               470 drivers/pci/iov.c 		res = &dev->resource[i + PCI_IOV_RESOURCES];
res               471 drivers/pci/iov.c 		if (res->parent)
res               593 drivers/pci/iov.c 	struct resource *res;
res               633 drivers/pci/iov.c 		res = &dev->resource[i + PCI_IOV_RESOURCES];
res               638 drivers/pci/iov.c 		if (res->flags & IORESOURCE_PCI_FIXED)
res               639 drivers/pci/iov.c 			bar64 = (res->flags & IORESOURCE_MEM_64) ? 1 : 0;
res               641 drivers/pci/iov.c 			bar64 = __pci_read_base(dev, pci_bar_unknown, res,
res               643 drivers/pci/iov.c 		if (!res->flags)
res               645 drivers/pci/iov.c 		if (resource_size(res) & (PAGE_SIZE - 1)) {
res               649 drivers/pci/iov.c 		iov->barsz[i] = resource_size(res);
res               650 drivers/pci/iov.c 		res->end = res->start + resource_size(res) * total - 1;
res               652 drivers/pci/iov.c 			 i, res, i, total);
res               689 drivers/pci/iov.c 		res = &dev->resource[i + PCI_IOV_RESOURCES];
res               690 drivers/pci/iov.c 		res->flags = 0;
res               792 drivers/pci/iov.c 	struct resource *res = dev->resource + resno;
res               810 drivers/pci/iov.c 			 vf_bar, res);
res               819 drivers/pci/iov.c 	if (!res->flags)
res               822 drivers/pci/iov.c 	if (res->flags & IORESOURCE_UNSET)
res               825 drivers/pci/iov.c 	if (res->flags & IORESOURCE_PCI_FIXED)
res               828 drivers/pci/iov.c 	pcibios_resource_to_bus(dev->bus, &region, res);
res               830 drivers/pci/iov.c 	new |= res->flags & ~PCI_BASE_ADDRESS_MEM_MASK;
res               834 drivers/pci/iov.c 	if (res->flags & IORESOURCE_MEM_64) {
res               173 drivers/pci/of.c int of_pci_parse_bus_range(struct device_node *node, struct resource *res)
res               183 drivers/pci/of.c 	res->name = node->name;
res               184 drivers/pci/of.c 	res->start = bus_range[0];
res               185 drivers/pci/of.c 	res->end = bus_range[1];
res               186 drivers/pci/of.c 	res->flags = IORESOURCE_BUS;
res               263 drivers/pci/of.c 	struct resource *res, tmp_res;
res               321 drivers/pci/of.c 		res = devm_kmemdup(dev, &tmp_res, sizeof(tmp_res), GFP_KERNEL);
res               322 drivers/pci/of.c 		if (!res) {
res               327 drivers/pci/of.c 		if (resource_type(res) == IORESOURCE_IO) {
res               340 drivers/pci/of.c 		pci_add_resource_offset(resources, res,	res->start - range.pci_addr);
res               502 drivers/pci/of.c 		struct resource *res = win->res;
res               504 drivers/pci/of.c 		switch (resource_type(res)) {
res               506 drivers/pci/of.c 			err = devm_pci_remap_iospace(dev, res, iobase);
res               509 drivers/pci/of.c 					 err, res);
res               514 drivers/pci/of.c 			res_valid |= !(res->flags & IORESOURCE_PREFETCH);
res               518 drivers/pci/of.c 				*bus_range = res;
res               188 drivers/pci/p2pdma.c 	pgmap->res.start = pci_resource_start(pdev, bar) + offset;
res               189 drivers/pci/p2pdma.c 	pgmap->res.end = pgmap->res.start + size - 1;
res               190 drivers/pci/p2pdma.c 	pgmap->res.flags = pci_resource_flags(pdev, bar);
res               205 drivers/pci/p2pdma.c 			resource_size(&pgmap->res), dev_to_node(&pdev->dev),
res               211 drivers/pci/p2pdma.c 		 &pgmap->res);
res                31 drivers/pci/pci-acpi.c static int acpi_get_rc_addr(struct acpi_device *adev, struct resource *res)
res                56 drivers/pci/pci-acpi.c 	*res = *entry->res;
res                77 drivers/pci/pci-acpi.c 			  struct resource *res)
res                95 drivers/pci/pci-acpi.c 	ret = acpi_get_rc_addr(adev, res);
res               143 drivers/pci/pci-sysfs.c 		struct resource *res =  &pci_dev->resource[i];
res               144 drivers/pci/pci-sysfs.c 		pci_resource_to_user(pci_dev, i, res, &start, &end);
res               148 drivers/pci/pci-sysfs.c 			       (unsigned long long)res->flags);
res              1025 drivers/pci/pci-sysfs.c 	struct resource *res = &pdev->resource[bar];
res              1032 drivers/pci/pci-sysfs.c 	if (res->flags & IORESOURCE_MEM && iomem_is_exclusive(res->start))
res              1038 drivers/pci/pci-sysfs.c 	mmap_type = res->flags & IORESOURCE_MEM ? pci_mmap_mem : pci_mmap_io;
res               170 drivers/pci/pci.c 	struct resource *res = &pdev->resource[bar];
res               175 drivers/pci/pci.c 	if (res->flags & IORESOURCE_UNSET || !(res->flags & IORESOURCE_MEM)) {
res               176 drivers/pci/pci.c 		pci_warn(pdev, "can't ioremap BAR %d: %pR\n", bar, res);
res               179 drivers/pci/pci.c 	return ioremap_nocache(res->start, resource_size(res));
res               630 drivers/pci/pci.c 					  struct resource *res)
res               639 drivers/pci/pci.c 		if (resource_contains(r, res)) {
res               646 drivers/pci/pci.c 			    !(res->flags & IORESOURCE_PREFETCH))
res               673 drivers/pci/pci.c struct resource *pci_find_resource(struct pci_dev *dev, struct resource *res)
res               680 drivers/pci/pci.c 		if (r->start && resource_contains(r, res))
res              1436 drivers/pci/pci.c 		struct resource *res;
res              1441 drivers/pci/pci.c 		res = pdev->resource + bar_idx;
res              1442 drivers/pci/pci.c 		size = ilog2(resource_size(res)) - 20;
res              1760 drivers/pci/pci.c static void pcim_release(struct device *gendev, void *res)
res              1763 drivers/pci/pci.c 	struct pci_devres *this = res;
res              2897 drivers/pci/pci.c 	struct resource *res;
res              2926 drivers/pci/pci.c 	res = pci_ea_get_resource(dev, bei, prop);
res              2927 drivers/pci/pci.c 	if (!res) {
res              2994 drivers/pci/pci.c 	res->name = pci_name(dev);
res              2995 drivers/pci/pci.c 	res->start = start;
res              2996 drivers/pci/pci.c 	res->end = end;
res              2997 drivers/pci/pci.c 	res->flags = flags;
res              3001 drivers/pci/pci.c 			   bei, res, prop);
res              3004 drivers/pci/pci.c 			   res, prop);
res              3007 drivers/pci/pci.c 			   bei - PCI_EA_BEI_VF_BAR0, res, prop);
res              3010 drivers/pci/pci.c 			   bei, res, prop);
res              3938 drivers/pci/pci.c int pci_remap_iospace(const struct resource *res, phys_addr_t phys_addr)
res              3941 drivers/pci/pci.c 	unsigned long vaddr = (unsigned long)PCI_IOBASE + res->start;
res              3943 drivers/pci/pci.c 	if (!(res->flags & IORESOURCE_IO))
res              3946 drivers/pci/pci.c 	if (res->end > IO_SPACE_LIMIT)
res              3949 drivers/pci/pci.c 	return ioremap_page_range(vaddr, vaddr + resource_size(res), phys_addr,
res              3970 drivers/pci/pci.c void pci_unmap_iospace(struct resource *res)
res              3973 drivers/pci/pci.c 	unsigned long vaddr = (unsigned long)PCI_IOBASE + res->start;
res              3975 drivers/pci/pci.c 	unmap_kernel_range(vaddr, resource_size(res));
res              3982 drivers/pci/pci.c 	struct resource **res = ptr;
res              3984 drivers/pci/pci.c 	pci_unmap_iospace(*res);
res              3996 drivers/pci/pci.c int devm_pci_remap_iospace(struct device *dev, const struct resource *res,
res              4006 drivers/pci/pci.c 	error = pci_remap_iospace(res, phys_addr);
res              4010 drivers/pci/pci.c 		*ptr = res;
res              4068 drivers/pci/pci.c 					  struct resource *res)
res              4076 drivers/pci/pci.c 	if (!res || resource_type(res) != IORESOURCE_MEM) {
res              4081 drivers/pci/pci.c 	size = resource_size(res);
res              4082 drivers/pci/pci.c 	name = res->name ?: dev_name(dev);
res              4084 drivers/pci/pci.c 	if (!devm_request_mem_region(dev, res->start, size, name)) {
res              4085 drivers/pci/pci.c 		dev_err(dev, "can't request region for resource %pR\n", res);
res              4089 drivers/pci/pci.c 	dest_ptr = devm_pci_remap_cfgspace(dev, res->start, size);
res              4091 drivers/pci/pci.c 		dev_err(dev, "ioremap failed for resource %pR\n", res);
res              4092 drivers/pci/pci.c 		devm_release_mem_region(dev, res->start, size);
res               279 drivers/pci/pci.h 		    struct resource *res, unsigned int reg);
res               497 drivers/pci/pci.h 						     struct resource *res)
res               500 drivers/pci/pci.h 	int resno = res - dev->resource;
res               506 drivers/pci/pci.h 		return pci_cardbus_resource_alignment(res);
res               507 drivers/pci/pci.h 	return resource_alignment(res);
res               590 drivers/pci/pci.h 			  struct resource *res);
res               604 drivers/pci/pci.h int of_pci_parse_bus_range(struct device_node *node, struct resource *res);
res               614 drivers/pci/pci.h of_pci_parse_bus_range(struct device_node *node, struct resource *res)
res                41 drivers/pci/probe.c 	struct resource res;
res                51 drivers/pci/probe.c 			return &r->res;
res                58 drivers/pci/probe.c 	r->res.start = 0;
res                59 drivers/pci/probe.c 	r->res.end = 0xff;
res                60 drivers/pci/probe.c 	r->res.flags = IORESOURCE_BUS | IORESOURCE_PCI_FIXED;
res                64 drivers/pci/probe.c 	return &r->res;
res               176 drivers/pci/probe.c 		    struct resource *res, unsigned int pos)
res               194 drivers/pci/probe.c 	res->name = pci_name(dev);
res               218 drivers/pci/probe.c 		res->flags = decode_bar(dev, l);
res               219 drivers/pci/probe.c 		res->flags |= IORESOURCE_SIZEALIGN;
res               220 drivers/pci/probe.c 		if (res->flags & IORESOURCE_IO) {
res               231 drivers/pci/probe.c 			res->flags |= IORESOURCE_ROM_ENABLE;
res               237 drivers/pci/probe.c 	if (res->flags & IORESOURCE_MEM_64) {
res               261 drivers/pci/probe.c 	if (res->flags & IORESOURCE_MEM_64) {
res               264 drivers/pci/probe.c 			res->flags |= IORESOURCE_UNSET | IORESOURCE_DISABLED;
res               265 drivers/pci/probe.c 			res->start = 0;
res               266 drivers/pci/probe.c 			res->end = 0;
res               274 drivers/pci/probe.c 			res->flags |= IORESOURCE_UNSET;
res               275 drivers/pci/probe.c 			res->start = 0;
res               276 drivers/pci/probe.c 			res->end = sz64 - 1;
res               286 drivers/pci/probe.c 	pcibios_bus_to_resource(dev->bus, res, &region);
res               287 drivers/pci/probe.c 	pcibios_resource_to_bus(dev->bus, &inverted_region, res);
res               301 drivers/pci/probe.c 		res->flags |= IORESOURCE_UNSET;
res               302 drivers/pci/probe.c 		res->start = 0;
res               303 drivers/pci/probe.c 		res->end = region.end - region.start;
res               312 drivers/pci/probe.c 	res->flags = 0;
res               314 drivers/pci/probe.c 	if (res->flags)
res               315 drivers/pci/probe.c 		pci_info(dev, "reg 0x%x: %pR\n", pos, res);
res               317 drivers/pci/probe.c 	return (res->flags & IORESOURCE_MEM_64) ? 1 : 0;
res               332 drivers/pci/probe.c 		struct resource *res = &dev->resource[pos];
res               334 drivers/pci/probe.c 		pos += __pci_read_base(dev, pci_bar_unknown, res, reg);
res               338 drivers/pci/probe.c 		struct resource *res = &dev->resource[PCI_ROM_RESOURCE];
res               340 drivers/pci/probe.c 		res->flags = IORESOURCE_MEM | IORESOURCE_PREFETCH |
res               342 drivers/pci/probe.c 		__pci_read_base(dev, pci_bar_mem32, res, rom);
res               403 drivers/pci/probe.c 	struct resource *res;
res               413 drivers/pci/probe.c 	res = child->resource[0];
res               429 drivers/pci/probe.c 		res->flags = (io_base_lo & PCI_IO_RANGE_TYPE_MASK) | IORESOURCE_IO;
res               432 drivers/pci/probe.c 		pcibios_bus_to_resource(dev->bus, res, &region);
res               433 drivers/pci/probe.c 		pci_info(dev, "  bridge window %pR\n", res);
res               443 drivers/pci/probe.c 	struct resource *res;
res               445 drivers/pci/probe.c 	res = child->resource[1];
res               451 drivers/pci/probe.c 		res->flags = (mem_base_lo & PCI_MEMORY_RANGE_TYPE_MASK) | IORESOURCE_MEM;
res               454 drivers/pci/probe.c 		pcibios_bus_to_resource(dev->bus, res, &region);
res               455 drivers/pci/probe.c 		pci_info(dev, "  bridge window %pR\n", res);
res               466 drivers/pci/probe.c 	struct resource *res;
res               468 drivers/pci/probe.c 	res = child->resource[2];
res               501 drivers/pci/probe.c 		res->flags = (mem_base_lo & PCI_PREF_RANGE_TYPE_MASK) |
res               503 drivers/pci/probe.c 		if (res->flags & PCI_PREF_RANGE_TYPE_64)
res               504 drivers/pci/probe.c 			res->flags |= IORESOURCE_MEM_64;
res               507 drivers/pci/probe.c 		pcibios_bus_to_resource(dev->bus, res, &region);
res               508 drivers/pci/probe.c 		pci_info(dev, "  bridge window %pR\n", res);
res               515 drivers/pci/probe.c 	struct resource *res;
res               534 drivers/pci/probe.c 		pci_bus_for_each_resource(child->parent, res, i) {
res               535 drivers/pci/probe.c 			if (res && res->flags) {
res               536 drivers/pci/probe.c 				pci_bus_add_resource(child, res,
res               539 drivers/pci/probe.c 					   res);
res               833 drivers/pci/probe.c 	struct resource *res;
res               905 drivers/pci/probe.c 		res = window->res;
res               907 drivers/pci/probe.c 		if (res->flags & IORESOURCE_BUS)
res               908 drivers/pci/probe.c 			pci_bus_insert_busn_res(bus, bus->number, res->end);
res               910 drivers/pci/probe.c 			pci_bus_add_resource(bus, res, 0);
res               913 drivers/pci/probe.c 			if (resource_type(res) == IORESOURCE_IO)
res               919 drivers/pci/probe.c 				 (unsigned long long)(res->start - offset),
res               920 drivers/pci/probe.c 				 (unsigned long long)(res->end - offset));
res               924 drivers/pci/probe.c 		dev_info(&bus->dev, "root bus resource %pR%s\n", res, addr);
res              1728 drivers/pci/probe.c 	struct resource *res;
res              1813 drivers/pci/probe.c 				res = &dev->resource[0];
res              1814 drivers/pci/probe.c 				res->flags = LEGACY_IO_RESOURCE;
res              1815 drivers/pci/probe.c 				pcibios_bus_to_resource(dev->bus, res, &region);
res              1817 drivers/pci/probe.c 					 res);
res              1820 drivers/pci/probe.c 				res = &dev->resource[1];
res              1821 drivers/pci/probe.c 				res->flags = LEGACY_IO_RESOURCE;
res              1822 drivers/pci/probe.c 				pcibios_bus_to_resource(dev->bus, res, &region);
res              1824 drivers/pci/probe.c 					 res);
res              1829 drivers/pci/probe.c 				res = &dev->resource[2];
res              1830 drivers/pci/probe.c 				res->flags = LEGACY_IO_RESOURCE;
res              1831 drivers/pci/probe.c 				pcibios_bus_to_resource(dev->bus, res, &region);
res              1833 drivers/pci/probe.c 					 res);
res              1836 drivers/pci/probe.c 				res = &dev->resource[3];
res              1837 drivers/pci/probe.c 				res->flags = LEGACY_IO_RESOURCE;
res              1838 drivers/pci/probe.c 				pcibios_bus_to_resource(dev->bus, res, &region);
res              1840 drivers/pci/probe.c 					 res);
res              2966 drivers/pci/probe.c 	struct resource *res = &b->busn_res;
res              2969 drivers/pci/probe.c 	res->start = bus;
res              2970 drivers/pci/probe.c 	res->end = bus_max;
res              2971 drivers/pci/probe.c 	res->flags = IORESOURCE_BUS;
res              2977 drivers/pci/probe.c 		res->flags |= IORESOURCE_PCI_FIXED;
res              2980 drivers/pci/probe.c 	conflict = request_resource_conflict(parent_res, res);
res              2985 drivers/pci/probe.c 			    res, pci_is_root_bus(b) ? "domain " : "",
res              2993 drivers/pci/probe.c 	struct resource *res = &b->busn_res;
res              2994 drivers/pci/probe.c 	struct resource old_res = *res;
res              2998 drivers/pci/probe.c 	if (res->start > bus_max)
res              3001 drivers/pci/probe.c 	size = bus_max - res->start + 1;
res              3002 drivers/pci/probe.c 	ret = adjust_resource(res, res->start, size);
res              3006 drivers/pci/probe.c 	if (!ret && !res->parent)
res              3007 drivers/pci/probe.c 		pci_bus_insert_busn_res(b, res->start, res->end);
res              3014 drivers/pci/probe.c 	struct resource *res = &b->busn_res;
res              3017 drivers/pci/probe.c 	if (!res->flags || !res->parent)
res              3020 drivers/pci/probe.c 	ret = release_resource(res);
res              3022 drivers/pci/probe.c 			res, ret ? "can not be" : "is");
res              3036 drivers/pci/probe.c 		if (window->res->flags & IORESOURCE_BUS) {
res              3073 drivers/pci/probe.c 		if (window->res->flags & IORESOURCE_BUS) {
res               513 drivers/pci/quirks.c 	struct resource *res = dev->resource + pos;
res               520 drivers/pci/quirks.c 	res->name = pci_name(dev);
res               521 drivers/pci/quirks.c 	res->flags = region & ~PCI_BASE_ADDRESS_IO_MASK;
res               522 drivers/pci/quirks.c 	res->flags |=
res               529 drivers/pci/quirks.c 	pcibios_bus_to_resource(dev->bus, res, &bus_region);
res               532 drivers/pci/quirks.c 		 name, PCI_BASE_ADDRESS_0 + (pos << 2), res);
res               563 drivers/pci/quirks.c 	struct resource *res = dev->resource + nr;
res               571 drivers/pci/quirks.c 	res->name = pci_name(dev);
res               572 drivers/pci/quirks.c 	res->flags = IORESOURCE_IO;
res               577 drivers/pci/quirks.c 	pcibios_bus_to_resource(dev->bus, res, &bus_region);
res               580 drivers/pci/quirks.c 		pci_info(dev, "quirk: %pR claimed by %s\n", res, name);
res                11 drivers/pci/remove.c 		struct resource *res = dev->resource + i;
res                12 drivers/pci/remove.c 		if (res->parent)
res                13 drivers/pci/remove.c 			release_resource(res);
res                26 drivers/pci/rom.c 	struct resource *res = &pdev->resource[PCI_ROM_RESOURCE];
res                30 drivers/pci/rom.c 	if (!res->flags)
res                34 drivers/pci/rom.c 	if (res->flags & IORESOURCE_ROM_SHADOW)
res                42 drivers/pci/rom.c 	pcibios_resource_to_bus(pdev->bus, &region, res);
res                60 drivers/pci/rom.c 	struct resource *res = &pdev->resource[PCI_ROM_RESOURCE];
res                63 drivers/pci/rom.c 	if (res->flags & IORESOURCE_ROM_SHADOW)
res               138 drivers/pci/rom.c 	struct resource *res = &pdev->resource[PCI_ROM_RESOURCE];
res               143 drivers/pci/rom.c 	if (res->parent == NULL && pci_assign_resource(pdev, PCI_ROM_RESOURCE))
res               174 drivers/pci/rom.c 	if (!(res->flags & IORESOURCE_ROM_ENABLE))
res               189 drivers/pci/rom.c 	struct resource *res = &pdev->resource[PCI_ROM_RESOURCE];
res               194 drivers/pci/rom.c 	if (!(res->flags & IORESOURCE_ROM_ENABLE))
res                32 drivers/pci/setup-bus.c 	struct resource *res;
res                59 drivers/pci/setup-bus.c 		       struct resource *res, resource_size_t add_size,
res                68 drivers/pci/setup-bus.c 	tmp->res = res;
res                70 drivers/pci/setup-bus.c 	tmp->start = res->start;
res                71 drivers/pci/setup-bus.c 	tmp->end = res->end;
res                72 drivers/pci/setup-bus.c 	tmp->flags = res->flags;
res                81 drivers/pci/setup-bus.c static void remove_from_list(struct list_head *head, struct resource *res)
res                86 drivers/pci/setup-bus.c 		if (dev_res->res == res) {
res                95 drivers/pci/setup-bus.c 					       struct resource *res)
res               100 drivers/pci/setup-bus.c 		if (dev_res->res == res)
res               108 drivers/pci/setup-bus.c 					struct resource *res)
res               112 drivers/pci/setup-bus.c 	dev_res = res_to_dev_res(head, res);
res               117 drivers/pci/setup-bus.c 					 struct resource *res)
res               121 drivers/pci/setup-bus.c 	dev_res = res_to_dev_res(head, res);
res               155 drivers/pci/setup-bus.c 		tmp->res = r;
res               164 drivers/pci/setup-bus.c 							 dev_res->res);
res               195 drivers/pci/setup-bus.c static inline void reset_resource(struct resource *res)
res               197 drivers/pci/setup-bus.c 	res->start = 0;
res               198 drivers/pci/setup-bus.c 	res->end = 0;
res               199 drivers/pci/setup-bus.c 	res->flags = 0;
res               216 drivers/pci/setup-bus.c 	struct resource *res;
res               225 drivers/pci/setup-bus.c 		res = add_res->res;
res               227 drivers/pci/setup-bus.c 		if (!res->flags)
res               232 drivers/pci/setup-bus.c 			if (dev_res->res == res) {
res               240 drivers/pci/setup-bus.c 		idx = res - &add_res->dev->resource[0];
res               243 drivers/pci/setup-bus.c 		if (!resource_size(res)) {
res               244 drivers/pci/setup-bus.c 			res->start = align;
res               245 drivers/pci/setup-bus.c 			res->end = res->start + add_size - 1;
res               247 drivers/pci/setup-bus.c 				reset_resource(res);
res               249 drivers/pci/setup-bus.c 			res->flags |= add_res->flags &
res               255 drivers/pci/setup-bus.c 					 res);
res               276 drivers/pci/setup-bus.c 	struct resource *res;
res               281 drivers/pci/setup-bus.c 		res = dev_res->res;
res               282 drivers/pci/setup-bus.c 		idx = res - &dev_res->dev->resource[0];
res               283 drivers/pci/setup-bus.c 		if (resource_size(res) &&
res               292 drivers/pci/setup-bus.c 				      (!(res->flags & IORESOURCE_ROM_ENABLE))))
res               294 drivers/pci/setup-bus.c 						    dev_res->dev, res,
res               298 drivers/pci/setup-bus.c 			reset_resource(res);
res               320 drivers/pci/setup-bus.c static bool pci_need_to_release(unsigned long mask, struct resource *res)
res               322 drivers/pci/setup-bus.c 	if (res->flags & IORESOURCE_IO)
res               326 drivers/pci/setup-bus.c 	if (res->flags & IORESOURCE_PREFETCH) {
res               331 drivers/pci/setup-bus.c 			 !(res->parent->flags & IORESOURCE_PREFETCH))
res               337 drivers/pci/setup-bus.c 	if (res->flags & IORESOURCE_MEM)
res               381 drivers/pci/setup-bus.c 		if (add_to_list(&save_head, dev_res->dev, dev_res->res, 0, 0)) {
res               389 drivers/pci/setup-bus.c 		dev_res->res->end += get_res_add_size(realloc_head,
res               390 drivers/pci/setup-bus.c 							dev_res->res);
res               398 drivers/pci/setup-bus.c 		if (!(dev_res->res->flags & IORESOURCE_STARTALIGN))
res               401 drivers/pci/setup-bus.c 		add_align = get_res_add_align(realloc_head, dev_res->res);
res               410 drivers/pci/setup-bus.c 		if (add_align > dev_res->res->start) {
res               411 drivers/pci/setup-bus.c 			resource_size_t r_size = resource_size(dev_res->res);
res               413 drivers/pci/setup-bus.c 			dev_res->res->start = add_align;
res               414 drivers/pci/setup-bus.c 			dev_res->res->end = add_align + r_size - 1;
res               418 drivers/pci/setup-bus.c 							       dev_res2->res);
res               436 drivers/pci/setup-bus.c 			remove_from_list(realloc_head, dev_res->res);
res               446 drivers/pci/setup-bus.c 		if (dev_res->res->parent &&
res               447 drivers/pci/setup-bus.c 		    !pci_need_to_release(fail_type, dev_res->res)) {
res               449 drivers/pci/setup-bus.c 			remove_from_list(realloc_head, dev_res->res);
res               450 drivers/pci/setup-bus.c 			remove_from_list(&save_head, dev_res->res);
res               458 drivers/pci/setup-bus.c 		if (dev_res->res->parent)
res               459 drivers/pci/setup-bus.c 			release_resource(dev_res->res);
res               462 drivers/pci/setup-bus.c 		struct resource *res = save_res->res;
res               464 drivers/pci/setup-bus.c 		res->start = save_res->start;
res               465 drivers/pci/setup-bus.c 		res->end = save_res->end;
res               466 drivers/pci/setup-bus.c 		res->flags = save_res->flags;
res               507 drivers/pci/setup-bus.c 	struct resource *res;
res               513 drivers/pci/setup-bus.c 	res = bus->resource[0];
res               514 drivers/pci/setup-bus.c 	pcibios_resource_to_bus(bridge->bus, &region, res);
res               515 drivers/pci/setup-bus.c 	if (res->flags & IORESOURCE_IO) {
res               520 drivers/pci/setup-bus.c 		pci_info(bridge, "  bridge window %pR\n", res);
res               527 drivers/pci/setup-bus.c 	res = bus->resource[1];
res               528 drivers/pci/setup-bus.c 	pcibios_resource_to_bus(bridge->bus, &region, res);
res               529 drivers/pci/setup-bus.c 	if (res->flags & IORESOURCE_IO) {
res               530 drivers/pci/setup-bus.c 		pci_info(bridge, "  bridge window %pR\n", res);
res               537 drivers/pci/setup-bus.c 	res = bus->resource[2];
res               538 drivers/pci/setup-bus.c 	pcibios_resource_to_bus(bridge->bus, &region, res);
res               539 drivers/pci/setup-bus.c 	if (res->flags & IORESOURCE_MEM) {
res               540 drivers/pci/setup-bus.c 		pci_info(bridge, "  bridge window %pR\n", res);
res               547 drivers/pci/setup-bus.c 	res = bus->resource[3];
res               548 drivers/pci/setup-bus.c 	pcibios_resource_to_bus(bridge->bus, &region, res);
res               549 drivers/pci/setup-bus.c 	if (res->flags & IORESOURCE_MEM) {
res               550 drivers/pci/setup-bus.c 		pci_info(bridge, "  bridge window %pR\n", res);
res               574 drivers/pci/setup-bus.c 	struct resource *res;
res               586 drivers/pci/setup-bus.c 	res = &bridge->resource[PCI_BRIDGE_RESOURCES + 0];
res               587 drivers/pci/setup-bus.c 	pcibios_resource_to_bus(bridge->bus, &region, res);
res               588 drivers/pci/setup-bus.c 	if (res->flags & IORESOURCE_IO) {
res               595 drivers/pci/setup-bus.c 		pci_info(bridge, "  bridge window %pR\n", res);
res               611 drivers/pci/setup-bus.c 	struct resource *res;
res               616 drivers/pci/setup-bus.c 	res = &bridge->resource[PCI_BRIDGE_RESOURCES + 1];
res               617 drivers/pci/setup-bus.c 	pcibios_resource_to_bus(bridge->bus, &region, res);
res               618 drivers/pci/setup-bus.c 	if (res->flags & IORESOURCE_MEM) {
res               621 drivers/pci/setup-bus.c 		pci_info(bridge, "  bridge window %pR\n", res);
res               630 drivers/pci/setup-bus.c 	struct resource *res;
res               643 drivers/pci/setup-bus.c 	res = &bridge->resource[PCI_BRIDGE_RESOURCES + 2];
res               644 drivers/pci/setup-bus.c 	pcibios_resource_to_bus(bridge->bus, &region, res);
res               645 drivers/pci/setup-bus.c 	if (res->flags & IORESOURCE_PREFETCH) {
res               648 drivers/pci/setup-bus.c 		if (res->flags & IORESOURCE_MEM_64) {
res               652 drivers/pci/setup-bus.c 		pci_info(bridge, "  bridge window %pR\n", res);
res              1079 drivers/pci/setup-bus.c unsigned long pci_cardbus_resource_alignment(struct resource *res)
res              1081 drivers/pci/setup-bus.c 	if (res->flags & IORESOURCE_IO)
res              1083 drivers/pci/setup-bus.c 	if (res->flags & IORESOURCE_MEM)
res              1587 drivers/pci/setup-bus.c 	struct resource *res;
res              1590 drivers/pci/setup-bus.c 	pci_bus_for_each_resource(bus, res, i) {
res              1591 drivers/pci/setup-bus.c 		if (!res || !res->end || !res->flags)
res              1594 drivers/pci/setup-bus.c 		dev_info(&bus->dev, "resource %d %pR\n", i, res);
res              1787 drivers/pci/setup-bus.c 		struct resource *res = fail_res->res;
res              1790 drivers/pci/setup-bus.c 		res->start = fail_res->start;
res              1791 drivers/pci/setup-bus.c 		res->end = fail_res->end;
res              1792 drivers/pci/setup-bus.c 		res->flags = fail_res->flags;
res              1795 drivers/pci/setup-bus.c 			idx = res - &fail_res->dev->resource[0];
res              1798 drivers/pci/setup-bus.c 				res->flags = 0;
res              1823 drivers/pci/setup-bus.c static void extend_bridge_window(struct pci_dev *bridge, struct resource *res,
res              1829 drivers/pci/setup-bus.c 	if (res->parent)
res              1832 drivers/pci/setup-bus.c 	if (resource_size(res) >= available)
res              1835 drivers/pci/setup-bus.c 	dev_res = res_to_dev_res(add_list, res);
res              1840 drivers/pci/setup-bus.c 	if (available - resource_size(res) <= dev_res->add_size)
res              1843 drivers/pci/setup-bus.c 	dev_res->add_size = available - resource_size(res);
res              1844 drivers/pci/setup-bus.c 	pci_dbg(bridge, "bridge window %pR extended by %pa\n", res,
res              1915 drivers/pci/setup-bus.c 		const struct resource *res;
res              1924 drivers/pci/setup-bus.c 		res = &dev->resource[PCI_BRIDGE_RESOURCES + 0];
res              1925 drivers/pci/setup-bus.c 		if (!res->parent && available_io > resource_size(res))
res              1926 drivers/pci/setup-bus.c 			remaining_io -= resource_size(res);
res              1928 drivers/pci/setup-bus.c 		res = &dev->resource[PCI_BRIDGE_RESOURCES + 1];
res              1929 drivers/pci/setup-bus.c 		if (!res->parent && available_mmio > resource_size(res))
res              1930 drivers/pci/setup-bus.c 			remaining_mmio -= resource_size(res);
res              1932 drivers/pci/setup-bus.c 		res = &dev->resource[PCI_BRIDGE_RESOURCES + 2];
res              1933 drivers/pci/setup-bus.c 		if (!res->parent && available_mmio_pref > resource_size(res))
res              1934 drivers/pci/setup-bus.c 			remaining_mmio_pref -= resource_size(res);
res              1978 drivers/pci/setup-bus.c 	const struct resource *res;
res              1984 drivers/pci/setup-bus.c 	res = &bridge->resource[PCI_BRIDGE_RESOURCES + 0];
res              1985 drivers/pci/setup-bus.c 	available_io = resource_size(res);
res              1986 drivers/pci/setup-bus.c 	res = &bridge->resource[PCI_BRIDGE_RESOURCES + 1];
res              1987 drivers/pci/setup-bus.c 	available_mmio = resource_size(res);
res              1988 drivers/pci/setup-bus.c 	res = &bridge->resource[PCI_BRIDGE_RESOURCES + 2];
res              1989 drivers/pci/setup-bus.c 	available_mmio_pref = resource_size(res);
res              2045 drivers/pci/setup-bus.c 		struct resource *res = fail_res->res;
res              2048 drivers/pci/setup-bus.c 		res->start = fail_res->start;
res              2049 drivers/pci/setup-bus.c 		res->end = fail_res->end;
res              2050 drivers/pci/setup-bus.c 		res->flags = fail_res->flags;
res              2053 drivers/pci/setup-bus.c 			idx = res - &fail_res->dev->resource[0];
res              2056 drivers/pci/setup-bus.c 				res->flags = 0;
res              2087 drivers/pci/setup-bus.c 			struct resource *res = &bridge->resource[i];
res              2089 drivers/pci/setup-bus.c 			if ((res->flags ^ type) & PCI_RES_TYPE_MASK)
res              2093 drivers/pci/setup-bus.c 			if (res->child)
res              2096 drivers/pci/setup-bus.c 			ret = add_to_list(&saved, bridge, res, 0, 0);
res              2101 drivers/pci/setup-bus.c 				 i, res);
res              2103 drivers/pci/setup-bus.c 			if (res->parent)
res              2104 drivers/pci/setup-bus.c 				release_resource(res);
res              2105 drivers/pci/setup-bus.c 			res->start = 0;
res              2106 drivers/pci/setup-bus.c 			res->end = 0;
res              2142 drivers/pci/setup-bus.c 		struct resource *res = dev_res->res;
res              2144 drivers/pci/setup-bus.c 		res->start = dev_res->start;
res              2145 drivers/pci/setup-bus.c 		res->end = dev_res->end;
res              2146 drivers/pci/setup-bus.c 		res->flags = dev_res->flags;
res              2152 drivers/pci/setup-bus.c 		struct resource *res = dev_res->res;
res              2155 drivers/pci/setup-bus.c 		i = res - bridge->resource;
res              2157 drivers/pci/setup-bus.c 		res->start = dev_res->start;
res              2158 drivers/pci/setup-bus.c 		res->end = dev_res->end;
res              2159 drivers/pci/setup-bus.c 		res->flags = dev_res->flags;
res                32 drivers/pci/setup-res.c 	struct resource *res = dev->resource + resno;
res                42 drivers/pci/setup-res.c 	if (!res->flags)
res                45 drivers/pci/setup-res.c 	if (res->flags & IORESOURCE_UNSET)
res                53 drivers/pci/setup-res.c 	if (res->flags & IORESOURCE_PCI_FIXED)
res                56 drivers/pci/setup-res.c 	pcibios_resource_to_bus(dev->bus, &region, res);
res                59 drivers/pci/setup-res.c 	if (res->flags & IORESOURCE_IO) {
res                61 drivers/pci/setup-res.c 		new |= res->flags & ~PCI_BASE_ADDRESS_IO_MASK;
res                66 drivers/pci/setup-res.c 		new |= res->flags & ~PCI_BASE_ADDRESS_MEM_MASK;
res                78 drivers/pci/setup-res.c 		if (!(res->flags & IORESOURCE_ROM_ENABLE))
res                91 drivers/pci/setup-res.c 	disable = (res->flags & IORESOURCE_MEM_64) && !dev->mmio_always_on;
res               106 drivers/pci/setup-res.c 	if (res->flags & IORESOURCE_MEM_64) {
res               132 drivers/pci/setup-res.c 	struct resource *res = &dev->resource[resource];
res               135 drivers/pci/setup-res.c 	if (res->flags & IORESOURCE_UNSET) {
res               137 drivers/pci/setup-res.c 			 resource, res);
res               146 drivers/pci/setup-res.c 	if (res->flags & IORESOURCE_ROM_SHADOW)
res               149 drivers/pci/setup-res.c 	root = pci_find_parent_resource(dev, res);
res               152 drivers/pci/setup-res.c 			 resource, res);
res               153 drivers/pci/setup-res.c 		res->flags |= IORESOURCE_UNSET;
res               157 drivers/pci/setup-res.c 	conflict = request_resource_conflict(root, res);
res               160 drivers/pci/setup-res.c 			 resource, res, conflict->name, conflict);
res               161 drivers/pci/setup-res.c 		res->flags |= IORESOURCE_UNSET;
res               194 drivers/pci/setup-res.c static int pci_revert_fw_address(struct resource *res, struct pci_dev *dev,
res               204 drivers/pci/setup-res.c 	start = res->start;
res               205 drivers/pci/setup-res.c 	end = res->end;
res               206 drivers/pci/setup-res.c 	res->start = fw_addr;
res               207 drivers/pci/setup-res.c 	res->end = res->start + size - 1;
res               208 drivers/pci/setup-res.c 	res->flags &= ~IORESOURCE_UNSET;
res               210 drivers/pci/setup-res.c 	root = pci_find_parent_resource(dev, res);
res               212 drivers/pci/setup-res.c 		if (res->flags & IORESOURCE_IO)
res               219 drivers/pci/setup-res.c 		 resno, res);
res               220 drivers/pci/setup-res.c 	conflict = request_resource_conflict(root, res);
res               223 drivers/pci/setup-res.c 			 resno, res, conflict->name, conflict);
res               224 drivers/pci/setup-res.c 		res->start = start;
res               225 drivers/pci/setup-res.c 		res->end = end;
res               226 drivers/pci/setup-res.c 		res->flags |= IORESOURCE_UNSET;
res               238 drivers/pci/setup-res.c 					      const struct resource *res,
res               242 drivers/pci/setup-res.c        return res->start;
res               248 drivers/pci/setup-res.c 	struct resource *res = dev->resource + resno;
res               252 drivers/pci/setup-res.c 	min = (res->flags & IORESOURCE_IO) ? PCIBIOS_MIN_IO : PCIBIOS_MIN_MEM;
res               261 drivers/pci/setup-res.c 	ret = pci_bus_alloc_resource(bus, res, size, align, min,
res               271 drivers/pci/setup-res.c 	if ((res->flags & (IORESOURCE_PREFETCH | IORESOURCE_MEM_64)) ==
res               273 drivers/pci/setup-res.c 		ret = pci_bus_alloc_resource(bus, res, size, align, min,
res               286 drivers/pci/setup-res.c 	if (res->flags & (IORESOURCE_PREFETCH | IORESOURCE_MEM_64))
res               287 drivers/pci/setup-res.c 		ret = pci_bus_alloc_resource(bus, res, size, align, min, 0,
res               311 drivers/pci/setup-res.c 	struct resource *res = dev->resource + resno;
res               315 drivers/pci/setup-res.c 	if (res->flags & IORESOURCE_PCI_FIXED)
res               318 drivers/pci/setup-res.c 	res->flags |= IORESOURCE_UNSET;
res               319 drivers/pci/setup-res.c 	align = pci_resource_alignment(dev, res);
res               322 drivers/pci/setup-res.c 			 resno, res);
res               326 drivers/pci/setup-res.c 	size = resource_size(res);
res               335 drivers/pci/setup-res.c 		pci_info(dev, "BAR %d: no space for %pR\n", resno, res);
res               336 drivers/pci/setup-res.c 		ret = pci_revert_fw_address(res, dev, resno, size);
res               340 drivers/pci/setup-res.c 		pci_info(dev, "BAR %d: failed to assign %pR\n", resno, res);
res               344 drivers/pci/setup-res.c 	res->flags &= ~IORESOURCE_UNSET;
res               345 drivers/pci/setup-res.c 	res->flags &= ~IORESOURCE_STARTALIGN;
res               346 drivers/pci/setup-res.c 	pci_info(dev, "BAR %d: assigned %pR\n", resno, res);
res               357 drivers/pci/setup-res.c 	struct resource *res = dev->resource + resno;
res               362 drivers/pci/setup-res.c 	if (res->flags & IORESOURCE_PCI_FIXED)
res               365 drivers/pci/setup-res.c 	flags = res->flags;
res               366 drivers/pci/setup-res.c 	res->flags |= IORESOURCE_UNSET;
res               367 drivers/pci/setup-res.c 	if (!res->parent) {
res               369 drivers/pci/setup-res.c 			 resno, res);
res               374 drivers/pci/setup-res.c 	new_size = resource_size(res) + addsize;
res               377 drivers/pci/setup-res.c 		res->flags = flags;
res               379 drivers/pci/setup-res.c 			 resno, res, (unsigned long long) addsize);
res               383 drivers/pci/setup-res.c 	res->flags &= ~IORESOURCE_UNSET;
res               384 drivers/pci/setup-res.c 	res->flags &= ~IORESOURCE_STARTALIGN;
res               386 drivers/pci/setup-res.c 		 resno, res, (unsigned long long) addsize);
res               395 drivers/pci/setup-res.c 	struct resource *res = dev->resource + resno;
res               397 drivers/pci/setup-res.c 	pci_info(dev, "BAR %d: releasing %pR\n", resno, res);
res               399 drivers/pci/setup-res.c 	if (!res->parent)
res               402 drivers/pci/setup-res.c 	release_resource(res);
res               403 drivers/pci/setup-res.c 	res->end = resource_size(res) - 1;
res               404 drivers/pci/setup-res.c 	res->start = 0;
res               405 drivers/pci/setup-res.c 	res->flags |= IORESOURCE_UNSET;
res               411 drivers/pci/setup-res.c 	struct resource *res = dev->resource + resno;
res               417 drivers/pci/setup-res.c 	if (!(res->flags & IORESOURCE_UNSET))
res               439 drivers/pci/setup-res.c 	res->end = res->start + pci_rebar_size_to_bytes(size) - 1;
res               442 drivers/pci/setup-res.c 	ret = pci_reassign_bridge_resources(dev->bus->self, res->flags);
res               450 drivers/pci/setup-res.c 	res->end = res->start + pci_rebar_size_to_bytes(old) - 1;
res                72 drivers/pci/vc.c static void pci_vc_load_port_arb_table(struct pci_dev *dev, int pos, int res)
res                77 drivers/pci/vc.c 	ctrl_pos = pos + PCI_VC_RES_CTRL + (res * PCI_CAP_VC_PER_VC_SIZEOF);
res                78 drivers/pci/vc.c 	status_pos = pos + PCI_VC_RES_STATUS + (res * PCI_CAP_VC_PER_VC_SIZEOF);
res                87 drivers/pci/vc.c 	pci_err(dev, "VC%d port arbitration table failed to load\n", res);
res               103 drivers/pci/vc.c static void pci_vc_enable(struct pci_dev *dev, int pos, int res)
res               113 drivers/pci/vc.c 	ctrl_pos = pos + PCI_VC_RES_CTRL + (res * PCI_CAP_VC_PER_VC_SIZEOF);
res               114 drivers/pci/vc.c 	status_pos = pos + PCI_VC_RES_STATUS + (res * PCI_CAP_VC_PER_VC_SIZEOF);
res               342 drivers/pcmcia/at91_cf.c 	cf->socket.io[0].res = io;
res               302 drivers/pcmcia/bcm63xx_pcmcia.c 	struct resource *res;
res               306 drivers/pcmcia/bcm63xx_pcmcia.c 		res = skt->attr_res;
res               308 drivers/pcmcia/bcm63xx_pcmcia.c 		res = skt->common_res;
res               310 drivers/pcmcia/bcm63xx_pcmcia.c 	map->static_start = res->start + map->card_start;
res               330 drivers/pcmcia/bcm63xx_pcmcia.c 	struct resource *res, *irq_res;
res               353 drivers/pcmcia/bcm63xx_pcmcia.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               354 drivers/pcmcia/bcm63xx_pcmcia.c 	regmem_size = resource_size(res);
res               355 drivers/pcmcia/bcm63xx_pcmcia.c 	if (!request_mem_region(res->start, regmem_size, "bcm63xx_pcmcia")) {
res               359 drivers/pcmcia/bcm63xx_pcmcia.c 	skt->reg_res = res;
res               361 drivers/pcmcia/bcm63xx_pcmcia.c 	skt->base = ioremap(res->start, regmem_size);
res               368 drivers/pcmcia/bcm63xx_pcmcia.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 3);
res               369 drivers/pcmcia/bcm63xx_pcmcia.c 	iomem_size = resource_size(res);
res               370 drivers/pcmcia/bcm63xx_pcmcia.c 	skt->io_base = ioremap(res->start, iomem_size);
res               442 drivers/pcmcia/bcm63xx_pcmcia.c 	struct resource *res;
res               448 drivers/pcmcia/bcm63xx_pcmcia.c 	res = skt->reg_res;
res               449 drivers/pcmcia/bcm63xx_pcmcia.c 	release_mem_region(res->start, resource_size(res));
res                66 drivers/pcmcia/cistpl.c 		if (s->cis_mem.res) {
res                67 drivers/pcmcia/cistpl.c 			release_resource(s->cis_mem.res);
res                68 drivers/pcmcia/cistpl.c 			kfree(s->cis_mem.res);
res                69 drivers/pcmcia/cistpl.c 			s->cis_mem.res = NULL;
res                91 drivers/pcmcia/cistpl.c 	if (!(s->features & SS_CAP_STATIC_MAP) && (mem->res == NULL)) {
res                92 drivers/pcmcia/cistpl.c 		mem->res = pcmcia_find_mem_region(0, s->map_size,
res                94 drivers/pcmcia/cistpl.c 		if (mem->res == NULL) {
res               102 drivers/pcmcia/cistpl.c 		s->cis_virt = ioremap(mem->res->start, s->map_size);
res               399 drivers/pcmcia/i82092.c 	struct resource res = { .start = 0, .end = 0x0fff };
res               401 drivers/pcmcia/i82092.c 	pccard_mem_map mem = { .res = &res, };
res               612 drivers/pcmcia/i82092.c 	pcibios_resource_to_bus(sock_info->dev->bus, &region, mem->res);
res              1068 drivers/pcmcia/i82365.c 	  (unsigned long long)mem->res->start,
res              1069 drivers/pcmcia/i82365.c 	  (unsigned long long)mem->res->end, mem->card_start);
res              1073 drivers/pcmcia/i82365.c 	(mem->res->start > mem->res->end) || (mem->speed > 1000))
res              1075 drivers/pcmcia/i82365.c     if ((mem->res->start > 0xffffff) || (mem->res->end > 0xffffff))
res              1083 drivers/pcmcia/i82365.c     i = (mem->res->start >> 12) & 0x0fff;
res              1088 drivers/pcmcia/i82365.c     i = (mem->res->end >> 12) & 0x0fff;
res              1097 drivers/pcmcia/i82365.c     i = ((mem->card_start - mem->res->start) >> 12) & 0x3fff;
res              1207 drivers/pcmcia/i82365.c 	struct resource res = { .start = 0, .end = 0x1000 };
res              1209 drivers/pcmcia/i82365.c 	pccard_mem_map mem = { .res = &res, };
res               295 drivers/pcmcia/omap_cf.c 	cf->socket.io[0].res = &cf->iomem;
res                60 drivers/pcmcia/pcmcia_resource.c static void release_io_space(struct pcmcia_socket *s, struct resource *res)
res                62 drivers/pcmcia/pcmcia_resource.c 	resource_size_t num = resource_size(res);
res                65 drivers/pcmcia/pcmcia_resource.c 	dev_dbg(&s->dev, "release_io_space for %pR\n", res);
res                68 drivers/pcmcia/pcmcia_resource.c 		if (!s->io[i].res)
res                70 drivers/pcmcia/pcmcia_resource.c 		if ((s->io[i].res->start <= res->start) &&
res                71 drivers/pcmcia/pcmcia_resource.c 		    (s->io[i].res->end >= res->end)) {
res                73 drivers/pcmcia/pcmcia_resource.c 			if (res->parent)
res                74 drivers/pcmcia/pcmcia_resource.c 				release_resource(res);
res                75 drivers/pcmcia/pcmcia_resource.c 			res->start = res->end = 0;
res                76 drivers/pcmcia/pcmcia_resource.c 			res->flags = IORESOURCE_IO;
res                79 drivers/pcmcia/pcmcia_resource.c 				release_resource(s->io[i].res);
res                80 drivers/pcmcia/pcmcia_resource.c 				kfree(s->io[i].res);
res                81 drivers/pcmcia/pcmcia_resource.c 				s->io[i].res = NULL;
res                96 drivers/pcmcia/pcmcia_resource.c static int alloc_io_space(struct pcmcia_socket *s, struct resource *res,
res               100 drivers/pcmcia/pcmcia_resource.c 	unsigned int base = res->start;
res               101 drivers/pcmcia/pcmcia_resource.c 	unsigned int num = res->end;
res               104 drivers/pcmcia/pcmcia_resource.c 	res->flags |= IORESOURCE_IO;
res               107 drivers/pcmcia/pcmcia_resource.c 		res, lines);
res               123 drivers/pcmcia/pcmcia_resource.c 	ret = s->resource_ops->find_io(s, res->flags, &base, num, align,
res               124 drivers/pcmcia/pcmcia_resource.c 				&res->parent);
res               130 drivers/pcmcia/pcmcia_resource.c 	res->start = base;
res               131 drivers/pcmcia/pcmcia_resource.c 	res->end = res->start + num - 1;
res               133 drivers/pcmcia/pcmcia_resource.c 	if (res->parent) {
res               134 drivers/pcmcia/pcmcia_resource.c 		ret = request_resource(res->parent, res);
res               137 drivers/pcmcia/pcmcia_resource.c 				"request_resource %pR failed: %d\n", res, ret);
res               138 drivers/pcmcia/pcmcia_resource.c 			res->parent = NULL;
res               139 drivers/pcmcia/pcmcia_resource.c 			release_io_space(s, res);
res               142 drivers/pcmcia/pcmcia_resource.c 	dev_dbg(&s->dev, "alloc_io_space request result %d: %pR\n", ret, res);
res               223 drivers/pcmcia/pcmcia_resource.c int pcmcia_map_mem_page(struct pcmcia_device *p_dev, struct resource *res,
res               230 drivers/pcmcia/pcmcia_resource.c 	w = ((res->flags & IORESOURCE_BITS & WIN_FLAGS_REQ) >> 2) - 1;
res               273 drivers/pcmcia/pcmcia_resource.c 		if (!s->io[i].res)
res               279 drivers/pcmcia/pcmcia_resource.c 		io_on.start = s->io[i].res->start;
res               280 drivers/pcmcia/pcmcia_resource.c 		io_on.stop = s->io[i].res->end;
res               368 drivers/pcmcia/pcmcia_resource.c 				if (!s->io[i].res)
res               428 drivers/pcmcia/pcmcia_resource.c int pcmcia_release_window(struct pcmcia_device *p_dev, struct resource *res)
res               434 drivers/pcmcia/pcmcia_resource.c 	dev_dbg(&p_dev->dev, "releasing window %pR\n", res);
res               436 drivers/pcmcia/pcmcia_resource.c 	w = ((res->flags & IORESOURCE_BITS & WIN_FLAGS_REQ) >> 2) - 1;
res               455 drivers/pcmcia/pcmcia_resource.c 	if (win->res) {
res               456 drivers/pcmcia/pcmcia_resource.c 		release_resource(res);
res               457 drivers/pcmcia/pcmcia_resource.c 		release_resource(win->res);
res               458 drivers/pcmcia/pcmcia_resource.c 		kfree(win->res);
res               459 drivers/pcmcia/pcmcia_resource.c 		win->res = NULL;
res               461 drivers/pcmcia/pcmcia_resource.c 	res->start = res->end = 0;
res               462 drivers/pcmcia/pcmcia_resource.c 	res->flags = IORESOURCE_MEM;
res               590 drivers/pcmcia/pcmcia_resource.c 			if (s->io[i].res) {
res               593 drivers/pcmcia/pcmcia_resource.c 				switch (s->io[i].res->flags & IO_DATA_PATH_WIDTH) {
res               601 drivers/pcmcia/pcmcia_resource.c 				iomap.start = s->io[i].res->start;
res               602 drivers/pcmcia/pcmcia_resource.c 				iomap.stop = s->io[i].res->end;
res               835 drivers/pcmcia/pcmcia_resource.c int pcmcia_request_window(struct pcmcia_device *p_dev, struct resource *res,
res               843 drivers/pcmcia/pcmcia_resource.c 	dev_dbg(&p_dev->dev, "request_window %pR %d\n", res, speed);
res               851 drivers/pcmcia/pcmcia_resource.c 	if (res->end == 0)
res               852 drivers/pcmcia/pcmcia_resource.c 		res->end = s->map_size;
res               853 drivers/pcmcia/pcmcia_resource.c 	align = (s->features & SS_CAP_MEM_ALIGN) ? res->end : s->map_size;
res               854 drivers/pcmcia/pcmcia_resource.c 	if (res->end & (s->map_size-1)) {
res               858 drivers/pcmcia/pcmcia_resource.c 	if ((res->start && (s->features & SS_CAP_STATIC_MAP)) ||
res               859 drivers/pcmcia/pcmcia_resource.c 	    (res->start & (align-1))) {
res               863 drivers/pcmcia/pcmcia_resource.c 	if (res->start)
res               880 drivers/pcmcia/pcmcia_resource.c 		win->res = pcmcia_find_mem_region(res->start, res->end, align,
res               882 drivers/pcmcia/pcmcia_resource.c 		if (!win->res) {
res               892 drivers/pcmcia/pcmcia_resource.c 	win->flags = res->flags & WIN_FLAGS_MAP;
res               905 drivers/pcmcia/pcmcia_resource.c 		res->start = win->static_start;
res               907 drivers/pcmcia/pcmcia_resource.c 		res->start = win->res->start;
res               910 drivers/pcmcia/pcmcia_resource.c 	res->end += res->start - 1;
res               911 drivers/pcmcia/pcmcia_resource.c 	res->flags &= ~WIN_FLAGS_REQ;
res               912 drivers/pcmcia/pcmcia_resource.c 	res->flags |= (win->map << 2) | IORESOURCE_MEM;
res               913 drivers/pcmcia/pcmcia_resource.c 	res->parent = win->res;
res               914 drivers/pcmcia/pcmcia_resource.c 	if (win->res)
res               915 drivers/pcmcia/pcmcia_resource.c 		request_resource(&iomem_resource, res);
res               917 drivers/pcmcia/pcmcia_resource.c 	dev_dbg(&p_dev->dev, "request_window results in %pR\n", res);
res               945 drivers/pcmcia/pcmcia_resource.c 		struct resource *res = p_dev->resource[MAX_IO_WIN + i];
res               946 drivers/pcmcia/pcmcia_resource.c 		if (res->flags & WIN_FLAGS_REQ)
res               947 drivers/pcmcia/pcmcia_resource.c 			pcmcia_release_window(p_dev, res);
res               480 drivers/pcmcia/pd6729.c 	if ((mem->res->start > mem->res->end) || (mem->speed > 1000)) {
res               491 drivers/pcmcia/pd6729.c 	i = (mem->res->start >> 12) & 0x0fff;
res               500 drivers/pcmcia/pd6729.c 	i = (mem->res->end >> 12) & 0x0fff;
res               519 drivers/pcmcia/pd6729.c 	indirect_write(socket, PD67_EXT_DATA, mem->res->start >> 24);
res               523 drivers/pcmcia/pd6729.c 	i = ((mem->card_start - mem->res->start) >> 12) & 0x3fff;
res               546 drivers/pcmcia/pd6729.c 	struct resource res = { .end = 0x0fff };
res               548 drivers/pcmcia/pd6729.c 	pccard_mem_map mem = { .res = &res, };
res                27 drivers/pcmcia/rsrc_iodyn.c 				const struct resource *res,
res                33 drivers/pcmcia/rsrc_iodyn.c 	start = (res->start & ~data->mask) + data->offset;
res                34 drivers/pcmcia/rsrc_iodyn.c 	if (start < res->start)
res                38 drivers/pcmcia/rsrc_iodyn.c 	if (res->flags & IORESOURCE_IO) {
res                45 drivers/pcmcia/rsrc_iodyn.c 	if (res->flags & IORESOURCE_IO) {
res                46 drivers/pcmcia/rsrc_iodyn.c 		if ((res->start + size - 1) >= 1024)
res                47 drivers/pcmcia/rsrc_iodyn.c 			start = res->end;
res                59 drivers/pcmcia/rsrc_iodyn.c 	struct resource *res = pcmcia_make_resource(0, num, IORESOURCE_IO,
res                70 drivers/pcmcia/rsrc_iodyn.c 		ret = pci_bus_alloc_resource(s->cb_dev->bus, res, num, 1,
res                74 drivers/pcmcia/rsrc_iodyn.c 		ret = allocate_resource(&ioport_resource, res, num, min, ~0UL,
res                78 drivers/pcmcia/rsrc_iodyn.c 		kfree(res);
res                79 drivers/pcmcia/rsrc_iodyn.c 		res = NULL;
res                81 drivers/pcmcia/rsrc_iodyn.c 	return res;
res                95 drivers/pcmcia/rsrc_iodyn.c 		if (!s->io[i].res)
res               101 drivers/pcmcia/rsrc_iodyn.c 		if ((s->io[i].res->start & (align-1)) == *base)
res               106 drivers/pcmcia/rsrc_iodyn.c 		struct resource *res = s->io[i].res;
res               109 drivers/pcmcia/rsrc_iodyn.c 		if (res && (res->flags & IORESOURCE_BITS) !=
res               113 drivers/pcmcia/rsrc_iodyn.c 		if (!res) {
res               117 drivers/pcmcia/rsrc_iodyn.c 			res = s->io[i].res = __iodyn_find_io_region(s, *base,
res               119 drivers/pcmcia/rsrc_iodyn.c 			if (!res)
res               122 drivers/pcmcia/rsrc_iodyn.c 			*base = res->start;
res               123 drivers/pcmcia/rsrc_iodyn.c 			s->io[i].res->flags =
res               124 drivers/pcmcia/rsrc_iodyn.c 				((res->flags & ~IORESOURCE_BITS) |
res               127 drivers/pcmcia/rsrc_iodyn.c 			*parent = res;
res               132 drivers/pcmcia/rsrc_iodyn.c 		try = res->end + 1;
res               134 drivers/pcmcia/rsrc_iodyn.c 			if (adjust_resource(s->io[i].res, res->start,
res               135 drivers/pcmcia/rsrc_iodyn.c 					    resource_size(res) + num))
res               139 drivers/pcmcia/rsrc_iodyn.c 			*parent = res;
res               144 drivers/pcmcia/rsrc_iodyn.c 		try = res->start - num;
res               146 drivers/pcmcia/rsrc_iodyn.c 			if (adjust_resource(s->io[i].res,
res               147 drivers/pcmcia/rsrc_iodyn.c 					    res->start - num,
res               148 drivers/pcmcia/rsrc_iodyn.c 					    resource_size(res) + num))
res               152 drivers/pcmcia/rsrc_iodyn.c 			*parent = res;
res                34 drivers/pcmcia/rsrc_mgr.c 	struct resource *res = kzalloc(sizeof(*res), GFP_KERNEL);
res                36 drivers/pcmcia/rsrc_mgr.c 	if (res) {
res                37 drivers/pcmcia/rsrc_mgr.c 		res->name = name;
res                38 drivers/pcmcia/rsrc_mgr.c 		res->start = start;
res                39 drivers/pcmcia/rsrc_mgr.c 		res->end = start + end - 1;
res                40 drivers/pcmcia/rsrc_mgr.c 		res->flags = flags;
res                42 drivers/pcmcia/rsrc_mgr.c 	return res;
res                76 drivers/pcmcia/rsrc_nonstatic.c 	struct resource *res, *parent;
res                79 drivers/pcmcia/rsrc_nonstatic.c 	res = pcmcia_make_resource(base, size, type | IORESOURCE_BUSY, name);
res                81 drivers/pcmcia/rsrc_nonstatic.c 	if (res) {
res                84 drivers/pcmcia/rsrc_nonstatic.c 			parent = pci_find_parent_resource(s->cb_dev, res);
res                86 drivers/pcmcia/rsrc_nonstatic.c 		if (!parent || request_resource(parent, res)) {
res                87 drivers/pcmcia/rsrc_nonstatic.c 			kfree(res);
res                88 drivers/pcmcia/rsrc_nonstatic.c 			res = NULL;
res                91 drivers/pcmcia/rsrc_nonstatic.c 	return res;
res                94 drivers/pcmcia/rsrc_nonstatic.c static void free_region(struct resource *res)
res                96 drivers/pcmcia/rsrc_nonstatic.c 	if (res) {
res                97 drivers/pcmcia/rsrc_nonstatic.c 		release_resource(res);
res                98 drivers/pcmcia/rsrc_nonstatic.c 		kfree(res);
res               185 drivers/pcmcia/rsrc_nonstatic.c 	struct resource *res;
res               201 drivers/pcmcia/rsrc_nonstatic.c 		res = claim_region(s, i, 8, IORESOURCE_IO, "PCMCIA ioprobe");
res               202 drivers/pcmcia/rsrc_nonstatic.c 		if (!res)
res               208 drivers/pcmcia/rsrc_nonstatic.c 		free_region(res);
res               218 drivers/pcmcia/rsrc_nonstatic.c 		res = claim_region(s, i, 8, IORESOURCE_IO, "PCMCIA ioprobe");
res               219 drivers/pcmcia/rsrc_nonstatic.c 		if (!res) {
res               229 drivers/pcmcia/rsrc_nonstatic.c 		free_region(res);
res               263 drivers/pcmcia/rsrc_nonstatic.c static int readable(struct pcmcia_socket *s, struct resource *res,
res               273 drivers/pcmcia/rsrc_nonstatic.c 	s->cis_mem.res = res;
res               274 drivers/pcmcia/rsrc_nonstatic.c 	s->cis_virt = ioremap(res->start, s->map_size);
res               285 drivers/pcmcia/rsrc_nonstatic.c 	s->cis_mem.res = NULL;
res               294 drivers/pcmcia/rsrc_nonstatic.c static int checksum(struct pcmcia_socket *s, struct resource *res,
res               301 drivers/pcmcia/rsrc_nonstatic.c 	virt = ioremap(res->start, s->map_size);
res               306 drivers/pcmcia/rsrc_nonstatic.c 		map.res = res;
res               347 drivers/pcmcia/rsrc_nonstatic.c 					 struct resource *res,
res               402 drivers/pcmcia/rsrc_nonstatic.c 				      struct resource *res,
res               405 drivers/pcmcia/rsrc_nonstatic.c 				      struct resource *res,
res               603 drivers/pcmcia/rsrc_nonstatic.c pcmcia_align(void *align_data, const struct resource *res,
res               610 drivers/pcmcia/rsrc_nonstatic.c 	start = pcmcia_common_align(data, res->start);
res               628 drivers/pcmcia/rsrc_nonstatic.c 		if (start >= res->end)
res               639 drivers/pcmcia/rsrc_nonstatic.c 		start = res->end;
res               686 drivers/pcmcia/rsrc_nonstatic.c 	struct resource *res = pcmcia_make_resource(0, num, IORESOURCE_IO,
res               699 drivers/pcmcia/rsrc_nonstatic.c 		ret = pci_bus_alloc_resource(s->cb_dev->bus, res, num, 1,
res               703 drivers/pcmcia/rsrc_nonstatic.c 		ret = allocate_resource(&ioport_resource, res, num, min, ~0UL,
res               707 drivers/pcmcia/rsrc_nonstatic.c 		kfree(res);
res               708 drivers/pcmcia/rsrc_nonstatic.c 		res = NULL;
res               710 drivers/pcmcia/rsrc_nonstatic.c 	return res;
res               724 drivers/pcmcia/rsrc_nonstatic.c 		if (!s->io[i].res)
res               730 drivers/pcmcia/rsrc_nonstatic.c 		if ((s->io[i].res->start & (align-1)) == *base)
res               735 drivers/pcmcia/rsrc_nonstatic.c 		struct resource *res = s->io[i].res;
res               738 drivers/pcmcia/rsrc_nonstatic.c 		if (res && (res->flags & IORESOURCE_BITS) !=
res               742 drivers/pcmcia/rsrc_nonstatic.c 		if (!res) {
res               746 drivers/pcmcia/rsrc_nonstatic.c 			res = s->io[i].res = __nonstatic_find_io_region(s,
res               749 drivers/pcmcia/rsrc_nonstatic.c 			if (!res)
res               752 drivers/pcmcia/rsrc_nonstatic.c 			*base = res->start;
res               753 drivers/pcmcia/rsrc_nonstatic.c 			s->io[i].res->flags =
res               754 drivers/pcmcia/rsrc_nonstatic.c 				((res->flags & ~IORESOURCE_BITS) |
res               757 drivers/pcmcia/rsrc_nonstatic.c 			*parent = res;
res               762 drivers/pcmcia/rsrc_nonstatic.c 		try = res->end + 1;
res               764 drivers/pcmcia/rsrc_nonstatic.c 			ret =  __nonstatic_adjust_io_region(s, res->start,
res               765 drivers/pcmcia/rsrc_nonstatic.c 							res->end + num);
res               767 drivers/pcmcia/rsrc_nonstatic.c 				ret = adjust_resource(s->io[i].res, res->start,
res               768 drivers/pcmcia/rsrc_nonstatic.c 						      resource_size(res) + num);
res               773 drivers/pcmcia/rsrc_nonstatic.c 				*parent = res;
res               779 drivers/pcmcia/rsrc_nonstatic.c 		try = res->start - num;
res               782 drivers/pcmcia/rsrc_nonstatic.c 							res->start - num,
res               783 drivers/pcmcia/rsrc_nonstatic.c 							res->end);
res               785 drivers/pcmcia/rsrc_nonstatic.c 				ret = adjust_resource(s->io[i].res,
res               786 drivers/pcmcia/rsrc_nonstatic.c 						      res->start - num,
res               787 drivers/pcmcia/rsrc_nonstatic.c 						      resource_size(res) + num);
res               792 drivers/pcmcia/rsrc_nonstatic.c 				*parent = res;
res               805 drivers/pcmcia/rsrc_nonstatic.c 	struct resource *res = pcmcia_make_resource(0, num, IORESOURCE_MEM,
res               831 drivers/pcmcia/rsrc_nonstatic.c 							res, num, 1, min, 0,
res               837 drivers/pcmcia/rsrc_nonstatic.c 							res, num, min, max, 1,
res               850 drivers/pcmcia/rsrc_nonstatic.c 		kfree(res);
res               851 drivers/pcmcia/rsrc_nonstatic.c 		res = NULL;
res               853 drivers/pcmcia/rsrc_nonstatic.c 	return res;
res               930 drivers/pcmcia/rsrc_nonstatic.c 	struct resource *res;
res               959 drivers/pcmcia/rsrc_nonstatic.c 		res = s->cb_dev->bus->resource[i];
res               961 drivers/pcmcia/rsrc_nonstatic.c 	pci_bus_for_each_resource(s->cb_dev->bus, res, i) {
res               963 drivers/pcmcia/rsrc_nonstatic.c 		if (!res)
res               966 drivers/pcmcia/rsrc_nonstatic.c 		if (res->flags & IORESOURCE_IO) {
res               970 drivers/pcmcia/rsrc_nonstatic.c 			if (res == &ioport_resource)
res               975 drivers/pcmcia/rsrc_nonstatic.c 				 res);
res               976 drivers/pcmcia/rsrc_nonstatic.c 			if (!adjust_io(s, ADD_MANAGED_RESOURCE, res->start, res->end))
res               981 drivers/pcmcia/rsrc_nonstatic.c 		if (res->flags & IORESOURCE_MEM) {
res               985 drivers/pcmcia/rsrc_nonstatic.c 			if (res == &iomem_resource)
res               990 drivers/pcmcia/rsrc_nonstatic.c 				 res);
res               991 drivers/pcmcia/rsrc_nonstatic.c 			if (!adjust_memory(s, ADD_MANAGED_RESOURCE, res->start, res->end))
res               202 drivers/pcmcia/sa1111_generic.c 	if (!request_mem_region(dev->res.start, 512, SA1111_DRIVER_NAME(dev))) {
res               234 drivers/pcmcia/sa1111_generic.c 		release_mem_region(dev->res.start, 512);
res               253 drivers/pcmcia/sa1111_generic.c 	release_mem_region(dev->res.start, 512);
res               619 drivers/pcmcia/soc_common.c 	struct resource *res;
res               645 drivers/pcmcia/soc_common.c 		res = &skt->res_attr;
res               649 drivers/pcmcia/soc_common.c 		res = &skt->res_mem;
res               656 drivers/pcmcia/soc_common.c 	map->static_start = res->start + map->card_start;
res               321 drivers/pcmcia/tcic.c 	struct resource *res = request_region(base, num, "tcic-2");
res               322 drivers/pcmcia/tcic.c 	if (!res) /* region is busy */
res               739 drivers/pcmcia/tcic.c 	  mem->speed, (unsigned long long)mem->res->start,
res               740 drivers/pcmcia/tcic.c 	  (unsigned long long)mem->res->end, mem->card_start);
res               742 drivers/pcmcia/tcic.c 	(mem->res->start > 0xffffff) || (mem->res->end > 0xffffff) ||
res               743 drivers/pcmcia/tcic.c 	(mem->res->start > mem->res->end) || (mem->speed > 1000))
res               748 drivers/pcmcia/tcic.c     base = mem->res->start; len = mem->res->end - mem->res->start;
res               757 drivers/pcmcia/tcic.c     mmap = mem->card_start - mem->res->start;
res               779 drivers/pcmcia/tcic.c 	struct resource res = { .start = 0, .end = 0x1000 };
res               781 drivers/pcmcia/tcic.c 	pccard_mem_map mem = { .res = &res, };
res               418 drivers/pcmcia/vrc4171_card.c 	    mem->res->start < CARD_MEM_START || mem->res->start > CARD_MEM_END ||
res               419 drivers/pcmcia/vrc4171_card.c 	    mem->res->end < CARD_MEM_START || mem->res->end > CARD_MEM_END ||
res               420 drivers/pcmcia/vrc4171_card.c 	    mem->res->start > mem->res->end ||
res               434 drivers/pcmcia/vrc4171_card.c 	start = (mem->res->start >> 12) & 0x3fff;
res               439 drivers/pcmcia/vrc4171_card.c 	stop = (mem->res->end >> 12) & 0x3fff;
res               450 drivers/pcmcia/yenta_socket.c 	pcibios_resource_to_bus(socket->dev->bus, &region, mem->res);
res               551 drivers/pcmcia/yenta_socket.c 	struct resource res = { .start = 0, .end = 0x0fff };
res               553 drivers/pcmcia/yenta_socket.c 	pccard_mem_map mem = { .res = &res, };
res               629 drivers/pcmcia/yenta_socket.c static int yenta_search_one_res(struct resource *root, struct resource *res,
res               634 drivers/pcmcia/yenta_socket.c 	if (res->flags & IORESOURCE_IO) {
res               659 drivers/pcmcia/yenta_socket.c 		if (allocate_resource(root, res, size, start, end, align,
res               671 drivers/pcmcia/yenta_socket.c static int yenta_search_res(struct yenta_socket *socket, struct resource *res,
res               681 drivers/pcmcia/yenta_socket.c 		if ((res->flags ^ root->flags) &
res               685 drivers/pcmcia/yenta_socket.c 		if (yenta_search_one_res(root, res, min))
res               694 drivers/pcmcia/yenta_socket.c 	struct resource *res;
res               698 drivers/pcmcia/yenta_socket.c 	res = dev->resource + PCI_BRIDGE_RESOURCES + nr;
res               700 drivers/pcmcia/yenta_socket.c 	if (res->parent)
res               708 drivers/pcmcia/yenta_socket.c 	res->name = dev->subordinate->name;
res               709 drivers/pcmcia/yenta_socket.c 	res->flags = type;
res               714 drivers/pcmcia/yenta_socket.c 		pcibios_bus_to_resource(dev->bus, res, &region);
res               723 drivers/pcmcia/yenta_socket.c 		if ((yenta_search_res(socket, res, BRIDGE_IO_MAX)) ||
res               724 drivers/pcmcia/yenta_socket.c 		    (yenta_search_res(socket, res, BRIDGE_IO_ACC)) ||
res               725 drivers/pcmcia/yenta_socket.c 		    (yenta_search_res(socket, res, BRIDGE_IO_MIN)))
res               729 drivers/pcmcia/yenta_socket.c 			if ((yenta_search_res(socket, res, BRIDGE_MEM_MAX)) ||
res               730 drivers/pcmcia/yenta_socket.c 			    (yenta_search_res(socket, res, BRIDGE_MEM_ACC)) ||
res               731 drivers/pcmcia/yenta_socket.c 			    (yenta_search_res(socket, res, BRIDGE_MEM_MIN)))
res               734 drivers/pcmcia/yenta_socket.c 			res->flags = IORESOURCE_MEM;
res               736 drivers/pcmcia/yenta_socket.c 		if ((yenta_search_res(socket, res, BRIDGE_MEM_MAX)) ||
res               737 drivers/pcmcia/yenta_socket.c 		    (yenta_search_res(socket, res, BRIDGE_MEM_ACC)) ||
res               738 drivers/pcmcia/yenta_socket.c 		    (yenta_search_res(socket, res, BRIDGE_MEM_MIN)))
res               745 drivers/pcmcia/yenta_socket.c 	res->start = res->end = res->flags = 0;
res               775 drivers/pcmcia/yenta_socket.c 		struct resource *res;
res               776 drivers/pcmcia/yenta_socket.c 		res = socket->dev->resource + PCI_BRIDGE_RESOURCES + i;
res               777 drivers/pcmcia/yenta_socket.c 		if (res->start != 0 && res->end != 0)
res               778 drivers/pcmcia/yenta_socket.c 			release_resource(res);
res               779 drivers/pcmcia/yenta_socket.c 		res->start = res->end = res->flags = 0;
res              1645 drivers/perf/arm-cci.c 	struct resource *res;
res              1653 drivers/perf/arm-cci.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1654 drivers/perf/arm-cci.c 	cci_pmu->base = devm_ioremap_resource(&pdev->dev, res);
res               329 drivers/perf/arm-ccn.c 	ssize_t res;
res               331 drivers/perf/arm-ccn.c 	res = snprintf(buf, PAGE_SIZE, "type=0x%x", event->type);
res               333 drivers/perf/arm-ccn.c 		res += snprintf(buf + res, PAGE_SIZE - res, ",event=0x%x",
res               336 drivers/perf/arm-ccn.c 		res += snprintf(buf + res, PAGE_SIZE - res, ",%s",
res               339 drivers/perf/arm-ccn.c 		res += snprintf(buf + res, PAGE_SIZE - res, ",mask=0x%x",
res               347 drivers/perf/arm-ccn.c 		res += snprintf(buf + res, PAGE_SIZE - res,
res               350 drivers/perf/arm-ccn.c 			res += snprintf(buf + res, PAGE_SIZE - res,
res               353 drivers/perf/arm-ccn.c 			res += snprintf(buf + res, PAGE_SIZE - res,
res               358 drivers/perf/arm-ccn.c 		res += snprintf(buf + res, PAGE_SIZE - res, ",node=%d", ccn->mn_id);
res               361 drivers/perf/arm-ccn.c 		res += snprintf(buf + res, PAGE_SIZE - res, ",node=?");
res               365 drivers/perf/arm-ccn.c 	res += snprintf(buf + res, PAGE_SIZE - res, "\n");
res               367 drivers/perf/arm-ccn.c 	return res;
res               851 drivers/perf/arm-ccn.c 	u64 res;
res               855 drivers/perf/arm-ccn.c 		res = readq(ccn->dt.base + CCN_DT_PMCCNTR);
res               862 drivers/perf/arm-ccn.c 		res = readl(ccn->dt.base + CCN_DT_PMCCNTRSR + 4) & 0xff;
res               863 drivers/perf/arm-ccn.c 		res <<= 32;
res               864 drivers/perf/arm-ccn.c 		res |= readl(ccn->dt.base + CCN_DT_PMCCNTRSR);
res               867 drivers/perf/arm-ccn.c 		res = readl(ccn->dt.base + CCN_DT_PMEVCNT(idx));
res               870 drivers/perf/arm-ccn.c 	return res;
res              1437 drivers/perf/arm-ccn.c 	irqreturn_t res = IRQ_NONE;
res              1447 drivers/perf/arm-ccn.c 		res = arm_ccn_pmu_overflow_handler(&ccn->dt);
res              1457 drivers/perf/arm-ccn.c 		res |= arm_ccn_error_handler(ccn, err_sig_val);
res              1459 drivers/perf/arm-ccn.c 	if (res != IRQ_NONE)
res              1463 drivers/perf/arm-ccn.c 	return res;
res              1470 drivers/perf/arm-ccn.c 	struct resource *res;
res              1480 drivers/perf/arm-ccn.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1481 drivers/perf/arm-ccn.c 	ccn->base = devm_ioremap_resource(ccn->dev, res);
res              1485 drivers/perf/arm-ccn.c 	res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
res              1486 drivers/perf/arm-ccn.c 	if (!res)
res              1488 drivers/perf/arm-ccn.c 	irq = res->start;
res               246 drivers/perf/hisilicon/hisi_uncore_ddrc_pmu.c 	struct resource *res;
res               266 drivers/perf/hisilicon/hisi_uncore_ddrc_pmu.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               267 drivers/perf/hisilicon/hisi_uncore_ddrc_pmu.c 	ddrc_pmu->base = devm_ioremap_resource(&pdev->dev, res);
res               237 drivers/perf/hisilicon/hisi_uncore_hha_pmu.c 	struct resource *res;
res               259 drivers/perf/hisilicon/hisi_uncore_hha_pmu.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               260 drivers/perf/hisilicon/hisi_uncore_hha_pmu.c 	hha_pmu->base = devm_ioremap_resource(&pdev->dev, res);
res               236 drivers/perf/hisilicon/hisi_uncore_l3c_pmu.c 	struct resource *res;
res               262 drivers/perf/hisilicon/hisi_uncore_l3c_pmu.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               263 drivers/perf/hisilicon/hisi_uncore_l3c_pmu.c 	l3c_pmu->base = devm_ioremap_resource(&pdev->dev, res);
res               615 drivers/perf/thunderx2_pmu.c 	struct resource res;
res               628 drivers/perf/thunderx2_pmu.c 		if (resource_type(rentry->res) == IORESOURCE_MEM) {
res               629 drivers/perf/thunderx2_pmu.c 			res = *rentry->res;
res               634 drivers/perf/thunderx2_pmu.c 	if (!rentry->res)
res               638 drivers/perf/thunderx2_pmu.c 	base = devm_ioremap_resource(dev, &res);
res              1285 drivers/perf/xgene_pmu.c 	struct resource *res;
res              1288 drivers/perf/xgene_pmu.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res              1289 drivers/perf/xgene_pmu.c 	csw_csr = devm_ioremap_resource(&pdev->dev, res);
res              1295 drivers/perf/xgene_pmu.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 2);
res              1296 drivers/perf/xgene_pmu.c 	mcba_csr = devm_ioremap_resource(&pdev->dev, res);
res              1302 drivers/perf/xgene_pmu.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 3);
res              1303 drivers/perf/xgene_pmu.c 	mcbb_csr = devm_ioremap_resource(&pdev->dev, res);
res              1335 drivers/perf/xgene_pmu.c 	struct resource *res;
res              1340 drivers/perf/xgene_pmu.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res              1341 drivers/perf/xgene_pmu.c 	csw_csr = devm_ioremap_resource(&pdev->dev, res);
res              1464 drivers/perf/xgene_pmu.c 	struct resource *res = data;
res              1467 drivers/perf/xgene_pmu.c 		acpi_dev_resource_memory(ares, res);
res              1483 drivers/perf/xgene_pmu.c 	struct resource res;
res              1493 drivers/perf/xgene_pmu.c 				    acpi_pmu_dev_add_resource, &res);
res              1500 drivers/perf/xgene_pmu.c 	dev_csr = devm_ioremap_resource(dev, &res);
res              1640 drivers/perf/xgene_pmu.c 	struct resource res;
res              1647 drivers/perf/xgene_pmu.c 	if (of_address_to_resource(np, 0, &res) < 0) {
res              1652 drivers/perf/xgene_pmu.c 	dev_csr = devm_ioremap_resource(dev, &res);
res              1846 drivers/perf/xgene_pmu.c 	struct resource *res;
res              1896 drivers/perf/xgene_pmu.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1897 drivers/perf/xgene_pmu.c 	xgene_pmu->pcppmu_csr = devm_ioremap_resource(&pdev->dev, res);
res               687 drivers/phy/allwinner/phy-sun4i-usb.c 	struct resource *res;
res               701 drivers/phy/allwinner/phy-sun4i-usb.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "phy_ctrl");
res               702 drivers/phy/allwinner/phy-sun4i-usb.c 	data->base = devm_ioremap_resource(dev, res);
res               797 drivers/phy/allwinner/phy-sun4i-usb.c 			res = platform_get_resource_byname(pdev,
res               799 drivers/phy/allwinner/phy-sun4i-usb.c 			phy->pmu = devm_ioremap_resource(dev, res);
res               256 drivers/phy/allwinner/phy-sun6i-mipi-dphy.c 	struct resource *res;
res               263 drivers/phy/allwinner/phy-sun6i-mipi-dphy.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               264 drivers/phy/allwinner/phy-sun6i-mipi-dphy.c 	regs = devm_ioremap_resource(&pdev->dev, res);
res               120 drivers/phy/allwinner/phy-sun9i-usb.c 	struct resource *res;
res               159 drivers/phy/allwinner/phy-sun9i-usb.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               160 drivers/phy/allwinner/phy-sun9i-usb.c 	phy->pmu = devm_ioremap_resource(dev, res);
res               271 drivers/phy/amlogic/phy-meson-g12a-usb2.c 	struct resource *res;
res               284 drivers/phy/amlogic/phy-meson-g12a-usb2.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               285 drivers/phy/amlogic/phy-meson-g12a-usb2.c 	base = devm_ioremap_resource(dev, res);
res               337 drivers/phy/amlogic/phy-meson-g12a-usb3-pcie.c 	struct resource *res;
res               346 drivers/phy/amlogic/phy-meson-g12a-usb3-pcie.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               347 drivers/phy/amlogic/phy-meson-g12a-usb3-pcie.c 	base = devm_ioremap_resource(dev, res);
res               233 drivers/phy/amlogic/phy-meson-gxl-usb2.c 	struct resource *res;
res               245 drivers/phy/amlogic/phy-meson-gxl-usb2.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               246 drivers/phy/amlogic/phy-meson-gxl-usb2.c 	base = devm_ioremap_resource(dev, res);
res               210 drivers/phy/amlogic/phy-meson-gxl-usb3.c 	struct resource *res;
res               220 drivers/phy/amlogic/phy-meson-gxl-usb3.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               221 drivers/phy/amlogic/phy-meson-gxl-usb3.c 	base = devm_ioremap_resource(dev, res);
res               216 drivers/phy/amlogic/phy-meson8b-usb2.c 	struct resource *res;
res               224 drivers/phy/amlogic/phy-meson8b-usb2.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               225 drivers/phy/amlogic/phy-meson8b-usb2.c 	priv->regs = devm_ioremap_resource(&pdev->dev, res);
res               129 drivers/phy/broadcom/phy-bcm-cygnus-pcie.c 	struct resource *res;
res               144 drivers/phy/broadcom/phy-bcm-cygnus-pcie.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               145 drivers/phy/broadcom/phy-bcm-cygnus-pcie.c 	core->base = devm_ioremap_resource(dev, res);
res                97 drivers/phy/broadcom/phy-bcm-kona-usb2.c 	struct resource *res;
res               105 drivers/phy/broadcom/phy-bcm-kona-usb2.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               106 drivers/phy/broadcom/phy-bcm-kona-usb2.c 	phy->regs = devm_ioremap_resource(&pdev->dev, res);
res                86 drivers/phy/broadcom/phy-bcm-ns-usb2.c 	struct resource *res;
res                94 drivers/phy/broadcom/phy-bcm-ns-usb2.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "dmu");
res                95 drivers/phy/broadcom/phy-bcm-ns-usb2.c 	usb2->dmu = devm_ioremap_resource(dev, res);
res               204 drivers/phy/broadcom/phy-bcm-ns-usb3.c 	struct resource res;
res               220 drivers/phy/broadcom/phy-bcm-ns-usb3.c 	err = of_address_to_resource(syscon_np, 0, &res);
res               225 drivers/phy/broadcom/phy-bcm-ns-usb3.c 	usb3->dmp = devm_ioremap_resource(dev, &res);
res               312 drivers/phy/broadcom/phy-bcm-ns-usb3.c 	struct resource *res;
res               326 drivers/phy/broadcom/phy-bcm-ns-usb3.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "dmp");
res               327 drivers/phy/broadcom/phy-bcm-ns-usb3.c 	usb3->dmp = devm_ioremap_resource(dev, res);
res               333 drivers/phy/broadcom/phy-bcm-ns-usb3.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "ccb-mii");
res               334 drivers/phy/broadcom/phy-bcm-ns-usb3.c 	usb3->ccb_mii = devm_ioremap_resource(dev, res);
res               301 drivers/phy/broadcom/phy-bcm-ns2-usbdrd.c 	struct resource *res;
res               315 drivers/phy/broadcom/phy-bcm-ns2-usbdrd.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "icfg");
res               316 drivers/phy/broadcom/phy-bcm-ns2-usbdrd.c 	driver->icfgdrd_regs = devm_ioremap_resource(dev, res);
res               320 drivers/phy/broadcom/phy-bcm-ns2-usbdrd.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "rst-ctrl");
res               321 drivers/phy/broadcom/phy-bcm-ns2-usbdrd.c 	driver->idmdrd_rst_ctrl = devm_ioremap_resource(dev, res);
res               325 drivers/phy/broadcom/phy-bcm-ns2-usbdrd.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "crmu-ctrl");
res               326 drivers/phy/broadcom/phy-bcm-ns2-usbdrd.c 	driver->crmu_usb2_ctrl = devm_ioremap_resource(dev, res);
res               330 drivers/phy/broadcom/phy-bcm-ns2-usbdrd.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "usb2-strap");
res               331 drivers/phy/broadcom/phy-bcm-ns2-usbdrd.c 	driver->usb2h_strap_reg = devm_ioremap_resource(dev, res);
res               220 drivers/phy/broadcom/phy-bcm-sr-pcie.c 	struct resource *res;
res               230 drivers/phy/broadcom/phy-bcm-sr-pcie.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               231 drivers/phy/broadcom/phy-bcm-sr-pcie.c 	core->base = devm_ioremap_resource(core->dev, res);
res               357 drivers/phy/broadcom/phy-bcm-sr-usb.c 	struct resource *res;
res               363 drivers/phy/broadcom/phy-bcm-sr-usb.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               364 drivers/phy/broadcom/phy-bcm-sr-usb.c 	regs = devm_ioremap_resource(dev, res);
res               627 drivers/phy/broadcom/phy-brcm-sata.c 	struct resource *res;
res               640 drivers/phy/broadcom/phy-brcm-sata.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "phy");
res               641 drivers/phy/broadcom/phy-brcm-sata.c 	priv->phy_base = devm_ioremap_resource(dev, res);
res               652 drivers/phy/broadcom/phy-brcm-sata.c 		res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
res               654 drivers/phy/broadcom/phy-brcm-sata.c 		priv->ctrl_base = devm_ioremap_resource(dev, res);
res               191 drivers/phy/broadcom/phy-brcm-usb.c 	int res;
res               194 drivers/phy/broadcom/phy-brcm-usb.c 	res = name_to_value(&brcm_dual_mode_to_name[0],
res               196 drivers/phy/broadcom/phy-brcm-usb.c 	if (!res) {
res               198 drivers/phy/broadcom/phy-brcm-usb.c 		res = len;
res               201 drivers/phy/broadcom/phy-brcm-usb.c 	return res;
res               283 drivers/phy/broadcom/phy-brcm-usb.c 	struct resource *res;
res               301 drivers/phy/broadcom/phy-brcm-usb.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               302 drivers/phy/broadcom/phy-brcm-usb.c 	if (!res) {
res               306 drivers/phy/broadcom/phy-brcm-usb.c 	priv->ini.ctrl_regs = devm_ioremap_resource(dev, res);
res               313 drivers/phy/broadcom/phy-brcm-usb.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res               314 drivers/phy/broadcom/phy-brcm-usb.c 	if (res) {
res               316 drivers/phy/broadcom/phy-brcm-usb.c 			devm_ioremap_resource(dev, res);
res               317 drivers/phy/cadence/cdns-dphy.c 	struct resource *res;
res               329 drivers/phy/cadence/cdns-dphy.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               330 drivers/phy/cadence/cdns-dphy.c 	dphy->regs = devm_ioremap_resource(&pdev->dev, res);
res               168 drivers/phy/cadence/phy-cadence-sierra.c 	struct resource *res;
res               181 drivers/phy/cadence/phy-cadence-sierra.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               182 drivers/phy/cadence/phy-cadence-sierra.c 	sp->base = devm_ioremap_resource(dev, res);
res               437 drivers/phy/freescale/phy-fsl-imx8-mipi-dphy.c 	struct resource *res;
res               452 drivers/phy/freescale/phy-fsl-imx8-mipi-dphy.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               453 drivers/phy/freescale/phy-fsl-imx8-mipi-dphy.c 	base = devm_ioremap_resource(dev, res);
res                91 drivers/phy/freescale/phy-fsl-imx8mq-usb.c 	struct resource *res;
res               103 drivers/phy/freescale/phy-fsl-imx8mq-usb.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               104 drivers/phy/freescale/phy-fsl-imx8mq-usb.c 	imx_phy->base = devm_ioremap_resource(dev, res);
res               117 drivers/phy/hisilicon/phy-hisi-inno-usb2.c 	struct resource *res;
res               125 drivers/phy/hisilicon/phy-hisi-inno-usb2.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               126 drivers/phy/hisilicon/phy-hisi-inno-usb2.c 	priv->mmio = devm_ioremap_resource(dev, res);
res               198 drivers/phy/hisilicon/phy-histb-combphy.c 	struct resource *res;
res               206 drivers/phy/hisilicon/phy-histb-combphy.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               207 drivers/phy/hisilicon/phy-histb-combphy.c 	priv->mmio = devm_ioremap_resource(dev, res);
res               137 drivers/phy/hisilicon/phy-hix5hd2-sata.c 	struct resource *res;
res               145 drivers/phy/hisilicon/phy-hix5hd2-sata.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               146 drivers/phy/hisilicon/phy-hix5hd2-sata.c 	if (!res)
res               149 drivers/phy/hisilicon/phy-hix5hd2-sata.c 	priv->base = devm_ioremap(dev, res->start, resource_size(res));
res               405 drivers/phy/lantiq/phy-lantiq-vrx200-pcie.c 	struct resource *res;
res               413 drivers/phy/lantiq/phy-lantiq-vrx200-pcie.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               414 drivers/phy/lantiq/phy-lantiq-vrx200-pcie.c 	base = devm_ioremap_resource(dev, res);
res               108 drivers/phy/marvell/phy-armada375-usb2.c 	struct resource *res;
res               115 drivers/phy/marvell/phy-armada375-usb2.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               116 drivers/phy/marvell/phy-armada375-usb2.c 	usb_cluster_base = devm_ioremap_resource(&pdev->dev, res);
res               170 drivers/phy/marvell/phy-armada38x-comphy.c 	struct resource *res;
res               177 drivers/phy/marvell/phy-armada38x-comphy.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               178 drivers/phy/marvell/phy-armada38x-comphy.c 	base = devm_ioremap_resource(&pdev->dev, res);
res               194 drivers/phy/marvell/phy-berlin-sata.c 	struct resource *res;
res               202 drivers/phy/marvell/phy-berlin-sata.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               203 drivers/phy/marvell/phy-berlin-sata.c 	if (!res)
res               206 drivers/phy/marvell/phy-berlin-sata.c 	priv->base = devm_ioremap(dev, res->start, resource_size(res));
res               168 drivers/phy/marvell/phy-berlin-usb.c 	struct resource *res;
res               176 drivers/phy/marvell/phy-berlin-usb.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               177 drivers/phy/marvell/phy-berlin-usb.c 	priv->base = devm_ioremap_resource(&pdev->dev, res);
res               114 drivers/phy/marvell/phy-mvebu-a3700-comphy.c 	struct arm_smccc_res res;
res               116 drivers/phy/marvell/phy-mvebu-a3700-comphy.c 	arm_smccc_smc(function, lane, mode, 0, 0, 0, 0, 0, &res);
res               118 drivers/phy/marvell/phy-mvebu-a3700-comphy.c 	return res.a0;
res               219 drivers/phy/marvell/phy-mvebu-a3700-utmi.c 	struct resource *res;
res               226 drivers/phy/marvell/phy-mvebu-a3700-utmi.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               227 drivers/phy/marvell/phy-mvebu-a3700-utmi.c 	if (!res) {
res               232 drivers/phy/marvell/phy-mvebu-a3700-utmi.c 	utmi->regs = devm_ioremap_resource(dev, res);
res               275 drivers/phy/marvell/phy-mvebu-cp110-comphy.c 	struct arm_smccc_res res;
res               277 drivers/phy/marvell/phy-mvebu-cp110-comphy.c 	arm_smccc_smc(function, phys, lane, mode, 0, 0, 0, 0, &res);
res               279 drivers/phy/marvell/phy-mvebu-cp110-comphy.c 	return res.a0;
res               984 drivers/phy/marvell/phy-mvebu-cp110-comphy.c 	struct resource *res;
res               997 drivers/phy/marvell/phy-mvebu-cp110-comphy.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               998 drivers/phy/marvell/phy-mvebu-cp110-comphy.c 	priv->base = devm_ioremap_resource(&pdev->dev, res);
res              1017 drivers/phy/marvell/phy-mvebu-cp110-comphy.c 	priv->cp_phys = res->start;
res                83 drivers/phy/marvell/phy-mvebu-sata.c 	struct resource *res;
res                91 drivers/phy/marvell/phy-mvebu-sata.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                92 drivers/phy/marvell/phy-mvebu-sata.c 	priv->base = devm_ioremap_resource(&pdev->dev, res);
res              1074 drivers/phy/mediatek/phy-mtk-tphy.c 	struct resource res;
res              1137 drivers/phy/mediatek/phy-mtk-tphy.c 		retval = of_address_to_resource(child_np, 0, &res);
res              1144 drivers/phy/mediatek/phy-mtk-tphy.c 		instance->port_base = devm_ioremap_resource(&phy->dev, &res);
res               198 drivers/phy/mediatek/phy-mtk-ufs.c 	struct resource *res;
res               206 drivers/phy/mediatek/phy-mtk-ufs.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               207 drivers/phy/mediatek/phy-mtk-ufs.c 	phy->mmio = devm_ioremap_resource(dev, res);
res               499 drivers/phy/mediatek/phy-mtk-xsphy.c 	struct resource res;
res               553 drivers/phy/mediatek/phy-mtk-xsphy.c 		retval = of_address_to_resource(child_np, 0, &res);
res               560 drivers/phy/mediatek/phy-mtk-xsphy.c 		inst->port_base = devm_ioremap_resource(&phy->dev, &res);
res                28 drivers/phy/phy-core.c static void devm_phy_release(struct device *dev, void *res)
res                30 drivers/phy/phy-core.c 	struct phy *phy = *(struct phy **)res;
res                35 drivers/phy/phy-core.c static void devm_phy_provider_release(struct device *dev, void *res)
res                37 drivers/phy/phy-core.c 	struct phy_provider *phy_provider = *(struct phy_provider **)res;
res                42 drivers/phy/phy-core.c static void devm_phy_consume(struct device *dev, void *res)
res                44 drivers/phy/phy-core.c 	struct phy *phy = *(struct phy **)res;
res                49 drivers/phy/phy-core.c static int devm_phy_match(struct device *dev, void *res, void *match_data)
res                51 drivers/phy/phy-core.c 	struct phy **phy = res;
res              1647 drivers/phy/phy-xgene.c 	struct resource *res;
res              1664 drivers/phy/phy-xgene.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1665 drivers/phy/phy-xgene.c 	ctx->sds_base = devm_ioremap_resource(&pdev->dev, res);
res               209 drivers/phy/qualcomm/phy-qcom-apq8064-sata.c 	struct resource *res;
res               218 drivers/phy/qualcomm/phy-qcom-apq8064-sata.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               219 drivers/phy/qualcomm/phy-qcom-apq8064-sata.c 	phy->mmio = devm_ioremap_resource(dev, res);
res               131 drivers/phy/qualcomm/phy-qcom-ipq806x-sata.c 	struct resource *res;
res               140 drivers/phy/qualcomm/phy-qcom-ipq806x-sata.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               141 drivers/phy/qualcomm/phy-qcom-ipq806x-sata.c 	phy->mmio = devm_ioremap_resource(dev, res);
res               253 drivers/phy/qualcomm/phy-qcom-pcie2.c 	struct resource *res;
res               264 drivers/phy/qualcomm/phy-qcom-pcie2.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               265 drivers/phy/qualcomm/phy-qcom-pcie2.c 	qphy->base = devm_ioremap_resource(dev, res);
res              1777 drivers/phy/qualcomm/phy-qcom-qmp.c static void phy_pipe_clk_release_provider(void *res)
res              1779 drivers/phy/qualcomm/phy-qcom-qmp.c 	of_clk_del_provider(res);
res              2015 drivers/phy/qualcomm/phy-qcom-qmp.c 	struct resource *res;
res              2034 drivers/phy/qualcomm/phy-qcom-qmp.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              2035 drivers/phy/qualcomm/phy-qcom-qmp.c 	base = devm_ioremap_resource(dev, res);
res              2044 drivers/phy/qualcomm/phy-qcom-qmp.c 		res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
res              2046 drivers/phy/qualcomm/phy-qcom-qmp.c 		base = devm_ioremap_resource(dev, res);
res               795 drivers/phy/qualcomm/phy-qcom-qusb2.c 	struct resource *res;
res               804 drivers/phy/qualcomm/phy-qcom-qusb2.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               805 drivers/phy/qualcomm/phy-qcom-qusb2.c 	qphy->base = devm_ioremap_resource(dev, res);
res                79 drivers/phy/qualcomm/phy-qcom-ufs.c 	struct resource *res;
res                82 drivers/phy/qualcomm/phy-qcom-ufs.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "phy_mem");
res                83 drivers/phy/qualcomm/phy-qcom-ufs.c 	phy_common->mmio = devm_ioremap_resource(dev, res);
res                93 drivers/phy/qualcomm/phy-qcom-ufs.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
res                95 drivers/phy/qualcomm/phy-qcom-ufs.c 	phy_common->dev_ref_clk_ctrl_mmio = devm_ioremap_resource(dev, res);
res               173 drivers/phy/ralink/phy-ralink-usb.c 	struct resource *res;
res               197 drivers/phy/ralink/phy-ralink-usb.c 		res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               198 drivers/phy/ralink/phy-ralink-usb.c 		phy->base = devm_ioremap_resource(&pdev->dev, res);
res               342 drivers/phy/renesas/phy-rcar-gen2.c 	struct resource *res;
res               360 drivers/phy/renesas/phy-rcar-gen2.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               361 drivers/phy/renesas/phy-rcar-gen2.c 	base = devm_ioremap_resource(dev, res);
res                79 drivers/phy/renesas/phy-rcar-gen3-pcie.c 	struct resource *res;
res                89 drivers/phy/renesas/phy-rcar-gen3-pcie.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                90 drivers/phy/renesas/phy-rcar-gen3-pcie.c 	base = devm_ioremap_resource(dev, res);
res               599 drivers/phy/renesas/phy-rcar-gen3-usb2.c 	struct resource *res;
res               612 drivers/phy/renesas/phy-rcar-gen3-usb2.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               613 drivers/phy/renesas/phy-rcar-gen3-usb2.c 	channel->base = devm_ioremap_resource(dev, res);
res               136 drivers/phy/renesas/phy-rcar-gen3-usb3.c 	struct resource *res;
res               149 drivers/phy/renesas/phy-rcar-gen3-usb3.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               150 drivers/phy/renesas/phy-rcar-gen3-usb3.c 	r->base = devm_ioremap_resource(dev, res);
res              1147 drivers/phy/rockchip/phy-rockchip-inno-hdmi.c 	struct resource *res;
res              1161 drivers/phy/rockchip/phy-rockchip-inno-hdmi.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1162 drivers/phy/rockchip/phy-rockchip-inno-hdmi.c 	regs = devm_ioremap_resource(inno->dev, res);
res              1106 drivers/phy/rockchip/phy-rockchip-typec.c 	struct resource *res;
res              1121 drivers/phy/rockchip/phy-rockchip-typec.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1122 drivers/phy/rockchip/phy-rockchip-typec.c 	tcphy->base = devm_ioremap_resource(dev, res);
res              1130 drivers/phy/rockchip/phy-rockchip-typec.c 		if (phy_cfgs[index].reg == res->start) {
res               235 drivers/phy/samsung/phy-exynos-pcie.c 	struct resource *res;
res               246 drivers/phy/samsung/phy-exynos-pcie.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               247 drivers/phy/samsung/phy-exynos-pcie.c 	exynos_phy->phy_base = devm_ioremap_resource(dev, res);
res               251 drivers/phy/samsung/phy-exynos-pcie.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res               252 drivers/phy/samsung/phy-exynos-pcie.c 	exynos_phy->blk_base = devm_ioremap_resource(dev, res);
res               845 drivers/phy/samsung/phy-exynos5-usbdrd.c 	struct resource *res;
res               859 drivers/phy/samsung/phy-exynos5-usbdrd.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               860 drivers/phy/samsung/phy-exynos5-usbdrd.c 	phy_drd->reg_phy = devm_ioremap_resource(dev, res);
res               165 drivers/phy/samsung/phy-exynos5250-sata.c 	struct resource *res;
res               174 drivers/phy/samsung/phy-exynos5250-sata.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               176 drivers/phy/samsung/phy-exynos5250-sata.c 	sata_phy->regs = devm_ioremap_resource(dev, res);
res               166 drivers/phy/socionext/phy-uniphier-pcie.c 	struct resource *res;
res               179 drivers/phy/socionext/phy-uniphier-pcie.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               180 drivers/phy/socionext/phy-uniphier-pcie.c 	priv->base = devm_ioremap_resource(dev, res);
res               312 drivers/phy/socionext/phy-uniphier-usb3hs.c 	struct resource *res;
res               325 drivers/phy/socionext/phy-uniphier-usb3hs.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               326 drivers/phy/socionext/phy-uniphier-usb3hs.c 	priv->base = devm_ioremap_resource(dev, res);
res               218 drivers/phy/socionext/phy-uniphier-usb3ss.c 	struct resource *res;
res               231 drivers/phy/socionext/phy-uniphier-usb3ss.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               232 drivers/phy/socionext/phy-uniphier-usb3ss.c 	priv->base = devm_ioremap_resource(dev, res);
res               856 drivers/phy/st/phy-miphy28lp.c 					  char *rname, struct resource *res)
res               864 drivers/phy/st/phy-miphy28lp.c 	return of_address_to_resource(child, index, res);
res               871 drivers/phy/st/phy-miphy28lp.c 	struct resource res;
res               874 drivers/phy/st/phy-miphy28lp.c 	ret = miphy28lp_get_resource_byname(child, rname, &res);
res               876 drivers/phy/st/phy-miphy28lp.c 		*base = devm_ioremap(dev, res.start, resource_size(&res));
res               314 drivers/phy/st/phy-stm32-usbphyc.c 	struct resource *res;
res               325 drivers/phy/st/phy-stm32-usbphyc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               326 drivers/phy/st/phy-stm32-usbphyc.c 	usbphyc->base = devm_ioremap_resource(dev, res);
res                75 drivers/phy/tegra/phy-tegra194-p2u.c 	struct resource *res;
res                81 drivers/phy/tegra/phy-tegra194-p2u.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "ctl");
res                82 drivers/phy/tegra/phy-tegra194-p2u.c 	phy->base = devm_ioremap_resource(dev, res);
res               864 drivers/phy/tegra/xusb.c 	struct resource *res;
res               890 drivers/phy/tegra/xusb.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               891 drivers/phy/tegra/xusb.c 	padctl->regs = devm_ioremap_resource(&pdev->dev, res);
res               187 drivers/phy/ti/phy-dm816x-usb.c 	struct resource *res;
res               204 drivers/phy/ti/phy-dm816x-usb.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               205 drivers/phy/ti/phy-dm816x-usb.c 	if (!res)
res               219 drivers/phy/ti/phy-dm816x-usb.c 	phy->usbphy_ctrl = (res->start & 0xff) + 4;
res               271 drivers/phy/ti/phy-omap-control.c 	struct resource	*res;
res               288 drivers/phy/ti/phy-omap-control.c 		res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
res               291 drivers/phy/ti/phy-omap-control.c 			&pdev->dev, res);
res               295 drivers/phy/ti/phy-omap-control.c 		res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
res               297 drivers/phy/ti/phy-omap-control.c 		control_phy->power = devm_ioremap_resource(&pdev->dev, res);
res               315 drivers/phy/ti/phy-omap-control.c 		res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
res               317 drivers/phy/ti/phy-omap-control.c 		control_phy->pcie_pcs = devm_ioremap_resource(&pdev->dev, res);
res               284 drivers/phy/ti/phy-omap-usb2.c 	struct resource *res;
res               319 drivers/phy/ti/phy-omap-usb2.c 		res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               320 drivers/phy/ti/phy-omap-usb2.c 		phy->phy_base = devm_ioremap_resource(&pdev->dev, res);
res               749 drivers/phy/ti/phy-ti-pipe3.c 	struct resource *res;
res               753 drivers/phy/ti/phy-ti-pipe3.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
res               755 drivers/phy/ti/phy-ti-pipe3.c 	phy->phy_rx = devm_ioremap_resource(dev, res);
res               759 drivers/phy/ti/phy-ti-pipe3.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
res               761 drivers/phy/ti/phy-ti-pipe3.c 	phy->phy_tx = devm_ioremap_resource(dev, res);
res               768 drivers/phy/ti/phy-ti-pipe3.c 	struct resource *res;
res               775 drivers/phy/ti/phy-ti-pipe3.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
res               777 drivers/phy/ti/phy-ti-pipe3.c 	phy->pll_ctrl_base = devm_ioremap_resource(dev, res);
res               431 drivers/phy/ti/phy-twl4030-usb.c 	int res;
res               435 drivers/phy/ti/phy-twl4030-usb.c 	res = regulator_enable(twl->usb3v1);
res               436 drivers/phy/ti/phy-twl4030-usb.c 	if (res)
res               439 drivers/phy/ti/phy-twl4030-usb.c 	res = regulator_enable(twl->usb1v8);
res               440 drivers/phy/ti/phy-twl4030-usb.c 	if (res)
res               452 drivers/phy/ti/phy-twl4030-usb.c 	res = regulator_enable(twl->usb1v5);
res               453 drivers/phy/ti/phy-twl4030-usb.c 	if (res)
res               918 drivers/pinctrl/actions/pinctrl-owl.c 	struct resource *res;
res               926 drivers/pinctrl/actions/pinctrl-owl.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               927 drivers/pinctrl/actions/pinctrl-owl.c 	pctrl->base = devm_ioremap_resource(&pdev->dev, res);
res              1403 drivers/pinctrl/bcm/pinctrl-bcm281xx.c 	struct resource *res;
res              1407 drivers/pinctrl/bcm/pinctrl-bcm281xx.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1408 drivers/pinctrl/bcm/pinctrl-bcm281xx.c 	pdata->reg_base = devm_ioremap_resource(&pdev->dev, res);
res               943 drivers/pinctrl/bcm/pinctrl-cygnus-mux.c 	struct resource *res;
res               956 drivers/pinctrl/bcm/pinctrl-cygnus-mux.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               957 drivers/pinctrl/bcm/pinctrl-cygnus-mux.c 	pinctrl->base0 = devm_ioremap_resource(&pdev->dev, res);
res               963 drivers/pinctrl/bcm/pinctrl-cygnus-mux.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res               964 drivers/pinctrl/bcm/pinctrl-cygnus-mux.c 	pinctrl->base1 = devm_ioremap_resource(&pdev->dev, res);
res               775 drivers/pinctrl/bcm/pinctrl-iproc-gpio.c 	struct resource *res;
res               798 drivers/pinctrl/bcm/pinctrl-iproc-gpio.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               799 drivers/pinctrl/bcm/pinctrl-iproc-gpio.c 	chip->base = devm_ioremap_resource(dev, res);
res               805 drivers/pinctrl/bcm/pinctrl-iproc-gpio.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res               806 drivers/pinctrl/bcm/pinctrl-iproc-gpio.c 	if (res) {
res               807 drivers/pinctrl/bcm/pinctrl-iproc-gpio.c 		chip->io_ctrl = devm_ioremap_resource(dev, res);
res              1032 drivers/pinctrl/bcm/pinctrl-ns2-mux.c 	struct resource *res;
res              1045 drivers/pinctrl/bcm/pinctrl-ns2-mux.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1046 drivers/pinctrl/bcm/pinctrl-ns2-mux.c 	pinctrl->base0 = devm_ioremap_resource(&pdev->dev, res);
res              1050 drivers/pinctrl/bcm/pinctrl-ns2-mux.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res              1051 drivers/pinctrl/bcm/pinctrl-ns2-mux.c 	if (!res)
res              1053 drivers/pinctrl/bcm/pinctrl-ns2-mux.c 	pinctrl->base1 = devm_ioremap_nocache(&pdev->dev, res->start,
res              1054 drivers/pinctrl/bcm/pinctrl-ns2-mux.c 					resource_size(res));
res              1060 drivers/pinctrl/bcm/pinctrl-ns2-mux.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 2);
res              1061 drivers/pinctrl/bcm/pinctrl-ns2-mux.c 	pinctrl->pinconf_base = devm_ioremap_resource(&pdev->dev, res);
res               616 drivers/pinctrl/bcm/pinctrl-nsp-gpio.c 	struct resource *res;
res               634 drivers/pinctrl/bcm/pinctrl-nsp-gpio.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               635 drivers/pinctrl/bcm/pinctrl-nsp-gpio.c 	chip->base = devm_ioremap_resource(dev, res);
res               641 drivers/pinctrl/bcm/pinctrl-nsp-gpio.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res               642 drivers/pinctrl/bcm/pinctrl-nsp-gpio.c 	chip->io_ctrl = devm_ioremap_resource(dev, res);
res               562 drivers/pinctrl/bcm/pinctrl-nsp-mux.c 	struct resource *res;
res               574 drivers/pinctrl/bcm/pinctrl-nsp-mux.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               575 drivers/pinctrl/bcm/pinctrl-nsp-mux.c 	pinctrl->base0 = devm_ioremap_resource(&pdev->dev, res);
res               579 drivers/pinctrl/bcm/pinctrl-nsp-mux.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res               580 drivers/pinctrl/bcm/pinctrl-nsp-mux.c 	if (!res)
res               582 drivers/pinctrl/bcm/pinctrl-nsp-mux.c 	pinctrl->base1 = devm_ioremap_nocache(&pdev->dev, res->start,
res               583 drivers/pinctrl/bcm/pinctrl-nsp-mux.c 					      resource_size(res));
res               589 drivers/pinctrl/bcm/pinctrl-nsp-mux.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 2);
res               590 drivers/pinctrl/bcm/pinctrl-nsp-mux.c 	pinctrl->base2 = devm_ioremap_resource(&pdev->dev, res);
res               456 drivers/pinctrl/berlin/berlin-bg4ct.c 	struct resource *res;
res               463 drivers/pinctrl/berlin/berlin-bg4ct.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               464 drivers/pinctrl/berlin/berlin-bg4ct.c 	base = devm_ioremap_resource(&pdev->dev, res);
res               471 drivers/pinctrl/berlin/berlin-bg4ct.c 	rmconfig->max_register = resource_size(res);
res               337 drivers/pinctrl/berlin/pinctrl-as370.c 	struct resource *res;
res               344 drivers/pinctrl/berlin/pinctrl-as370.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               345 drivers/pinctrl/berlin/pinctrl-as370.c 	base = devm_ioremap_resource(&pdev->dev, res);
res               352 drivers/pinctrl/berlin/pinctrl-as370.c 	rmconfig->max_register = resource_size(res);
res              1325 drivers/pinctrl/core.c static void devm_pinctrl_release(struct device *dev, void *res)
res              1327 drivers/pinctrl/core.c 	pinctrl_put(*(struct pinctrl **)res);
res              1357 drivers/pinctrl/core.c static int devm_pinctrl_match(struct device *dev, void *res, void *data)
res              1359 drivers/pinctrl/core.c 	struct pinctrl **p = res;
res              2176 drivers/pinctrl/core.c static void devm_pinctrl_dev_release(struct device *dev, void *res)
res              2178 drivers/pinctrl/core.c 	struct pinctrl_dev *pctldev = *(struct pinctrl_dev **)res;
res              2183 drivers/pinctrl/core.c static int devm_pinctrl_dev_match(struct device *dev, void *res, void *data)
res              2185 drivers/pinctrl/core.c 	struct pctldev **r = res;
res               595 drivers/pinctrl/freescale/pinctrl-imx1-core.c 	struct resource *res;
res               610 drivers/pinctrl/freescale/pinctrl-imx1-core.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               611 drivers/pinctrl/freescale/pinctrl-imx1-core.c 	if (!res)
res               614 drivers/pinctrl/freescale/pinctrl-imx1-core.c 	ipctl->base = devm_ioremap_nocache(&pdev->dev, res->start,
res               615 drivers/pinctrl/freescale/pinctrl-imx1-core.c 			resource_size(res));
res               592 drivers/pinctrl/mediatek/pinctrl-moore.c 	struct resource *res;
res               615 drivers/pinctrl/mediatek/pinctrl-moore.c 		res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
res               617 drivers/pinctrl/mediatek/pinctrl-moore.c 		if (!res) {
res               622 drivers/pinctrl/mediatek/pinctrl-moore.c 		hw->base[i] = devm_ioremap_resource(&pdev->dev, res);
res               314 drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c 	struct resource *res;
res               326 drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "eint");
res               327 drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c 	if (!res) {
res               332 drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c 	hw->eint->base = devm_ioremap_resource(&pdev->dev, res);
res               371 drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c 				 const struct mtk_pin_desc *desc, int *res)
res               387 drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c 	*res = 1;
res               412 drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c 			 const struct mtk_pin_desc *desc, bool pullup, int *res)
res               425 drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c 	*res = 1;
res               445 drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c 				      const struct mtk_pin_desc *desc, int *res)
res               456 drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c 	*res = 1;
res               482 drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c 			      int *res)
res               500 drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c 	*res = 1;
res               213 drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.h 				const struct mtk_pin_desc *desc, int *res);
res               217 drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.h 			const struct mtk_pin_desc *desc, bool pullup, int *res);
res               263 drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.h 				 const struct mtk_pin_desc *desc, int *res);
res               268 drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.h 			 int *res);
res               274 drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.h 				      int *res);
res               279 drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.h 			      int *res);
res               985 drivers/pinctrl/mediatek/pinctrl-mtk-common.c 	struct resource *res;
res               994 drivers/pinctrl/mediatek/pinctrl-mtk-common.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               995 drivers/pinctrl/mediatek/pinctrl-mtk-common.c 	pctl->eint->base = devm_ioremap_resource(&pdev->dev, res);
res               841 drivers/pinctrl/mediatek/pinctrl-paris.c 	struct resource *res;
res               864 drivers/pinctrl/mediatek/pinctrl-paris.c 		res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
res               866 drivers/pinctrl/mediatek/pinctrl-paris.c 		if (!res) {
res               871 drivers/pinctrl/mediatek/pinctrl-paris.c 		hw->base[i] = devm_ioremap_resource(&pdev->dev, res);
res               623 drivers/pinctrl/meson/pinctrl-meson.c 	struct resource res;
res               628 drivers/pinctrl/meson/pinctrl-meson.c 	if (of_address_to_resource(node, i, &res))
res               631 drivers/pinctrl/meson/pinctrl-meson.c 	base = devm_ioremap_resource(pc->dev, &res);
res               635 drivers/pinctrl/meson/pinctrl-meson.c 	meson_regmap_config.max_register = resource_size(&res) - 4;
res               725 drivers/pinctrl/mvebu/pinctrl-armada-37xx.c 	struct resource res;
res               746 drivers/pinctrl/mvebu/pinctrl-armada-37xx.c 	if (of_address_to_resource(info->dev->of_node, 1, &res)) {
res               751 drivers/pinctrl/mvebu/pinctrl-armada-37xx.c 	info->base = devm_ioremap_resource(info->dev, &res);
res               766 drivers/pinctrl/mvebu/pinctrl-dove.c 	struct resource *res, *mpp_res;
res               805 drivers/pinctrl/mvebu/pinctrl-dove.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res               806 drivers/pinctrl/mvebu/pinctrl-dove.c 	if (!res) {
res               810 drivers/pinctrl/mvebu/pinctrl-dove.c 		res = &fb_res;
res               813 drivers/pinctrl/mvebu/pinctrl-dove.c 	mpp4_base = devm_ioremap_resource(&pdev->dev, res);
res               817 drivers/pinctrl/mvebu/pinctrl-dove.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 2);
res               818 drivers/pinctrl/mvebu/pinctrl-dove.c 	if (!res) {
res               822 drivers/pinctrl/mvebu/pinctrl-dove.c 		res = &fb_res;
res               825 drivers/pinctrl/mvebu/pinctrl-dove.c 	pmu_base = devm_ioremap_resource(&pdev->dev, res);
res               762 drivers/pinctrl/mvebu/pinctrl-mvebu.c 	struct resource *res;
res               766 drivers/pinctrl/mvebu/pinctrl-mvebu.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               767 drivers/pinctrl/mvebu/pinctrl-mvebu.c 	base = devm_ioremap_resource(&pdev->dev, res);
res               223 drivers/pinctrl/mvebu/pinctrl-orion.c 	struct resource *res;
res               227 drivers/pinctrl/mvebu/pinctrl-orion.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               228 drivers/pinctrl/mvebu/pinctrl-orion.c 	mpp_base = devm_ioremap_resource(&pdev->dev, res);
res               232 drivers/pinctrl/mvebu/pinctrl-orion.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res               233 drivers/pinctrl/mvebu/pinctrl-orion.c 	high_mpp_base = devm_ioremap_resource(&pdev->dev, res);
res              1044 drivers/pinctrl/nomadik/pinctrl-nomadik.c 	struct resource *res;
res              1080 drivers/pinctrl/nomadik/pinctrl-nomadik.c 	res = platform_get_resource(gpio_pdev, IORESOURCE_MEM, 0);
res              1081 drivers/pinctrl/nomadik/pinctrl-nomadik.c 	base = devm_ioremap_resource(&pdev->dev, res);
res              1865 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c 	struct resource res;
res              1872 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c 			ret = of_address_to_resource(np, 0, &res);
res              1880 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c 				ioremap(res.start, resource_size(&res));
res               853 drivers/pinctrl/pinctrl-amd.c 	struct resource *res;
res               863 drivers/pinctrl/pinctrl-amd.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               864 drivers/pinctrl/pinctrl-amd.c 	if (!res) {
res               869 drivers/pinctrl/pinctrl-amd.c 	gpio_dev->base = devm_ioremap_nocache(&pdev->dev, res->start,
res               870 drivers/pinctrl/pinctrl-amd.c 						resource_size(res));
res               899 drivers/pinctrl/pinctrl-amd.c 	gpio_dev->gc.ngpio			= resource_size(res) / 4;
res                98 drivers/pinctrl/pinctrl-amd.h 	struct resource         *res;
res               939 drivers/pinctrl/pinctrl-artpec6.c 	struct resource *res;
res               947 drivers/pinctrl/pinctrl-artpec6.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               948 drivers/pinctrl/pinctrl-artpec6.c 	pmx->base = devm_ioremap_resource(&pdev->dev, res);
res               660 drivers/pinctrl/pinctrl-at91-pio4.c 	u32 res;
res               662 drivers/pinctrl/pinctrl-at91-pio4.c 	res = atmel_pin_config_read(pctldev, pin_id);
res               666 drivers/pinctrl/pinctrl-at91-pio4.c 		if (!(res & ATMEL_PIO_PUEN_MASK))
res               671 drivers/pinctrl/pinctrl-at91-pio4.c 		if ((res & ATMEL_PIO_PUEN_MASK) ||
res               672 drivers/pinctrl/pinctrl-at91-pio4.c 		    (!(res & ATMEL_PIO_PDEN_MASK)))
res               677 drivers/pinctrl/pinctrl-at91-pio4.c 		if ((res & ATMEL_PIO_PUEN_MASK) ||
res               678 drivers/pinctrl/pinctrl-at91-pio4.c 		    ((res & ATMEL_PIO_PDEN_MASK)))
res               683 drivers/pinctrl/pinctrl-at91-pio4.c 		if (!(res & ATMEL_PIO_OPD_MASK))
res               688 drivers/pinctrl/pinctrl-at91-pio4.c 		if (!(res & ATMEL_PIO_SCHMITT_MASK))
res               693 drivers/pinctrl/pinctrl-at91-pio4.c 		if (!(res & ATMEL_PIO_DRVSTR_MASK))
res               695 drivers/pinctrl/pinctrl-at91-pio4.c 		arg = (res & ATMEL_PIO_DRVSTR_MASK) >> ATMEL_PIO_DRVSTR_OFFSET;
res               938 drivers/pinctrl/pinctrl-at91-pio4.c 	struct resource	*res;
res               958 drivers/pinctrl/pinctrl-at91-pio4.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               959 drivers/pinctrl/pinctrl-at91-pio4.c 	atmel_pioctrl->reg_base = devm_ioremap_resource(dev, res);
res              1053 drivers/pinctrl/pinctrl-at91-pio4.c 		res = platform_get_resource(pdev, IORESOURCE_IRQ, i);
res              1054 drivers/pinctrl/pinctrl-at91-pio4.c 		if (!res) {
res              1059 drivers/pinctrl/pinctrl-at91-pio4.c 		atmel_pioctrl->irqs[i] = res->start;
res              1060 drivers/pinctrl/pinctrl-at91-pio4.c 		irq_set_chained_handler(res->start, atmel_gpio_irq_handler);
res              1061 drivers/pinctrl/pinctrl-at91-pio4.c 		irq_set_handler_data(res->start, atmel_pioctrl);
res              1062 drivers/pinctrl/pinctrl-at91-pio4.c 		dev_dbg(dev, "bank %i: irq=%pr\n", i, res);
res              1815 drivers/pinctrl/pinctrl-at91.c 	struct resource *res;
res              1843 drivers/pinctrl/pinctrl-at91.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1844 drivers/pinctrl/pinctrl-at91.c 	at91_chip->regbase = devm_ioremap_resource(&pdev->dev, res);
res              1311 drivers/pinctrl/pinctrl-bm1880.c 	struct resource *res;
res              1318 drivers/pinctrl/pinctrl-bm1880.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1319 drivers/pinctrl/pinctrl-bm1880.c 	pctrl->base = devm_ioremap_resource(&pdev->dev, res);
res               149 drivers/pinctrl/pinctrl-da850-pupd.c 	struct resource *res;
res               155 drivers/pinctrl/pinctrl-da850-pupd.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               156 drivers/pinctrl/pinctrl-da850-pupd.c 	data->base = devm_ioremap_resource(dev, res);
res               436 drivers/pinctrl/pinctrl-falcon.c 		struct resource res;
res               449 drivers/pinctrl/pinctrl-falcon.c 		if (of_address_to_resource(np, 0, &res))
res               458 drivers/pinctrl/pinctrl-falcon.c 								   &res);
res               471 drivers/pinctrl/pinctrl-falcon.c 				res.name, pins);
res              1327 drivers/pinctrl/pinctrl-lpc18xx.c 	struct resource *res;
res              1334 drivers/pinctrl/pinctrl-lpc18xx.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1335 drivers/pinctrl/pinctrl-lpc18xx.c 	scu->base = devm_ioremap_resource(&pdev->dev, res);
res              1199 drivers/pinctrl/pinctrl-oxnas.c 	struct resource *res;
res              1222 drivers/pinctrl/pinctrl-oxnas.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1223 drivers/pinctrl/pinctrl-oxnas.c 	bank->reg_base = devm_ioremap_resource(&pdev->dev, res);
res              2148 drivers/pinctrl/pinctrl-pic32.c 	struct resource *res;
res              2157 drivers/pinctrl/pinctrl-pic32.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              2158 drivers/pinctrl/pinctrl-pic32.c 	pctl->reg_base = devm_ioremap_resource(&pdev->dev, res);
res              2205 drivers/pinctrl/pinctrl-pic32.c 	struct resource *res;
res              2219 drivers/pinctrl/pinctrl-pic32.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              2220 drivers/pinctrl/pinctrl-pic32.c 	bank->reg_base = devm_ioremap_resource(&pdev->dev, res);
res              1432 drivers/pinctrl/pinctrl-pistachio.c 	struct resource *res;
res              1440 drivers/pinctrl/pinctrl-pistachio.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1441 drivers/pinctrl/pinctrl-pistachio.c 	pctl->base = devm_ioremap_resource(&pdev->dev, res);
res              3169 drivers/pinctrl/pinctrl-rockchip.c 	struct resource res;
res              3172 drivers/pinctrl/pinctrl-rockchip.c 	if (of_address_to_resource(bank->of_node, 0, &res)) {
res              3177 drivers/pinctrl/pinctrl-rockchip.c 	bank->reg_base = devm_ioremap_resource(info->dev, &res);
res              3192 drivers/pinctrl/pinctrl-rockchip.c 			if (of_address_to_resource(bank->of_node, 1, &res)) {
res              3197 drivers/pinctrl/pinctrl-rockchip.c 			base = devm_ioremap_resource(info->dev, &res);
res              3201 drivers/pinctrl/pinctrl-rockchip.c 						    resource_size(&res) - 4;
res              3405 drivers/pinctrl/pinctrl-rockchip.c 	struct resource *res;
res              3433 drivers/pinctrl/pinctrl-rockchip.c 		res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              3434 drivers/pinctrl/pinctrl-rockchip.c 		base = devm_ioremap_resource(&pdev->dev, res);
res              3438 drivers/pinctrl/pinctrl-rockchip.c 		rockchip_regmap_config.max_register = resource_size(res) - 4;
res              3444 drivers/pinctrl/pinctrl-rockchip.c 		info->reg_size = resource_size(res);
res              3448 drivers/pinctrl/pinctrl-rockchip.c 			res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res              3449 drivers/pinctrl/pinctrl-rockchip.c 			base = devm_ioremap_resource(&pdev->dev, res);
res              3454 drivers/pinctrl/pinctrl-rockchip.c 							resource_size(res) - 4;
res               465 drivers/pinctrl/pinctrl-rza2.c 	struct resource *res;
res               474 drivers/pinctrl/pinctrl-rza2.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               475 drivers/pinctrl/pinctrl-rza2.c 	priv->base = devm_ioremap_resource(&pdev->dev, res);
res               857 drivers/pinctrl/pinctrl-rzn1.c 	struct resource *res;
res               868 drivers/pinctrl/pinctrl-rzn1.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               869 drivers/pinctrl/pinctrl-rzn1.c 	ipctl->lev1_protect_phys = (u32)res->start + 0x400;
res               870 drivers/pinctrl/pinctrl-rzn1.c 	ipctl->lev1 = devm_ioremap_resource(&pdev->dev, res);
res               874 drivers/pinctrl/pinctrl-rzn1.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res               875 drivers/pinctrl/pinctrl-rzn1.c 	ipctl->lev2_protect_phys = (u32)res->start + 0x400;
res               876 drivers/pinctrl/pinctrl-rzn1.c 	ipctl->lev2 = devm_ioremap_resource(&pdev->dev, res);
res               174 drivers/pinctrl/pinctrl-single.c 	struct resource *res;
res               284 drivers/pinctrl/pinctrl-single.c 	pa = pcs->res->start + offset;
res               677 drivers/pinctrl/pinctrl-single.c 				(unsigned long)pcs->res->start + offset, val);
res               726 drivers/pinctrl/pinctrl-single.c 		int res;
res               737 drivers/pinctrl/pinctrl-single.c 		res = pcs_add_pin(pcs, offset, pin_pos);
res               738 drivers/pinctrl/pinctrl-single.c 		if (res < 0) {
res               739 drivers/pinctrl/pinctrl-single.c 			dev_err(pcs->dev, "error adding pins: %i\n", res);
res               740 drivers/pinctrl/pinctrl-single.c 			return res;
res               988 drivers/pinctrl/pinctrl-single.c 	int rows, *pins, found = 0, res = -ENOMEM, i, fsel, gsel;
res              1010 drivers/pinctrl/pinctrl-single.c 		res = pinctrl_parse_index_with_args(np, name, i, &pinctrl_spec);
res              1011 drivers/pinctrl/pinctrl-single.c 		if (res)
res              1012 drivers/pinctrl/pinctrl-single.c 			return res;
res              1043 drivers/pinctrl/pinctrl-single.c 		res = fsel;
res              1049 drivers/pinctrl/pinctrl-single.c 		res = gsel;
res              1058 drivers/pinctrl/pinctrl-single.c 		res = pcs_parse_pinconf(pcs, np, function, map);
res              1059 drivers/pinctrl/pinctrl-single.c 		if (res)
res              1081 drivers/pinctrl/pinctrl-single.c 	return res;
res              1092 drivers/pinctrl/pinctrl-single.c 	int rows, *pins, found = 0, res = -ENOMEM, i, fsel, gsel;
res              1123 drivers/pinctrl/pinctrl-single.c 		res = pinctrl_parse_index_with_args(np, name, i, &pinctrl_spec);
res              1124 drivers/pinctrl/pinctrl-single.c 		if (res)
res              1125 drivers/pinctrl/pinctrl-single.c 			return res;
res              1185 drivers/pinctrl/pinctrl-single.c 		res = fsel;
res              1191 drivers/pinctrl/pinctrl-single.c 		res = gsel;
res              1221 drivers/pinctrl/pinctrl-single.c 	return res;
res              1567 drivers/pinctrl/pinctrl-single.c 		int res;
res              1569 drivers/pinctrl/pinctrl-single.c 		res = request_irq(pcs_soc->irq, pcs_irq_handler,
res              1573 drivers/pinctrl/pinctrl-single.c 		if (res) {
res              1575 drivers/pinctrl/pinctrl-single.c 			return res;
res              1755 drivers/pinctrl/pinctrl-single.c 	struct resource *res;
res              1811 drivers/pinctrl/pinctrl-single.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1812 drivers/pinctrl/pinctrl-single.c 	if (!res) {
res              1817 drivers/pinctrl/pinctrl-single.c 	pcs->res = devm_request_mem_region(pcs->dev, res->start,
res              1818 drivers/pinctrl/pinctrl-single.c 			resource_size(res), DRIVER_NAME);
res              1819 drivers/pinctrl/pinctrl-single.c 	if (!pcs->res) {
res              1824 drivers/pinctrl/pinctrl-single.c 	pcs->size = resource_size(pcs->res);
res              1825 drivers/pinctrl/pinctrl-single.c 	pcs->base = devm_ioremap(pcs->dev, pcs->res->start, pcs->size);
res              1479 drivers/pinctrl/pinctrl-st.c 	struct resource res, irq_res;
res              1482 drivers/pinctrl/pinctrl-st.c 	if (of_address_to_resource(np, 0, &res))
res              1485 drivers/pinctrl/pinctrl-st.c 	bank->base = devm_ioremap_resource(dev, &res);
res              1569 drivers/pinctrl/pinctrl-st.c 	struct resource *res;
res              1604 drivers/pinctrl/pinctrl-st.c 		res = platform_get_resource_byname(pdev,
res              1606 drivers/pinctrl/pinctrl-st.c 		info->irqmux_base = devm_ioremap_resource(&pdev->dev, res);
res              1058 drivers/pinctrl/pinctrl-u300.c 	struct resource *res;
res              1067 drivers/pinctrl/pinctrl-u300.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1068 drivers/pinctrl/pinctrl-u300.c 	upmx->virtbase = devm_ioremap_resource(&pdev->dev, res);
res              1708 drivers/pinctrl/pinctrl-xway.c 	struct resource *res;
res              1712 drivers/pinctrl/pinctrl-xway.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1713 drivers/pinctrl/pinctrl-xway.c 	xway_info.membase[0] = devm_ioremap_resource(&pdev->dev, res);
res              1161 drivers/pinctrl/pinctrl-zynq.c 	struct resource *res;
res              1175 drivers/pinctrl/pinctrl-zynq.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1176 drivers/pinctrl/pinctrl-zynq.c 	if (!res) {
res              1180 drivers/pinctrl/pinctrl-zynq.c 	pctrl->pctrl_offset = res->start;
res               219 drivers/pinctrl/pxa/pinctrl-pxa25x.c 	struct resource *res;
res               221 drivers/pinctrl/pxa/pinctrl-pxa25x.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               222 drivers/pinctrl/pxa/pinctrl-pxa25x.c 	base_af[0] = devm_ioremap_resource(&pdev->dev, res);
res               226 drivers/pinctrl/pxa/pinctrl-pxa25x.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res               227 drivers/pinctrl/pxa/pinctrl-pxa25x.c 	base_dir[0] = devm_ioremap_resource(&pdev->dev, res);
res               231 drivers/pinctrl/pxa/pinctrl-pxa25x.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 2);
res               232 drivers/pinctrl/pxa/pinctrl-pxa25x.c 	base_dir[3] = devm_ioremap_resource(&pdev->dev, res);
res               236 drivers/pinctrl/pxa/pinctrl-pxa25x.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 3);
res               237 drivers/pinctrl/pxa/pinctrl-pxa25x.c 	base_sleep[0] = devm_ioremap_resource(&pdev->dev, res);
res               511 drivers/pinctrl/pxa/pinctrl-pxa27x.c 	struct resource *res;
res               513 drivers/pinctrl/pxa/pinctrl-pxa27x.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               514 drivers/pinctrl/pxa/pinctrl-pxa27x.c 	base_af[0] = devm_ioremap_resource(&pdev->dev, res);
res               518 drivers/pinctrl/pxa/pinctrl-pxa27x.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res               519 drivers/pinctrl/pxa/pinctrl-pxa27x.c 	base_dir[0] = devm_ioremap_resource(&pdev->dev, res);
res               523 drivers/pinctrl/pxa/pinctrl-pxa27x.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 2);
res               524 drivers/pinctrl/pxa/pinctrl-pxa27x.c 	base_dir[3] = devm_ioremap_resource(&pdev->dev, res);
res               528 drivers/pinctrl/pxa/pinctrl-pxa27x.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 3);
res               529 drivers/pinctrl/pxa/pinctrl-pxa27x.c 	base_sleep[0] = devm_ioremap_resource(&pdev->dev, res);
res              1130 drivers/pinctrl/qcom/pinctrl-msm.c 	struct resource *res;
res              1146 drivers/pinctrl/qcom/pinctrl-msm.c 			res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
res              1148 drivers/pinctrl/qcom/pinctrl-msm.c 			pctrl->regs[i] = devm_ioremap_resource(&pdev->dev, res);
res              1153 drivers/pinctrl/qcom/pinctrl-msm.c 		res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1154 drivers/pinctrl/qcom/pinctrl-msm.c 		pctrl->regs[0] = devm_ioremap_resource(&pdev->dev, res);
res              1015 drivers/pinctrl/samsung/pinctrl-samsung.c 	struct resource *res;
res              1035 drivers/pinctrl/samsung/pinctrl-samsung.c 		res = platform_get_resource(pdev, IORESOURCE_MEM, i);
res              1036 drivers/pinctrl/samsung/pinctrl-samsung.c 		if (!res) {
res              1040 drivers/pinctrl/samsung/pinctrl-samsung.c 		virt_base[i] = devm_ioremap(&pdev->dev, res->start,
res              1041 drivers/pinctrl/samsung/pinctrl-samsung.c 						resource_size(res));
res              1043 drivers/pinctrl/samsung/pinctrl-samsung.c 			dev_err(&pdev->dev, "failed to ioremap %pR\n", res);
res              1098 drivers/pinctrl/samsung/pinctrl-samsung.c 	struct resource *res;
res              1112 drivers/pinctrl/samsung/pinctrl-samsung.c 	res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
res              1113 drivers/pinctrl/samsung/pinctrl-samsung.c 	if (res)
res              1114 drivers/pinctrl/samsung/pinctrl-samsung.c 		drvdata->irq = res->start;
res                35 drivers/pinctrl/sh-pfc/core.c 	struct resource *res;
res                41 drivers/pinctrl/sh-pfc/core.c 		res = platform_get_resource(pdev, IORESOURCE_MEM, num_windows);
res                42 drivers/pinctrl/sh-pfc/core.c 		if (!res)
res                73 drivers/pinctrl/sh-pfc/core.c 		res = platform_get_resource(pdev, IORESOURCE_MEM, i);
res                74 drivers/pinctrl/sh-pfc/core.c 		windows->phys = res->start;
res                75 drivers/pinctrl/sh-pfc/core.c 		windows->size = resource_size(res);
res                76 drivers/pinctrl/sh-pfc/core.c 		windows->virt = devm_ioremap_resource(pfc->dev, res);
res              5409 drivers/pinctrl/sirf/pinctrl-atlas7.c 	struct resource res;
res              5423 drivers/pinctrl/sirf/pinctrl-atlas7.c 	ret = of_address_to_resource(sys2pci_np, 0, &res);
res              5428 drivers/pinctrl/sirf/pinctrl-atlas7.c 	pmx->sys2pci_base = devm_ioremap_resource(&pdev->dev, &res);
res               518 drivers/pinctrl/spear/pinctrl-plgpio.c 	struct resource *res;
res               525 drivers/pinctrl/spear/pinctrl-plgpio.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               526 drivers/pinctrl/spear/pinctrl-plgpio.c 	plgpio->base = devm_ioremap_resource(&pdev->dev, res);
res               361 drivers/pinctrl/spear/pinctrl-spear.c 	struct resource *res;
res               371 drivers/pinctrl/spear/pinctrl-spear.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               372 drivers/pinctrl/spear/pinctrl-spear.c 	pmx->vbase = devm_ioremap_resource(&pdev->dev, res);
res              1153 drivers/pinctrl/stm32/pinctrl-stm32.c 	struct resource res;
res              1162 drivers/pinctrl/stm32/pinctrl-stm32.c 	if (of_address_to_resource(np, 0, &res))
res              1165 drivers/pinctrl/stm32/pinctrl-stm32.c 	bank->base = devm_ioremap_resource(dev, &res);
res              1388 drivers/pinctrl/sunxi/pinctrl-sunxi.c 	struct resource *res;
res              1399 drivers/pinctrl/sunxi/pinctrl-sunxi.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1400 drivers/pinctrl/sunxi/pinctrl-sunxi.c 	pctl->membase = devm_ioremap_resource(&pdev->dev, res);
res               876 drivers/pinctrl/tegra/pinctrl-tegra-xusb.c 	struct resource *res;
res               891 drivers/pinctrl/tegra/pinctrl-tegra-xusb.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               892 drivers/pinctrl/tegra/pinctrl-tegra-xusb.c 	padctl->regs = devm_ioremap_resource(&pdev->dev, res);
res               640 drivers/pinctrl/tegra/pinctrl-tegra.c 	struct resource *res;
res               642 drivers/pinctrl/tegra/pinctrl-tegra.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, bank_id);
res               644 drivers/pinctrl/tegra/pinctrl-tegra.c 	return resource_size(res) / 4;
res               712 drivers/pinctrl/tegra/pinctrl-tegra.c 	struct resource *res;
res               766 drivers/pinctrl/tegra/pinctrl-tegra.c 		res = platform_get_resource(pdev, IORESOURCE_MEM, i);
res               767 drivers/pinctrl/tegra/pinctrl-tegra.c 		if (!res)
res               769 drivers/pinctrl/tegra/pinctrl-tegra.c 		backup_regs_size += resource_size(res);
res               784 drivers/pinctrl/tegra/pinctrl-tegra.c 		res = platform_get_resource(pdev, IORESOURCE_MEM, i);
res               785 drivers/pinctrl/tegra/pinctrl-tegra.c 		pmx->regs[i] = devm_ioremap_resource(&pdev->dev, res);
res               823 drivers/pinctrl/ti/pinctrl-ti-iodelay.c 	struct resource *res;
res               849 drivers/pinctrl/ti/pinctrl-ti-iodelay.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               850 drivers/pinctrl/ti/pinctrl-ti-iodelay.c 	if (!res) {
res               856 drivers/pinctrl/ti/pinctrl-ti-iodelay.c 	iod->phys_base = res->start;
res               857 drivers/pinctrl/ti/pinctrl-ti-iodelay.c 	iod->reg_base = devm_ioremap_resource(dev, res);
res               874 drivers/pinctrl/ti/pinctrl-ti-iodelay.c 	ret = ti_iodelay_alloc_pins(dev, iod, res->start);
res               556 drivers/pinctrl/vt8500/pinctrl-wmt.c 	struct resource *res;
res               558 drivers/pinctrl/vt8500/pinctrl-wmt.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               559 drivers/pinctrl/vt8500/pinctrl-wmt.c 	data->base = devm_ioremap_resource(&pdev->dev, res);
res               390 drivers/pinctrl/zte/pinctrl-zx.c 	struct resource *res;
res               399 drivers/pinctrl/zte/pinctrl-zx.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               400 drivers/pinctrl/zte/pinctrl-zx.c 	zpctl->base = devm_ioremap_resource(&pdev->dev, res);
res                86 drivers/platform/chrome/chromeos_pstore.c 	struct resource *res;
res                89 drivers/platform/chrome/chromeos_pstore.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                90 drivers/platform/chrome/chromeos_pstore.c 	if (!res)
res                93 drivers/platform/chrome/chromeos_pstore.c 	len = resource_size(res);
res                94 drivers/platform/chrome/chromeos_pstore.c 	if (!res->start || !len)
res               100 drivers/platform/chrome/chromeos_pstore.c 	chromeos_ramoops_data.mem_address = res->start;
res                29 drivers/platform/chrome/wilco_ec/core.c 	struct resource *res;
res                31 drivers/platform/chrome/wilco_ec/core.c 	res = platform_get_resource(pdev, IORESOURCE_IO, index);
res                32 drivers/platform/chrome/wilco_ec/core.c 	if (!res) {
res                34 drivers/platform/chrome/wilco_ec/core.c 		return res;
res                37 drivers/platform/chrome/wilco_ec/core.c 	return devm_request_region(dev, res->start, resource_size(res),
res               605 drivers/platform/x86/apple-gmux.c 	struct resource *res;
res               621 drivers/platform/x86/apple-gmux.c 	res = pnp_get_resource(pnp, IORESOURCE_IO, 0);
res               622 drivers/platform/x86/apple-gmux.c 	if (!res) {
res               627 drivers/platform/x86/apple-gmux.c 	gmux_data->iostart = res->start;
res               628 drivers/platform/x86/apple-gmux.c 	gmux_data->iolen = res->end - res->start;
res               422 drivers/platform/x86/fujitsu-tablet.c static acpi_status fujitsu_walk_resources(struct acpi_resource *res, void *data)
res               424 drivers/platform/x86/fujitsu-tablet.c 	switch (res->type) {
res               426 drivers/platform/x86/fujitsu-tablet.c 		fujitsu.irq = res->data.irq.interrupts[0];
res               430 drivers/platform/x86/fujitsu-tablet.c 		fujitsu.io_base = res->data.io.minimum;
res               431 drivers/platform/x86/fujitsu-tablet.c 		fujitsu.io_length = res->data.io.address_length;
res               685 drivers/platform/x86/intel_pmc_ipc.c 		.res = punit_res_array,
res               701 drivers/platform/x86/intel_pmc_ipc.c 	struct resource *res;
res               706 drivers/platform/x86/intel_pmc_ipc.c 		.res = tco_res,
res               712 drivers/platform/x86/intel_pmc_ipc.c 	res = tco_res + TCO_RESOURCE_ACPI_IO;
res               713 drivers/platform/x86/intel_pmc_ipc.c 	res->start = ipcdev.acpi_io_base + TCO_BASE_OFFSET;
res               714 drivers/platform/x86/intel_pmc_ipc.c 	res->end = res->start + TCO_REGS_SIZE - 1;
res               716 drivers/platform/x86/intel_pmc_ipc.c 	res = tco_res + TCO_RESOURCE_SMI_EN_IO;
res               717 drivers/platform/x86/intel_pmc_ipc.c 	res->start = ipcdev.acpi_io_base + SMI_EN_OFFSET;
res               718 drivers/platform/x86/intel_pmc_ipc.c 	res->end = res->start + SMI_EN_SIZE - 1;
res               732 drivers/platform/x86/intel_pmc_ipc.c 	struct resource *res;
res               737 drivers/platform/x86/intel_pmc_ipc.c 		.res = telemetry_res,
res               741 drivers/platform/x86/intel_pmc_ipc.c 	res = telemetry_res + TELEMETRY_RESOURCE_PUNIT_SSRAM;
res               742 drivers/platform/x86/intel_pmc_ipc.c 	res->start = ipcdev.telem_punit_ssram_base;
res               743 drivers/platform/x86/intel_pmc_ipc.c 	res->end = res->start + ipcdev.telem_punit_ssram_size - 1;
res               745 drivers/platform/x86/intel_pmc_ipc.c 	res = telemetry_res + TELEMETRY_RESOURCE_PMC_SSRAM;
res               746 drivers/platform/x86/intel_pmc_ipc.c 	res->start = ipcdev.telem_pmc_ssram_base;
res               747 drivers/platform/x86/intel_pmc_ipc.c 	res->end = res->start + ipcdev.telem_pmc_ssram_size - 1;
res               793 drivers/platform/x86/intel_pmc_ipc.c 	struct resource *res, *punit_res = punit_res_array;
res               797 drivers/platform/x86/intel_pmc_ipc.c 	res = platform_get_resource(pdev, IORESOURCE_IO,
res               799 drivers/platform/x86/intel_pmc_ipc.c 	if (!res) {
res               803 drivers/platform/x86/intel_pmc_ipc.c 	size = resource_size(res);
res               804 drivers/platform/x86/intel_pmc_ipc.c 	ipcdev.acpi_io_base = res->start;
res               806 drivers/platform/x86/intel_pmc_ipc.c 	dev_info(&pdev->dev, "io res: %pR\n", res);
res               811 drivers/platform/x86/intel_pmc_ipc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM,
res               813 drivers/platform/x86/intel_pmc_ipc.c 	if (!res) {
res               817 drivers/platform/x86/intel_pmc_ipc.c 	punit_res[ipcdev.punit_res_count++] = *res;
res               818 drivers/platform/x86/intel_pmc_ipc.c 	dev_info(&pdev->dev, "punit BIOS data res: %pR\n", res);
res               821 drivers/platform/x86/intel_pmc_ipc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM,
res               823 drivers/platform/x86/intel_pmc_ipc.c 	if (!res) {
res               827 drivers/platform/x86/intel_pmc_ipc.c 	punit_res[ipcdev.punit_res_count++] = *res;
res               828 drivers/platform/x86/intel_pmc_ipc.c 	dev_info(&pdev->dev, "punit BIOS interface res: %pR\n", res);
res               831 drivers/platform/x86/intel_pmc_ipc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM,
res               833 drivers/platform/x86/intel_pmc_ipc.c 	if (res) {
res               834 drivers/platform/x86/intel_pmc_ipc.c 		punit_res[ipcdev.punit_res_count++] = *res;
res               835 drivers/platform/x86/intel_pmc_ipc.c 		dev_info(&pdev->dev, "punit ISP data res: %pR\n", res);
res               839 drivers/platform/x86/intel_pmc_ipc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM,
res               841 drivers/platform/x86/intel_pmc_ipc.c 	if (res) {
res               842 drivers/platform/x86/intel_pmc_ipc.c 		punit_res[ipcdev.punit_res_count++] = *res;
res               843 drivers/platform/x86/intel_pmc_ipc.c 		dev_info(&pdev->dev, "punit ISP interface res: %pR\n", res);
res               847 drivers/platform/x86/intel_pmc_ipc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM,
res               849 drivers/platform/x86/intel_pmc_ipc.c 	if (res) {
res               850 drivers/platform/x86/intel_pmc_ipc.c 		punit_res[ipcdev.punit_res_count++] = *res;
res               851 drivers/platform/x86/intel_pmc_ipc.c 		dev_info(&pdev->dev, "punit GTD data res: %pR\n", res);
res               855 drivers/platform/x86/intel_pmc_ipc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM,
res               857 drivers/platform/x86/intel_pmc_ipc.c 	if (res) {
res               858 drivers/platform/x86/intel_pmc_ipc.c 		punit_res[ipcdev.punit_res_count++] = *res;
res               859 drivers/platform/x86/intel_pmc_ipc.c 		dev_info(&pdev->dev, "punit GTD interface res: %pR\n", res);
res               862 drivers/platform/x86/intel_pmc_ipc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM,
res               864 drivers/platform/x86/intel_pmc_ipc.c 	if (!res) {
res               869 drivers/platform/x86/intel_pmc_ipc.c 	res->end = res->start + size - 1;
res               871 drivers/platform/x86/intel_pmc_ipc.c 	addr = devm_ioremap_resource(&pdev->dev, res);
res               878 drivers/platform/x86/intel_pmc_ipc.c 	dev_info(&pdev->dev, "ipc res: %pR\n", res);
res               881 drivers/platform/x86/intel_pmc_ipc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM,
res               883 drivers/platform/x86/intel_pmc_ipc.c 	if (!res) {
res               887 drivers/platform/x86/intel_pmc_ipc.c 		ipcdev.telem_punit_ssram_base = res->start +
res               890 drivers/platform/x86/intel_pmc_ipc.c 		ipcdev.telem_pmc_ssram_base = res->start +
res               893 drivers/platform/x86/intel_pmc_ipc.c 		dev_info(&pdev->dev, "telemetry ssram res: %pR\n", res);
res               227 drivers/platform/x86/intel_punit_ipc.c 	struct resource *res;
res               235 drivers/platform/x86/intel_punit_ipc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               236 drivers/platform/x86/intel_punit_ipc.c 	addr = devm_ioremap_resource(&pdev->dev, res);
res               241 drivers/platform/x86/intel_punit_ipc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res               242 drivers/platform/x86/intel_punit_ipc.c 	addr = devm_ioremap_resource(&pdev->dev, res);
res               254 drivers/platform/x86/intel_punit_ipc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 2);
res               255 drivers/platform/x86/intel_punit_ipc.c 	if (res) {
res               256 drivers/platform/x86/intel_punit_ipc.c 		addr = devm_ioremap_resource(&pdev->dev, res);
res               261 drivers/platform/x86/intel_punit_ipc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 3);
res               262 drivers/platform/x86/intel_punit_ipc.c 	if (res) {
res               263 drivers/platform/x86/intel_punit_ipc.c 		addr = devm_ioremap_resource(&pdev->dev, res);
res               268 drivers/platform/x86/intel_punit_ipc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 4);
res               269 drivers/platform/x86/intel_punit_ipc.c 	if (res) {
res               270 drivers/platform/x86/intel_punit_ipc.c 		addr = devm_ioremap_resource(&pdev->dev, res);
res               275 drivers/platform/x86/intel_punit_ipc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 5);
res               276 drivers/platform/x86/intel_punit_ipc.c 	if (res) {
res               277 drivers/platform/x86/intel_punit_ipc.c 		addr = devm_ioremap_resource(&pdev->dev, res);
res                94 drivers/platform/x86/lg-laptop.c 	int res;
res               120 drivers/platform/x86/lg-laptop.c 	res = r->integer.value;
res               123 drivers/platform/x86/lg-laptop.c 	return res;
res               566 drivers/platform/x86/thinkpad_acpi.c 		      int *res, char *method, char *fmt, ...)
res               626 drivers/platform/x86/thinkpad_acpi.c 		if (success && res)
res               627 drivers/platform/x86/thinkpad_acpi.c 			*res = out_obj.integer.value;
res              1067 drivers/platform/x86/thinkpad_acpi.c 	int i, res;
res              1070 drivers/platform/x86/thinkpad_acpi.c 		res = add_to_attr_set(s, attr[i]);
res              1071 drivers/platform/x86/thinkpad_acpi.c 		if (res)
res              1072 drivers/platform/x86/thinkpad_acpi.c 			return res;
res              1226 drivers/platform/x86/thinkpad_acpi.c 	int res = hotkey_get_wlsw();
res              1230 drivers/platform/x86/thinkpad_acpi.c 	if (res < 0)
res              1233 drivers/platform/x86/thinkpad_acpi.c 	hw_blocked = (res == TPACPI_RFK_RADIO_OFF);
res              1242 drivers/platform/x86/thinkpad_acpi.c 	int res;
res              1249 drivers/platform/x86/thinkpad_acpi.c 	res = (tp_rfk->ops->set_status)(blocked ?
res              1255 drivers/platform/x86/thinkpad_acpi.c 	return (res < 0) ? res : 0;
res              1269 drivers/platform/x86/thinkpad_acpi.c 	int res;
res              1307 drivers/platform/x86/thinkpad_acpi.c 	res = rfkill_register(atp_rfk->rfkill);
res              1308 drivers/platform/x86/thinkpad_acpi.c 	if (res < 0) {
res              1309 drivers/platform/x86/thinkpad_acpi.c 		pr_err("failed to register %s rfkill switch: %d\n", name, res);
res              1312 drivers/platform/x86/thinkpad_acpi.c 		return res;
res              1370 drivers/platform/x86/thinkpad_acpi.c 	int res;
res              1383 drivers/platform/x86/thinkpad_acpi.c 	res = tpacpi_rfkill_switches[id]->ops->set_status((!!t) ?
res              1387 drivers/platform/x86/thinkpad_acpi.c 	return (res < 0) ? res : count;
res              1421 drivers/platform/x86/thinkpad_acpi.c 	int res = 0;
res              1440 drivers/platform/x86/thinkpad_acpi.c 		res = (tpacpi_rfkill_switches[id]->ops->set_status)(status);
res              1444 drivers/platform/x86/thinkpad_acpi.c 	return res;
res              1583 drivers/platform/x86/thinkpad_acpi.c 	int i, res;
res              1586 drivers/platform/x86/thinkpad_acpi.c 	res = 0;
res              1587 drivers/platform/x86/thinkpad_acpi.c 	while (!res && i < ARRAY_SIZE(tpacpi_driver_attributes)) {
res              1588 drivers/platform/x86/thinkpad_acpi.c 		res = driver_create_file(drv, tpacpi_driver_attributes[i]);
res              1593 drivers/platform/x86/thinkpad_acpi.c 	if (!res && dbg_wlswemul)
res              1594 drivers/platform/x86/thinkpad_acpi.c 		res = driver_create_file(drv, &driver_attr_wlsw_emulstate);
res              1595 drivers/platform/x86/thinkpad_acpi.c 	if (!res && dbg_bluetoothemul)
res              1596 drivers/platform/x86/thinkpad_acpi.c 		res = driver_create_file(drv, &driver_attr_bluetooth_emulstate);
res              1597 drivers/platform/x86/thinkpad_acpi.c 	if (!res && dbg_wwanemul)
res              1598 drivers/platform/x86/thinkpad_acpi.c 		res = driver_create_file(drv, &driver_attr_wwan_emulstate);
res              1599 drivers/platform/x86/thinkpad_acpi.c 	if (!res && dbg_uwbemul)
res              1600 drivers/platform/x86/thinkpad_acpi.c 		res = driver_create_file(drv, &driver_attr_uwb_emulstate);
res              1603 drivers/platform/x86/thinkpad_acpi.c 	return res;
res              2753 drivers/platform/x86/thinkpad_acpi.c 	int res, status;
res              2758 drivers/platform/x86/thinkpad_acpi.c 	res = hotkey_status_get(&status);
res              2759 drivers/platform/x86/thinkpad_acpi.c 	if (res)
res              2760 drivers/platform/x86/thinkpad_acpi.c 		return res;
res              2798 drivers/platform/x86/thinkpad_acpi.c 	int res;
res              2806 drivers/platform/x86/thinkpad_acpi.c 	res = hotkey_user_mask_set(t);
res              2816 drivers/platform/x86/thinkpad_acpi.c 	return (res) ? res : count;
res              2969 drivers/platform/x86/thinkpad_acpi.c 	int res;
res              2970 drivers/platform/x86/thinkpad_acpi.c 	res = hotkey_get_wlsw();
res              2971 drivers/platform/x86/thinkpad_acpi.c 	if (res < 0)
res              2972 drivers/platform/x86/thinkpad_acpi.c 		return res;
res              2975 drivers/platform/x86/thinkpad_acpi.c 	tpacpi_rfk_update_hwblock_state((res == TPACPI_RFK_RADIO_OFF));
res              2978 drivers/platform/x86/thinkpad_acpi.c 			(res == TPACPI_RFK_RADIO_OFF) ? 0 : 1);
res              2995 drivers/platform/x86/thinkpad_acpi.c 	int res, s;
res              2996 drivers/platform/x86/thinkpad_acpi.c 	res = hotkey_get_tablet_mode(&s);
res              2997 drivers/platform/x86/thinkpad_acpi.c 	if (res < 0)
res              2998 drivers/platform/x86/thinkpad_acpi.c 		return res;
res              3076 drivers/platform/x86/thinkpad_acpi.c 	int res;
res              3081 drivers/platform/x86/thinkpad_acpi.c 	res = adaptive_keyboard_set_mode(t);
res              3082 drivers/platform/x86/thinkpad_acpi.c 	return (res < 0) ? res : count;
res              3227 drivers/platform/x86/thinkpad_acpi.c 	int in_tablet_mode = 0, res;
res              3230 drivers/platform/x86/thinkpad_acpi.c 	if (acpi_evalf(hkey_handle, &res, "GMMS", "qdd", 0)) {
res              3233 drivers/platform/x86/thinkpad_acpi.c 		in_tablet_mode = hotkey_gmms_get_tablet_mode(res,
res              3238 drivers/platform/x86/thinkpad_acpi.c 	} else if (acpi_evalf(hkey_handle, &res, "MHKG", "qd")) {
res              3241 drivers/platform/x86/thinkpad_acpi.c 		in_tablet_mode = !!(res & TP_HOTKEY_TABLET_MASK);
res              3251 drivers/platform/x86/thinkpad_acpi.c 	res = add_to_attr_set(hotkey_dev_attributes,
res              3253 drivers/platform/x86/thinkpad_acpi.c 	if (res)
res              3475 drivers/platform/x86/thinkpad_acpi.c 	int res, i;
res              3520 drivers/platform/x86/thinkpad_acpi.c 	res = add_many_to_attr_set(hotkey_dev_attributes,
res              3523 drivers/platform/x86/thinkpad_acpi.c 	if (res)
res              3577 drivers/platform/x86/thinkpad_acpi.c 					res = sysfs_create_group(
res              3580 drivers/platform/x86/thinkpad_acpi.c 					if (res)
res              3610 drivers/platform/x86/thinkpad_acpi.c 		res = hotkey_mask_get();
res              3611 drivers/platform/x86/thinkpad_acpi.c 		if (res)
res              3635 drivers/platform/x86/thinkpad_acpi.c 		res = add_to_attr_set(hotkey_dev_attributes,
res              3638 drivers/platform/x86/thinkpad_acpi.c 	res = hotkey_init_tablet_mode();
res              3639 drivers/platform/x86/thinkpad_acpi.c 	if (res < 0)
res              3642 drivers/platform/x86/thinkpad_acpi.c 	tabletsw_state = res;
res              3644 drivers/platform/x86/thinkpad_acpi.c 	res = register_attr_set_with_sysfs(hotkey_dev_attributes,
res              3646 drivers/platform/x86/thinkpad_acpi.c 	if (res)
res              3660 drivers/platform/x86/thinkpad_acpi.c 		res = -ENOMEM;
res              3718 drivers/platform/x86/thinkpad_acpi.c 	res = hotkey_status_set(true);
res              3719 drivers/platform/x86/thinkpad_acpi.c 	if (res) {
res              3721 drivers/platform/x86/thinkpad_acpi.c 		return res;
res              3723 drivers/platform/x86/thinkpad_acpi.c 	res = hotkey_mask_set(((hotkey_all_mask & ~hotkey_reserved_mask)
res              3726 drivers/platform/x86/thinkpad_acpi.c 	if (res < 0 && res != -ENXIO) {
res              3728 drivers/platform/x86/thinkpad_acpi.c 		return res;
res              3750 drivers/platform/x86/thinkpad_acpi.c 	return (res < 0) ? res : 1;
res              4258 drivers/platform/x86/thinkpad_acpi.c 	int res, status;
res              4267 drivers/platform/x86/thinkpad_acpi.c 	res = hotkey_status_get(&status);
res              4268 drivers/platform/x86/thinkpad_acpi.c 	if (!res)
res              4269 drivers/platform/x86/thinkpad_acpi.c 		res = hotkey_mask_get();
res              4271 drivers/platform/x86/thinkpad_acpi.c 	if (res)
res              4272 drivers/platform/x86/thinkpad_acpi.c 		return res;
res              4296 drivers/platform/x86/thinkpad_acpi.c 	int res;
res              4308 drivers/platform/x86/thinkpad_acpi.c 	res = 0;
res              4314 drivers/platform/x86/thinkpad_acpi.c 			res = -EPERM;
res              4323 drivers/platform/x86/thinkpad_acpi.c 			res = -EINVAL;
res              4328 drivers/platform/x86/thinkpad_acpi.c 	if (!res) {
res              4331 drivers/platform/x86/thinkpad_acpi.c 		res = hotkey_user_mask_set(mask);
res              4336 drivers/platform/x86/thinkpad_acpi.c 	return res;
res              4556 drivers/platform/x86/thinkpad_acpi.c 	int res;
res              4591 drivers/platform/x86/thinkpad_acpi.c 	res = tpacpi_new_rfkill(TPACPI_RFK_BLUETOOTH_SW_ID,
res              4596 drivers/platform/x86/thinkpad_acpi.c 	if (res)
res              4597 drivers/platform/x86/thinkpad_acpi.c 		return res;
res              4599 drivers/platform/x86/thinkpad_acpi.c 	res = sysfs_create_group(&tpacpi_pdev->dev.kobj,
res              4601 drivers/platform/x86/thinkpad_acpi.c 	if (res) {
res              4603 drivers/platform/x86/thinkpad_acpi.c 		return res;
res              4745 drivers/platform/x86/thinkpad_acpi.c 	int res;
res              4778 drivers/platform/x86/thinkpad_acpi.c 	res = tpacpi_new_rfkill(TPACPI_RFK_WWAN_SW_ID,
res              4783 drivers/platform/x86/thinkpad_acpi.c 	if (res)
res              4784 drivers/platform/x86/thinkpad_acpi.c 		return res;
res              4786 drivers/platform/x86/thinkpad_acpi.c 	res = sysfs_create_group(&tpacpi_pdev->dev.kobj,
res              4789 drivers/platform/x86/thinkpad_acpi.c 	if (res) {
res              4791 drivers/platform/x86/thinkpad_acpi.c 		return res;
res              4885 drivers/platform/x86/thinkpad_acpi.c 	int res;
res              4918 drivers/platform/x86/thinkpad_acpi.c 	res = tpacpi_new_rfkill(TPACPI_RFK_UWB_SW_ID,
res              4923 drivers/platform/x86/thinkpad_acpi.c 	return res;
res              5069 drivers/platform/x86/thinkpad_acpi.c 	int res = 0;
res              5073 drivers/platform/x86/thinkpad_acpi.c 		res = acpi_evalf(NULL, NULL,
res              5083 drivers/platform/x86/thinkpad_acpi.c 		res = video_autosw_set(1);
res              5084 drivers/platform/x86/thinkpad_acpi.c 		if (res)
res              5085 drivers/platform/x86/thinkpad_acpi.c 			return res;
res              5086 drivers/platform/x86/thinkpad_acpi.c 		res = acpi_evalf(vid_handle, NULL,
res              5094 drivers/platform/x86/thinkpad_acpi.c 		res = acpi_evalf(NULL, NULL, "\\VUPS", "vd", 0x80) &&
res              5101 drivers/platform/x86/thinkpad_acpi.c 	return (res) ? 0 : -EIO;
res              5135 drivers/platform/x86/thinkpad_acpi.c 	int res;
res              5142 drivers/platform/x86/thinkpad_acpi.c 		res = video_autosw_set(1);
res              5143 drivers/platform/x86/thinkpad_acpi.c 		if (res)
res              5144 drivers/platform/x86/thinkpad_acpi.c 			return res;
res              5145 drivers/platform/x86/thinkpad_acpi.c 		res = acpi_evalf(ec_handle, NULL, "_Q16", "v");
res              5149 drivers/platform/x86/thinkpad_acpi.c 		res = video_autosw_set(1);
res              5150 drivers/platform/x86/thinkpad_acpi.c 		if (res)
res              5151 drivers/platform/x86/thinkpad_acpi.c 			return res;
res              5152 drivers/platform/x86/thinkpad_acpi.c 		res = acpi_evalf(vid_handle, NULL, "VSWT", "v");
res              5162 drivers/platform/x86/thinkpad_acpi.c 	return (res) ? 0 : -EIO;
res              5224 drivers/platform/x86/thinkpad_acpi.c 	int res;
res              5252 drivers/platform/x86/thinkpad_acpi.c 			res = video_autosw_set(1);
res              5253 drivers/platform/x86/thinkpad_acpi.c 			if (res)
res              5254 drivers/platform/x86/thinkpad_acpi.c 				return res;
res              5256 drivers/platform/x86/thinkpad_acpi.c 			res = video_autosw_set(0);
res              5257 drivers/platform/x86/thinkpad_acpi.c 			if (res)
res              5258 drivers/platform/x86/thinkpad_acpi.c 				return res;
res              5260 drivers/platform/x86/thinkpad_acpi.c 			res = video_outputsw_cycle();
res              5261 drivers/platform/x86/thinkpad_acpi.c 			if (res)
res              5262 drivers/platform/x86/thinkpad_acpi.c 				return res;
res              5264 drivers/platform/x86/thinkpad_acpi.c 			res = video_expand_toggle();
res              5265 drivers/platform/x86/thinkpad_acpi.c 			if (res)
res              5266 drivers/platform/x86/thinkpad_acpi.c 				return res;
res              5275 drivers/platform/x86/thinkpad_acpi.c 		res = video_outputsw_set((status & ~disable) | enable);
res              5276 drivers/platform/x86/thinkpad_acpi.c 		if (res)
res              5277 drivers/platform/x86/thinkpad_acpi.c 			return res;
res              5690 drivers/platform/x86/thinkpad_acpi.c 	int res;
res              5695 drivers/platform/x86/thinkpad_acpi.c 	res = issue_thinkpad_cmos_command(cmos_cmd);
res              5696 drivers/platform/x86/thinkpad_acpi.c 	return (res) ? res : count;
res              5705 drivers/platform/x86/thinkpad_acpi.c 	int res;
res              5715 drivers/platform/x86/thinkpad_acpi.c 	res = device_create_file(&tpacpi_pdev->dev, &dev_attr_cmos_command);
res              5716 drivers/platform/x86/thinkpad_acpi.c 	if (res)
res              5717 drivers/platform/x86/thinkpad_acpi.c 		return res;
res              5744 drivers/platform/x86/thinkpad_acpi.c 	int cmos_cmd, res;
res              5753 drivers/platform/x86/thinkpad_acpi.c 		res = issue_thinkpad_cmos_command(cmos_cmd);
res              5754 drivers/platform/x86/thinkpad_acpi.c 		if (res)
res              5755 drivers/platform/x86/thinkpad_acpi.c 			return res;
res              6347 drivers/platform/x86/thinkpad_acpi.c 	int res, i;
res              6360 drivers/platform/x86/thinkpad_acpi.c 		res = thermal_get_sensor(i, &s->temp[i]);
res              6361 drivers/platform/x86/thinkpad_acpi.c 		if (res)
res              6362 drivers/platform/x86/thinkpad_acpi.c 			return res;
res              6399 drivers/platform/x86/thinkpad_acpi.c 	int res;
res              6401 drivers/platform/x86/thinkpad_acpi.c 	res = thermal_get_sensor(idx, &value);
res              6402 drivers/platform/x86/thinkpad_acpi.c 	if (res)
res              6403 drivers/platform/x86/thinkpad_acpi.c 		return res;
res              6474 drivers/platform/x86/thinkpad_acpi.c 	int res;
res              6537 drivers/platform/x86/thinkpad_acpi.c 		res = sysfs_create_group(&tpacpi_hwmon->kobj,
res              6539 drivers/platform/x86/thinkpad_acpi.c 		if (res)
res              6540 drivers/platform/x86/thinkpad_acpi.c 			return res;
res              6545 drivers/platform/x86/thinkpad_acpi.c 		res = sysfs_create_group(&tpacpi_hwmon->kobj,
res              6547 drivers/platform/x86/thinkpad_acpi.c 		if (res)
res              6548 drivers/platform/x86/thinkpad_acpi.c 			return res;
res              6770 drivers/platform/x86/thinkpad_acpi.c 	int res;
res              6778 drivers/platform/x86/thinkpad_acpi.c 	res = mutex_lock_killable(&brightness_mutex);
res              6779 drivers/platform/x86/thinkpad_acpi.c 	if (res < 0)
res              6780 drivers/platform/x86/thinkpad_acpi.c 		return res;
res              6785 drivers/platform/x86/thinkpad_acpi.c 		res = tpacpi_brightness_set_ec(value);
res              6788 drivers/platform/x86/thinkpad_acpi.c 		res = tpacpi_brightness_set_ucmsstep(value);
res              6791 drivers/platform/x86/thinkpad_acpi.c 		res = -ENXIO;
res              6795 drivers/platform/x86/thinkpad_acpi.c 	return res;
res              6818 drivers/platform/x86/thinkpad_acpi.c 	int status, res;
res              6820 drivers/platform/x86/thinkpad_acpi.c 	res = mutex_lock_killable(&brightness_mutex);
res              6821 drivers/platform/x86/thinkpad_acpi.c 	if (res < 0)
res              6824 drivers/platform/x86/thinkpad_acpi.c 	res = tpacpi_brightness_get_raw(&status);
res              6828 drivers/platform/x86/thinkpad_acpi.c 	if (res < 0)
res              8219 drivers/platform/x86/thinkpad_acpi.c 		int res;
res              8221 drivers/platform/x86/thinkpad_acpi.c 		if (unlikely(!acpi_evalf(gfan_handle, &res, NULL, "d")))
res              8225 drivers/platform/x86/thinkpad_acpi.c 			*status = res & 0x07;
res              8572 drivers/platform/x86/thinkpad_acpi.c 	int res, mode;
res              8575 drivers/platform/x86/thinkpad_acpi.c 	res = fan_get_status_safe(&status);
res              8576 drivers/platform/x86/thinkpad_acpi.c 	if (res)
res              8577 drivers/platform/x86/thinkpad_acpi.c 		return res;
res              8594 drivers/platform/x86/thinkpad_acpi.c 	int res, level;
res              8619 drivers/platform/x86/thinkpad_acpi.c 	res = fan_set_level_safe(level);
res              8620 drivers/platform/x86/thinkpad_acpi.c 	if (res == -ENXIO)
res              8622 drivers/platform/x86/thinkpad_acpi.c 	else if (res < 0)
res              8623 drivers/platform/x86/thinkpad_acpi.c 		return res;
res              8638 drivers/platform/x86/thinkpad_acpi.c 	int res;
res              8641 drivers/platform/x86/thinkpad_acpi.c 	res = fan_get_status_safe(&status);
res              8642 drivers/platform/x86/thinkpad_acpi.c 	if (res)
res              8643 drivers/platform/x86/thinkpad_acpi.c 		return res;
res              8698 drivers/platform/x86/thinkpad_acpi.c 	int res;
res              8701 drivers/platform/x86/thinkpad_acpi.c 	res = fan_get_speed(&speed);
res              8702 drivers/platform/x86/thinkpad_acpi.c 	if (res < 0)
res              8703 drivers/platform/x86/thinkpad_acpi.c 		return res;
res              8715 drivers/platform/x86/thinkpad_acpi.c 	int res;
res              8718 drivers/platform/x86/thinkpad_acpi.c 	res = fan2_get_speed(&speed);
res              8719 drivers/platform/x86/thinkpad_acpi.c 	if (res < 0)
res              8720 drivers/platform/x86/thinkpad_acpi.c 		return res;
res               143 drivers/pnp/base.h int pnp_check_port(struct pnp_dev *dev, struct resource *res);
res               144 drivers/pnp/base.h int pnp_check_mem(struct pnp_dev *dev, struct resource *res);
res               145 drivers/pnp/base.h int pnp_check_irq(struct pnp_dev *dev, struct resource *res);
res               147 drivers/pnp/base.h int pnp_check_dma(struct pnp_dev *dev, struct resource *res);
res               150 drivers/pnp/base.h char *pnp_resource_type_name(struct resource *res);
res               154 drivers/pnp/base.h unsigned long pnp_resource_type(struct resource *res);
res               158 drivers/pnp/base.h 	struct resource res;
res               164 drivers/pnp/base.h 				      struct resource *res);
res                39 drivers/pnp/interface.c 	int res;
res                44 drivers/pnp/interface.c 	res = vsnprintf(buffer->curr, buffer->len - buffer->size, fmt, args);
res                46 drivers/pnp/interface.c 	if (buffer->size + res >= buffer->len) {
res                50 drivers/pnp/interface.c 	buffer->curr += res;
res                51 drivers/pnp/interface.c 	buffer->size += res;
res                52 drivers/pnp/interface.c 	return res;
res               253 drivers/pnp/interface.c 	struct resource *res;
res               270 drivers/pnp/interface.c 		res = &pnp_res->res;
res               272 drivers/pnp/interface.c 		pnp_printf(buffer, pnp_resource_type_name(res));
res               274 drivers/pnp/interface.c 		if (res->flags & IORESOURCE_DISABLED) {
res               279 drivers/pnp/interface.c 		switch (pnp_resource_type(res)) {
res               284 drivers/pnp/interface.c 				   (unsigned long long) res->start,
res               285 drivers/pnp/interface.c 				   (unsigned long long) res->end,
res               286 drivers/pnp/interface.c 				   res->flags & IORESOURCE_WINDOW ?
res               292 drivers/pnp/interface.c 				   (unsigned long long) res->start);
res               910 drivers/pnp/isapnp/core.c 	struct resource *res;
res               917 drivers/pnp/isapnp/core.c 		res = pnp_get_resource(dev, IORESOURCE_IO, tmp);
res               918 drivers/pnp/isapnp/core.c 		if (pnp_resource_enabled(res)) {
res               920 drivers/pnp/isapnp/core.c 				tmp, (unsigned long long) res->start);
res               922 drivers/pnp/isapnp/core.c 					  res->start);
res               926 drivers/pnp/isapnp/core.c 		res = pnp_get_resource(dev, IORESOURCE_IRQ, tmp);
res               927 drivers/pnp/isapnp/core.c 		if (pnp_resource_enabled(res)) {
res               928 drivers/pnp/isapnp/core.c 			int irq = res->start;
res               936 drivers/pnp/isapnp/core.c 		res = pnp_get_resource(dev, IORESOURCE_DMA, tmp);
res               937 drivers/pnp/isapnp/core.c 		if (pnp_resource_enabled(res)) {
res               939 drivers/pnp/isapnp/core.c 				tmp, (unsigned long long) res->start);
res               940 drivers/pnp/isapnp/core.c 			isapnp_write_byte(ISAPNP_CFG_DMA + tmp, res->start);
res               944 drivers/pnp/isapnp/core.c 		res = pnp_get_resource(dev, IORESOURCE_MEM, tmp);
res               945 drivers/pnp/isapnp/core.c 		if (pnp_resource_enabled(res)) {
res               947 drivers/pnp/isapnp/core.c 				tmp, (unsigned long long) res->start);
res               949 drivers/pnp/isapnp/core.c 					  (res->start >> 8) & 0xffff);
res                27 drivers/pnp/manager.c 	struct resource *res = pnp_get_resource(dev, type, bar);
res                30 drivers/pnp/manager.c 	if (res) {
res                31 drivers/pnp/manager.c 		res->flags &= ~IORESOURCE_BITS;
res                32 drivers/pnp/manager.c 		res->flags |= rule & IORESOURCE_BITS;
res                35 drivers/pnp/manager.c 	return res;
res                40 drivers/pnp/manager.c 	struct resource *res, local_res;
res                42 drivers/pnp/manager.c 	res = pnp_find_resource(dev, rule->flags, IORESOURCE_IO, idx);
res                43 drivers/pnp/manager.c 	if (res) {
res                45 drivers/pnp/manager.c 			"flags %#lx\n", idx, (unsigned long long) res->start,
res                46 drivers/pnp/manager.c 			(unsigned long long) res->end, res->flags);
res                50 drivers/pnp/manager.c 	res = &local_res;
res                51 drivers/pnp/manager.c 	res->flags = rule->flags | IORESOURCE_AUTO;
res                52 drivers/pnp/manager.c 	res->start = 0;
res                53 drivers/pnp/manager.c 	res->end = 0;
res                56 drivers/pnp/manager.c 		res->flags |= IORESOURCE_DISABLED;
res                61 drivers/pnp/manager.c 	res->start = rule->min;
res                62 drivers/pnp/manager.c 	res->end = res->start + rule->size - 1;
res                64 drivers/pnp/manager.c 	while (!pnp_check_port(dev, res)) {
res                65 drivers/pnp/manager.c 		res->start += rule->align;
res                66 drivers/pnp/manager.c 		res->end = res->start + rule->size - 1;
res                67 drivers/pnp/manager.c 		if (res->start > rule->max || !rule->align) {
res                77 drivers/pnp/manager.c 	pnp_add_io_resource(dev, res->start, res->end, res->flags);
res                83 drivers/pnp/manager.c 	struct resource *res, local_res;
res                85 drivers/pnp/manager.c 	res = pnp_find_resource(dev, rule->flags, IORESOURCE_MEM, idx);
res                86 drivers/pnp/manager.c 	if (res) {
res                88 drivers/pnp/manager.c 			"flags %#lx\n", idx, (unsigned long long) res->start,
res                89 drivers/pnp/manager.c 			(unsigned long long) res->end, res->flags);
res                93 drivers/pnp/manager.c 	res = &local_res;
res                94 drivers/pnp/manager.c 	res->flags = rule->flags | IORESOURCE_AUTO;
res                95 drivers/pnp/manager.c 	res->start = 0;
res                96 drivers/pnp/manager.c 	res->end = 0;
res               100 drivers/pnp/manager.c 		res->flags |= IORESOURCE_READONLY;
res               102 drivers/pnp/manager.c 		res->flags |= IORESOURCE_RANGELENGTH;
res               104 drivers/pnp/manager.c 		res->flags |= IORESOURCE_SHADOWABLE;
res               107 drivers/pnp/manager.c 		res->flags |= IORESOURCE_DISABLED;
res               112 drivers/pnp/manager.c 	res->start = rule->min;
res               113 drivers/pnp/manager.c 	res->end = res->start + rule->size - 1;
res               115 drivers/pnp/manager.c 	while (!pnp_check_mem(dev, res)) {
res               116 drivers/pnp/manager.c 		res->start += rule->align;
res               117 drivers/pnp/manager.c 		res->end = res->start + rule->size - 1;
res               118 drivers/pnp/manager.c 		if (res->start > rule->max || !rule->align) {
res               128 drivers/pnp/manager.c 	pnp_add_mem_resource(dev, res->start, res->end, res->flags);
res               134 drivers/pnp/manager.c 	struct resource *res, local_res;
res               142 drivers/pnp/manager.c 	res = pnp_find_resource(dev, rule->flags, IORESOURCE_IRQ, idx);
res               143 drivers/pnp/manager.c 	if (res) {
res               145 drivers/pnp/manager.c 			idx, (int) res->start, res->flags);
res               149 drivers/pnp/manager.c 	res = &local_res;
res               150 drivers/pnp/manager.c 	res->flags = rule->flags | IORESOURCE_AUTO;
res               151 drivers/pnp/manager.c 	res->start = -1;
res               152 drivers/pnp/manager.c 	res->end = -1;
res               155 drivers/pnp/manager.c 		res->flags |= IORESOURCE_DISABLED;
res               161 drivers/pnp/manager.c 	res->start = find_next_bit(rule->map.bits, PNP_IRQ_NR, 16);
res               162 drivers/pnp/manager.c 	if (res->start < PNP_IRQ_NR) {
res               163 drivers/pnp/manager.c 		res->end = res->start;
res               168 drivers/pnp/manager.c 			res->start = res->end = xtab[i];
res               169 drivers/pnp/manager.c 			if (pnp_check_irq(dev, res))
res               175 drivers/pnp/manager.c 		res->start = -1;
res               176 drivers/pnp/manager.c 		res->end = -1;
res               177 drivers/pnp/manager.c 		res->flags |= IORESOURCE_DISABLED;
res               186 drivers/pnp/manager.c 	pnp_add_irq_resource(dev, res->start, res->flags);
res               193 drivers/pnp/manager.c 	struct resource *res, local_res;
res               201 drivers/pnp/manager.c 	res = pnp_find_resource(dev, rule->flags, IORESOURCE_DMA, idx);
res               202 drivers/pnp/manager.c 	if (res) {
res               204 drivers/pnp/manager.c 			idx, (int) res->start, res->flags);
res               208 drivers/pnp/manager.c 	res = &local_res;
res               209 drivers/pnp/manager.c 	res->flags = rule->flags | IORESOURCE_AUTO;
res               210 drivers/pnp/manager.c 	res->start = -1;
res               211 drivers/pnp/manager.c 	res->end = -1;
res               214 drivers/pnp/manager.c 		res->flags |= IORESOURCE_DISABLED;
res               221 drivers/pnp/manager.c 			res->start = res->end = xtab[i];
res               222 drivers/pnp/manager.c 			if (pnp_check_dma(dev, res))
res               231 drivers/pnp/manager.c 	pnp_add_dma_resource(dev, res->start, res->flags);
res               246 drivers/pnp/manager.c 		if (pnp_res->res.flags & IORESOURCE_AUTO)
res               164 drivers/pnp/pnpacpi/rsparser.c static acpi_status pnpacpi_allocated_resource(struct acpi_resource *res,
res               172 drivers/pnp/pnpacpi/rsparser.c 	struct resource *r = &win.res;
res               175 drivers/pnp/pnpacpi/rsparser.c 	if (acpi_dev_resource_address_space(res, &win)
res               176 drivers/pnp/pnpacpi/rsparser.c 	    || acpi_dev_resource_ext_address_space(res, &win)) {
res               177 drivers/pnp/pnpacpi/rsparser.c 		pnp_add_resource(dev, &win.res);
res               182 drivers/pnp/pnpacpi/rsparser.c 	if (acpi_dev_resource_interrupt(res, 0, r)) {
res               184 drivers/pnp/pnpacpi/rsparser.c 		for (i = 1; acpi_dev_resource_interrupt(res, i, r); i++)
res               200 drivers/pnp/pnpacpi/rsparser.c 	} else if (acpi_gpio_get_irq_resource(res, &gpio)) {
res               220 drivers/pnp/pnpacpi/rsparser.c 	switch (res->type) {
res               224 drivers/pnp/pnpacpi/rsparser.c 		if (acpi_dev_resource_memory(res, r))
res               229 drivers/pnp/pnpacpi/rsparser.c 		if (acpi_dev_resource_io(res, r))
res               233 drivers/pnp/pnpacpi/rsparser.c 		dma = &res->data.dma;
res               247 drivers/pnp/pnpacpi/rsparser.c 		vendor_typed = &res->data.vendor_typed;
res               263 drivers/pnp/pnpacpi/rsparser.c 			 res->type);
res               453 drivers/pnp/pnpacpi/rsparser.c static __init acpi_status pnpacpi_option_resource(struct acpi_resource *res,
res               461 drivers/pnp/pnpacpi/rsparser.c 	switch (res->type) {
res               463 drivers/pnp/pnpacpi/rsparser.c 		pnpacpi_parse_irq_option(dev, option_flags, &res->data.irq);
res               467 drivers/pnp/pnpacpi/rsparser.c 		pnpacpi_parse_dma_option(dev, option_flags, &res->data.dma);
res               471 drivers/pnp/pnpacpi/rsparser.c 		switch (res->data.start_dpf.compatibility_priority) {
res               495 drivers/pnp/pnpacpi/rsparser.c 		pnpacpi_parse_port_option(dev, option_flags, &res->data.io);
res               500 drivers/pnp/pnpacpi/rsparser.c 					        &res->data.fixed_io);
res               509 drivers/pnp/pnpacpi/rsparser.c 					   &res->data.memory24);
res               514 drivers/pnp/pnpacpi/rsparser.c 					   &res->data.memory32);
res               519 drivers/pnp/pnpacpi/rsparser.c 						 &res->data.fixed_memory32);
res               525 drivers/pnp/pnpacpi/rsparser.c 		pnpacpi_parse_address_option(dev, option_flags, res);
res               529 drivers/pnp/pnpacpi/rsparser.c 		pnpacpi_parse_ext_address_option(dev, option_flags, res);
res               534 drivers/pnp/pnpacpi/rsparser.c 					     &res->data.extended_irq);
res               542 drivers/pnp/pnpacpi/rsparser.c 			 res->type);
res               572 drivers/pnp/pnpacpi/rsparser.c static int pnpacpi_supported_resource(struct acpi_resource *res)
res               574 drivers/pnp/pnpacpi/rsparser.c 	switch (res->type) {
res               595 drivers/pnp/pnpacpi/rsparser.c static acpi_status pnpacpi_count_resources(struct acpi_resource *res,
res               600 drivers/pnp/pnpacpi/rsparser.c 	if (pnpacpi_supported_resource(res))
res               605 drivers/pnp/pnpacpi/rsparser.c static acpi_status pnpacpi_type_resources(struct acpi_resource *res, void *data)
res               609 drivers/pnp/pnpacpi/rsparser.c 	if (pnpacpi_supported_resource(res)) {
res               610 drivers/pnp/pnpacpi/rsparser.c 		(*resource)->type = res->type;
res               612 drivers/pnp/pnpacpi/rsparser.c 		if (res->type == ACPI_RESOURCE_TYPE_IRQ)
res               614 drivers/pnp/pnpacpi/rsparser.c 					res->data.irq.descriptor_length;
res               502 drivers/pnp/pnpbios/rsparser.c 			       struct resource *res)
res               507 drivers/pnp/pnpbios/rsparser.c 	if (pnp_resource_enabled(res)) {
res               508 drivers/pnp/pnpbios/rsparser.c 		base = res->start;
res               509 drivers/pnp/pnpbios/rsparser.c 		len = resource_size(res);
res               526 drivers/pnp/pnpbios/rsparser.c 				 struct resource *res)
res               531 drivers/pnp/pnpbios/rsparser.c 	if (pnp_resource_enabled(res)) {
res               532 drivers/pnp/pnpbios/rsparser.c 		base = res->start;
res               533 drivers/pnp/pnpbios/rsparser.c 		len = resource_size(res);
res               556 drivers/pnp/pnpbios/rsparser.c 				       struct resource *res)
res               561 drivers/pnp/pnpbios/rsparser.c 	if (pnp_resource_enabled(res)) {
res               562 drivers/pnp/pnpbios/rsparser.c 		base = res->start;
res               563 drivers/pnp/pnpbios/rsparser.c 		len = resource_size(res);
res               583 drivers/pnp/pnpbios/rsparser.c 			       struct resource *res)
res               587 drivers/pnp/pnpbios/rsparser.c 	if (pnp_resource_enabled(res))
res               588 drivers/pnp/pnpbios/rsparser.c 		map = 1 << res->start;
res               599 drivers/pnp/pnpbios/rsparser.c 			       struct resource *res)
res               603 drivers/pnp/pnpbios/rsparser.c 	if (pnp_resource_enabled(res))
res               604 drivers/pnp/pnpbios/rsparser.c 		map = 1 << res->start;
res               614 drivers/pnp/pnpbios/rsparser.c 				struct resource *res)
res               619 drivers/pnp/pnpbios/rsparser.c 	if (pnp_resource_enabled(res)) {
res               620 drivers/pnp/pnpbios/rsparser.c 		base = res->start;
res               621 drivers/pnp/pnpbios/rsparser.c 		len = resource_size(res);
res               637 drivers/pnp/pnpbios/rsparser.c 				      struct resource *res)
res               639 drivers/pnp/pnpbios/rsparser.c 	unsigned long base = res->start;
res               640 drivers/pnp/pnpbios/rsparser.c 	unsigned long len = resource_size(res);
res               642 drivers/pnp/pnpbios/rsparser.c 	if (pnp_resource_enabled(res)) {
res               643 drivers/pnp/pnpbios/rsparser.c 		base = res->start;
res               644 drivers/pnp/pnpbios/rsparser.c 		len = resource_size(res);
res               234 drivers/pnp/quirks.c 	struct resource *res;
res               262 drivers/pnp/quirks.c 			     (res = pnp_get_resource(dev, type, j)); j++) {
res               263 drivers/pnp/quirks.c 				if (res->start == 0 && res->end == 0)
res               266 drivers/pnp/quirks.c 				pnp_start = res->start;
res               267 drivers/pnp/quirks.c 				pnp_end = res->end;
res               294 drivers/pnp/quirks.c 					 "%s BAR %d %pR\n", res,
res               296 drivers/pnp/quirks.c 				res->flags |= IORESOURCE_DISABLED;
res               310 drivers/pnp/quirks.c 	struct resource *res;
res               318 drivers/pnp/quirks.c 		res = &pnp_res->res;
res               319 drivers/pnp/quirks.c 		if (res->end < mmconfig->start || res->start > mmconfig->end ||
res               320 drivers/pnp/quirks.c 		    (res->start == mmconfig->start && res->end == mmconfig->end))
res               325 drivers/pnp/quirks.c 			 res, mmconfig);
res               326 drivers/pnp/quirks.c 		if (mmconfig->start < res->start) {
res               328 drivers/pnp/quirks.c 			end = res->start - 1;
res               331 drivers/pnp/quirks.c 		if (mmconfig->end > res->end) {
res               332 drivers/pnp/quirks.c 			start = res->end + 1;
res               371 drivers/pnp/quirks.c 	struct resource *res;
res               401 drivers/pnp/quirks.c 		res = &pnp_res->res;
res               402 drivers/pnp/quirks.c 		if (res->end < mch.start || res->start > mch.end)
res               404 drivers/pnp/quirks.c 		if (res->start == mch.start && res->end == mch.end)
res               408 drivers/pnp/quirks.c 			 res, pci_name(host), &mch);
res               409 drivers/pnp/quirks.c 		res->start = mch.start;
res               410 drivers/pnp/quirks.c 		res->end = mch.end;
res               166 drivers/pnp/resource.c int pnp_check_port(struct pnp_dev *dev, struct resource *res)
res               173 drivers/pnp/resource.c 	port = &res->start;
res               174 drivers/pnp/resource.c 	end = &res->end;
res               177 drivers/pnp/resource.c 	if (cannot_compare(res->flags))
res               198 drivers/pnp/resource.c 		if (tres != res && tres->flags & IORESOURCE_IO) {
res               229 drivers/pnp/resource.c int pnp_check_mem(struct pnp_dev *dev, struct resource *res)
res               236 drivers/pnp/resource.c 	addr = &res->start;
res               237 drivers/pnp/resource.c 	end = &res->end;
res               240 drivers/pnp/resource.c 	if (cannot_compare(res->flags))
res               261 drivers/pnp/resource.c 		if (tres != res && tres->flags & IORESOURCE_MEM) {
res               352 drivers/pnp/resource.c int pnp_check_irq(struct pnp_dev *dev, struct resource *res)
res               359 drivers/pnp/resource.c 	irq = &res->start;
res               362 drivers/pnp/resource.c 	if (cannot_compare(res->flags))
res               377 drivers/pnp/resource.c 		if (tres != res && tres->flags & IORESOURCE_IRQ) {
res               416 drivers/pnp/resource.c int pnp_check_dma(struct pnp_dev *dev, struct resource *res)
res               423 drivers/pnp/resource.c 	dma = &res->start;
res               426 drivers/pnp/resource.c 	if (cannot_compare(res->flags))
res               441 drivers/pnp/resource.c 		if (tres != res && tres->flags & IORESOURCE_DMA) {
res               475 drivers/pnp/resource.c unsigned long pnp_resource_type(struct resource *res)
res               477 drivers/pnp/resource.c 	return res->flags & (IORESOURCE_IO  | IORESOURCE_MEM |
res               486 drivers/pnp/resource.c 	struct resource *res;
res               489 drivers/pnp/resource.c 		res = &pnp_res->res;
res               490 drivers/pnp/resource.c 		if (pnp_resource_type(res) == type && num-- == 0)
res               491 drivers/pnp/resource.c 			return res;
res               510 drivers/pnp/resource.c 				      struct resource *res)
res               516 drivers/pnp/resource.c 		dev_err(&dev->dev, "can't add resource %pR\n", res);
res               520 drivers/pnp/resource.c 	pnp_res->res = *res;
res               521 drivers/pnp/resource.c 	pnp_res->res.name = dev->name;
res               522 drivers/pnp/resource.c 	dev_dbg(&dev->dev, "%pR\n", res);
res               530 drivers/pnp/resource.c 	struct resource *res;
res               538 drivers/pnp/resource.c 	res = &pnp_res->res;
res               539 drivers/pnp/resource.c 	res->flags = IORESOURCE_IRQ | flags;
res               540 drivers/pnp/resource.c 	res->start = irq;
res               541 drivers/pnp/resource.c 	res->end = irq;
res               543 drivers/pnp/resource.c 	dev_printk(KERN_DEBUG, &dev->dev, "%pR\n", res);
res               551 drivers/pnp/resource.c 	struct resource *res;
res               559 drivers/pnp/resource.c 	res = &pnp_res->res;
res               560 drivers/pnp/resource.c 	res->flags = IORESOURCE_DMA | flags;
res               561 drivers/pnp/resource.c 	res->start = dma;
res               562 drivers/pnp/resource.c 	res->end = dma;
res               564 drivers/pnp/resource.c 	dev_printk(KERN_DEBUG, &dev->dev, "%pR\n", res);
res               573 drivers/pnp/resource.c 	struct resource *res;
res               583 drivers/pnp/resource.c 	res = &pnp_res->res;
res               584 drivers/pnp/resource.c 	res->flags = IORESOURCE_IO | flags;
res               585 drivers/pnp/resource.c 	res->start = start;
res               586 drivers/pnp/resource.c 	res->end = end;
res               588 drivers/pnp/resource.c 	dev_printk(KERN_DEBUG, &dev->dev, "%pR\n", res);
res               597 drivers/pnp/resource.c 	struct resource *res;
res               607 drivers/pnp/resource.c 	res = &pnp_res->res;
res               608 drivers/pnp/resource.c 	res->flags = IORESOURCE_MEM | flags;
res               609 drivers/pnp/resource.c 	res->start = start;
res               610 drivers/pnp/resource.c 	res->end = end;
res               612 drivers/pnp/resource.c 	dev_printk(KERN_DEBUG, &dev->dev, "%pR\n", res);
res               621 drivers/pnp/resource.c 	struct resource *res;
res               631 drivers/pnp/resource.c 	res = &pnp_res->res;
res               632 drivers/pnp/resource.c 	res->flags = IORESOURCE_BUS;
res               633 drivers/pnp/resource.c 	res->start = start;
res               634 drivers/pnp/resource.c 	res->end = end;
res               636 drivers/pnp/resource.c 	dev_printk(KERN_DEBUG, &dev->dev, "%pR\n", res);
res               694 drivers/pnp/resource.c 			dev_start = &pnp_res->res.start;
res               695 drivers/pnp/resource.c 			dev_end   = &pnp_res->res.end;
res                62 drivers/pnp/support.c char *pnp_resource_type_name(struct resource *res)
res                64 drivers/pnp/support.c 	switch (pnp_resource_type(res)) {
res                88 drivers/pnp/support.c 			pnp_dbg(&dev->dev, "%pr\n", &pnp_res->res);
res                31 drivers/pnp/system.c 	struct resource *res;
res                39 drivers/pnp/system.c 		res = request_region(start, end - start + 1, regionid);
res                41 drivers/pnp/system.c 		res = request_mem_region(start, end - start + 1, regionid);
res                42 drivers/pnp/system.c 	if (res)
res                43 drivers/pnp/system.c 		res->flags &= ~IORESOURCE_BUSY;
res                53 drivers/pnp/system.c 		 res ? "has been" : "could not be");
res                58 drivers/pnp/system.c 	struct resource *res;
res                61 drivers/pnp/system.c 	for (i = 0; (res = pnp_get_resource(dev, IORESOURCE_IO, i)); i++) {
res                62 drivers/pnp/system.c 		if (res->flags & IORESOURCE_DISABLED)
res                64 drivers/pnp/system.c 		if (res->start == 0)
res                66 drivers/pnp/system.c 		if (res->start < 0x100)
res                76 drivers/pnp/system.c 		if (res->end < res->start)
res                79 drivers/pnp/system.c 		reserve_range(dev, res, 1);
res                82 drivers/pnp/system.c 	for (i = 0; (res = pnp_get_resource(dev, IORESOURCE_MEM, i)); i++) {
res                83 drivers/pnp/system.c 		if (res->flags & IORESOURCE_DISABLED)
res                86 drivers/pnp/system.c 		reserve_range(dev, res, 0);
res               154 drivers/power/reset/at91-poweroff.c 	struct resource *res;
res               159 drivers/power/reset/at91-poweroff.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               160 drivers/power/reset/at91-poweroff.c 	at91_shdwc.shdwc_base = devm_ioremap_resource(&pdev->dev, res);
res               274 drivers/power/reset/at91-sama5d2_shdwc.c 	struct resource *res;
res               292 drivers/power/reset/at91-sama5d2_shdwc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               293 drivers/power/reset/at91-sama5d2_shdwc.c 	at91_shdwc->shdwc_base = devm_ioremap_resource(&pdev->dev, res);
res                51 drivers/power/reset/brcm-kona-reset.c 	struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                53 drivers/power/reset/brcm-kona-reset.c 	kona_reset_base = devm_ioremap_resource(&pdev->dev, res);
res                94 drivers/power/reset/gemini-poweroff.c 	struct resource *res;
res               104 drivers/power/reset/gemini-poweroff.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               105 drivers/power/reset/gemini-poweroff.c 	gpw->base = devm_ioremap_resource(dev, res);
res                61 drivers/power/reset/ocelot-reset.c 	struct resource *res;
res                70 drivers/power/reset/ocelot-reset.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                71 drivers/power/reset/ocelot-reset.c 	ctx->base = devm_ioremap_resource(dev, res);
res                65 drivers/power/reset/piix4-poweroff.c 	int res;
res                71 drivers/power/reset/piix4-poweroff.c 	res = pci_request_region(dev, piix4_pm_io_region,
res                73 drivers/power/reset/piix4-poweroff.c 	if (res) {
res                75 drivers/power/reset/piix4-poweroff.c 			res);
res                76 drivers/power/reset/piix4-poweroff.c 		return res;
res                76 drivers/power/reset/qnap-poweroff.c 	struct resource *res;
res                84 drivers/power/reset/qnap-poweroff.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                85 drivers/power/reset/qnap-poweroff.c 	if (!res) {
res                90 drivers/power/reset/qnap-poweroff.c 	base = devm_ioremap(&pdev->dev, res->start, resource_size(res));
res               134 drivers/power/reset/reboot-mode.c static void devm_reboot_mode_release(struct device *dev, void *res)
res               136 drivers/power/reset/reboot-mode.c 	reboot_mode_unregister(*(struct reboot_mode_driver **)res);
res               169 drivers/power/reset/reboot-mode.c static int devm_reboot_mode_match(struct device *dev, void *res, void *data)
res               171 drivers/power/reset/reboot-mode.c 	struct reboot_mode_driver **p = res;
res               354 drivers/power/supply/ab8500_btemp.c 	int res;
res               401 drivers/power/supply/ab8500_btemp.c 	res = ab8500_btemp_batctrl_volt_to_res(di, batctrl, inst_curr);
res               410 drivers/power/supply/ab8500_btemp.c 		__func__, batctrl, res, inst_curr, i);
res               412 drivers/power/supply/ab8500_btemp.c 	return res;
res               426 drivers/power/supply/ab8500_btemp.c 	const struct abx500_res_to_temp *tbl, int tbl_size, int res)
res               435 drivers/power/supply/ab8500_btemp.c 	if (res > tbl[0].resist)
res               437 drivers/power/supply/ab8500_btemp.c 	else if (res <= tbl[tbl_size - 1].resist)
res               441 drivers/power/supply/ab8500_btemp.c 		while (!(res <= tbl[i].resist &&
res               442 drivers/power/supply/ab8500_btemp.c 			res > tbl[i + 1].resist))
res               447 drivers/power/supply/ab8500_btemp.c 		(res - tbl[i].resist)) / (tbl[i + 1].resist - tbl[i].resist);
res               515 drivers/power/supply/ab8500_btemp.c 	int res;
res               521 drivers/power/supply/ab8500_btemp.c 	res =  ab8500_btemp_get_batctrl_res(di);
res               522 drivers/power/supply/ab8500_btemp.c 	if (res < 0) {
res               529 drivers/power/supply/ab8500_btemp.c 		if ((res <= di->bm->bat_type[i].resis_high) &&
res               530 drivers/power/supply/ab8500_btemp.c 			(res >= di->bm->bat_type[i].resis_low)) {
res               536 drivers/power/supply/ab8500_btemp.c 				di->bm->bat_type[i].resis_low, res,
res               546 drivers/power/supply/ab8500_btemp.c 			", resistance %d Ohm\n", res);
res               610 drivers/power/supply/ab8500_fg.c int ab8500_fg_inst_curr_finalize(struct ab8500_fg *di, int *res)
res               691 drivers/power/supply/ab8500_fg.c 	(*res) = val;
res               710 drivers/power/supply/ab8500_fg.c 	int res = 0;
res               733 drivers/power/supply/ab8500_fg.c 	ret = ab8500_fg_inst_curr_finalize(di, &res);
res               739 drivers/power/supply/ab8500_fg.c 	dev_dbg(di->dev, "%s instant current: %d", __func__, res);
res               740 drivers/power/supply/ab8500_fg.c 	return res;
res               952 drivers/power/supply/ab8500_fg.c 	int vbat_comp, res;
res               967 drivers/power/supply/ab8500_fg.c 	res = ab8500_fg_battery_resistance(di);
res               970 drivers/power/supply/ab8500_fg.c 	vbat_comp = di->vbat - (di->inst_curr * res) / 1000;
res               974 drivers/power/supply/ab8500_fg.c 		__func__, di->vbat, vbat_comp, res, di->inst_curr, i);
res                93 drivers/power/supply/da9150-fg.c 	u32 res = 0;
res               101 drivers/power/supply/da9150-fg.c 		res |= (buf[i] << (i * DA9150_QIF_BYTE_SIZE));
res               103 drivers/power/supply/da9150-fg.c 	return res;
res               128 drivers/power/supply/da9150-fg.c 	u32 res = 0;
res               133 drivers/power/supply/da9150-fg.c 	res = da9150_fg_read_attr(fg, DA9150_QIF_SYNC,
res               135 drivers/power/supply/da9150-fg.c 	if (res > 0)
res               140 drivers/power/supply/da9150-fg.c 	res = 0;
res               141 drivers/power/supply/da9150-fg.c 	while ((res == 0) && (i++ < DA9150_QIF_SYNC_RETRIES)) {
res               144 drivers/power/supply/da9150-fg.c 		res = da9150_fg_read_attr(fg, DA9150_QIF_SYNC,
res               149 drivers/power/supply/da9150-fg.c 	if (res == 0)
res               179 drivers/power/supply/da9150-fg.c 	u32 res = 0, sync_val;
res               184 drivers/power/supply/da9150-fg.c 	res = da9150_fg_read_attr(fg, DA9150_QIF_SYNC,
res               188 drivers/power/supply/da9150-fg.c 	while ((res == 0) && (i++ < DA9150_QIF_SYNC_RETRIES)) {
res               191 drivers/power/supply/da9150-fg.c 		res = da9150_fg_read_attr(fg, DA9150_QIF_SYNC,
res               195 drivers/power/supply/da9150-fg.c 	if (res == 0) {
res               206 drivers/power/supply/da9150-fg.c 	sync_val = res;
res               207 drivers/power/supply/da9150-fg.c 	while ((res == sync_val) && (i++ < DA9150_QIF_SYNC_RETRIES)) {
res               210 drivers/power/supply/da9150-fg.c 		res = da9150_fg_read_attr(fg, DA9150_QIF_SYNC,
res               217 drivers/power/supply/da9150-fg.c 	if (res != (sync_val + 1))
res               239 drivers/power/supply/da9150-fg.c 	u64 div, res;
res               252 drivers/power/supply/da9150-fg.c 	res = (u64) (iavg * 1000000ULL);
res               253 drivers/power/supply/da9150-fg.c 	do_div(res, div);
res               255 drivers/power/supply/da9150-fg.c 	val->intval = (int) res;
res               263 drivers/power/supply/da9150-fg.c 	u64 res;
res               268 drivers/power/supply/da9150-fg.c 	res = (u64) (val->intval * 186ULL);
res               269 drivers/power/supply/da9150-fg.c 	do_div(res, 10000);
res               270 drivers/power/supply/da9150-fg.c 	val->intval = (int) res;
res                22 drivers/power/supply/pda_power.c static inline unsigned int get_irq_flags(struct resource *res)
res                24 drivers/power/supply/pda_power.c 	return IRQF_SHARED | (res->flags & IRQF_TRIGGER_MASK);
res               525 drivers/power/supply/power_supply_core.c static void devm_power_supply_put(struct device *dev, void *res)
res               527 drivers/power/supply/power_supply_core.c 	struct power_supply **psy = res;
res              1157 drivers/power/supply/power_supply_core.c static void devm_power_supply_release(struct device *dev, void *res)
res              1159 drivers/power/supply/power_supply_core.c 	struct power_supply **psy = res;
res               402 drivers/power/supply/twl4030_charger.c 	int res;
res               406 drivers/power/supply/twl4030_charger.c 	res = twl4030bci_read_adc_val(TWL4030_BCIVBUS);
res               407 drivers/power/supply/twl4030_charger.c 	if (res < 0)
res               411 drivers/power/supply/twl4030_charger.c 		v = res * 6843;
res                79 drivers/power/supply/twl4030_madc_battery.c 	int i, res = 0;
res                88 drivers/power/supply/twl4030_madc_battery.c 		res = calibration[0].level;
res                94 drivers/power/supply/twl4030_madc_battery.c 				res = calibration[i].level -
res               104 drivers/power/supply/twl4030_madc_battery.c 	return res;
res               210 drivers/ps3/ps3av.c 	int res;
res               218 drivers/ps3/ps3av.c 	res = ps3av_vuart_write(ps3av->dev, send_buf, write_len);
res               219 drivers/ps3/ps3av.c 	if (res < 0) {
res               222 drivers/ps3/ps3av.c 			__func__, res);
res               223 drivers/ps3/ps3av.c 		return res;
res               230 drivers/ps3/ps3av.c 		res = ps3av_vuart_read(ps3av->dev, recv_buf, PS3AV_HDR_SIZE,
res               232 drivers/ps3/ps3av.c 		if (res != PS3AV_HDR_SIZE) {
res               235 drivers/ps3/ps3av.c 				__func__, res);
res               236 drivers/ps3/ps3av.c 			return res;
res               240 drivers/ps3/ps3av.c 		res = ps3av_vuart_read(ps3av->dev, &recv_buf->cid,
res               242 drivers/ps3/ps3av.c 		if (res < 0) {
res               245 drivers/ps3/ps3av.c 				__func__, res);
res               246 drivers/ps3/ps3av.c 			return res;
res               248 drivers/ps3/ps3av.c 		res += PS3AV_HDR_SIZE;	/* total len */
res               290 drivers/ps3/ps3av.c 	int res = 0;
res               307 drivers/ps3/ps3av.c 	res = ps3av_send_cmd_pkt(buf, &ps3av->recv_buf.reply_hdr, send_len,
res               309 drivers/ps3/ps3av.c 	if (res < 0) {
res               312 drivers/ps3/ps3av.c 		       __func__, res);
res               317 drivers/ps3/ps3av.c 	res = ps3av_process_reply_packet(buf, &ps3av->recv_buf.reply_hdr,
res               319 drivers/ps3/ps3av.c 	if (res < 0) {
res               321 drivers/ps3/ps3av.c 		       __func__, res);
res               330 drivers/ps3/ps3av.c 	printk(KERN_ERR "%s: failed cid:%x res:%d\n", __func__, cid, res);
res               331 drivers/ps3/ps3av.c 	return res;
res               336 drivers/ps3/ps3av.c 	int i, num_of_av_port, res;
res               342 drivers/ps3/ps3av.c 		res = ps3av_cmd_av_video_mute(1, &ps3av->av_port[i], mute);
res               343 drivers/ps3/ps3av.c 		if (res < 0)
res               352 drivers/ps3/ps3av.c 	int i, num_of_hdmi_port, num_of_av_port, res;
res               360 drivers/ps3/ps3av.c 		res = ps3av_cmd_av_tv_mute(ps3av->av_port[i],
res               362 drivers/ps3/ps3av.c 		if (res < 0)
res               369 drivers/ps3/ps3av.c 		res = ps3av_cmd_av_video_disable_sig(ps3av->av_port[i]);
res               370 drivers/ps3/ps3av.c 		if (res < 0)
res               373 drivers/ps3/ps3av.c 			res = ps3av_cmd_av_tv_mute(ps3av->av_port[i],
res               375 drivers/ps3/ps3av.c 			if (res < 0)
res               386 drivers/ps3/ps3av.c 	int i, num_of_av_port, num_of_opt_port, res;
res               393 drivers/ps3/ps3av.c 		res = ps3av_cmd_av_audio_mute(1, &ps3av->av_port[i], mute);
res               394 drivers/ps3/ps3av.c 		if (res < 0)
res               398 drivers/ps3/ps3av.c 		res = ps3av_cmd_audio_mute(1, &ps3av->opt_port[i], mute);
res               399 drivers/ps3/ps3av.c 		if (res < 0)
res               409 drivers/ps3/ps3av.c 	int i, num_of_audio, vid, res;
res               428 drivers/ps3/ps3av.c 	res = ps3av_cmd_audio_active(0, ps3av->audio_port);
res               429 drivers/ps3/ps3av.c 	if (res < 0)
res               444 drivers/ps3/ps3av.c 		res = ps3av_cmd_audio_mode(&audio_mode);
res               445 drivers/ps3/ps3av.c 		if (res < 0)
res               452 drivers/ps3/ps3av.c 	res = ps3av_cmd_avb_param(&avb_param, len);
res               453 drivers/ps3/ps3av.c 	if (res < 0)
res               460 drivers/ps3/ps3av.c 	res = ps3av_cmd_audio_active(1, ps3av->audio_port);
res               461 drivers/ps3/ps3av.c 	if (res < 0)
res               486 drivers/ps3/ps3av.c 	int res;
res               519 drivers/ps3/ps3av.c 	res = ps3av_cmd_avb_param(&avb_param, len);
res               520 drivers/ps3/ps3av.c 	if (res == PS3AV_STATUS_NO_SYNC_HEAD)
res               524 drivers/ps3/ps3av.c 	else if (res)
res               531 drivers/ps3/ps3av.c 	int res;
res               548 drivers/ps3/ps3av.c 		res = ps3av_cmd_av_hdmi_mode(PS3AV_CMD_AV_HDMI_HDCP_OFF);
res               549 drivers/ps3/ps3av.c 		if (res == PS3AV_STATUS_UNSUPPORTED_HDMI_MODE)
res               551 drivers/ps3/ps3av.c 		else if (res)
res               555 drivers/ps3/ps3av.c 		res = ps3av_cmd_av_hdmi_mode(PS3AV_CMD_AV_HDMI_MODE_NORMAL);
res               556 drivers/ps3/ps3av.c 		if (res < 0 && res != PS3AV_STATUS_UNSUPPORTED_HDMI_MODE)
res               752 drivers/ps3/ps3av.c 	int i, res, id = 0, dvi = 0, rgb = 0;
res               758 drivers/ps3/ps3av.c 		res = ps3av_cmd_video_get_monitor_info(&monitor_info,
res               761 drivers/ps3/ps3av.c 		if (res < 0)
res               795 drivers/ps3/ps3av.c 	int i, j, k, res;
res               799 drivers/ps3/ps3av.c 	res = ps3av_cmd_av_get_hw_conf(&ps3av->av_hw_conf);
res               800 drivers/ps3/ps3av.c 	if (res < 0)
res               902 drivers/ps3/ps3av.c 	int i, res;
res               905 drivers/ps3/ps3av.c 		res = ps3av_cmd_av_audio_mute(1,
res               908 drivers/ps3/ps3av.c 		if (res < 0)
res               924 drivers/ps3/ps3av.c 	int res;
res               964 drivers/ps3/ps3av.c 	res = ps3av_cmd_init();
res               965 drivers/ps3/ps3av.c 	if (res < 0)
res               967 drivers/ps3/ps3av.c 		       res);
res               978 drivers/ps3/ps3av.c 		res = -EINVAL;
res               995 drivers/ps3/ps3av.c 	return res;
res               145 drivers/ps3/ps3av_cmd.c 	int res;
res               153 drivers/ps3/ps3av_cmd.c 	res = ps3av_do_pkt(PS3AV_CID_VIDEO_INIT, sizeof(video_init.send_hdr),
res               155 drivers/ps3/ps3av_cmd.c 	if (res < 0)
res               156 drivers/ps3/ps3av_cmd.c 		return res;
res               158 drivers/ps3/ps3av_cmd.c 	res = get_status(&video_init);
res               159 drivers/ps3/ps3av_cmd.c 	if (res) {
res               160 drivers/ps3/ps3av_cmd.c 		printk(KERN_ERR "PS3AV_CID_VIDEO_INIT: failed %x\n", res);
res               161 drivers/ps3/ps3av_cmd.c 		return res;
res               167 drivers/ps3/ps3av_cmd.c 	res = ps3av_do_pkt(PS3AV_CID_AUDIO_INIT, sizeof(audio_init.send_hdr),
res               169 drivers/ps3/ps3av_cmd.c 	if (res < 0)
res               170 drivers/ps3/ps3av_cmd.c 		return res;
res               172 drivers/ps3/ps3av_cmd.c 	res = get_status(&audio_init);
res               173 drivers/ps3/ps3av_cmd.c 	if (res) {
res               174 drivers/ps3/ps3av_cmd.c 		printk(KERN_ERR "PS3AV_CID_AUDIO_INIT: failed %x\n", res);
res               175 drivers/ps3/ps3av_cmd.c 		return res;
res               182 drivers/ps3/ps3av_cmd.c 	res = ps3av_do_pkt(PS3AV_CID_AV_INIT, sizeof(av_init), sizeof(av_init),
res               184 drivers/ps3/ps3av_cmd.c 	if (res < 0)
res               185 drivers/ps3/ps3av_cmd.c 		return res;
res               187 drivers/ps3/ps3av_cmd.c 	res = get_status(&av_init);
res               188 drivers/ps3/ps3av_cmd.c 	if (res)
res               189 drivers/ps3/ps3av_cmd.c 		printk(KERN_ERR "PS3AV_CID_AV_INIT: failed %x\n", res);
res               191 drivers/ps3/ps3av_cmd.c 	return res;
res               196 drivers/ps3/ps3av_cmd.c 	int res;
res               201 drivers/ps3/ps3av_cmd.c 	res = ps3av_do_pkt(PS3AV_CID_AV_FIN, sizeof(av_fin.send_hdr),
res               203 drivers/ps3/ps3av_cmd.c 	if (res < 0)
res               204 drivers/ps3/ps3av_cmd.c 		return res;
res               206 drivers/ps3/ps3av_cmd.c 	res = get_status(&av_fin);
res               207 drivers/ps3/ps3av_cmd.c 	if (res)
res               208 drivers/ps3/ps3av_cmd.c 		printk(KERN_ERR "PS3AV_CID_AV_FIN: failed %x\n", res);
res               210 drivers/ps3/ps3av_cmd.c 	return res;
res               215 drivers/ps3/ps3av_cmd.c 	int i, send_len, res;
res               229 drivers/ps3/ps3av_cmd.c 	res = ps3av_do_pkt(PS3AV_CID_AV_VIDEO_MUTE, send_len,
res               231 drivers/ps3/ps3av_cmd.c 	if (res < 0)
res               232 drivers/ps3/ps3av_cmd.c 		return res;
res               234 drivers/ps3/ps3av_cmd.c 	res = get_status(&av_video_mute);
res               235 drivers/ps3/ps3av_cmd.c 	if (res)
res               236 drivers/ps3/ps3av_cmd.c 		printk(KERN_ERR "PS3AV_CID_AV_VIDEO_MUTE: failed %x\n", res);
res               238 drivers/ps3/ps3av_cmd.c 	return res;
res               243 drivers/ps3/ps3av_cmd.c 	int res;
res               249 drivers/ps3/ps3av_cmd.c 	res = ps3av_do_pkt(PS3AV_CID_AV_VIDEO_DISABLE_SIG,
res               252 drivers/ps3/ps3av_cmd.c 	if (res < 0)
res               253 drivers/ps3/ps3av_cmd.c 		return res;
res               255 drivers/ps3/ps3av_cmd.c 	res = get_status(&av_video_sig);
res               256 drivers/ps3/ps3av_cmd.c 	if (res)
res               259 drivers/ps3/ps3av_cmd.c 		       res, port);
res               261 drivers/ps3/ps3av_cmd.c 	return res;
res               266 drivers/ps3/ps3av_cmd.c 	int res;
res               273 drivers/ps3/ps3av_cmd.c 	res = ps3av_do_pkt(PS3AV_CID_AV_TV_MUTE, sizeof(tv_mute),
res               275 drivers/ps3/ps3av_cmd.c 	if (res < 0)
res               276 drivers/ps3/ps3av_cmd.c 		return res;
res               278 drivers/ps3/ps3av_cmd.c 	res = get_status(&tv_mute);
res               279 drivers/ps3/ps3av_cmd.c 	if (res)
res               281 drivers/ps3/ps3av_cmd.c 		       res, avport);
res               283 drivers/ps3/ps3av_cmd.c 	return res;
res               288 drivers/ps3/ps3av_cmd.c 	int res;
res               295 drivers/ps3/ps3av_cmd.c 	res = ps3av_do_pkt(PS3AV_CID_AV_ENABLE_EVENT, sizeof(av_event),
res               297 drivers/ps3/ps3av_cmd.c 	if (res < 0)
res               298 drivers/ps3/ps3av_cmd.c 		return res;
res               300 drivers/ps3/ps3av_cmd.c 	res = get_status(&av_event);
res               301 drivers/ps3/ps3av_cmd.c 	if (res)
res               302 drivers/ps3/ps3av_cmd.c 		printk(KERN_ERR "PS3AV_CID_AV_ENABLE_EVENT: failed %x\n", res);
res               304 drivers/ps3/ps3av_cmd.c 	return res;
res               309 drivers/ps3/ps3av_cmd.c 	int res;
res               315 drivers/ps3/ps3av_cmd.c 	res = ps3av_do_pkt(PS3AV_CID_AV_HDMI_MODE, sizeof(hdmi_mode),
res               317 drivers/ps3/ps3av_cmd.c 	if (res < 0)
res               318 drivers/ps3/ps3av_cmd.c 		return res;
res               320 drivers/ps3/ps3av_cmd.c 	res = get_status(&hdmi_mode);
res               321 drivers/ps3/ps3av_cmd.c 	if (res && res != PS3AV_STATUS_UNSUPPORTED_HDMI_MODE)
res               322 drivers/ps3/ps3av_cmd.c 		printk(KERN_ERR "PS3AV_CID_AV_HDMI_MODE: failed %x\n", res);
res               324 drivers/ps3/ps3av_cmd.c 	return res;
res               411 drivers/ps3/ps3av_cmd.c 	int res;
res               423 drivers/ps3/ps3av_cmd.c 	res = ps3av_do_pkt(PS3AV_CID_VIDEO_FORMAT, sizeof(video_format),
res               425 drivers/ps3/ps3av_cmd.c 	if (res < 0)
res               426 drivers/ps3/ps3av_cmd.c 		return res;
res               428 drivers/ps3/ps3av_cmd.c 	res = get_status(&video_format);
res               429 drivers/ps3/ps3av_cmd.c 	if (res)
res               430 drivers/ps3/ps3av_cmd.c 		printk(KERN_ERR "PS3AV_CID_VIDEO_FORMAT: failed %x\n", res);
res               432 drivers/ps3/ps3av_cmd.c 	return res;
res               438 drivers/ps3/ps3av_cmd.c 	int i, res;
res               451 drivers/ps3/ps3av_cmd.c 	res = ps3av_do_pkt(PS3AV_CID_AV_AUDIO_MUTE,
res               455 drivers/ps3/ps3av_cmd.c 	if (res < 0)
res               456 drivers/ps3/ps3av_cmd.c 		return res;
res               458 drivers/ps3/ps3av_cmd.c 	res = get_status(&av_audio_mute);
res               459 drivers/ps3/ps3av_cmd.c 	if (res)
res               460 drivers/ps3/ps3av_cmd.c 		printk(KERN_ERR "PS3AV_CID_AV_AUDIO_MUTE: failed %x\n", res);
res               462 drivers/ps3/ps3av_cmd.c 	return res;
res               785 drivers/ps3/ps3av_cmd.c 	int res;
res               787 drivers/ps3/ps3av_cmd.c 	res = ps3av_do_pkt(PS3AV_CID_AUDIO_MODE, sizeof(*audio_mode),
res               789 drivers/ps3/ps3av_cmd.c 	if (res < 0)
res               790 drivers/ps3/ps3av_cmd.c 		return res;
res               792 drivers/ps3/ps3av_cmd.c 	res = get_status(audio_mode);
res               793 drivers/ps3/ps3av_cmd.c 	if (res)
res               794 drivers/ps3/ps3av_cmd.c 		printk(KERN_ERR "PS3AV_CID_AUDIO_MODE: failed %x\n", res);
res               796 drivers/ps3/ps3av_cmd.c 	return res;
res               801 drivers/ps3/ps3av_cmd.c 	int i, res;
res               814 drivers/ps3/ps3av_cmd.c 	res = ps3av_do_pkt(PS3AV_CID_AUDIO_MUTE,
res               818 drivers/ps3/ps3av_cmd.c 	if (res < 0)
res               819 drivers/ps3/ps3av_cmd.c 		return res;
res               821 drivers/ps3/ps3av_cmd.c 	res = get_status(&audio_mute);
res               822 drivers/ps3/ps3av_cmd.c 	if (res)
res               823 drivers/ps3/ps3av_cmd.c 		printk(KERN_ERR "PS3AV_CID_AUDIO_MUTE: failed %x\n", res);
res               825 drivers/ps3/ps3av_cmd.c 	return res;
res               830 drivers/ps3/ps3av_cmd.c 	int res;
res               839 drivers/ps3/ps3av_cmd.c 	res = ps3av_do_pkt(cid, sizeof(audio_active), sizeof(audio_active),
res               841 drivers/ps3/ps3av_cmd.c 	if (res < 0)
res               842 drivers/ps3/ps3av_cmd.c 		return res;
res               844 drivers/ps3/ps3av_cmd.c 	res = get_status(&audio_active);
res               845 drivers/ps3/ps3av_cmd.c 	if (res)
res               847 drivers/ps3/ps3av_cmd.c 		       res);
res               849 drivers/ps3/ps3av_cmd.c 	return res;
res               854 drivers/ps3/ps3av_cmd.c 	int res;
res               859 drivers/ps3/ps3av_cmd.c 	res = ps3av_do_pkt(PS3AV_CID_AVB_PARAM, send_len, sizeof(*avb),
res               861 drivers/ps3/ps3av_cmd.c 	if (res < 0)
res               864 drivers/ps3/ps3av_cmd.c 	res = get_status(avb);
res               865 drivers/ps3/ps3av_cmd.c 	if (res)
res               867 drivers/ps3/ps3av_cmd.c 			 res);
res               871 drivers/ps3/ps3av_cmd.c 	return res;
res               876 drivers/ps3/ps3av_cmd.c 	int res;
res               880 drivers/ps3/ps3av_cmd.c 	res = ps3av_do_pkt(PS3AV_CID_AV_GET_HW_CONF, sizeof(hw_conf->send_hdr),
res               882 drivers/ps3/ps3av_cmd.c 	if (res < 0)
res               883 drivers/ps3/ps3av_cmd.c 		return res;
res               885 drivers/ps3/ps3av_cmd.c 	res = get_status(hw_conf);
res               886 drivers/ps3/ps3av_cmd.c 	if (res)
res               887 drivers/ps3/ps3av_cmd.c 		printk(KERN_ERR "PS3AV_CID_AV_GET_HW_CONF: failed %x\n", res);
res               889 drivers/ps3/ps3av_cmd.c 	return res;
res               895 drivers/ps3/ps3av_cmd.c 	int res;
res               900 drivers/ps3/ps3av_cmd.c 	res = ps3av_do_pkt(PS3AV_CID_AV_GET_MONITOR_INFO,
res               904 drivers/ps3/ps3av_cmd.c 	if (res < 0)
res               905 drivers/ps3/ps3av_cmd.c 		return res;
res               907 drivers/ps3/ps3av_cmd.c 	res = get_status(info);
res               908 drivers/ps3/ps3av_cmd.c 	if (res)
res               910 drivers/ps3/ps3av_cmd.c 		       res);
res               912 drivers/ps3/ps3av_cmd.c 	return res;
res                77 drivers/ps3/ps3stor_lib.c 	int res, error;
res                94 drivers/ps3/ps3stor_lib.c 		res = ps3stor_read_write_sectors(dev, dev->bounce_lpar, 0, 1,
res                96 drivers/ps3/ps3stor_lib.c 		if (res) {
res               138 drivers/ps3/ps3stor_lib.c 	int error, res, alignment;
res               181 drivers/ps3/ps3stor_lib.c 	res = ps3_dma_region_create(&dev->dma_region);
res               182 drivers/ps3/ps3stor_lib.c 	if (res) {
res               269 drivers/ps3/ps3stor_lib.c 	int res;
res               275 drivers/ps3/ps3stor_lib.c 	res = write ? lv1_storage_write(dev->sbd.dev_id, region_id,
res               281 drivers/ps3/ps3stor_lib.c 	if (res) {
res               283 drivers/ps3/ps3stor_lib.c 			__LINE__, op, res);
res               317 drivers/ps3/ps3stor_lib.c 	int res;
res               324 drivers/ps3/ps3stor_lib.c 	res = lv1_storage_send_device_command(dev->sbd.dev_id, cmd, arg1,
res               326 drivers/ps3/ps3stor_lib.c 	if (res) {
res               329 drivers/ps3/ps3stor_lib.c 			__func__, __LINE__, cmd, res);
res               243 drivers/ptp/ptp_dte.c 	struct resource *res;
res               249 drivers/ptp/ptp_dte.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               250 drivers/ptp/ptp_dte.c 	ptp_dte->regs = devm_ioremap_resource(dev, res);
res              1008 drivers/pwm/core.c static void devm_pwm_release(struct device *dev, void *res)
res              1010 drivers/pwm/core.c 	pwm_put(*(struct pwm_device **)res);
res              1115 drivers/pwm/core.c static int devm_pwm_match(struct device *dev, void *res, void *data)
res              1117 drivers/pwm/core.c 	struct pwm_device **p = res;
res               343 drivers/pwm/pwm-atmel.c 	struct resource *res;
res               354 drivers/pwm/pwm-atmel.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               355 drivers/pwm/pwm-atmel.c 	atmel_pwm->base = devm_ioremap_resource(&pdev->dev, res);
res               196 drivers/pwm/pwm-bcm-iproc.c 	struct resource *res;
res               214 drivers/pwm/pwm-bcm-iproc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               215 drivers/pwm/pwm-bcm-iproc.c 	ip->base = devm_ioremap_resource(&pdev->dev, res);
res               262 drivers/pwm/pwm-bcm-kona.c 	struct resource *res;
res               280 drivers/pwm/pwm-bcm-kona.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               281 drivers/pwm/pwm-bcm-kona.c 	kp->base = devm_ioremap_resource(&pdev->dev, res);
res               140 drivers/pwm/pwm-bcm2835.c 	struct resource *res;
res               149 drivers/pwm/pwm-bcm2835.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               150 drivers/pwm/pwm-bcm2835.c 	pc->base = devm_ioremap_resource(&pdev->dev, res);
res               189 drivers/pwm/pwm-berlin.c 	struct resource *res;
res               196 drivers/pwm/pwm-berlin.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               197 drivers/pwm/pwm-berlin.c 	pwm->base = devm_ioremap_resource(&pdev->dev, res);
res               237 drivers/pwm/pwm-brcmstb.c 	struct resource *res;
res               265 drivers/pwm/pwm-brcmstb.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               266 drivers/pwm/pwm-brcmstb.c 	p->base = devm_ioremap_resource(&pdev->dev, res);
res               116 drivers/pwm/pwm-clps711x.c 	struct resource *res;
res               122 drivers/pwm/pwm-clps711x.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               123 drivers/pwm/pwm-clps711x.c 	priv->pmpcon = devm_ioremap_resource(&pdev->dev, res);
res               172 drivers/pwm/pwm-ep93xx.c 	struct resource *res;
res               179 drivers/pwm/pwm-ep93xx.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               180 drivers/pwm/pwm-ep93xx.c 	ep93xx_pwm->base = devm_ioremap_resource(&pdev->dev, res);
res               402 drivers/pwm/pwm-fsl-ftm.c 	struct resource *res;
res               415 drivers/pwm/pwm-fsl-ftm.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               416 drivers/pwm/pwm-fsl-ftm.c 	base = devm_ioremap_resource(&pdev->dev, res);
res               193 drivers/pwm/pwm-hibvt.c 	struct resource *res;
res               216 drivers/pwm/pwm-hibvt.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               217 drivers/pwm/pwm-hibvt.c 	pwm_chip->base = devm_ioremap_resource(&pdev->dev, res);
res               241 drivers/pwm/pwm-img.c 	struct resource *res;
res               251 drivers/pwm/pwm-img.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               252 drivers/pwm/pwm-img.c 	pwm->base = devm_ioremap_resource(&pdev->dev, res);
res               328 drivers/pwm/pwm-lpc18xx-sct.c 	struct resource *res;
res               339 drivers/pwm/pwm-lpc18xx-sct.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               340 drivers/pwm/pwm-lpc18xx-sct.c 	lpc18xx_pwm->base = devm_ioremap_resource(&pdev->dev, res);
res               101 drivers/pwm/pwm-lpc32xx.c 	struct resource *res;
res               109 drivers/pwm/pwm-lpc32xx.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               110 drivers/pwm/pwm-lpc32xx.c 	lpc32xx->base = devm_ioremap_resource(&pdev->dev, res);
res               210 drivers/pwm/pwm-mediatek.c 	struct resource *res;
res               220 drivers/pwm/pwm-mediatek.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               221 drivers/pwm/pwm-mediatek.c 	pc->regs = devm_ioremap_resource(&pdev->dev, res);
res               206 drivers/pwm/pwm-rcar.c 	struct resource *res;
res               213 drivers/pwm/pwm-rcar.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               214 drivers/pwm/pwm-rcar.c 	rcar_pwm->base = devm_ioremap_resource(&pdev->dev, res);
res               386 drivers/pwm/pwm-renesas-tpu.c 	struct resource *res;
res               397 drivers/pwm/pwm-renesas-tpu.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               398 drivers/pwm/pwm-renesas-tpu.c 	tpu->base = devm_ioremap_resource(&pdev->dev, res);
res               513 drivers/pwm/pwm-samsung.c 	struct resource *res;
res               544 drivers/pwm/pwm-samsung.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               545 drivers/pwm/pwm-samsung.c 	chip->base = devm_ioremap_resource(&pdev->dev, res);
res               235 drivers/pwm/pwm-sifive.c 	struct resource *res;
res               251 drivers/pwm/pwm-sifive.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               252 drivers/pwm/pwm-sifive.c 	ddata->regs = devm_ioremap_resource(dev, res);
res               543 drivers/pwm/pwm-sti.c 	struct resource *res;
res               555 drivers/pwm/pwm-sti.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               557 drivers/pwm/pwm-sti.c 	pc->mmio = devm_ioremap_resource(dev, res);
res               348 drivers/pwm/pwm-sun4i.c 	struct resource *res;
res               359 drivers/pwm/pwm-sun4i.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               360 drivers/pwm/pwm-sun4i.c 	pwm->base = devm_ioremap_resource(&pdev->dev, res);
res               199 drivers/pwm/pwm-zx.c 	struct resource *res;
res               207 drivers/pwm/pwm-zx.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               208 drivers/pwm/pwm-zx.c 	zpc->base = devm_ioremap_resource(&pdev->dev, res);
res               414 drivers/rapidio/devices/tsi721.c 			if ((dbell->res->start <= DBELL_INF(idb.bytes)) &&
res               415 drivers/rapidio/devices/tsi721.c 			    (dbell->res->end >= DBELL_INF(idb.bytes))) {
res                34 drivers/rapidio/rio-access.c 	int res;							\
res                37 drivers/rapidio/rio-access.c 	res = mport->ops->lcread(mport, mport->id, offset, len, &data);	\
res                39 drivers/rapidio/rio-access.c 	return res;							\
res                86 drivers/rapidio/rio-access.c 	int res;							\
res                89 drivers/rapidio/rio-access.c 	res = mport->ops->cread(mport, mport->id, destid, hopcount, offset, len, &data); \
res                91 drivers/rapidio/rio-access.c 	return res;							\
res               240 drivers/rapidio/rio.c 	struct resource *res;
res               245 drivers/rapidio/rio.c 	res = kzalloc(sizeof(*res), GFP_KERNEL);
res               246 drivers/rapidio/rio.c 	if (res) {
res               247 drivers/rapidio/rio.c 		rio_init_mbox_res(res, mbox, mbox);
res               251 drivers/rapidio/rio.c 				      res);
res               253 drivers/rapidio/rio.c 			kfree(res);
res               257 drivers/rapidio/rio.c 		mport->inb_msg[mbox].res = res;
res               265 drivers/rapidio/rio.c 			mport->inb_msg[mbox].res = NULL;
res               266 drivers/rapidio/rio.c 			release_resource(res);
res               267 drivers/rapidio/rio.c 			kfree(res);
res               289 drivers/rapidio/rio.c 	if (!mport->ops->close_inb_mbox || !mport->inb_msg[mbox].res)
res               295 drivers/rapidio/rio.c 	rc = release_resource(mport->inb_msg[mbox].res);
res               299 drivers/rapidio/rio.c 	kfree(mport->inb_msg[mbox].res);
res               300 drivers/rapidio/rio.c 	mport->inb_msg[mbox].res = NULL;
res               324 drivers/rapidio/rio.c 	struct resource *res;
res               329 drivers/rapidio/rio.c 	res = kzalloc(sizeof(*res), GFP_KERNEL);
res               330 drivers/rapidio/rio.c 	if (res) {
res               331 drivers/rapidio/rio.c 		rio_init_mbox_res(res, mbox, mbox);
res               335 drivers/rapidio/rio.c 				      res);
res               337 drivers/rapidio/rio.c 			kfree(res);
res               341 drivers/rapidio/rio.c 		mport->outb_msg[mbox].res = res;
res               349 drivers/rapidio/rio.c 			mport->outb_msg[mbox].res = NULL;
res               350 drivers/rapidio/rio.c 			release_resource(res);
res               351 drivers/rapidio/rio.c 			kfree(res);
res               373 drivers/rapidio/rio.c 	if (!mport->ops->close_outb_mbox || !mport->outb_msg[mbox].res)
res               379 drivers/rapidio/rio.c 	rc = release_resource(mport->outb_msg[mbox].res);
res               383 drivers/rapidio/rio.c 	kfree(mport->outb_msg[mbox].res);
res               384 drivers/rapidio/rio.c 	mport->outb_msg[mbox].res = NULL;
res               402 drivers/rapidio/rio.c rio_setup_inb_dbell(struct rio_mport *mport, void *dev_id, struct resource *res,
res               411 drivers/rapidio/rio.c 	dbell->res = res;
res               441 drivers/rapidio/rio.c 	struct resource *res = kzalloc(sizeof(*res), GFP_KERNEL);
res               443 drivers/rapidio/rio.c 	if (res) {
res               444 drivers/rapidio/rio.c 		rio_init_dbell_res(res, start, end);
res               448 drivers/rapidio/rio.c 				      res);
res               450 drivers/rapidio/rio.c 			kfree(res);
res               455 drivers/rapidio/rio.c 		rc = rio_setup_inb_dbell(mport, dev_id, res, dinb);
res               481 drivers/rapidio/rio.c 		if ((dbell->res->start == start) && (dbell->res->end == end)) {
res               496 drivers/rapidio/rio.c 	rc = release_resource(dbell->res);
res               518 drivers/rapidio/rio.c 	struct resource *res = kzalloc(sizeof(struct resource), GFP_KERNEL);
res               520 drivers/rapidio/rio.c 	if (res) {
res               521 drivers/rapidio/rio.c 		rio_init_dbell_res(res, start, end);
res               524 drivers/rapidio/rio.c 		if (request_resource(&rdev->riores[RIO_DOORBELL_RESOURCE], res)
res               526 drivers/rapidio/rio.c 			kfree(res);
res               527 drivers/rapidio/rio.c 			res = NULL;
res               531 drivers/rapidio/rio.c 	return res;
res               543 drivers/rapidio/rio.c int rio_release_outb_dbell(struct rio_dev *rdev, struct resource *res)
res               545 drivers/rapidio/rio.c 	int rc = release_resource(res);
res               547 drivers/rapidio/rio.c 	kfree(res);
res              2245 drivers/rapidio/rio.c 	int res = 0;
res              2269 drivers/rapidio/rio.c 	res = device_register(&port->dev);
res              2270 drivers/rapidio/rio.c 	if (res)
res              2272 drivers/rapidio/rio.c 			port->id, res);
res              2276 drivers/rapidio/rio.c 	return res;
res               322 drivers/regulator/88pm8607.c 	struct resource *res;
res               325 drivers/regulator/88pm8607.c 	res = platform_get_resource(pdev, IORESOURCE_REG, 0);
res               326 drivers/regulator/88pm8607.c 	if (res) {
res               330 drivers/regulator/88pm8607.c 			if (info->desc.vsel_reg == res->start)
res               335 drivers/regulator/88pm8607.c 				(unsigned long long)res->start);
res                17 drivers/regulator/devres.c static void devm_regulator_release(struct device *dev, void *res)
res                19 drivers/regulator/devres.c 	regulator_put(*(struct regulator **)res);
res                89 drivers/regulator/devres.c static int devm_regulator_match(struct device *dev, void *res, void *data)
res                91 drivers/regulator/devres.c 	struct regulator **r = res;
res               123 drivers/regulator/devres.c static void devm_regulator_bulk_release(struct device *dev, void *res)
res               125 drivers/regulator/devres.c 	struct regulator_bulk_devres *devres = res;
res               169 drivers/regulator/devres.c static void devm_rdev_release(struct device *dev, void *res)
res               171 drivers/regulator/devres.c 	regulator_unregister(*(struct regulator_dev **)res);
res               207 drivers/regulator/devres.c static int devm_rdev_match(struct device *dev, void *res, void *data)
res               209 drivers/regulator/devres.c 	struct regulator_dev **r = res;
res               240 drivers/regulator/devres.c static int devm_regulator_match_supply_alias(struct device *dev, void *res,
res               243 drivers/regulator/devres.c 	struct regulator_supply_alias_match *match = res;
res               249 drivers/regulator/devres.c static void devm_regulator_destroy_supply_alias(struct device *dev, void *res)
res               251 drivers/regulator/devres.c 	struct regulator_supply_alias_match *match = res;
res               403 drivers/regulator/devres.c static int devm_regulator_match_notifier(struct device *dev, void *res,
res               406 drivers/regulator/devres.c 	struct regulator_notifier_match *match = res;
res               412 drivers/regulator/devres.c static void devm_regulator_destroy_notifier(struct device *dev, void *res)
res               414 drivers/regulator/devres.c 	struct regulator_notifier_match *match = res;
res               224 drivers/regulator/max8925-regulator.c 	struct resource *res;
res               228 drivers/regulator/max8925-regulator.c 	res = platform_get_resource(pdev, IORESOURCE_REG, 0);
res               229 drivers/regulator/max8925-regulator.c 	if (!res) {
res               235 drivers/regulator/max8925-regulator.c 		if (ri->vol_reg == res->start)
res               241 drivers/regulator/max8925-regulator.c 			(unsigned long long)res->start);
res               298 drivers/regulator/of_regulator.c static void devm_of_regulator_put_matches(struct device *dev, void *res)
res               300 drivers/regulator/of_regulator.c 	struct devm_of_regulator_matches *devm_matches = res;
res               161 drivers/regulator/pbias-regulator.c 	struct resource *res;
res               191 drivers/regulator/pbias-regulator.c 		res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               192 drivers/regulator/pbias-regulator.c 		if (!res)
res               195 drivers/regulator/pbias-regulator.c 		offset = res->start;
res               185 drivers/regulator/stm32-vrefbuf.c 	struct resource *res;
res               196 drivers/regulator/stm32-vrefbuf.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               197 drivers/regulator/stm32-vrefbuf.c 	priv->base = devm_ioremap_resource(&pdev->dev, res);
res               690 drivers/regulator/ti-abb-regulator.c 	struct resource *res;
res               719 drivers/regulator/ti-abb-regulator.c 		res = platform_get_resource_byname(pdev, IORESOURCE_MEM, pname);
res               720 drivers/regulator/ti-abb-regulator.c 		abb->base = devm_ioremap_resource(dev, res);
res               729 drivers/regulator/ti-abb-regulator.c 		res = platform_get_resource_byname(pdev, IORESOURCE_MEM, pname);
res               730 drivers/regulator/ti-abb-regulator.c 		abb->control_reg = devm_ioremap_resource(dev, res);
res               735 drivers/regulator/ti-abb-regulator.c 		res = platform_get_resource_byname(pdev, IORESOURCE_MEM, pname);
res               736 drivers/regulator/ti-abb-regulator.c 		abb->setup_reg = devm_ioremap_resource(dev, res);
res               742 drivers/regulator/ti-abb-regulator.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, pname);
res               743 drivers/regulator/ti-abb-regulator.c 	if (!res) {
res               751 drivers/regulator/ti-abb-regulator.c 	abb->int_base = devm_ioremap_nocache(dev, res->start,
res               752 drivers/regulator/ti-abb-regulator.c 					     resource_size(res));
res               760 drivers/regulator/ti-abb-regulator.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, pname);
res               761 drivers/regulator/ti-abb-regulator.c 	if (!res) {
res               771 drivers/regulator/ti-abb-regulator.c 	abb->efuse_base = devm_ioremap_nocache(dev, res->start,
res               772 drivers/regulator/ti-abb-regulator.c 					       resource_size(res));
res               779 drivers/regulator/ti-abb-regulator.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, pname);
res               780 drivers/regulator/ti-abb-regulator.c 	if (!res) {
res               785 drivers/regulator/ti-abb-regulator.c 	abb->ldo_base = devm_ioremap_resource(dev, res);
res                48 drivers/regulator/uniphier-regulator.c 	struct resource *res;
res                61 drivers/regulator/uniphier-regulator.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                62 drivers/regulator/uniphier-regulator.c 	base = devm_ioremap_resource(dev, res);
res               398 drivers/regulator/wm831x-dcdc.c 	struct resource *res;
res               416 drivers/regulator/wm831x-dcdc.c 	res = platform_get_resource(pdev, IORESOURCE_REG, 0);
res               417 drivers/regulator/wm831x-dcdc.c 	if (res == NULL) {
res               422 drivers/regulator/wm831x-dcdc.c 	dcdc->base = res->start;
res               556 drivers/regulator/wm831x-dcdc.c 	struct resource *res;
res               574 drivers/regulator/wm831x-dcdc.c 	res = platform_get_resource(pdev, IORESOURCE_REG, 0);
res               575 drivers/regulator/wm831x-dcdc.c 	if (res == NULL) {
res               580 drivers/regulator/wm831x-dcdc.c 	dcdc->base = res->start;
res               688 drivers/regulator/wm831x-dcdc.c 	struct resource *res;
res               702 drivers/regulator/wm831x-dcdc.c 	res = platform_get_resource(pdev, IORESOURCE_REG, 0);
res               703 drivers/regulator/wm831x-dcdc.c 	if (res == NULL) {
res               707 drivers/regulator/wm831x-dcdc.c 	dcdc->base = res->start;
res               119 drivers/regulator/wm831x-isink.c 	struct resource *res;
res               134 drivers/regulator/wm831x-isink.c 	res = platform_get_resource(pdev, IORESOURCE_REG, 0);
res               135 drivers/regulator/wm831x-isink.c 	if (res == NULL) {
res               140 drivers/regulator/wm831x-isink.c 	isink->reg = res->start;
res               223 drivers/regulator/wm831x-ldo.c 	struct resource *res;
res               240 drivers/regulator/wm831x-ldo.c 	res = platform_get_resource(pdev, IORESOURCE_REG, 0);
res               241 drivers/regulator/wm831x-ldo.c 	if (res == NULL) {
res               246 drivers/regulator/wm831x-ldo.c 	ldo->base = res->start;
res               433 drivers/regulator/wm831x-ldo.c 	struct resource *res;
res               450 drivers/regulator/wm831x-ldo.c 	res = platform_get_resource(pdev, IORESOURCE_REG, 0);
res               451 drivers/regulator/wm831x-ldo.c 	if (res == NULL) {
res               456 drivers/regulator/wm831x-ldo.c 	ldo->base = res->start;
res               577 drivers/regulator/wm831x-ldo.c 	struct resource *res;
res               595 drivers/regulator/wm831x-ldo.c 	res = platform_get_resource(pdev, IORESOURCE_REG, 0);
res               596 drivers/regulator/wm831x-ldo.c 	if (res == NULL) {
res               601 drivers/regulator/wm831x-ldo.c 	ldo->base = res->start;
res               204 drivers/remoteproc/da8xx_remoteproc.c 	struct resource *res;
res               213 drivers/remoteproc/da8xx_remoteproc.c 		res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
res               215 drivers/remoteproc/da8xx_remoteproc.c 		drproc->mem[i].cpu_addr = devm_ioremap_resource(dev, res);
res               221 drivers/remoteproc/da8xx_remoteproc.c 		drproc->mem[i].bus_addr = res->start;
res               223 drivers/remoteproc/da8xx_remoteproc.c 				res->start & DA8XX_RPROC_LOCAL_ADDRESS_MASK;
res               224 drivers/remoteproc/da8xx_remoteproc.c 		drproc->mem[i].size = resource_size(res);
res               286 drivers/remoteproc/imx_rproc.c 		struct resource res;
res               289 drivers/remoteproc/imx_rproc.c 		err = of_address_to_resource(node, 0, &res);
res               298 drivers/remoteproc/imx_rproc.c 		priv->mem[b].cpu_addr = devm_ioremap_resource(&pdev->dev, &res);
res               304 drivers/remoteproc/imx_rproc.c 		priv->mem[b].sys_addr = res.start;
res               305 drivers/remoteproc/imx_rproc.c 		priv->mem[b].size = resource_size(&res);
res               300 drivers/remoteproc/keystone_remoteproc.c 	struct resource *res;
res               311 drivers/remoteproc/keystone_remoteproc.c 		res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
res               313 drivers/remoteproc/keystone_remoteproc.c 		ksproc->mem[i].cpu_addr = devm_ioremap_resource(dev, res);
res               319 drivers/remoteproc/keystone_remoteproc.c 		ksproc->mem[i].bus_addr = res->start;
res               321 drivers/remoteproc/keystone_remoteproc.c 				res->start & KEYSTONE_RPROC_LOCAL_ADDRESS_MASK;
res               322 drivers/remoteproc/keystone_remoteproc.c 		ksproc->mem[i].size = resource_size(res);
res               348 drivers/remoteproc/qcom_q6v5_adsp.c 	struct resource *res;
res               351 drivers/remoteproc/qcom_q6v5_adsp.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               352 drivers/remoteproc/qcom_q6v5_adsp.c 	adsp->qdsp6ss_base = devm_ioremap(&pdev->dev, res->start,
res               353 drivers/remoteproc/qcom_q6v5_adsp.c 			resource_size(res));
res              1245 drivers/remoteproc/qcom_q6v5_mss.c 	struct resource *res;
res              1248 drivers/remoteproc/qcom_q6v5_mss.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "qdsp6");
res              1249 drivers/remoteproc/qcom_q6v5_mss.c 	qproc->reg_base = devm_ioremap_resource(&pdev->dev, res);
res              1253 drivers/remoteproc/qcom_q6v5_mss.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "rmb");
res              1254 drivers/remoteproc/qcom_q6v5_mss.c 	qproc->rmb_base = devm_ioremap_resource(&pdev->dev, res);
res               467 drivers/remoteproc/qcom_q6v5_wcss.c 	struct resource *res;
res               470 drivers/remoteproc/qcom_q6v5_wcss.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "qdsp6");
res               471 drivers/remoteproc/qcom_q6v5_wcss.c 	wcss->reg_base = devm_ioremap_resource(&pdev->dev, res);
res               475 drivers/remoteproc/qcom_q6v5_wcss.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "rmb");
res               476 drivers/remoteproc/qcom_q6v5_wcss.c 	wcss->rmb_base = devm_ioremap_resource(&pdev->dev, res);
res               462 drivers/remoteproc/qcom_wcnss.c 	struct resource *res;
res               494 drivers/remoteproc/qcom_wcnss.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "pmu");
res               495 drivers/remoteproc/qcom_wcnss.c 	mmio = devm_ioremap_resource(&pdev->dev, res);
res               229 drivers/remoteproc/st_slim_rproc.c 	struct resource *res;
res               250 drivers/remoteproc/st_slim_rproc.c 		res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
res               253 drivers/remoteproc/st_slim_rproc.c 		slim_rproc->mem[i].cpu_addr = devm_ioremap_resource(dev, res);
res               259 drivers/remoteproc/st_slim_rproc.c 		slim_rproc->mem[i].bus_addr = res->start;
res               260 drivers/remoteproc/st_slim_rproc.c 		slim_rproc->mem[i].size = resource_size(res);
res               263 drivers/remoteproc/st_slim_rproc.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "slimcore");
res               264 drivers/remoteproc/st_slim_rproc.c 	slim_rproc->slimcore = devm_ioremap_resource(dev, res);
res               271 drivers/remoteproc/st_slim_rproc.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "peripherals");
res               272 drivers/remoteproc/st_slim_rproc.c 	slim_rproc->peri = devm_ioremap_resource(dev, res);
res               128 drivers/remoteproc/wkup_m3_rproc.c 	struct resource *res;
res               169 drivers/remoteproc/wkup_m3_rproc.c 		res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
res               171 drivers/remoteproc/wkup_m3_rproc.c 		wkupm3->mem[i].cpu_addr = devm_ioremap_resource(dev, res);
res               178 drivers/remoteproc/wkup_m3_rproc.c 		wkupm3->mem[i].bus_addr = res->start;
res               179 drivers/remoteproc/wkup_m3_rproc.c 		wkupm3->mem[i].size = resource_size(res);
res               125 drivers/reset/core.c static void devm_reset_controller_release(struct device *dev, void *res)
res               127 drivers/reset/core.c 	reset_controller_unregister(*(struct reset_controller_dev **)res);
res               773 drivers/reset/core.c static void devm_reset_control_release(struct device *dev, void *res)
res               775 drivers/reset/core.c 	reset_control_put(*(struct reset_control **)res);
res                89 drivers/reset/reset-ath79.c 	struct resource *res;
res                99 drivers/reset/reset-ath79.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               100 drivers/reset/reset-ath79.c 	ath79_reset->base = devm_ioremap_resource(&pdev->dev, res);
res                87 drivers/reset/reset-brcmstb.c 	struct resource *res;
res                93 drivers/reset/reset-brcmstb.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                94 drivers/reset/reset-brcmstb.c 	priv->base = devm_ioremap_resource(kdev, res);
res               101 drivers/reset/reset-brcmstb.c 	priv->rcdev.nr_resets = DIV_ROUND_DOWN_ULL(resource_size(res),
res               142 drivers/reset/reset-lpc18xx.c 	struct resource *res;
res               150 drivers/reset/reset-lpc18xx.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               151 drivers/reset/reset-lpc18xx.c 	rc->base = devm_ioremap_resource(&pdev->dev, res);
res               108 drivers/reset/reset-meson-audio-arb.c 	struct resource *res;
res               123 drivers/reset/reset-meson-audio-arb.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               124 drivers/reset/reset-meson-audio-arb.c 	arb->regs = devm_ioremap_resource(dev, res);
res                94 drivers/reset/reset-meson.c 	struct resource *res;
res               100 drivers/reset/reset-meson.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               101 drivers/reset/reset-meson.c 	data->reg_base = devm_ioremap_resource(&pdev->dev, res);
res                93 drivers/reset/reset-qcom-aoss.c 	struct resource *res;
res               104 drivers/reset/reset-qcom-aoss.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               105 drivers/reset/reset-qcom-aoss.c 	data->base = devm_ioremap_resource(dev, res);
res                82 drivers/reset/reset-qcom-pdc.c 	struct resource *res;
res                88 drivers/reset/reset-qcom-pdc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                89 drivers/reset/reset-qcom-pdc.c 	base = devm_ioremap_resource(dev, res);
res               142 drivers/reset/reset-simple.c 	struct resource *res;
res               151 drivers/reset/reset-simple.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               152 drivers/reset/reset-simple.c 	membase = devm_ioremap_resource(dev, res);
res               159 drivers/reset/reset-simple.c 	data->rcdev.nr_resets = resource_size(res) * BITS_PER_BYTE;
res                26 drivers/reset/reset-socfpga.c 	struct resource res;
res                35 drivers/reset/reset-socfpga.c 	ret = of_address_to_resource(np, 0, &res);
res                39 drivers/reset/reset-socfpga.c 	size = resource_size(&res);
res                40 drivers/reset/reset-socfpga.c 	if (!request_mem_region(res.start, size, np->name)) {
res                45 drivers/reset/reset-socfpga.c 	data->membase = ioremap(res.start, size);
res                87 drivers/reset/reset-stm32mp1.c 	struct resource *res;
res                93 drivers/reset/reset-stm32mp1.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                94 drivers/reset/reset-stm32mp1.c 	membase = devm_ioremap_resource(dev, res);
res               100 drivers/reset/reset-stm32mp1.c 	data->rcdev.nr_resets = resource_size(res) * BITS_PER_BYTE;
res                27 drivers/reset/reset-sunxi.c 	struct resource res;
res                35 drivers/reset/reset-sunxi.c 	ret = of_address_to_resource(np, 0, &res);
res                39 drivers/reset/reset-sunxi.c 	size = resource_size(&res);
res                40 drivers/reset/reset-sunxi.c 	if (!request_mem_region(res.start, size, np->name)) {
res                45 drivers/reset/reset-sunxi.c 	data->membase = ioremap(res.start, size);
res                36 drivers/reset/reset-uniphier-glue.c 	struct resource *res;
res                50 drivers/reset/reset-uniphier-glue.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                51 drivers/reset/reset-uniphier-glue.c 	size = resource_size(res);
res                52 drivers/reset/reset-uniphier-glue.c 	priv->rdata.membase = devm_ioremap_resource(dev, res);
res                91 drivers/reset/reset-zynq.c 	struct resource *res;
res               106 drivers/reset/reset-zynq.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               107 drivers/reset/reset-zynq.c 	if (!res) {
res               112 drivers/reset/reset-zynq.c 	priv->offset = res->start;
res               115 drivers/reset/reset-zynq.c 	priv->rcdev.nr_resets = resource_size(res) / 4 * BITS_PER_LONG;
res               294 drivers/rtc/class.c static void devm_rtc_release_device(struct device *dev, void *res)
res               296 drivers/rtc/class.c 	struct rtc_device *rtc = *(struct rtc_device **)res;
res               502 drivers/rtc/rtc-armada38x.c 	struct resource *res;
res               522 drivers/rtc/rtc-armada38x.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "rtc");
res               523 drivers/rtc/rtc-armada38x.c 	rtc->regs = devm_ioremap_resource(&pdev->dev, res);
res               526 drivers/rtc/rtc-armada38x.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "rtc-soc");
res               527 drivers/rtc/rtc-armada38x.c 	rtc->regs_soc = devm_ioremap_resource(&pdev->dev, res);
res               248 drivers/rtc/rtc-asm9260.c 	struct resource	*res;
res               263 drivers/rtc/rtc-asm9260.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               264 drivers/rtc/rtc-asm9260.c 	priv->iobase = devm_ioremap_resource(dev, res);
res                88 drivers/rtc/rtc-aspeed.c 	struct resource *res;
res                94 drivers/rtc/rtc-aspeed.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                95 drivers/rtc/rtc-aspeed.c 	rtc->base = devm_ioremap_resource(&pdev->dev, res);
res               203 drivers/rtc/rtc-brcmstb-waketimer.c 	struct resource *res;
res               213 drivers/rtc/rtc-brcmstb-waketimer.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               214 drivers/rtc/rtc-brcmstb-waketimer.c 	timer->base = devm_ioremap_resource(dev, res);
res               258 drivers/rtc/rtc-cadence.c 	struct resource *res;
res               266 drivers/rtc/rtc-cadence.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               267 drivers/rtc/rtc-cadence.c 	crtc->regs = devm_ioremap_resource(&pdev->dev, res);
res               167 drivers/rtc/rtc-coh901331.c 	struct resource *res;
res               174 drivers/rtc/rtc-coh901331.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               175 drivers/rtc/rtc-coh901331.c 	rtap->virtbase  = devm_ioremap_resource(&pdev->dev, res);
res               472 drivers/rtc/rtc-davinci.c 	struct resource *res;
res               483 drivers/rtc/rtc-davinci.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               484 drivers/rtc/rtc-davinci.c 	davinci_rtc->base = devm_ioremap_resource(dev, res);
res               178 drivers/rtc/rtc-digicolor.c 	struct resource *res;
res               186 drivers/rtc/rtc-digicolor.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               187 drivers/rtc/rtc-digicolor.c 	rtc->regs = devm_ioremap_resource(&pdev->dev, res);
res               140 drivers/rtc/rtc-ds1216.c 	struct resource *res;
res               150 drivers/rtc/rtc-ds1216.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               151 drivers/rtc/rtc-ds1216.c 	priv->ioaddr = devm_ioremap_resource(&pdev->dev, res);
res               326 drivers/rtc/rtc-ds1286.c 	struct resource *res;
res               333 drivers/rtc/rtc-ds1286.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               334 drivers/rtc/rtc-ds1286.c 	priv->rtcregs = devm_ioremap_resource(&pdev->dev, res);
res               239 drivers/rtc/rtc-ds1343.c 	int res;
res               241 drivers/rtc/rtc-ds1343.c 	res = regmap_bulk_read(priv->map, DS1343_SECONDS_REG, buf, 7);
res               242 drivers/rtc/rtc-ds1343.c 	if (res)
res               243 drivers/rtc/rtc-ds1343.c 		return res;
res               259 drivers/rtc/rtc-ds1343.c 	int res;
res               261 drivers/rtc/rtc-ds1343.c 	res = regmap_write(priv->map, DS1343_SECONDS_REG,
res               263 drivers/rtc/rtc-ds1343.c 	if (res)
res               264 drivers/rtc/rtc-ds1343.c 		return res;
res               266 drivers/rtc/rtc-ds1343.c 	res = regmap_write(priv->map, DS1343_MINUTES_REG,
res               268 drivers/rtc/rtc-ds1343.c 	if (res)
res               269 drivers/rtc/rtc-ds1343.c 		return res;
res               271 drivers/rtc/rtc-ds1343.c 	res = regmap_write(priv->map, DS1343_HOURS_REG,
res               273 drivers/rtc/rtc-ds1343.c 	if (res)
res               274 drivers/rtc/rtc-ds1343.c 		return res;
res               276 drivers/rtc/rtc-ds1343.c 	res = regmap_write(priv->map, DS1343_DAY_REG,
res               278 drivers/rtc/rtc-ds1343.c 	if (res)
res               279 drivers/rtc/rtc-ds1343.c 		return res;
res               281 drivers/rtc/rtc-ds1343.c 	res = regmap_write(priv->map, DS1343_DATE_REG,
res               283 drivers/rtc/rtc-ds1343.c 	if (res)
res               284 drivers/rtc/rtc-ds1343.c 		return res;
res               286 drivers/rtc/rtc-ds1343.c 	res = regmap_write(priv->map, DS1343_MONTH_REG,
res               288 drivers/rtc/rtc-ds1343.c 	if (res)
res               289 drivers/rtc/rtc-ds1343.c 		return res;
res               293 drivers/rtc/rtc-ds1343.c 	res = regmap_write(priv->map, DS1343_YEAR_REG,
res               295 drivers/rtc/rtc-ds1343.c 	if (res)
res               296 drivers/rtc/rtc-ds1343.c 		return res;
res               306 drivers/rtc/rtc-ds1343.c 	int res = 0;
res               308 drivers/rtc/rtc-ds1343.c 	res = regmap_read(priv->map, DS1343_CONTROL_REG, &control);
res               309 drivers/rtc/rtc-ds1343.c 	if (res)
res               310 drivers/rtc/rtc-ds1343.c 		return res;
res               312 drivers/rtc/rtc-ds1343.c 	res = regmap_read(priv->map, DS1343_STATUS_REG, &stat);
res               313 drivers/rtc/rtc-ds1343.c 	if (res)
res               314 drivers/rtc/rtc-ds1343.c 		return res;
res               319 drivers/rtc/rtc-ds1343.c 	res = regmap_write(priv->map, DS1343_CONTROL_REG, control);
res               320 drivers/rtc/rtc-ds1343.c 	if (res)
res               321 drivers/rtc/rtc-ds1343.c 		return res;
res               323 drivers/rtc/rtc-ds1343.c 	res = regmap_write(priv->map, DS1343_STATUS_REG, stat);
res               324 drivers/rtc/rtc-ds1343.c 	if (res)
res               325 drivers/rtc/rtc-ds1343.c 		return res;
res               336 drivers/rtc/rtc-ds1343.c 	res = regmap_bulk_write(priv->map, DS1343_ALM0_SEC_REG, buf, 4);
res               337 drivers/rtc/rtc-ds1343.c 	if (res)
res               338 drivers/rtc/rtc-ds1343.c 		return res;
res               342 drivers/rtc/rtc-ds1343.c 		res = regmap_write(priv->map, DS1343_CONTROL_REG, control);
res               345 drivers/rtc/rtc-ds1343.c 	return res;
res               351 drivers/rtc/rtc-ds1343.c 	int res = 0;
res               359 drivers/rtc/rtc-ds1343.c 	res = regmap_read(priv->map, DS1343_STATUS_REG, &stat);
res               360 drivers/rtc/rtc-ds1343.c 	if (res)
res               373 drivers/rtc/rtc-ds1343.c 	return res;
res               379 drivers/rtc/rtc-ds1343.c 	int res = 0;
res               394 drivers/rtc/rtc-ds1343.c 	res = ds1343_update_alarm(dev);
res               398 drivers/rtc/rtc-ds1343.c 	return res;
res               404 drivers/rtc/rtc-ds1343.c 	int res = 0;
res               416 drivers/rtc/rtc-ds1343.c 	res = ds1343_update_alarm(dev);
res               420 drivers/rtc/rtc-ds1343.c 	return res;
res               427 drivers/rtc/rtc-ds1343.c 	int res = 0;
res               431 drivers/rtc/rtc-ds1343.c 	res = regmap_read(priv->map, DS1343_STATUS_REG, &stat);
res               432 drivers/rtc/rtc-ds1343.c 	if (res)
res               439 drivers/rtc/rtc-ds1343.c 		res = regmap_read(priv->map, DS1343_CONTROL_REG, &control);
res               440 drivers/rtc/rtc-ds1343.c 		if (res)
res               469 drivers/rtc/rtc-ds1343.c 	int res;
res               491 drivers/rtc/rtc-ds1343.c 	res = spi_setup(spi);
res               492 drivers/rtc/rtc-ds1343.c 	if (res)
res               493 drivers/rtc/rtc-ds1343.c 		return res;
res               504 drivers/rtc/rtc-ds1343.c 	res = regmap_read(priv->map, DS1343_SECONDS_REG, &data);
res               505 drivers/rtc/rtc-ds1343.c 	if (res)
res               506 drivers/rtc/rtc-ds1343.c 		return res;
res               524 drivers/rtc/rtc-ds1343.c 	res = rtc_register_device(priv->rtc);
res               525 drivers/rtc/rtc-ds1343.c 	if (res)
res               526 drivers/rtc/rtc-ds1343.c 		return res;
res               534 drivers/rtc/rtc-ds1343.c 		res = devm_request_threaded_irq(&spi->dev, spi->irq, NULL,
res               537 drivers/rtc/rtc-ds1343.c 		if (res) {
res               547 drivers/rtc/rtc-ds1343.c 	res = ds1343_sysfs_register(&spi->dev);
res               548 drivers/rtc/rtc-ds1343.c 	if (res)
res               105 drivers/rtc/rtc-ds1347.c 	int res;
res               129 drivers/rtc/rtc-ds1347.c 	res = regmap_read(map, DS1347_SECONDS_REG, &data);
res               130 drivers/rtc/rtc-ds1347.c 	if (res)
res               131 drivers/rtc/rtc-ds1347.c 		return res;
res               185 drivers/rtc/rtc-ds1390.c 	int res;
res               197 drivers/rtc/rtc-ds1390.c 	res = ds1390_get_reg(&spi->dev, DS1390_REG_SECONDS, &tmp);
res               198 drivers/rtc/rtc-ds1390.c 	if (res != 0) {
res               200 drivers/rtc/rtc-ds1390.c 		return res;
res               210 drivers/rtc/rtc-ds1390.c 		res = PTR_ERR(chip->rtc);
res               213 drivers/rtc/rtc-ds1390.c 	return res;
res               417 drivers/rtc/rtc-ds1511.c 	struct resource *res;
res               434 drivers/rtc/rtc-ds1511.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               435 drivers/rtc/rtc-ds1511.c 	ds1511_base = devm_ioremap_resource(&pdev->dev, res);
res               252 drivers/rtc/rtc-ds1553.c 	struct resource *res;
res               271 drivers/rtc/rtc-ds1553.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               272 drivers/rtc/rtc-ds1553.c 	ioaddr = devm_ioremap_resource(&pdev->dev, res);
res              1043 drivers/rtc/rtc-ds1685.c 	struct resource *res;
res              1074 drivers/rtc/rtc-ds1685.c 		res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1075 drivers/rtc/rtc-ds1685.c 		if (!res)
res              1077 drivers/rtc/rtc-ds1685.c 		rtc->size = resource_size(res);
res              1081 drivers/rtc/rtc-ds1685.c 		if (!devm_request_mem_region(&pdev->dev, res->start, rtc->size,
res              1089 drivers/rtc/rtc-ds1685.c 		rtc->baseaddr = res->start;
res              1090 drivers/rtc/rtc-ds1685.c 		rtc->regs = devm_ioremap(&pdev->dev, res->start, rtc->size);
res               145 drivers/rtc/rtc-ds1742.c 	struct resource *res;
res               161 drivers/rtc/rtc-ds1742.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               162 drivers/rtc/rtc-ds1742.c 	ioaddr = devm_ioremap_resource(&pdev->dev, res);
res               167 drivers/rtc/rtc-ds1742.c 	pdata->ioaddr_rtc = ioaddr + resource_size(res) - RTC_SIZE;
res               169 drivers/rtc/rtc-ds1742.c 	nvmem_cfg.size = resource_size(res) - RTC_SIZE;
res               639 drivers/rtc/rtc-ds3232.c 	int res;
res               660 drivers/rtc/rtc-ds3232.c 	res = regmap_read(regmap, DS3232_REG_SECONDS, &tmp);
res               661 drivers/rtc/rtc-ds3232.c 	if (res)
res               662 drivers/rtc/rtc-ds3232.c 		return res;
res               678 drivers/rtc/rtc-ds3232.c 	res = regmap_read(regmap, DS3232_REG_CR, &tmp);
res               679 drivers/rtc/rtc-ds3232.c 	if (res)
res               680 drivers/rtc/rtc-ds3232.c 		return res;
res               681 drivers/rtc/rtc-ds3232.c 	res = regmap_write(regmap, DS3232_REG_CR, tmp & 0x1c);
res               682 drivers/rtc/rtc-ds3232.c 	if (res)
res               683 drivers/rtc/rtc-ds3232.c 		return res;
res               685 drivers/rtc/rtc-ds3232.c 	res = regmap_read(regmap, DS3232_REG_SR, &tmp);
res               686 drivers/rtc/rtc-ds3232.c 	if (res)
res               687 drivers/rtc/rtc-ds3232.c 		return res;
res               688 drivers/rtc/rtc-ds3232.c 	res = regmap_write(regmap, DS3232_REG_SR, tmp & 0x88);
res               689 drivers/rtc/rtc-ds3232.c 	if (res)
res               690 drivers/rtc/rtc-ds3232.c 		return res;
res               693 drivers/rtc/rtc-ds3232.c 	res = regmap_read(regmap, DS3232_REG_CR, &tmp);
res               694 drivers/rtc/rtc-ds3232.c 	if (res)
res               695 drivers/rtc/rtc-ds3232.c 		return res;
res               698 drivers/rtc/rtc-ds3232.c 	res = regmap_read(regmap, DS3232_REG_SR, &tmp);
res               699 drivers/rtc/rtc-ds3232.c 	if (res)
res               700 drivers/rtc/rtc-ds3232.c 		return res;
res               125 drivers/rtc/rtc-ep93xx.c 	struct resource *res;
res               132 drivers/rtc/rtc-ep93xx.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               133 drivers/rtc/rtc-ep93xx.c 	ep93xx_rtc->mmio_base = devm_ioremap_resource(&pdev->dev, res);
res               115 drivers/rtc/rtc-ftrtc010.c 	struct resource *res;
res               144 drivers/rtc/rtc-ftrtc010.c 	res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
res               145 drivers/rtc/rtc-ftrtc010.c 	if (!res)
res               148 drivers/rtc/rtc-ftrtc010.c 	rtc->rtc_irq = res->start;
res               150 drivers/rtc/rtc-ftrtc010.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               151 drivers/rtc/rtc-ftrtc010.c 	if (!res)
res               154 drivers/rtc/rtc-ftrtc010.c 	rtc->rtc_base = devm_ioremap(dev, res->start,
res               155 drivers/rtc/rtc-ftrtc010.c 				     resource_size(res));
res                66 drivers/rtc/rtc-imx-sc.c 	struct arm_smccc_res res;
res                73 drivers/rtc/rtc-imx-sc.c 		      0, 0, 0, &res);
res                75 drivers/rtc/rtc-imx-sc.c 	return res.a0;
res               197 drivers/rtc/rtc-lpc24xx.c 	struct resource *res;
res               204 drivers/rtc/rtc-lpc24xx.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               205 drivers/rtc/rtc-lpc24xx.c 	rtc->rtc_base = devm_ioremap_resource(&pdev->dev, res);
res               188 drivers/rtc/rtc-lpc32xx.c 	struct resource *res;
res               197 drivers/rtc/rtc-lpc32xx.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               198 drivers/rtc/rtc-lpc32xx.c 	rtc->rtc_base = devm_ioremap_resource(&pdev->dev, res);
res               173 drivers/rtc/rtc-m41t93.c 	int res;
res               178 drivers/rtc/rtc-m41t93.c 	res = spi_w8r8(spi, M41T93_REG_WDAY);
res               179 drivers/rtc/rtc-m41t93.c 	if (res < 0 || (res & 0xf8) != 0) {
res               180 drivers/rtc/rtc-m41t93.c 		dev_err(&spi->dev, "not found 0x%x.\n", res);
res               112 drivers/rtc/rtc-m41t94.c 	int res;
res               117 drivers/rtc/rtc-m41t94.c 	res = spi_w8r8(spi, M41T94_REG_SECONDS);
res               118 drivers/rtc/rtc-m41t94.c 	if (res < 0) {
res               120 drivers/rtc/rtc-m41t94.c 		return res;
res               141 drivers/rtc/rtc-m48t35.c 	struct resource *res;
res               144 drivers/rtc/rtc-m48t35.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               145 drivers/rtc/rtc-m48t35.c 	if (!res)
res               151 drivers/rtc/rtc-m48t35.c 	priv->size = resource_size(res);
res               157 drivers/rtc/rtc-m48t35.c 	if (!devm_request_mem_region(&pdev->dev, res->start, priv->size,
res               161 drivers/rtc/rtc-m48t35.c 	priv->baseaddr = res->start;
res               367 drivers/rtc/rtc-m48t59.c 	struct resource *res;
res               380 drivers/rtc/rtc-m48t59.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               381 drivers/rtc/rtc-m48t59.c 	if (!res) {
res               382 drivers/rtc/rtc-m48t59.c 		res = platform_get_resource(pdev, IORESOURCE_IO, 0);
res               383 drivers/rtc/rtc-m48t59.c 		if (!res)
res               387 drivers/rtc/rtc-m48t59.c 	if (res->flags & IORESOURCE_IO) {
res               393 drivers/rtc/rtc-m48t59.c 	} else if (res->flags & IORESOURCE_MEM) {
res               421 drivers/rtc/rtc-m48t59.c 		m48t59->ioaddr = devm_ioremap(&pdev->dev, res->start,
res               422 drivers/rtc/rtc-m48t59.c 						resource_size(res));
res               221 drivers/rtc/rtc-m48t86.c 	struct resource *res;
res               238 drivers/rtc/rtc-m48t86.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               239 drivers/rtc/rtc-m48t86.c 	if (!res)
res               241 drivers/rtc/rtc-m48t86.c 	info->index_reg = devm_ioremap_resource(&pdev->dev, res);
res               245 drivers/rtc/rtc-m48t86.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res               246 drivers/rtc/rtc-m48t86.c 	if (!res)
res               248 drivers/rtc/rtc-m48t86.c 	info->data_reg = devm_ioremap_resource(&pdev->dev, res);
res               123 drivers/rtc/rtc-max6902.c 	int res;
res               129 drivers/rtc/rtc-max6902.c 	res = max6902_get_reg(&spi->dev, MAX6902_REG_SECONDS, &tmp);
res               130 drivers/rtc/rtc-max6902.c 	if (res != 0)
res               131 drivers/rtc/rtc-max6902.c 		return res;
res               111 drivers/rtc/rtc-max6916.c 	int res;
res               119 drivers/rtc/rtc-max6916.c 	res = max6916_read_reg(&spi->dev, MAX6916_SECONDS_REG, &data);
res               120 drivers/rtc/rtc-max6916.c 	if (res)
res               121 drivers/rtc/rtc-max6916.c 		return res;
res               295 drivers/rtc/rtc-meson.c 	struct resource *res;
res               315 drivers/rtc/rtc-meson.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               316 drivers/rtc/rtc-meson.c 	base = devm_ioremap_resource(dev, res);
res               203 drivers/rtc/rtc-msm6242.c 	struct resource *res;
res               207 drivers/rtc/rtc-msm6242.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               208 drivers/rtc/rtc-msm6242.c 	if (!res)
res               215 drivers/rtc/rtc-msm6242.c 	priv->regs = devm_ioremap(&pdev->dev, res->start, resource_size(res));
res               324 drivers/rtc/rtc-mt6397.c 	struct resource *res;
res               333 drivers/rtc/rtc-mt6397.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               334 drivers/rtc/rtc-mt6397.c 	rtc->addr_base = res->start;
res               306 drivers/rtc/rtc-mt7622.c 	struct resource *res;
res               315 drivers/rtc/rtc-mt7622.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               316 drivers/rtc/rtc-mt7622.c 	hw->base = devm_ioremap_resource(&pdev->dev, res);
res               215 drivers/rtc/rtc-mv.c 	struct resource *res;
res               224 drivers/rtc/rtc-mv.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               225 drivers/rtc/rtc-mv.c 	pdata->ioaddr = devm_ioremap_resource(&pdev->dev, res);
res               730 drivers/rtc/rtc-omap.c 	struct resource	*res;
res               767 drivers/rtc/rtc-omap.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               768 drivers/rtc/rtc-omap.c 	rtc->base = devm_ioremap_resource(&pdev->dev, res);
res               301 drivers/rtc/rtc-pic32.c 	struct resource *res;
res               314 drivers/rtc/rtc-pic32.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               315 drivers/rtc/rtc-pic32.c 	pdata->reg_base = devm_ioremap_resource(&pdev->dev, res);
res               119 drivers/rtc/rtc-pl030.c 	rtc->base = ioremap(dev->res.start, resource_size(&dev->res));
res               336 drivers/rtc/rtc-pl031.c 	ldata->base = devm_ioremap(&adev->dev, adev->res.start,
res               337 drivers/rtc/rtc-pl031.c 				   resource_size(&adev->res));
res               182 drivers/rtc/rtc-puv3.c 	struct resource *res;
res               218 drivers/rtc/rtc-puv3.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               219 drivers/rtc/rtc-puv3.c 	if (res == NULL) {
res               224 drivers/rtc/rtc-puv3.c 	puv3_rtc_mem = request_mem_region(res->start, resource_size(res),
res               357 drivers/rtc/rtc-r7301.c 	struct resource *res;
res               363 drivers/rtc/rtc-r7301.c 	res = platform_get_resource(dev, IORESOURCE_MEM, 0);
res               364 drivers/rtc/rtc-r7301.c 	if (!res)
res               371 drivers/rtc/rtc-r7301.c 	regs = devm_ioremap_resource(&dev->dev, res);
res               124 drivers/rtc/rtc-r9701.c 	int res;
res               127 drivers/rtc/rtc-r9701.c 	res = read_regs(&spi->dev, &tmp, 1);
res               128 drivers/rtc/rtc-r9701.c 	if (res || tmp != 0x20) {
res               220 drivers/rtc/rtc-rp5c01.c 	struct resource *res;
res               233 drivers/rtc/rtc-rp5c01.c 	res = platform_get_resource(dev, IORESOURCE_MEM, 0);
res               234 drivers/rtc/rtc-rp5c01.c 	if (!res)
res               241 drivers/rtc/rtc-rp5c01.c 	priv->regs = devm_ioremap(&dev->dev, res->start, resource_size(res));
res               170 drivers/rtc/rtc-rtd119x.c 	struct resource *res;
res               181 drivers/rtc/rtc-rtd119x.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               182 drivers/rtc/rtc-rtd119x.c 	data->base = devm_ioremap_resource(&pdev->dev, res);
res               258 drivers/rtc/rtc-rx4581.c 	int res;
res               260 drivers/rtc/rtc-rx4581.c 	res = rx4581_get_reg(&spi->dev, RX4581_REG_SC, &tmp);
res               261 drivers/rtc/rtc-rx4581.c 	if (res != 0)
res               262 drivers/rtc/rtc-rx4581.c 		return res;
res               447 drivers/rtc/rtc-s3c.c 	struct resource *res;
res               478 drivers/rtc/rtc-s3c.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               479 drivers/rtc/rtc-s3c.c 	info->base = devm_ioremap_resource(&pdev->dev, res);
res                99 drivers/rtc/rtc-sh.c 	struct resource		*res;
res               471 drivers/rtc/rtc-sh.c 	struct resource *res;
res               492 drivers/rtc/rtc-sh.c 	res = platform_get_resource(pdev, IORESOURCE_IO, 0);
res               493 drivers/rtc/rtc-sh.c 	if (!res)
res               494 drivers/rtc/rtc-sh.c 		res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               495 drivers/rtc/rtc-sh.c 	if (unlikely(res == NULL)) {
res               500 drivers/rtc/rtc-sh.c 	rtc->regsize = resource_size(res);
res               502 drivers/rtc/rtc-sh.c 	rtc->res = devm_request_mem_region(&pdev->dev, res->start,
res               504 drivers/rtc/rtc-sh.c 	if (unlikely(!rtc->res))
res               507 drivers/rtc/rtc-sh.c 	rtc->regbase = devm_ioremap_nocache(&pdev->dev, rtc->res->start,
res               350 drivers/rtc/rtc-spear.c 	struct resource *res;
res               372 drivers/rtc/rtc-spear.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               373 drivers/rtc/rtc-spear.c 	config->ioaddr = devm_ioremap_resource(&pdev->dev, res);
res                44 drivers/rtc/rtc-st-lpc.c 	struct resource *res;
res               189 drivers/rtc/rtc-st-lpc.c 	struct resource *res;
res               213 drivers/rtc/rtc-st-lpc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               214 drivers/rtc/rtc-st-lpc.c 	rtc->ioaddr = devm_ioremap_resource(&pdev->dev, res);
res               259 drivers/rtc/rtc-stk17ta8.c 	struct resource *res;
res               278 drivers/rtc/rtc-stk17ta8.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               279 drivers/rtc/rtc-stk17ta8.c 	ioaddr = devm_ioremap_resource(&pdev->dev, res);
res               696 drivers/rtc/rtc-stm32.c 	struct resource *res;
res               703 drivers/rtc/rtc-stm32.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               704 drivers/rtc/rtc-stm32.c 	rtc->base = devm_ioremap_resource(&pdev->dev, res);
res               425 drivers/rtc/rtc-sunxi.c 	struct resource *res;
res               439 drivers/rtc/rtc-sunxi.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               440 drivers/rtc/rtc-sunxi.c 	chip->base = devm_ioremap_resource(&pdev->dev, res);
res               280 drivers/rtc/rtc-tegra.c 	struct resource *res;
res               287 drivers/rtc/rtc-tegra.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               288 drivers/rtc/rtc-tegra.c 	info->base = devm_ioremap_resource(&pdev->dev, res);
res               434 drivers/rtc/rtc-twl.c 	int res;
res               437 drivers/rtc/rtc-twl.c 	res = twl_rtc_read_u8(twl_rtc, &rd_reg, REG_RTC_STATUS_REG);
res               438 drivers/rtc/rtc-twl.c 	if (res)
res               451 drivers/rtc/rtc-twl.c 	res = twl_rtc_write_u8(twl_rtc, BIT_RTC_STATUS_REG_ALARM_M,
res               453 drivers/rtc/rtc-twl.c 	if (res)
res               468 drivers/rtc/rtc-twl.c 		res = twl_i2c_read_u8(TWL4030_MODULE_INT,
res               470 drivers/rtc/rtc-twl.c 		if (res)
res               239 drivers/rtc/rtc-tx4939.c 	struct resource *res;
res               256 drivers/rtc/rtc-tx4939.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               257 drivers/rtc/rtc-tx4939.c 	pdata->rtcreg = devm_ioremap_resource(&pdev->dev, res);
res               252 drivers/rtc/rtc-vr41xx.c 	struct resource *res;
res               259 drivers/rtc/rtc-vr41xx.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               260 drivers/rtc/rtc-vr41xx.c 	if (!res)
res               263 drivers/rtc/rtc-vr41xx.c 	rtc1_base = devm_ioremap(&pdev->dev, res->start, resource_size(res));
res               267 drivers/rtc/rtc-vr41xx.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res               268 drivers/rtc/rtc-vr41xx.c 	if (!res) {
res               273 drivers/rtc/rtc-vr41xx.c 	rtc2_base = devm_ioremap(&pdev->dev, res->start, resource_size(res));
res               203 drivers/rtc/rtc-vt8500.c 	struct resource	*res;
res               218 drivers/rtc/rtc-vt8500.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               219 drivers/rtc/rtc-vt8500.c 	vt8500_rtc->regbase = devm_ioremap_resource(&pdev->dev, res);
res               140 drivers/rtc/rtc-xgene.c 	struct resource *res;
res               150 drivers/rtc/rtc-xgene.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               151 drivers/rtc/rtc-xgene.c 	pdata->csr_base = devm_ioremap_resource(&pdev->dev, res);
res               198 drivers/rtc/rtc-zynqmp.c 	struct resource *res;
res               214 drivers/rtc/rtc-zynqmp.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               216 drivers/rtc/rtc-zynqmp.c 	xrtcdev->reg_base = devm_ioremap_resource(&pdev->dev, res);
res                24 drivers/s390/block/dasd_3990_erp.c 	unsigned short res;	   /* reserved */
res               250 drivers/s390/char/con3215.c 	int res;
res               257 drivers/s390/char/con3215.c 		res = ccw_device_start(raw->cdev, req->ccws,
res               259 drivers/s390/char/con3215.c 		if (res != 0) {
res               271 drivers/s390/char/con3215.c 		res = ccw_device_start(raw->cdev, req->ccws,
res               273 drivers/s390/char/con3215.c 		if (res != 0) {
res               416 drivers/s390/char/raw3270.c 		char  res;
res               119 drivers/s390/char/sclp.h 	sccb_mask_t res = 0;
res               121 drivers/s390/char/sclp.h 	memcpy(&res, masks + i * len, min(sizeof(res), len));
res               122 drivers/s390/char/sclp.h 	return res;
res               513 drivers/s390/char/vmur.c 	size_t len, copied, res;
res               534 drivers/s390/char/vmur.c 	res = (size_t) (*offs % PAGE_SIZE);
res               544 drivers/s390/char/vmur.c 		len = min(count - copied, PAGE_SIZE - res);
res               545 drivers/s390/char/vmur.c 		if (copy_to_user(ubuf + copied, buf + res, len)) {
res               549 drivers/s390/char/vmur.c 		res = 0;
res                51 drivers/s390/cio/chsc.h 	u64 res;
res               731 drivers/s390/cio/chsc_sch.c 		u32 res;
res               281 drivers/s390/net/qeth_core.h 			u8 res[12];
res                87 drivers/s390/scsi/zfcp_dbf.c 	rec->u.res.req_issued = req->issued;
res                88 drivers/s390/scsi/zfcp_dbf.c 	rec->u.res.prot_status = q_pref->prot_status;
res                89 drivers/s390/scsi/zfcp_dbf.c 	rec->u.res.fsf_status = q_head->fsf_status;
res                90 drivers/s390/scsi/zfcp_dbf.c 	rec->u.res.port_handle = q_head->port_handle;
res                91 drivers/s390/scsi/zfcp_dbf.c 	rec->u.res.lun_handle = q_head->lun_handle;
res                93 drivers/s390/scsi/zfcp_dbf.c 	memcpy(rec->u.res.prot_status_qual, &q_pref->prot_status_qual,
res                95 drivers/s390/scsi/zfcp_dbf.c 	memcpy(rec->u.res.fsf_status_qual, &q_head->fsf_status_qual,
res               197 drivers/s390/scsi/zfcp_dbf.h 		struct zfcp_dbf_hba_res res;
res              1062 drivers/scsi/a100u2w.c 	irqreturn_t res;
res              1065 drivers/scsi/a100u2w.c 	res = orc_interrupt(host);
res              1068 drivers/scsi/a100u2w.c 	return res;
res               183 drivers/scsi/a3000.c 	struct resource *res;
res               190 drivers/scsi/a3000.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               191 drivers/scsi/a3000.c 	if (!res)
res               194 drivers/scsi/a3000.c 	if (!request_mem_region(res->start, resource_size(res), "wd33c93"))
res               206 drivers/scsi/a3000.c 	regs = ZTWO_VADDR(res->start);
res               240 drivers/scsi/a3000.c 	release_mem_region(res->start, resource_size(res));
res               248 drivers/scsi/a3000.c 	struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               254 drivers/scsi/a3000.c 	release_mem_region(res->start, resource_size(res));
res                37 drivers/scsi/a4000t.c 	struct resource *res;
res                42 drivers/scsi/a4000t.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                43 drivers/scsi/a4000t.c 	if (!res)
res                46 drivers/scsi/a4000t.c 	if (!request_mem_region(res->start, resource_size(res),
res                57 drivers/scsi/a4000t.c 	scsi_addr = res->start + A4000T_SCSI_OFFSET;
res                94 drivers/scsi/a4000t.c 	release_mem_region(res->start, resource_size(res));
res               102 drivers/scsi/a4000t.c 	struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               108 drivers/scsi/a4000t.c 	release_mem_region(res->start, resource_size(res));
res               857 drivers/scsi/aacraid/linit.c 	int res;
res               861 drivers/scsi/aacraid/linit.c 		res = -1;
res               864 drivers/scsi/aacraid/linit.c 		res = 0;
res               868 drivers/scsi/aacraid/linit.c 		res = 0;
res               871 drivers/scsi/aacraid/linit.c 		res = -2;
res               876 drivers/scsi/aacraid/linit.c 	info->reset_state = res;
res               305 drivers/scsi/advansys.c 	uchar res;
res               318 drivers/scsi/advansys.c 	ushort res;
res               450 drivers/scsi/advansys.c 	uchar res;
res               291 drivers/scsi/aic94xx/aic94xx_dev.c 	int res = 0;
res               293 drivers/scsi/aic94xx/aic94xx_dev.c 	res = asd_init_target_ddb(dev);
res               294 drivers/scsi/aic94xx/aic94xx_dev.c 	if (res)
res               296 drivers/scsi/aic94xx/aic94xx_dev.c 	res = asd_init_sata_pm_table_ddb(dev);
res               297 drivers/scsi/aic94xx/aic94xx_dev.c 	if (res)
res               301 drivers/scsi/aic94xx/aic94xx_dev.c 	return res;
res               307 drivers/scsi/aic94xx/aic94xx_dev.c 	int res = 0;
res               313 drivers/scsi/aic94xx/aic94xx_dev.c 		res = asd_init_sata_pm_ddb(dev);
res               316 drivers/scsi/aic94xx/aic94xx_dev.c 		res = asd_init_sata_pm_port_ddb(dev);
res               320 drivers/scsi/aic94xx/aic94xx_dev.c 			res = asd_init_target_ddb(dev);
res               322 drivers/scsi/aic94xx/aic94xx_dev.c 			res = asd_init_initiator_ddb(dev);
res               326 drivers/scsi/aic94xx/aic94xx_dev.c 	return res;
res               329 drivers/scsi/aic94xx/aic94xx_init.c 	int res, i;
res               342 drivers/scsi/aic94xx/aic94xx_init.c 	res = sscanf(buf, "%s %s", cmd_ptr, filename_ptr);
res               343 drivers/scsi/aic94xx/aic94xx_init.c 	if (res != 2) {
res               892 drivers/scsi/aic94xx/aic94xx_scb.c 	int res = 1;
res               914 drivers/scsi/aic94xx/aic94xx_scb.c 	ascb = asd_ascb_alloc_list(asd_ha, &res, GFP_KERNEL);
res               919 drivers/scsi/aic94xx/aic94xx_scb.c 	res = asd_post_ascb_list(asd_ha, ascb , 1);
res               920 drivers/scsi/aic94xx/aic94xx_scb.c 	if (res)
res               923 drivers/scsi/aic94xx/aic94xx_scb.c 	return res;
res                43 drivers/scsi/aic94xx/aic94xx_task.c 	int num_sg, res;
res                76 drivers/scsi/aic94xx/aic94xx_task.c 			res = -ENOMEM;
res               113 drivers/scsi/aic94xx/aic94xx_task.c 	return res;
res               352 drivers/scsi/aic94xx/aic94xx_task.c 	int    res = 0;
res               401 drivers/scsi/aic94xx/aic94xx_task.c 		res = asd_map_scatterlist(task, scb->ata_task.sg_element,
res               404 drivers/scsi/aic94xx/aic94xx_task.c 	return res;
res               469 drivers/scsi/aic94xx/aic94xx_task.c 	int    res = 0;
res               501 drivers/scsi/aic94xx/aic94xx_task.c 	res = asd_map_scatterlist(task, scb->ssp_task.sg_element, gfp_flags);
res               503 drivers/scsi/aic94xx/aic94xx_task.c 	return res;
res               515 drivers/scsi/aic94xx/aic94xx_task.c 	int res = 0;
res               520 drivers/scsi/aic94xx/aic94xx_task.c 		res = -SAS_QUEUE_FULL;
res               525 drivers/scsi/aic94xx/aic94xx_task.c 	return res;
res               530 drivers/scsi/aic94xx/aic94xx_task.c 	int res = 0;
res               537 drivers/scsi/aic94xx/aic94xx_task.c 	res = asd_can_queue(asd_ha, 1);
res               538 drivers/scsi/aic94xx/aic94xx_task.c 	if (res)
res               539 drivers/scsi/aic94xx/aic94xx_task.c 		return res;
res               541 drivers/scsi/aic94xx/aic94xx_task.c 	res = 1;
res               542 drivers/scsi/aic94xx/aic94xx_task.c 	ascb = asd_ascb_alloc_list(asd_ha, &res, gfp_flags);
res               543 drivers/scsi/aic94xx/aic94xx_task.c 	if (res) {
res               544 drivers/scsi/aic94xx/aic94xx_task.c 		res = -ENOMEM;
res               562 drivers/scsi/aic94xx/aic94xx_task.c 			res = asd_build_ata_ascb(a, t, gfp_flags);
res               565 drivers/scsi/aic94xx/aic94xx_task.c 			res = asd_build_smp_ascb(a, t, gfp_flags);
res               568 drivers/scsi/aic94xx/aic94xx_task.c 			res = asd_build_ssp_ascb(a, t, gfp_flags);
res               573 drivers/scsi/aic94xx/aic94xx_task.c 			res = -ENOMEM;
res               576 drivers/scsi/aic94xx/aic94xx_task.c 		if (res)
res               585 drivers/scsi/aic94xx/aic94xx_task.c 	res = asd_post_ascb_list(asd_ha, ascb, 1);
res               586 drivers/scsi/aic94xx/aic94xx_task.c 	if (unlikely(res)) {
res               624 drivers/scsi/aic94xx/aic94xx_task.c 	return res;
res                22 drivers/scsi/aic94xx/aic94xx_tmf.c 	int res;
res                32 drivers/scsi/aic94xx/aic94xx_tmf.c 	res = asd_post_ascb_list(ascb->ha, ascb, 1);
res                33 drivers/scsi/aic94xx/aic94xx_tmf.c 	if (unlikely(res))
res                35 drivers/scsi/aic94xx/aic94xx_tmf.c 	return res;
res                84 drivers/scsi/aic94xx/aic94xx_tmf.c 	int res; \
res                89 drivers/scsi/aic94xx/aic94xx_tmf.c         res = 1;                \
res                90 drivers/scsi/aic94xx/aic94xx_tmf.c 	ascb = asd_ascb_alloc_list(asd_ha, &res, GFP_KERNEL); \
res               101 drivers/scsi/aic94xx/aic94xx_tmf.c 	res = asd_enqueue_internal(ascb, asd_clear_nexus_tasklet_complete, \
res               103 drivers/scsi/aic94xx/aic94xx_tmf.c 	if (res)                \
res               107 drivers/scsi/aic94xx/aic94xx_tmf.c 	res = tcs.dl_opcode; \
res               108 drivers/scsi/aic94xx/aic94xx_tmf.c 	if (res == TC_NO_ERROR) \
res               109 drivers/scsi/aic94xx/aic94xx_tmf.c 		res = TMF_RESP_FUNC_COMPLETE;   \
res               110 drivers/scsi/aic94xx/aic94xx_tmf.c 	return res; \
res               113 drivers/scsi/aic94xx/aic94xx_tmf.c 	return res
res               164 drivers/scsi/aic94xx/aic94xx_tmf.c 	int res, tmp_res, i;
res               175 drivers/scsi/aic94xx/aic94xx_tmf.c 	res = sas_phy_reset(phy, reset_type);
res               176 drivers/scsi/aic94xx/aic94xx_tmf.c 	if (res == TMF_RESP_FUNC_COMPLETE || res == -ENODEV) {
res               195 drivers/scsi/aic94xx/aic94xx_tmf.c 	res = TMF_RESP_FUNC_FAILED;
res               198 drivers/scsi/aic94xx/aic94xx_tmf.c 	return res;
res               271 drivers/scsi/aic94xx/aic94xx_tmf.c 	int res = TMF_RESP_FUNC_FAILED;
res               282 drivers/scsi/aic94xx/aic94xx_tmf.c 		return res;
res               289 drivers/scsi/aic94xx/aic94xx_tmf.c 	res = ru->status;
res               291 drivers/scsi/aic94xx/aic94xx_tmf.c 		res = ru->resp_data[3];
res               298 drivers/scsi/aic94xx/aic94xx_tmf.c 	return res;
res               326 drivers/scsi/aic94xx/aic94xx_tmf.c 	int res = TMF_RESP_FUNC_FAILED;
res               336 drivers/scsi/aic94xx/aic94xx_tmf.c 		res = asd_clear_nexus_tag(task);
res               338 drivers/scsi/aic94xx/aic94xx_tmf.c 		res = asd_clear_nexus_index(task);
res               345 drivers/scsi/aic94xx/aic94xx_tmf.c 		res = TMF_RESP_FUNC_FAILED;
res               347 drivers/scsi/aic94xx/aic94xx_tmf.c 		res = TMF_RESP_FUNC_COMPLETE;
res               350 drivers/scsi/aic94xx/aic94xx_tmf.c 	return res;
res               390 drivers/scsi/aic94xx/aic94xx_tmf.c 	int res = 1;
res               404 drivers/scsi/aic94xx/aic94xx_tmf.c 		res = TMF_RESP_FUNC_COMPLETE;
res               410 drivers/scsi/aic94xx/aic94xx_tmf.c 	ascb = asd_ascb_alloc_list(asd_ha, &res, GFP_KERNEL);
res               455 drivers/scsi/aic94xx/aic94xx_tmf.c 	res = asd_enqueue_internal(ascb, asd_tmf_tasklet_complete,
res               457 drivers/scsi/aic94xx/aic94xx_tmf.c 	if (res)
res               468 drivers/scsi/aic94xx/aic94xx_tmf.c 		res = TMF_RESP_FUNC_COMPLETE;
res               478 drivers/scsi/aic94xx/aic94xx_tmf.c 			res = asd_clear_nexus(task);
res               480 drivers/scsi/aic94xx/aic94xx_tmf.c 			res = tcs.tmf_state;
res               484 drivers/scsi/aic94xx/aic94xx_tmf.c 		res = TMF_RESP_FUNC_FAILED;
res               492 drivers/scsi/aic94xx/aic94xx_tmf.c 			res = asd_clear_nexus(task);
res               501 drivers/scsi/aic94xx/aic94xx_tmf.c 			res = TMF_RESP_INVALID_FRAME;
res               504 drivers/scsi/aic94xx/aic94xx_tmf.c 			res = TMF_RESP_FUNC_FAILED;
res               510 drivers/scsi/aic94xx/aic94xx_tmf.c 				res = TMF_RESP_FUNC_FAILED;
res               512 drivers/scsi/aic94xx/aic94xx_tmf.c 				res = TMF_RESP_FUNC_COMPLETE;
res               518 drivers/scsi/aic94xx/aic94xx_tmf.c 			res = TMF_RESP_FUNC_COMPLETE;
res               521 drivers/scsi/aic94xx/aic94xx_tmf.c 			res = TMF_RESP_FUNC_ESUPP;
res               527 drivers/scsi/aic94xx/aic94xx_tmf.c 	if (res == TMF_RESP_FUNC_COMPLETE) {
res               532 drivers/scsi/aic94xx/aic94xx_tmf.c 	ASD_DPRINTK("task 0x%p aborted, res: 0x%x\n", task, res);
res               533 drivers/scsi/aic94xx/aic94xx_tmf.c 	return res;
res               537 drivers/scsi/aic94xx/aic94xx_tmf.c 	ASD_DPRINTK("task 0x%p aborted, res: 0x%x\n", task, res);
res               538 drivers/scsi/aic94xx/aic94xx_tmf.c 	return res;
res               561 drivers/scsi/aic94xx/aic94xx_tmf.c 	int res = 1;
res               569 drivers/scsi/aic94xx/aic94xx_tmf.c 	ascb = asd_ascb_alloc_list(asd_ha, &res, GFP_KERNEL);
res               603 drivers/scsi/aic94xx/aic94xx_tmf.c 	res = asd_enqueue_internal(ascb, asd_tmf_tasklet_complete,
res               605 drivers/scsi/aic94xx/aic94xx_tmf.c 	if (res)
res               611 drivers/scsi/aic94xx/aic94xx_tmf.c 		res = TMF_RESP_FUNC_COMPLETE;
res               614 drivers/scsi/aic94xx/aic94xx_tmf.c 		res = TMF_RESP_INVALID_FRAME;
res               617 drivers/scsi/aic94xx/aic94xx_tmf.c 		res = TMF_RESP_FUNC_FAILED;
res               622 drivers/scsi/aic94xx/aic94xx_tmf.c 		res = TMF_RESP_FUNC_COMPLETE;
res               625 drivers/scsi/aic94xx/aic94xx_tmf.c 		res = TMF_RESP_FUNC_ESUPP;
res               629 drivers/scsi/aic94xx/aic94xx_tmf.c 		res = tcs.dl_opcode;
res               632 drivers/scsi/aic94xx/aic94xx_tmf.c 	return res;
res               635 drivers/scsi/aic94xx/aic94xx_tmf.c 	return res;
res               640 drivers/scsi/aic94xx/aic94xx_tmf.c 	int res = asd_initiate_ssp_tmf(dev, lun, TMF_ABORT_TASK_SET, 0);
res               642 drivers/scsi/aic94xx/aic94xx_tmf.c 	if (res == TMF_RESP_FUNC_COMPLETE)
res               644 drivers/scsi/aic94xx/aic94xx_tmf.c 	return res;
res               649 drivers/scsi/aic94xx/aic94xx_tmf.c 	int res = asd_initiate_ssp_tmf(dev, lun, TMF_CLEAR_ACA, 0);
res               651 drivers/scsi/aic94xx/aic94xx_tmf.c 	if (res == TMF_RESP_FUNC_COMPLETE)
res               653 drivers/scsi/aic94xx/aic94xx_tmf.c 	return res;
res               658 drivers/scsi/aic94xx/aic94xx_tmf.c 	int res = asd_initiate_ssp_tmf(dev, lun, TMF_CLEAR_TASK_SET, 0);
res               660 drivers/scsi/aic94xx/aic94xx_tmf.c 	if (res == TMF_RESP_FUNC_COMPLETE)
res               662 drivers/scsi/aic94xx/aic94xx_tmf.c 	return res;
res               667 drivers/scsi/aic94xx/aic94xx_tmf.c 	int res = asd_initiate_ssp_tmf(dev, lun, TMF_LU_RESET, 0);
res               669 drivers/scsi/aic94xx/aic94xx_tmf.c 	if (res == TMF_RESP_FUNC_COMPLETE)
res               671 drivers/scsi/aic94xx/aic94xx_tmf.c 	return res;
res              2554 drivers/scsi/arm/acornscsi.c 	enum res_abort res = res_not_running;
res              2566 drivers/scsi/arm/acornscsi.c 		res = res_success;
res              2578 drivers/scsi/arm/acornscsi.c 		res = res_success;
res              2600 drivers/scsi/arm/acornscsi.c 				res = res_success;
res              2612 drivers/scsi/arm/acornscsi.c 			res = res_success_clear;
res              2617 drivers/scsi/arm/acornscsi.c 			res = res_snooze;
res              2631 drivers/scsi/arm/acornscsi.c 		res = res_success_clear;
res              2635 drivers/scsi/arm/acornscsi.c 	return res;
res               516 drivers/scsi/arm/fas216.c 	enum { sync, async, none, reject } res = none;
res               533 drivers/scsi/arm/fas216.c 			res = async;
res               544 drivers/scsi/arm/fas216.c 			res = reject;
res               570 drivers/scsi/arm/fas216.c 			res = sync;
res               580 drivers/scsi/arm/fas216.c 			res = reject;
res               584 drivers/scsi/arm/fas216.c 				res = sync;
res               590 drivers/scsi/arm/fas216.c 	res = reject;
res               593 drivers/scsi/arm/fas216.c 	switch (res) {
res              2358 drivers/scsi/arm/fas216.c 	enum res_find res = res_failed;
res              2369 drivers/scsi/arm/fas216.c 		res = res_success;
res              2378 drivers/scsi/arm/fas216.c 		res = res_hw_abort;
res              2391 drivers/scsi/arm/fas216.c 				res = res_hw_abort;
res              2409 drivers/scsi/arm/fas216.c 		res = res_success;
res              2413 drivers/scsi/arm/fas216.c 	return res;
res              2481 drivers/scsi/arm/fas216.c 	int i, res = FAILED, target = SCpnt->device->id;
res              2538 drivers/scsi/arm/fas216.c 			res = SUCCESS;
res              2545 drivers/scsi/arm/fas216.c 		   res == SUCCESS ? "success" : "failed");
res              2547 drivers/scsi/arm/fas216.c 	return res;
res               637 drivers/scsi/bfa/bfa_fc.h 	u32 res:24;
res              4764 drivers/scsi/bfa/bfa_ioc.c 	struct bfa_diag_memtest_result *res = diag->result;
res              4776 drivers/scsi/bfa/bfa_ioc.c 		*((u32 *) res + i) =
res              4784 drivers/scsi/bfa/bfa_ioc.c 	res->status = swab32(res->status);
res              4785 drivers/scsi/bfa/bfa_ioc.c 	bfa_trc(diag, res->status);
res              4787 drivers/scsi/bfa/bfa_ioc.c 	if (res->status == BFI_BOOT_MEMTEST_RES_SIG)
res              4791 drivers/scsi/bfa/bfa_ioc.c 		res->addr = swab32(res->addr);
res              4792 drivers/scsi/bfa/bfa_ioc.c 		res->exp = swab32(res->exp);
res              4793 drivers/scsi/bfa/bfa_ioc.c 		res->act = swab32(res->act);
res              4794 drivers/scsi/bfa/bfa_ioc.c 		res->err_status = swab32(res->err_status);
res              4795 drivers/scsi/bfa/bfa_ioc.c 		res->err_status1 = swab32(res->err_status1);
res              4796 drivers/scsi/bfa/bfa_ioc.c 		res->err_addr = swab32(res->err_addr);
res              4797 drivers/scsi/bfa/bfa_ioc.c 		bfa_trc(diag, res->addr);
res              4798 drivers/scsi/bfa/bfa_ioc.c 		bfa_trc(diag, res->exp);
res              4799 drivers/scsi/bfa/bfa_ioc.c 		bfa_trc(diag, res->act);
res              4800 drivers/scsi/bfa/bfa_ioc.c 		bfa_trc(diag, res->err_status);
res              4801 drivers/scsi/bfa/bfa_ioc.c 		bfa_trc(diag, res->err_status1);
res              4802 drivers/scsi/bfa/bfa_ioc.c 		bfa_trc(diag, res->err_addr);
res              5752 drivers/scsi/bfa/bfa_svc.c 	struct bfa_diag_qtest_result_s *res = fcdiag->qtest.result;
res              5759 drivers/scsi/bfa/bfa_svc.c 	res->status = BFA_STATUS_ETIMER;
res              5760 drivers/scsi/bfa/bfa_svc.c 	res->count  = QTEST_CNT_DEFAULT - fcdiag->qtest.count;
res              5762 drivers/scsi/bfa/bfa_svc.c 		res->queue  = fcdiag->qtest.all;
res              5797 drivers/scsi/bfa/bfa_svc.c 	struct bfa_diag_qtest_result_s *res = fcdiag->qtest.result;
res              5813 drivers/scsi/bfa/bfa_svc.c 			res->status = BFA_STATUS_DATACORRUPTED;
res              5818 drivers/scsi/bfa/bfa_svc.c 	if (res->status == BFA_STATUS_OK) {
res              5824 drivers/scsi/bfa/bfa_svc.c 				res->status = status;
res              5833 drivers/scsi/bfa/bfa_svc.c 				res->status = status;
res              5842 drivers/scsi/bfa/bfa_svc.c 	res->queue = fcdiag->qtest.queue;
res              5843 drivers/scsi/bfa/bfa_svc.c 	res->count = QTEST_CNT_DEFAULT - fcdiag->qtest.count;
res              5844 drivers/scsi/bfa/bfa_svc.c 	bfa_trc(fcdiag, res->count);
res              5845 drivers/scsi/bfa/bfa_svc.c 	bfa_trc(fcdiag, res->status);
res              5846 drivers/scsi/bfa/bfa_svc.c 	fcdiag->qtest.status = res->status;
res              5855 drivers/scsi/bfa/bfa_svc.c 	struct bfa_diag_loopback_result_s *res = fcdiag->lb.result;
res              5857 drivers/scsi/bfa/bfa_svc.c 	res->numtxmfrm  = be32_to_cpu(rsp->res.numtxmfrm);
res              5858 drivers/scsi/bfa/bfa_svc.c 	res->numosffrm  = be32_to_cpu(rsp->res.numosffrm);
res              5859 drivers/scsi/bfa/bfa_svc.c 	res->numrcvfrm  = be32_to_cpu(rsp->res.numrcvfrm);
res              5860 drivers/scsi/bfa/bfa_svc.c 	res->badfrminf  = be32_to_cpu(rsp->res.badfrminf);
res              5861 drivers/scsi/bfa/bfa_svc.c 	res->badfrmnum  = be32_to_cpu(rsp->res.badfrmnum);
res              5862 drivers/scsi/bfa/bfa_svc.c 	res->status     = rsp->res.status;
res              5863 drivers/scsi/bfa/bfa_svc.c 	fcdiag->lb.status = rsp->res.status;
res              1031 drivers/scsi/bfa/bfi.h 	struct bfa_diag_loopback_result_s res; /* 16 bytes */
res              2398 drivers/scsi/cxlflash/main.c int cxlflash_afu_sync(struct afu *afu, ctx_hndl_t ctx, res_hndl_t res, u8 mode)
res              2405 drivers/scsi/cxlflash/main.c 		__func__, afu, ctx, res, mode);
res              2414 drivers/scsi/cxlflash/main.c 	put_unaligned_be32(res, &rcb.cdb[4]);
res               240 drivers/scsi/device_handler/scsi_dh_emc.c 	int err, res = SCSI_DH_OK, len;
res               271 drivers/scsi/device_handler/scsi_dh_emc.c 			res = trespass_endio(sdev, &sshdr);
res               276 drivers/scsi/device_handler/scsi_dh_emc.c 			res = SCSI_DH_IO;
res               280 drivers/scsi/device_handler/scsi_dh_emc.c 	return res;
res                85 drivers/scsi/device_handler/scsi_dh_hp_sw.c 	int ret = SCSI_DH_OK, res;
res                90 drivers/scsi/device_handler/scsi_dh_hp_sw.c 	res = scsi_execute(sdev, cmd, DMA_NONE, NULL, 0, NULL, &sshdr,
res                92 drivers/scsi/device_handler/scsi_dh_hp_sw.c 	if (res) {
res                98 drivers/scsi/device_handler/scsi_dh_hp_sw.c 				    HP_SW_NAME, res);
res               122 drivers/scsi/device_handler/scsi_dh_hp_sw.c 	int res, rc = SCSI_DH_OK;
res               128 drivers/scsi/device_handler/scsi_dh_hp_sw.c 	res = scsi_execute(sdev, cmd, DMA_NONE, NULL, 0, NULL, &sshdr,
res               130 drivers/scsi/device_handler/scsi_dh_hp_sw.c 	if (res) {
res              3362 drivers/scsi/dpt_i2o.c 	u32 *res = (u32 *)resblk_va;
res              3380 drivers/scsi/dpt_i2o.c 	if (res[1]&0x00FF0000) { 	/* BlockStatus != SUCCESS */
res              3386 drivers/scsi/dpt_i2o.c 			res[1]>>24, (res[1]>>16)&0xFF, res[1]&0xFFFF);
res              3387 drivers/scsi/dpt_i2o.c 		return -((res[1] >> 16) & 0xFF); /* -BlockStatus */
res              3390 drivers/scsi/dpt_i2o.c 	return 4 + ((res[1] & 0x0000FFFF) << 2); /* bytes used in resblk */
res                57 drivers/scsi/fnic/vnic_dev.c 	struct vnic_res res[RES_TYPE_MAX];
res               154 drivers/scsi/fnic/vnic_dev.c 		vdev->res[type].count = count;
res               155 drivers/scsi/fnic/vnic_dev.c 		vdev->res[type].vaddr = (char __iomem *)bar->vaddr + bar_offset;
res               164 drivers/scsi/fnic/vnic_dev.c 	return vdev->res[type].count;
res               170 drivers/scsi/fnic/vnic_dev.c 	if (!vdev->res[type].vaddr)
res               178 drivers/scsi/fnic/vnic_dev.c 		return (char __iomem *)vdev->res[type].vaddr +
res               181 drivers/scsi/fnic/vnic_dev.c 		return (char __iomem *)vdev->res[type].vaddr;
res              3518 drivers/scsi/gdth.c     gdth_ioctl_reset res;
res              3523 drivers/scsi/gdth.c     if (copy_from_user(&res, arg, sizeof(gdth_ioctl_reset)) ||
res              3524 drivers/scsi/gdth.c         res.number >= MAX_HDRIVES)
res              3526 drivers/scsi/gdth.c     ha = gdth_find_ha(res.ionode);
res              3530 drivers/scsi/gdth.c     if (!ha->hdr[res.number].present)
res              3536 drivers/scsi/gdth.c         cmd.u.cache64.DeviceNo = res.number;
res              3538 drivers/scsi/gdth.c         cmd.u.cache.DeviceNo = res.number;
res              3543 drivers/scsi/gdth.c     res.status = rval;
res              3545 drivers/scsi/gdth.c     if (copy_to_user(arg, &res, sizeof(gdth_ioctl_reset)))
res              3989 drivers/scsi/gdth.c         gdth_ioctl_reset res;
res              3992 drivers/scsi/gdth.c         if (copy_from_user(&res, argp, sizeof(gdth_ioctl_reset)) ||
res              3993 drivers/scsi/gdth.c             (NULL == (ha = gdth_find_ha(res.ionode))))
res              4001 drivers/scsi/gdth.c         scp->device->channel = res.number;
res              4003 drivers/scsi/gdth.c         res.status = (rval == SUCCESS ? S_OK : S_GENERR);
res              4006 drivers/scsi/gdth.c         if (copy_to_user(argp, &res, sizeof(gdth_ioctl_reset)))
res               366 drivers/scsi/gdth.h     u8      res[2];
res               415 drivers/scsi/gdth.h         u8  res[2];
res               498 drivers/scsi/gdth.h     u8      res[3];
res              1189 drivers/scsi/hisi_sas/hisi_sas_main.c 	int res, retry;
res              1211 drivers/scsi/hisi_sas/hisi_sas_main.c 		res = hisi_sas_task_exec(task, GFP_KERNEL, 1, tmf);
res              1213 drivers/scsi/hisi_sas/hisi_sas_main.c 		if (res) {
res              1216 drivers/scsi/hisi_sas/hisi_sas_main.c 				res);
res              1221 drivers/scsi/hisi_sas/hisi_sas_main.c 		res = TMF_RESP_FUNC_FAILED;
res              1246 drivers/scsi/hisi_sas/hisi_sas_main.c 			res = TMF_RESP_FUNC_COMPLETE;
res              1252 drivers/scsi/hisi_sas/hisi_sas_main.c 			res = TMF_RESP_FUNC_SUCC;
res              1265 drivers/scsi/hisi_sas/hisi_sas_main.c 			res = task->task_status.residual;
res              1272 drivers/scsi/hisi_sas/hisi_sas_main.c 			res = -EMSGSIZE;
res              1279 drivers/scsi/hisi_sas/hisi_sas_main.c 			res = -EIO;
res              1293 drivers/scsi/hisi_sas/hisi_sas_main.c 	return res;
res              2030 drivers/scsi/hisi_sas/hisi_sas_main.c 	int res;
res              2052 drivers/scsi/hisi_sas/hisi_sas_main.c 	res = hisi_sas_internal_abort_task_exec(hisi_hba, sas_dev->device_id,
res              2054 drivers/scsi/hisi_sas/hisi_sas_main.c 	if (res) {
res              2057 drivers/scsi/hisi_sas/hisi_sas_main.c 			res);
res              2061 drivers/scsi/hisi_sas/hisi_sas_main.c 	res = TMF_RESP_FUNC_FAILED;
res              2083 drivers/scsi/hisi_sas/hisi_sas_main.c 			res = -EIO;
res              2091 drivers/scsi/hisi_sas/hisi_sas_main.c 		res = TMF_RESP_FUNC_COMPLETE;
res              2097 drivers/scsi/hisi_sas/hisi_sas_main.c 		res = TMF_RESP_FUNC_SUCC;
res              2108 drivers/scsi/hisi_sas/hisi_sas_main.c 	return res;
res              2553 drivers/scsi/hisi_sas/hisi_sas_main.c 	struct resource *res;
res              2591 drivers/scsi/hisi_sas/hisi_sas_main.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res              2592 drivers/scsi/hisi_sas/hisi_sas_main.c 	if (res) {
res              2593 drivers/scsi/hisi_sas/hisi_sas_main.c 		hisi_hba->sgpio_regs = devm_ioremap_resource(dev, res);
res              1329 drivers/scsi/hisi_sas/hisi_sas_v1_hw.c 	irqreturn_t res = IRQ_HANDLED;
res              1336 drivers/scsi/hisi_sas/hisi_sas_v1_hw.c 		res = IRQ_NONE;
res              1351 drivers/scsi/hisi_sas/hisi_sas_v1_hw.c 		res = IRQ_NONE;
res              1403 drivers/scsi/hisi_sas/hisi_sas_v1_hw.c 	return res;
res              1415 drivers/scsi/hisi_sas/hisi_sas_v1_hw.c 	irqreturn_t res = IRQ_HANDLED;
res              1422 drivers/scsi/hisi_sas/hisi_sas_v1_hw.c 		res = IRQ_NONE;
res              1433 drivers/scsi/hisi_sas/hisi_sas_v1_hw.c 	return res;
res              2634 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c 	int i, res = IRQ_HANDLED;
res              2666 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c 		res = IRQ_NONE;
res              2708 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c 	return res;
res              2759 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c 	irqreturn_t res = IRQ_NONE;
res              2775 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c 					res = IRQ_HANDLED;
res              2782 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c 					res = IRQ_HANDLED;
res              2793 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c 						res = IRQ_HANDLED;
res              2798 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c 						res = IRQ_HANDLED;
res              2811 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c 	return res;
res              3201 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c 	irqreturn_t res = IRQ_HANDLED;
res              3223 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c 		res = IRQ_NONE;
res              3232 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c 		res = IRQ_NONE;
res              3252 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c 		res = IRQ_NONE;
res              3289 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c 	return res;
res              1438 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c 	irqreturn_t res;
res              1455 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c 		res = IRQ_NONE;
res              1478 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c 			res = IRQ_NONE;
res              1524 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c 	res = IRQ_HANDLED;
res              1536 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c 	return res;
res              1590 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c 	irqreturn_t res = IRQ_NONE;
res              1606 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c 						res = IRQ_HANDLED;
res              1611 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c 						res = IRQ_HANDLED;
res              1617 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c 						res = IRQ_HANDLED;
res              1624 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c 	return res;
res                92 drivers/scsi/imm.c 	int res = 1;
res                96 drivers/scsi/imm.c 		res = 0;
res                98 drivers/scsi/imm.c 	dev->wanted = res;
res               100 drivers/scsi/imm.c 	return res;
res              1153 drivers/scsi/ipr.c static void ipr_update_ata_class(struct ipr_resource_entry *res, unsigned int proto)
res              1158 drivers/scsi/ipr.c 		res->ata_class = ATA_DEV_ATA;
res              1162 drivers/scsi/ipr.c 		res->ata_class = ATA_DEV_ATAPI;
res              1165 drivers/scsi/ipr.c 		res->ata_class = ATA_DEV_UNKNOWN;
res              1178 drivers/scsi/ipr.c static void ipr_init_res_entry(struct ipr_resource_entry *res,
res              1183 drivers/scsi/ipr.c 	struct ipr_ioa_cfg *ioa_cfg = res->ioa_cfg;
res              1186 drivers/scsi/ipr.c 	res->needs_sync_complete = 0;
res              1187 drivers/scsi/ipr.c 	res->in_erp = 0;
res              1188 drivers/scsi/ipr.c 	res->add_to_ml = 0;
res              1189 drivers/scsi/ipr.c 	res->del_from_ml = 0;
res              1190 drivers/scsi/ipr.c 	res->resetting_device = 0;
res              1191 drivers/scsi/ipr.c 	res->reset_occurred = 0;
res              1192 drivers/scsi/ipr.c 	res->sdev = NULL;
res              1193 drivers/scsi/ipr.c 	res->sata_port = NULL;
res              1197 drivers/scsi/ipr.c 		res->flags = be16_to_cpu(cfgtew->u.cfgte64->flags);
res              1198 drivers/scsi/ipr.c 		res->res_flags = be16_to_cpu(cfgtew->u.cfgte64->res_flags);
res              1199 drivers/scsi/ipr.c 		res->qmodel = IPR_QUEUEING_MODEL64(res);
res              1200 drivers/scsi/ipr.c 		res->type = cfgtew->u.cfgte64->res_type;
res              1202 drivers/scsi/ipr.c 		memcpy(res->res_path, &cfgtew->u.cfgte64->res_path,
res              1203 drivers/scsi/ipr.c 			sizeof(res->res_path));
res              1205 drivers/scsi/ipr.c 		res->bus = 0;
res              1206 drivers/scsi/ipr.c 		memcpy(&res->dev_lun.scsi_lun, &cfgtew->u.cfgte64->lun,
res              1207 drivers/scsi/ipr.c 			sizeof(res->dev_lun.scsi_lun));
res              1208 drivers/scsi/ipr.c 		res->lun = scsilun_to_int(&res->dev_lun);
res              1210 drivers/scsi/ipr.c 		if (res->type == IPR_RES_TYPE_GENERIC_SCSI) {
res              1214 drivers/scsi/ipr.c 					res->target = gscsi_res->target;
res              1219 drivers/scsi/ipr.c 				res->target = find_first_zero_bit(ioa_cfg->target_ids,
res              1221 drivers/scsi/ipr.c 				set_bit(res->target, ioa_cfg->target_ids);
res              1223 drivers/scsi/ipr.c 		} else if (res->type == IPR_RES_TYPE_IOAFP) {
res              1224 drivers/scsi/ipr.c 			res->bus = IPR_IOAFP_VIRTUAL_BUS;
res              1225 drivers/scsi/ipr.c 			res->target = 0;
res              1226 drivers/scsi/ipr.c 		} else if (res->type == IPR_RES_TYPE_ARRAY) {
res              1227 drivers/scsi/ipr.c 			res->bus = IPR_ARRAY_VIRTUAL_BUS;
res              1228 drivers/scsi/ipr.c 			res->target = find_first_zero_bit(ioa_cfg->array_ids,
res              1230 drivers/scsi/ipr.c 			set_bit(res->target, ioa_cfg->array_ids);
res              1231 drivers/scsi/ipr.c 		} else if (res->type == IPR_RES_TYPE_VOLUME_SET) {
res              1232 drivers/scsi/ipr.c 			res->bus = IPR_VSET_VIRTUAL_BUS;
res              1233 drivers/scsi/ipr.c 			res->target = find_first_zero_bit(ioa_cfg->vset_ids,
res              1235 drivers/scsi/ipr.c 			set_bit(res->target, ioa_cfg->vset_ids);
res              1237 drivers/scsi/ipr.c 			res->target = find_first_zero_bit(ioa_cfg->target_ids,
res              1239 drivers/scsi/ipr.c 			set_bit(res->target, ioa_cfg->target_ids);
res              1243 drivers/scsi/ipr.c 		res->qmodel = IPR_QUEUEING_MODEL(res);
res              1244 drivers/scsi/ipr.c 		res->flags = cfgtew->u.cfgte->flags;
res              1245 drivers/scsi/ipr.c 		if (res->flags & IPR_IS_IOA_RESOURCE)
res              1246 drivers/scsi/ipr.c 			res->type = IPR_RES_TYPE_IOAFP;
res              1248 drivers/scsi/ipr.c 			res->type = cfgtew->u.cfgte->rsvd_subtype & 0x0f;
res              1250 drivers/scsi/ipr.c 		res->bus = cfgtew->u.cfgte->res_addr.bus;
res              1251 drivers/scsi/ipr.c 		res->target = cfgtew->u.cfgte->res_addr.target;
res              1252 drivers/scsi/ipr.c 		res->lun = cfgtew->u.cfgte->res_addr.lun;
res              1253 drivers/scsi/ipr.c 		res->lun_wwn = get_unaligned_be64(cfgtew->u.cfgte->lun_wwn);
res              1256 drivers/scsi/ipr.c 	ipr_update_ata_class(res, proto);
res              1267 drivers/scsi/ipr.c static int ipr_is_same_device(struct ipr_resource_entry *res,
res              1270 drivers/scsi/ipr.c 	if (res->ioa_cfg->sis64) {
res              1271 drivers/scsi/ipr.c 		if (!memcmp(&res->dev_id, &cfgtew->u.cfgte64->dev_id,
res              1273 drivers/scsi/ipr.c 			!memcmp(&res->dev_lun.scsi_lun, &cfgtew->u.cfgte64->lun,
res              1278 drivers/scsi/ipr.c 		if (res->bus == cfgtew->u.cfgte->res_addr.bus &&
res              1279 drivers/scsi/ipr.c 		    res->target == cfgtew->u.cfgte->res_addr.target &&
res              1280 drivers/scsi/ipr.c 		    res->lun == cfgtew->u.cfgte->res_addr.lun)
res              1338 drivers/scsi/ipr.c static void ipr_update_res_entry(struct ipr_resource_entry *res,
res              1345 drivers/scsi/ipr.c 	if (res->ioa_cfg->sis64) {
res              1346 drivers/scsi/ipr.c 		res->flags = be16_to_cpu(cfgtew->u.cfgte64->flags);
res              1347 drivers/scsi/ipr.c 		res->res_flags = be16_to_cpu(cfgtew->u.cfgte64->res_flags);
res              1348 drivers/scsi/ipr.c 		res->type = cfgtew->u.cfgte64->res_type;
res              1350 drivers/scsi/ipr.c 		memcpy(&res->std_inq_data, &cfgtew->u.cfgte64->std_inq_data,
res              1353 drivers/scsi/ipr.c 		res->qmodel = IPR_QUEUEING_MODEL64(res);
res              1355 drivers/scsi/ipr.c 		res->res_handle = cfgtew->u.cfgte64->res_handle;
res              1356 drivers/scsi/ipr.c 		res->dev_id = cfgtew->u.cfgte64->dev_id;
res              1358 drivers/scsi/ipr.c 		memcpy(&res->dev_lun.scsi_lun, &cfgtew->u.cfgte64->lun,
res              1359 drivers/scsi/ipr.c 			sizeof(res->dev_lun.scsi_lun));
res              1361 drivers/scsi/ipr.c 		if (memcmp(res->res_path, &cfgtew->u.cfgte64->res_path,
res              1362 drivers/scsi/ipr.c 					sizeof(res->res_path))) {
res              1363 drivers/scsi/ipr.c 			memcpy(res->res_path, &cfgtew->u.cfgte64->res_path,
res              1364 drivers/scsi/ipr.c 				sizeof(res->res_path));
res              1368 drivers/scsi/ipr.c 		if (res->sdev && new_path)
res              1369 drivers/scsi/ipr.c 			sdev_printk(KERN_INFO, res->sdev, "Resource path: %s\n",
res              1370 drivers/scsi/ipr.c 				    ipr_format_res_path(res->ioa_cfg,
res              1371 drivers/scsi/ipr.c 					res->res_path, buffer, sizeof(buffer)));
res              1373 drivers/scsi/ipr.c 		res->flags = cfgtew->u.cfgte->flags;
res              1374 drivers/scsi/ipr.c 		if (res->flags & IPR_IS_IOA_RESOURCE)
res              1375 drivers/scsi/ipr.c 			res->type = IPR_RES_TYPE_IOAFP;
res              1377 drivers/scsi/ipr.c 			res->type = cfgtew->u.cfgte->rsvd_subtype & 0x0f;
res              1379 drivers/scsi/ipr.c 		memcpy(&res->std_inq_data, &cfgtew->u.cfgte->std_inq_data,
res              1382 drivers/scsi/ipr.c 		res->qmodel = IPR_QUEUEING_MODEL(res);
res              1384 drivers/scsi/ipr.c 		res->res_handle = cfgtew->u.cfgte->res_handle;
res              1387 drivers/scsi/ipr.c 	ipr_update_ata_class(res, proto);
res              1399 drivers/scsi/ipr.c static void ipr_clear_res_target(struct ipr_resource_entry *res)
res              1402 drivers/scsi/ipr.c 	struct ipr_ioa_cfg *ioa_cfg = res->ioa_cfg;
res              1407 drivers/scsi/ipr.c 	if (res->bus == IPR_ARRAY_VIRTUAL_BUS)
res              1408 drivers/scsi/ipr.c 		clear_bit(res->target, ioa_cfg->array_ids);
res              1409 drivers/scsi/ipr.c 	else if (res->bus == IPR_VSET_VIRTUAL_BUS)
res              1410 drivers/scsi/ipr.c 		clear_bit(res->target, ioa_cfg->vset_ids);
res              1411 drivers/scsi/ipr.c 	else if (res->bus == 0 && res->type == IPR_RES_TYPE_GENERIC_SCSI) {
res              1413 drivers/scsi/ipr.c 			if (gscsi_res->dev_id == res->dev_id && gscsi_res != res)
res              1415 drivers/scsi/ipr.c 		clear_bit(res->target, ioa_cfg->target_ids);
res              1417 drivers/scsi/ipr.c 	} else if (res->bus == 0)
res              1418 drivers/scsi/ipr.c 		clear_bit(res->target, ioa_cfg->target_ids);
res              1432 drivers/scsi/ipr.c 	struct ipr_resource_entry *res = NULL;
res              1446 drivers/scsi/ipr.c 	list_for_each_entry(res, &ioa_cfg->used_res_q, queue) {
res              1447 drivers/scsi/ipr.c 		if (res->res_handle == cc_res_handle) {
res              1461 drivers/scsi/ipr.c 		res = list_entry(ioa_cfg->free_res_q.next,
res              1464 drivers/scsi/ipr.c 		list_del(&res->queue);
res              1465 drivers/scsi/ipr.c 		ipr_init_res_entry(res, &cfgtew);
res              1466 drivers/scsi/ipr.c 		list_add_tail(&res->queue, &ioa_cfg->used_res_q);
res              1469 drivers/scsi/ipr.c 	ipr_update_res_entry(res, &cfgtew);
res              1472 drivers/scsi/ipr.c 		if (res->sdev) {
res              1473 drivers/scsi/ipr.c 			res->del_from_ml = 1;
res              1474 drivers/scsi/ipr.c 			res->res_handle = IPR_INVALID_RES_HANDLE;
res              1477 drivers/scsi/ipr.c 			ipr_clear_res_target(res);
res              1478 drivers/scsi/ipr.c 			list_move_tail(&res->queue, &ioa_cfg->free_res_q);
res              1480 drivers/scsi/ipr.c 	} else if (!res->sdev || res->del_from_ml) {
res              1481 drivers/scsi/ipr.c 		res->add_to_ml = 1;
res              2745 drivers/scsi/ipr.c ipr_find_ses_entry(struct ipr_resource_entry *res)
res              2754 drivers/scsi/ipr.c 				vpids = &res->std_inq_data.vpids;
res              2784 drivers/scsi/ipr.c 	struct ipr_resource_entry *res;
res              2789 drivers/scsi/ipr.c 	list_for_each_entry(res, &ioa_cfg->used_res_q, queue) {
res              2790 drivers/scsi/ipr.c 		if (!(IPR_IS_SES_DEVICE(res->std_inq_data)))
res              2793 drivers/scsi/ipr.c 		if (bus != res->bus)
res              2796 drivers/scsi/ipr.c 		if (!(ste = ipr_find_ses_entry(res)))
res              3327 drivers/scsi/ipr.c 	struct ipr_resource_entry *res;
res              3345 drivers/scsi/ipr.c 		list_for_each_entry(res, &ioa_cfg->used_res_q, queue) {
res              3346 drivers/scsi/ipr.c 			if (res->del_from_ml && res->sdev) {
res              3348 drivers/scsi/ipr.c 				sdev = res->sdev;
res              3350 drivers/scsi/ipr.c 					if (!res->add_to_ml)
res              3351 drivers/scsi/ipr.c 						list_move_tail(&res->queue, &ioa_cfg->free_res_q);
res              3353 drivers/scsi/ipr.c 						res->del_from_ml = 0;
res              3364 drivers/scsi/ipr.c 	list_for_each_entry(res, &ioa_cfg->used_res_q, queue) {
res              3365 drivers/scsi/ipr.c 		if (res->add_to_ml) {
res              3366 drivers/scsi/ipr.c 			bus = res->bus;
res              3367 drivers/scsi/ipr.c 			target = res->target;
res              3368 drivers/scsi/ipr.c 			lun = res->lun;
res              3369 drivers/scsi/ipr.c 			res->add_to_ml = 0;
res              4491 drivers/scsi/ipr.c 	struct ipr_resource_entry *res;
res              4495 drivers/scsi/ipr.c 	res = (struct ipr_resource_entry *)sdev->hostdata;
res              4497 drivers/scsi/ipr.c 	if (res && ipr_is_gata(res) && qdepth > IPR_MAX_CMD_PER_ATA_LUN)
res              4518 drivers/scsi/ipr.c 	struct ipr_resource_entry *res;
res              4523 drivers/scsi/ipr.c 	res = (struct ipr_resource_entry *)sdev->hostdata;
res              4524 drivers/scsi/ipr.c 	if (res)
res              4525 drivers/scsi/ipr.c 		len = snprintf(buf, PAGE_SIZE, "%08X\n", res->res_handle);
res              4552 drivers/scsi/ipr.c 	struct ipr_resource_entry *res;
res              4558 drivers/scsi/ipr.c 	res = (struct ipr_resource_entry *)sdev->hostdata;
res              4559 drivers/scsi/ipr.c 	if (res && ioa_cfg->sis64)
res              4561 drivers/scsi/ipr.c 			       __ipr_format_res_path(res->res_path, buffer,
res              4563 drivers/scsi/ipr.c 	else if (res)
res              4565 drivers/scsi/ipr.c 			       res->bus, res->target, res->lun);
res              4592 drivers/scsi/ipr.c 	struct ipr_resource_entry *res;
res              4597 drivers/scsi/ipr.c 	res = (struct ipr_resource_entry *)sdev->hostdata;
res              4598 drivers/scsi/ipr.c 	if (res && ioa_cfg->sis64)
res              4599 drivers/scsi/ipr.c 		len = snprintf(buf, PAGE_SIZE, "0x%llx\n", be64_to_cpu(res->dev_id));
res              4600 drivers/scsi/ipr.c 	else if (res)
res              4601 drivers/scsi/ipr.c 		len = snprintf(buf, PAGE_SIZE, "0x%llx\n", res->lun_wwn);
res              4628 drivers/scsi/ipr.c 	struct ipr_resource_entry *res;
res              4633 drivers/scsi/ipr.c 	res = (struct ipr_resource_entry *)sdev->hostdata;
res              4635 drivers/scsi/ipr.c 	if (res)
res              4636 drivers/scsi/ipr.c 		len = snprintf(buf, PAGE_SIZE, "%x\n", res->type);
res              4663 drivers/scsi/ipr.c 	struct ipr_resource_entry *res;
res              4668 drivers/scsi/ipr.c 	res = (struct ipr_resource_entry *)sdev->hostdata;
res              4669 drivers/scsi/ipr.c 	if (res)
res              4670 drivers/scsi/ipr.c 		len = snprintf(buf, PAGE_SIZE, "%d\n", res->raw_mode);
res              4691 drivers/scsi/ipr.c 	struct ipr_resource_entry *res;
res              4696 drivers/scsi/ipr.c 	res = (struct ipr_resource_entry *)sdev->hostdata;
res              4697 drivers/scsi/ipr.c 	if (res) {
res              4698 drivers/scsi/ipr.c 		if (ipr_is_af_dasd_device(res)) {
res              4699 drivers/scsi/ipr.c 			res->raw_mode = simple_strtoul(buf, NULL, 10);
res              4701 drivers/scsi/ipr.c 			if (res->sdev)
res              4702 drivers/scsi/ipr.c 				sdev_printk(KERN_INFO, res->sdev, "raw mode is %s\n",
res              4703 drivers/scsi/ipr.c 					res->raw_mode ? "enabled" : "disabled");
res              4776 drivers/scsi/ipr.c 	struct ipr_resource_entry *res;
res              4778 drivers/scsi/ipr.c 	list_for_each_entry(res, &ioa_cfg->used_res_q, queue) {
res              4779 drivers/scsi/ipr.c 		if ((res->bus == starget->channel) &&
res              4780 drivers/scsi/ipr.c 		    (res->target == starget->id)) {
res              4781 drivers/scsi/ipr.c 			return res;
res              4806 drivers/scsi/ipr.c 	struct ipr_resource_entry *res;
res              4810 drivers/scsi/ipr.c 	res = ipr_find_starget(starget);
res              4813 drivers/scsi/ipr.c 	if (res && ipr_is_gata(res)) {
res              4824 drivers/scsi/ipr.c 			sata_port->res = res;
res              4826 drivers/scsi/ipr.c 			res->sata_port = sata_port;
res              4881 drivers/scsi/ipr.c 	struct ipr_resource_entry *res;
res              4883 drivers/scsi/ipr.c 	list_for_each_entry(res, &ioa_cfg->used_res_q, queue) {
res              4884 drivers/scsi/ipr.c 		if ((res->bus == sdev->channel) &&
res              4885 drivers/scsi/ipr.c 		    (res->target == sdev->id) &&
res              4886 drivers/scsi/ipr.c 		    (res->lun == sdev->lun))
res              4887 drivers/scsi/ipr.c 			return res;
res              4902 drivers/scsi/ipr.c 	struct ipr_resource_entry *res;
res              4909 drivers/scsi/ipr.c 	res = (struct ipr_resource_entry *) sdev->hostdata;
res              4910 drivers/scsi/ipr.c 	if (res) {
res              4911 drivers/scsi/ipr.c 		if (res->sata_port)
res              4912 drivers/scsi/ipr.c 			res->sata_port->ap->link.device[0].class = ATA_DEV_NONE;
res              4914 drivers/scsi/ipr.c 		res->sdev = NULL;
res              4915 drivers/scsi/ipr.c 		res->sata_port = NULL;
res              4932 drivers/scsi/ipr.c 	struct ipr_resource_entry *res;
res              4938 drivers/scsi/ipr.c 	res = sdev->hostdata;
res              4939 drivers/scsi/ipr.c 	if (res) {
res              4940 drivers/scsi/ipr.c 		if (ipr_is_af_dasd_device(res))
res              4942 drivers/scsi/ipr.c 		if (ipr_is_af_dasd_device(res) || ipr_is_ioa_resource(res)) {
res              4946 drivers/scsi/ipr.c 		if (ipr_is_vset_device(res)) {
res              4953 drivers/scsi/ipr.c 		if (ipr_is_gata(res) && res->sata_port)
res              4954 drivers/scsi/ipr.c 			ap = res->sata_port->ap;
res              4965 drivers/scsi/ipr.c 				res->res_path, buffer, sizeof(buffer)));
res              5018 drivers/scsi/ipr.c 	struct ipr_resource_entry *res;
res              5026 drivers/scsi/ipr.c 	res = ipr_find_sdev(sdev);
res              5027 drivers/scsi/ipr.c 	if (res) {
res              5028 drivers/scsi/ipr.c 		res->sdev = sdev;
res              5029 drivers/scsi/ipr.c 		res->add_to_ml = 0;
res              5030 drivers/scsi/ipr.c 		res->in_erp = 0;
res              5031 drivers/scsi/ipr.c 		sdev->hostdata = res;
res              5032 drivers/scsi/ipr.c 		if (!ipr_is_naca_model(res))
res              5033 drivers/scsi/ipr.c 			res->needs_sync_complete = 1;
res              5035 drivers/scsi/ipr.c 		if (ipr_is_gata(res)) {
res              5090 drivers/scsi/ipr.c 	struct ipr_resource_entry *res = resource;
res              5092 drivers/scsi/ipr.c 	if (res && ipr_cmd->ioarcb.res_handle == res->res_handle)
res              5216 drivers/scsi/ipr.c 			    struct ipr_resource_entry *res)
res              5235 drivers/scsi/ipr.c 	ioarcb->res_handle = res->res_handle;
res              5238 drivers/scsi/ipr.c 	if (ipr_is_gata(res)) {
res              5247 drivers/scsi/ipr.c 	if (ipr_is_gata(res) && res->sata_port && ioasc != IPR_IOASC_IOA_WAS_RESET) {
res              5249 drivers/scsi/ipr.c 			memcpy(&res->sata_port->ioasa, &ipr_cmd->s.ioasa64.u.gata,
res              5252 drivers/scsi/ipr.c 			memcpy(&res->sata_port->ioasa, &ipr_cmd->s.ioasa.u.gata,
res              5275 drivers/scsi/ipr.c 	struct ipr_resource_entry *res;
res              5287 drivers/scsi/ipr.c 	res = sata_port->res;
res              5288 drivers/scsi/ipr.c 	if (res) {
res              5289 drivers/scsi/ipr.c 		rc = ipr_device_reset(ioa_cfg, res);
res              5290 drivers/scsi/ipr.c 		*classes = res->ata_class;
res              5293 drivers/scsi/ipr.c 		ret = ipr_wait_for_ops(ioa_cfg, res, ipr_match_res);
res              5323 drivers/scsi/ipr.c 	struct ipr_resource_entry *res;
res              5330 drivers/scsi/ipr.c 	res = scsi_cmd->device->hostdata;
res              5347 drivers/scsi/ipr.c 			if (ipr_cmd->ioarcb.res_handle == res->res_handle) {
res              5362 drivers/scsi/ipr.c 	res->resetting_device = 1;
res              5365 drivers/scsi/ipr.c 	if (ipr_is_gata(res) && res->sata_port) {
res              5366 drivers/scsi/ipr.c 		ap = res->sata_port->ap;
res              5371 drivers/scsi/ipr.c 		rc = ipr_device_reset(ioa_cfg, res);
res              5372 drivers/scsi/ipr.c 	res->resetting_device = 0;
res              5373 drivers/scsi/ipr.c 	res->reset_occurred = 1;
res              5383 drivers/scsi/ipr.c 	struct ipr_resource_entry *res;
res              5386 drivers/scsi/ipr.c 	res = cmd->device->hostdata;
res              5388 drivers/scsi/ipr.c 	if (!res)
res              5396 drivers/scsi/ipr.c 		if (ipr_is_gata(res) && res->sata_port)
res              5397 drivers/scsi/ipr.c 			rc = ipr_wait_for_ops(ioa_cfg, res, ipr_match_res);
res              5417 drivers/scsi/ipr.c 	struct ipr_resource_entry *res;
res              5421 drivers/scsi/ipr.c 		list_for_each_entry(res, &ioa_cfg->used_res_q, queue) {
res              5422 drivers/scsi/ipr.c 			if (res->res_handle == ipr_cmd->ioarcb.res_handle) {
res              5423 drivers/scsi/ipr.c 				scsi_report_bus_reset(ioa_cfg->host, res->bus);
res              5495 drivers/scsi/ipr.c 	struct ipr_resource_entry *res;
res              5503 drivers/scsi/ipr.c 	res = scsi_cmd->device->hostdata;
res              5512 drivers/scsi/ipr.c 	if (!res)
res              5522 drivers/scsi/ipr.c 	if (!ipr_is_gscsi(res))
res              5542 drivers/scsi/ipr.c 	ipr_cmd->ioarcb.res_handle = res->res_handle;
res              5563 drivers/scsi/ipr.c 	if (!ipr_is_naca_model(res))
res              5564 drivers/scsi/ipr.c 		res->needs_sync_complete = 1;
res              6035 drivers/scsi/ipr.c 	struct ipr_resource_entry *res = scsi_cmd->device->hostdata;
res              6047 drivers/scsi/ipr.c 	if (res) {
res              6048 drivers/scsi/ipr.c 		if (!ipr_is_naca_model(res))
res              6049 drivers/scsi/ipr.c 			res->needs_sync_complete = 1;
res              6050 drivers/scsi/ipr.c 		res->in_erp = 0;
res              6181 drivers/scsi/ipr.c 	struct ipr_resource_entry *res = scsi_cmd->device->hostdata;
res              6184 drivers/scsi/ipr.c 	res->in_erp = 1;
res              6215 drivers/scsi/ipr.c 			   struct ipr_cmnd *ipr_cmd, struct ipr_resource_entry *res)
res              6243 drivers/scsi/ipr.c 		if (!ipr_is_gscsi(res))
res              6250 drivers/scsi/ipr.c 	ipr_res_err(ioa_cfg, res, "%s\n", ipr_error_table[error_index].error);
res              6281 drivers/scsi/ipr.c 	struct ipr_resource_entry *res = ipr_cmd->scsi_cmd->device->hostdata;
res              6292 drivers/scsi/ipr.c 	if (ipr_is_vset_device(res) &&
res              6343 drivers/scsi/ipr.c 				if (ipr_is_vset_device(res))
res              6404 drivers/scsi/ipr.c 	struct ipr_resource_entry *res = scsi_cmd->device->hostdata;
res              6408 drivers/scsi/ipr.c 	if (!res) {
res              6413 drivers/scsi/ipr.c 	if (!ipr_is_gscsi(res) && masked_ioasc != IPR_IOASC_HW_DEV_BUS_STATUS)
res              6416 drivers/scsi/ipr.c 	ipr_dump_ioasa(ioa_cfg, ipr_cmd, res);
res              6420 drivers/scsi/ipr.c 		if (ipr_is_naca_model(res))
res              6431 drivers/scsi/ipr.c 		if (!ipr_is_naca_model(res))
res              6432 drivers/scsi/ipr.c 			res->needs_sync_complete = 1;
res              6435 drivers/scsi/ipr.c 		if (!res->in_erp)
res              6436 drivers/scsi/ipr.c 			res->needs_sync_complete = 1;
res              6454 drivers/scsi/ipr.c 		if (!res->resetting_device)
res              6457 drivers/scsi/ipr.c 		if (!ipr_is_naca_model(res))
res              6458 drivers/scsi/ipr.c 			res->needs_sync_complete = 1;
res              6464 drivers/scsi/ipr.c 				if (!ipr_is_naca_model(res)) {
res              6470 drivers/scsi/ipr.c 		if (!ipr_is_naca_model(res))
res              6471 drivers/scsi/ipr.c 			res->needs_sync_complete = 1;
res              6476 drivers/scsi/ipr.c 		if (res->raw_mode) {
res              6477 drivers/scsi/ipr.c 			res->raw_mode = 0;
res              6485 drivers/scsi/ipr.c 		if (!ipr_is_vset_device(res) && !ipr_is_naca_model(res))
res              6486 drivers/scsi/ipr.c 			res->needs_sync_complete = 1;
res              6550 drivers/scsi/ipr.c 	struct ipr_resource_entry *res;
res              6561 drivers/scsi/ipr.c 	res = scsi_cmd->device->hostdata;
res              6563 drivers/scsi/ipr.c 	if (ipr_is_gata(res) && res->sata_port) {
res              6565 drivers/scsi/ipr.c 		rc = ata_sas_queuecmd(scsi_cmd, res->sata_port->ap);
res              6588 drivers/scsi/ipr.c 	if (unlikely(hrrq->ioa_is_dead || hrrq->removing_ioa || !res)) {
res              6607 drivers/scsi/ipr.c 	if (ipr_is_gscsi(res)) {
res              6611 drivers/scsi/ipr.c 		if (res->reset_occurred) {
res              6612 drivers/scsi/ipr.c 			res->reset_occurred = 0;
res              6617 drivers/scsi/ipr.c 	if (ipr_is_gscsi(res) || ipr_is_vset_device(res)) {
res              6628 drivers/scsi/ipr.c 	    (!ipr_is_gscsi(res) || scsi_cmd->cmnd[0] == IPR_QUERY_RSRC_STATE)) {
res              6631 drivers/scsi/ipr.c 	if (res->raw_mode && ipr_is_af_dasd_device(res)) {
res              6659 drivers/scsi/ipr.c 	ioarcb->res_handle = res->res_handle;
res              6660 drivers/scsi/ipr.c 	if (res->needs_sync_complete) {
res              6662 drivers/scsi/ipr.c 		res->needs_sync_complete = 0;
res              6665 drivers/scsi/ipr.c 	ipr_trc_hook(ipr_cmd, IPR_TRACE_START, IPR_GET_RES_PHYS_LOC(res));
res              6691 drivers/scsi/ipr.c 	struct ipr_resource_entry *res;
res              6693 drivers/scsi/ipr.c 	res = (struct ipr_resource_entry *)sdev->hostdata;
res              6694 drivers/scsi/ipr.c 	if (res && ipr_is_gata(res)) {
res              6697 drivers/scsi/ipr.c 		return ata_sas_scsi_ioctl(res->sata_port->ap, sdev, cmd, arg);
res              6761 drivers/scsi/ipr.c 	struct ipr_resource_entry *res = sata_port->res;
res              6776 drivers/scsi/ipr.c 	rc = ipr_device_reset(ioa_cfg, res);
res              6783 drivers/scsi/ipr.c 	ap->link.device[0].class = res->ata_class;
res              6818 drivers/scsi/ipr.c 				ipr_device_reset(ioa_cfg, sata_port->res);
res              6868 drivers/scsi/ipr.c 	struct ipr_resource_entry *res = sata_port->res;
res              6878 drivers/scsi/ipr.c 	ipr_dump_ioasa(ioa_cfg, ipr_cmd, res);
res              6881 drivers/scsi/ipr.c 		scsi_report_device_reset(ioa_cfg->host, res->bus, res->target);
res              7036 drivers/scsi/ipr.c 	struct ipr_resource_entry *res = sata_port->res;
res              7073 drivers/scsi/ipr.c 	ipr_cmd->ioarcb.res_handle = res->res_handle;
res              7087 drivers/scsi/ipr.c 	ipr_trc_hook(ipr_cmd, IPR_TRACE_START, IPR_GET_RES_PHYS_LOC(res));
res              7260 drivers/scsi/ipr.c 	struct ipr_resource_entry *res;
res              7274 drivers/scsi/ipr.c 	list_for_each_entry(res, &ioa_cfg->used_res_q, queue) {
res              7275 drivers/scsi/ipr.c 		if (res->add_to_ml || res->del_from_ml) {
res              7340 drivers/scsi/ipr.c 	struct ipr_resource_entry *res = ipr_cmd->u.res;
res              7344 drivers/scsi/ipr.c 	list_for_each_entry_continue(res, &ioa_cfg->used_res_q, queue) {
res              7345 drivers/scsi/ipr.c 		if (!ipr_is_scsi_disk(res))
res              7348 drivers/scsi/ipr.c 		ipr_cmd->u.res = res;
res              7349 drivers/scsi/ipr.c 		ipr_set_sup_dev_dflt(supp_dev, &res->std_inq_data.vpids);
res              7580 drivers/scsi/ipr.c 	ipr_cmd->u.res = list_entry(ioa_cfg->used_res_q.next,
res              7654 drivers/scsi/ipr.c 		ipr_cmd->u.res = list_entry(ioa_cfg->used_res_q.next,
res              7794 drivers/scsi/ipr.c 	struct ipr_resource_entry *res, *temp;
res              7808 drivers/scsi/ipr.c 	list_for_each_entry_safe(res, temp, &ioa_cfg->used_res_q, queue)
res              7809 drivers/scsi/ipr.c 		list_move_tail(&res->queue, &old_res);
res              7823 drivers/scsi/ipr.c 		list_for_each_entry_safe(res, temp, &old_res, queue) {
res              7824 drivers/scsi/ipr.c 			if (ipr_is_same_device(res, &cfgtew)) {
res              7825 drivers/scsi/ipr.c 				list_move_tail(&res->queue, &ioa_cfg->used_res_q);
res              7838 drivers/scsi/ipr.c 			res = list_entry(ioa_cfg->free_res_q.next,
res              7840 drivers/scsi/ipr.c 			list_move_tail(&res->queue, &ioa_cfg->used_res_q);
res              7841 drivers/scsi/ipr.c 			ipr_init_res_entry(res, &cfgtew);
res              7842 drivers/scsi/ipr.c 			res->add_to_ml = 1;
res              7843 drivers/scsi/ipr.c 		} else if (res->sdev && (ipr_is_vset_device(res) || ipr_is_scsi_disk(res)))
res              7844 drivers/scsi/ipr.c 			res->sdev->allow_restart = 1;
res              7847 drivers/scsi/ipr.c 			ipr_update_res_entry(res, &cfgtew);
res              7850 drivers/scsi/ipr.c 	list_for_each_entry_safe(res, temp, &old_res, queue) {
res              7851 drivers/scsi/ipr.c 		if (res->sdev) {
res              7852 drivers/scsi/ipr.c 			res->del_from_ml = 1;
res              7853 drivers/scsi/ipr.c 			res->res_handle = IPR_INVALID_RES_HANDLE;
res              7854 drivers/scsi/ipr.c 			list_move_tail(&res->queue, &ioa_cfg->used_res_q);
res              7858 drivers/scsi/ipr.c 	list_for_each_entry_safe(res, temp, &old_res, queue) {
res              7859 drivers/scsi/ipr.c 		ipr_clear_res_target(res);
res              7860 drivers/scsi/ipr.c 		list_move_tail(&res->queue, &ioa_cfg->free_res_q);
res               406 drivers/scsi/ipr.h #define IPR_QUEUEING_MODEL(res)	((((res)->flags) & 0x70) >> 4)
res               423 drivers/scsi/ipr.h #define IPR_QUEUEING_MODEL64(res) ((((res)->res_flags) & 0x7000) >> 12)
res              1284 drivers/scsi/ipr.h 	struct ipr_resource_entry *res;
res              1305 drivers/scsi/ipr.h #define IPR_GET_RES_PHYS_LOC(res) \
res              1306 drivers/scsi/ipr.h 	(((res)->bus << 24) | ((res)->target << 8) | (res)->lun)
res              1633 drivers/scsi/ipr.h 		struct ipr_resource_entry *res;
res              1786 drivers/scsi/ipr.h #define ipr_res_err(ioa_cfg, res, fmt, ...) \
res              1787 drivers/scsi/ipr.h 	ipr_res_printk(KERN_ERR, ioa_cfg, (res)->bus, (res)->target, (res)->lun, fmt, ##__VA_ARGS__)
res              1796 drivers/scsi/ipr.h #define ipr_phys_res_err(ioa_cfg, res, fmt, ...)			\
res              1798 drivers/scsi/ipr.h 	if ((res).bus >= IPR_MAX_NUM_BUSES) {				\
res              1803 drivers/scsi/ipr.h 			(res).bus, (res).target, (res).lun);		\
res              1848 drivers/scsi/ipr.h static inline int ipr_is_ioa_resource(struct ipr_resource_entry *res)
res              1850 drivers/scsi/ipr.h 	return res->type == IPR_RES_TYPE_IOAFP;
res              1860 drivers/scsi/ipr.h static inline int ipr_is_af_dasd_device(struct ipr_resource_entry *res)
res              1862 drivers/scsi/ipr.h 	return res->type == IPR_RES_TYPE_AF_DASD ||
res              1863 drivers/scsi/ipr.h 		res->type == IPR_RES_TYPE_REMOTE_AF_DASD;
res              1873 drivers/scsi/ipr.h static inline int ipr_is_vset_device(struct ipr_resource_entry *res)
res              1875 drivers/scsi/ipr.h 	return res->type == IPR_RES_TYPE_VOLUME_SET;
res              1885 drivers/scsi/ipr.h static inline int ipr_is_gscsi(struct ipr_resource_entry *res)
res              1887 drivers/scsi/ipr.h 	return res->type == IPR_RES_TYPE_GENERIC_SCSI;
res              1897 drivers/scsi/ipr.h static inline int ipr_is_scsi_disk(struct ipr_resource_entry *res)
res              1899 drivers/scsi/ipr.h 	if (ipr_is_af_dasd_device(res) ||
res              1900 drivers/scsi/ipr.h 	    (ipr_is_gscsi(res) && IPR_IS_DASD_DEVICE(res->std_inq_data)))
res              1913 drivers/scsi/ipr.h static inline int ipr_is_gata(struct ipr_resource_entry *res)
res              1915 drivers/scsi/ipr.h 	return res->type == IPR_RES_TYPE_GENERIC_ATA;
res              1925 drivers/scsi/ipr.h static inline int ipr_is_naca_model(struct ipr_resource_entry *res)
res              1927 drivers/scsi/ipr.h 	if (ipr_is_gscsi(res) && res->qmodel == IPR_QUEUE_NACA_MODEL)
res               160 drivers/scsi/isci/remote_device.c 	bool res;
res               163 drivers/scsi/isci/remote_device.c 	res = isci_compare_suspendcount(idev, localcount)
res               167 drivers/scsi/isci/remote_device.c 	return res;
res               176 drivers/scsi/isci/remote_device.c 	bool res;
res               179 drivers/scsi/isci/remote_device.c 	res = isci_compare_suspendcount(idev, localcount)
res               183 drivers/scsi/isci/remote_device.c 	return res;
res               110 drivers/scsi/jazz_esp.c 	struct resource *res;
res               126 drivers/scsi/jazz_esp.c 	res = platform_get_resource(dev, IORESOURCE_MEM, 0);
res               127 drivers/scsi/jazz_esp.c 	if (!res)
res               130 drivers/scsi/jazz_esp.c 	esp->regs = (void __iomem *)res->start;
res               134 drivers/scsi/jazz_esp.c 	res = platform_get_resource(dev, IORESOURCE_MEM, 1);
res               135 drivers/scsi/jazz_esp.c 	if (!res)
res               138 drivers/scsi/jazz_esp.c 	esp->dma_regs = (void __iomem *)res->start;
res               730 drivers/scsi/libfc/fc_exch.c 	bool res = false;
res               742 drivers/scsi/libfc/fc_exch.c 		res = true;
res               753 drivers/scsi/libfc/fc_exch.c 	return res;
res               264 drivers/scsi/libsas/sas_ata.c 		int res;
res               267 drivers/scsi/libsas/sas_ata.c 		res = sas_get_report_phy_sata(dev->parent, phy->phy_id,
res               269 drivers/scsi/libsas/sas_ata.c 		if (res) {
res               272 drivers/scsi/libsas/sas_ata.c 				 phy->phy_id, res);
res               273 drivers/scsi/libsas/sas_ata.c 			return res;
res               284 drivers/scsi/libsas/sas_ata.c 	int res;
res               293 drivers/scsi/libsas/sas_ata.c 	res = sas_get_ata_info(dev, phy);
res               294 drivers/scsi/libsas/sas_ata.c 	if (res)
res               302 drivers/scsi/libsas/sas_ata.c 	int res;
res               309 drivers/scsi/libsas/sas_ata.c 	res = sas_ex_phy_discover(ex_dev, phy->number);
res               315 drivers/scsi/libsas/sas_ata.c 	if (res == -ECOMM)
res               316 drivers/scsi/libsas/sas_ata.c 		return res;
res               317 drivers/scsi/libsas/sas_ata.c 	if (res != SMP_RESP_FUNC_ACC)
res               374 drivers/scsi/libsas/sas_ata.c 	int ret = 0, res;
res               381 drivers/scsi/libsas/sas_ata.c 	res = i->dft->lldd_I_T_nexus_reset(dev);
res               382 drivers/scsi/libsas/sas_ata.c 	if (res == -ENODEV)
res               383 drivers/scsi/libsas/sas_ata.c 		return res;
res               385 drivers/scsi/libsas/sas_ata.c 	if (res != TMF_RESP_FUNC_COMPLETE)
res               413 drivers/scsi/libsas/sas_ata.c 	int res;
res               425 drivers/scsi/libsas/sas_ata.c 	res = si->dft->lldd_abort_task(task);
res               429 drivers/scsi/libsas/sas_ata.c 	    res == TMF_RESP_FUNC_COMPLETE) {
res               712 drivers/scsi/libsas/sas_ata.c 	int res;
res               720 drivers/scsi/libsas/sas_ata.c 	res = sas_notify_lldd_dev_found(dev);
res               721 drivers/scsi/libsas/sas_ata.c 	if (res)
res               722 drivers/scsi/libsas/sas_ata.c 		return res;
res               172 drivers/scsi/libsas/sas_discover.c 	int res = 0;
res               180 drivers/scsi/libsas/sas_discover.c 	res = i->dft->lldd_dev_found(dev);
res               181 drivers/scsi/libsas/sas_discover.c 	if (res) {
res               184 drivers/scsi/libsas/sas_discover.c 			SAS_ADDR(dev->sas_addr), res);
res               188 drivers/scsi/libsas/sas_discover.c 	return res;
res               280 drivers/scsi/libsas/sas_discover.c 	int res;
res               282 drivers/scsi/libsas/sas_discover.c 	res = sas_notify_lldd_dev_found(dev);
res               283 drivers/scsi/libsas/sas_discover.c 	if (res)
res               284 drivers/scsi/libsas/sas_discover.c 		return res;
res               497 drivers/scsi/libsas/sas_discover.c 	int res = 0;
res               517 drivers/scsi/libsas/sas_discover.c 		res = sas_ex_revalidate_domain(ddev);
res               520 drivers/scsi/libsas/sas_discover.c 		 port->id, task_pid_nr(current), res);
res                57 drivers/scsi/libsas/sas_expander.c 	int res, retry;
res                65 drivers/scsi/libsas/sas_expander.c 			res = -ECOMM;
res                71 drivers/scsi/libsas/sas_expander.c 			res = -ENOMEM;
res                85 drivers/scsi/libsas/sas_expander.c 		res = i->dft->lldd_execute_task(task, GFP_KERNEL);
res                87 drivers/scsi/libsas/sas_expander.c 		if (res) {
res                89 drivers/scsi/libsas/sas_expander.c 			pr_notice("executing SMP task failed:%d\n", res);
res                94 drivers/scsi/libsas/sas_expander.c 		res = -ECOMM;
res               105 drivers/scsi/libsas/sas_expander.c 			res = 0;
res               112 drivers/scsi/libsas/sas_expander.c 			res = task->task_status.residual;
res               117 drivers/scsi/libsas/sas_expander.c 			res = -EMSGSIZE;
res               137 drivers/scsi/libsas/sas_expander.c 	return res;
res               373 drivers/scsi/libsas/sas_expander.c 	int res;
res               377 drivers/scsi/libsas/sas_expander.c 	res = smp_execute_task(dev, disc_req, DISCOVER_REQ_SIZE,
res               379 drivers/scsi/libsas/sas_expander.c 	if (res)
res               380 drivers/scsi/libsas/sas_expander.c 		return res;
res               393 drivers/scsi/libsas/sas_expander.c 	int  res = 0;
res               410 drivers/scsi/libsas/sas_expander.c 		res = sas_ex_phy_discover_helper(dev, disc_req, disc_resp, single);
res               415 drivers/scsi/libsas/sas_expander.c 			res = sas_ex_phy_discover_helper(dev, disc_req,
res               417 drivers/scsi/libsas/sas_expander.c 			if (res)
res               424 drivers/scsi/libsas/sas_expander.c 	return res;
res               430 drivers/scsi/libsas/sas_expander.c 	int res = -ENOMEM;
res               436 drivers/scsi/libsas/sas_expander.c 	res = sas_ex_phy_discover(dev, -1);
res               437 drivers/scsi/libsas/sas_expander.c 	if (res)
res               444 drivers/scsi/libsas/sas_expander.c 	return res;
res               470 drivers/scsi/libsas/sas_expander.c 	int res;
res               486 drivers/scsi/libsas/sas_expander.c 		res = smp_execute_task(dev, rg_req, RG_REQ_SIZE, rg_resp,
res               489 drivers/scsi/libsas/sas_expander.c 		if (res) {
res               491 drivers/scsi/libsas/sas_expander.c 				  SAS_ADDR(dev->sas_addr), res);
res               496 drivers/scsi/libsas/sas_expander.c 			res = rg_resp->result;
res               512 drivers/scsi/libsas/sas_expander.c 	return res;
res               542 drivers/scsi/libsas/sas_expander.c 	int res;
res               556 drivers/scsi/libsas/sas_expander.c 	res = smp_execute_task(dev, mi_req, MI_REQ_SIZE, mi_resp,MI_RESP_SIZE);
res               557 drivers/scsi/libsas/sas_expander.c 	if (res) {
res               559 drivers/scsi/libsas/sas_expander.c 			  SAS_ADDR(dev->sas_addr), res);
res               571 drivers/scsi/libsas/sas_expander.c 	return res;
res               583 drivers/scsi/libsas/sas_expander.c 	int res;
res               603 drivers/scsi/libsas/sas_expander.c 	res = smp_execute_task(dev, pc_req, PC_REQ_SIZE, pc_resp,PC_RESP_SIZE);
res               604 drivers/scsi/libsas/sas_expander.c 	if (res) {
res               606 drivers/scsi/libsas/sas_expander.c 		       SAS_ADDR(dev->sas_addr), phy_id, res);
res               610 drivers/scsi/libsas/sas_expander.c 		res = pc_resp[2];
res               614 drivers/scsi/libsas/sas_expander.c 	return res;
res               661 drivers/scsi/libsas/sas_expander.c 	int res;
res               680 drivers/scsi/libsas/sas_expander.c 	res = smp_execute_task(dev, req, RPEL_REQ_SIZE,
res               683 drivers/scsi/libsas/sas_expander.c 	if (res)
res               694 drivers/scsi/libsas/sas_expander.c 	return res;
res               706 drivers/scsi/libsas/sas_expander.c 	int res;
res               716 drivers/scsi/libsas/sas_expander.c 	res = smp_execute_task(dev, rps_req, RPS_REQ_SIZE,
res               724 drivers/scsi/libsas/sas_expander.c 	if (!res && resp[27] == 0x34 && resp[24] != 0x34) {
res               740 drivers/scsi/libsas/sas_expander.c 	return res;
res               785 drivers/scsi/libsas/sas_expander.c 	int res;
res               839 drivers/scsi/libsas/sas_expander.c 		res = sas_get_ata_info(child, phy);
res               840 drivers/scsi/libsas/sas_expander.c 		if (res)
res               844 drivers/scsi/libsas/sas_expander.c 		res = sas_ata_init(child);
res               845 drivers/scsi/libsas/sas_expander.c 		if (res)
res               857 drivers/scsi/libsas/sas_expander.c 		res = sas_discover_sata(child);
res               858 drivers/scsi/libsas/sas_expander.c 		if (res) {
res               861 drivers/scsi/libsas/sas_expander.c 				  SAS_ADDR(parent->sas_addr), phy_id, res);
res               882 drivers/scsi/libsas/sas_expander.c 		res = sas_discover_end_dev(child);
res               883 drivers/scsi/libsas/sas_expander.c 		if (res) {
res               886 drivers/scsi/libsas/sas_expander.c 				  SAS_ADDR(parent->sas_addr), phy_id, res);
res               946 drivers/scsi/libsas/sas_expander.c 	int res;
res              1001 drivers/scsi/libsas/sas_expander.c 	res = sas_discover_expander(child);
res              1002 drivers/scsi/libsas/sas_expander.c 	if (res) {
res              1021 drivers/scsi/libsas/sas_expander.c 	int res = 0;
res              1026 drivers/scsi/libsas/sas_expander.c 			res = sas_ex_phy_discover(dev, phy_id);
res              1027 drivers/scsi/libsas/sas_expander.c 		if (res)
res              1028 drivers/scsi/libsas/sas_expander.c 			return res;
res              1068 drivers/scsi/libsas/sas_expander.c 	res = sas_configure_routing(dev, ex_phy->attached_sas_addr);
res              1069 drivers/scsi/libsas/sas_expander.c 	if (res) {
res              1071 drivers/scsi/libsas/sas_expander.c 			  SAS_ADDR(ex_phy->attached_sas_addr), res);
res              1073 drivers/scsi/libsas/sas_expander.c 		return res;
res              1079 drivers/scsi/libsas/sas_expander.c 		return res;
res              1095 drivers/scsi/libsas/sas_expander.c 			return res;
res              1110 drivers/scsi/libsas/sas_expander.c 	return res;
res              1178 drivers/scsi/libsas/sas_expander.c 	int res = 0;
res              1199 drivers/scsi/libsas/sas_expander.c 			res = sas_ex_discover_dev(dev, i);
res              1200 drivers/scsi/libsas/sas_expander.c 			if (res)
res              1206 drivers/scsi/libsas/sas_expander.c 	if (!res)
res              1209 drivers/scsi/libsas/sas_expander.c 	return res;
res              1274 drivers/scsi/libsas/sas_expander.c 	int res = 0;
res              1278 drivers/scsi/libsas/sas_expander.c 		res = -ENODEV;
res              1301 drivers/scsi/libsas/sas_expander.c 		res = -ENODEV;
res              1309 drivers/scsi/libsas/sas_expander.c 	return res;
res              1319 drivers/scsi/libsas/sas_expander.c 	int res = 0;
res              1348 drivers/scsi/libsas/sas_expander.c 					res = -ENODEV;
res              1352 drivers/scsi/libsas/sas_expander.c 					res = sas_check_eeds(child, parent_phy, child_phy);
res              1355 drivers/scsi/libsas/sas_expander.c 					res = -ENODEV;
res              1364 drivers/scsi/libsas/sas_expander.c 					res = -ENODEV;
res              1372 drivers/scsi/libsas/sas_expander.c 				res = -ENODEV;
res              1380 drivers/scsi/libsas/sas_expander.c 	return res;
res              1389 drivers/scsi/libsas/sas_expander.c 	int i, res = 0;
res              1413 drivers/scsi/libsas/sas_expander.c 		res = smp_execute_task(dev, rri_req, RRI_REQ_SIZE, rri_resp,
res              1415 drivers/scsi/libsas/sas_expander.c 		if (res)
res              1417 drivers/scsi/libsas/sas_expander.c 		res = rri_resp[2];
res              1418 drivers/scsi/libsas/sas_expander.c 		if (res == SMP_RESP_NO_INDEX) {
res              1422 drivers/scsi/libsas/sas_expander.c 		} else if (res != SMP_RESP_FUNC_ACC) {
res              1425 drivers/scsi/libsas/sas_expander.c 				  i, res);
res              1449 drivers/scsi/libsas/sas_expander.c 	res = -1;
res              1453 drivers/scsi/libsas/sas_expander.c 	return res;
res              1462 drivers/scsi/libsas/sas_expander.c 	int res;
res              1483 drivers/scsi/libsas/sas_expander.c 	res = smp_execute_task(dev, cri_req, CRI_REQ_SIZE, cri_resp,
res              1485 drivers/scsi/libsas/sas_expander.c 	if (res)
res              1487 drivers/scsi/libsas/sas_expander.c 	res = cri_resp[2];
res              1488 drivers/scsi/libsas/sas_expander.c 	if (res == SMP_RESP_NO_INDEX) {
res              1495 drivers/scsi/libsas/sas_expander.c 	return res;
res              1503 drivers/scsi/libsas/sas_expander.c 	int res;
res              1505 drivers/scsi/libsas/sas_expander.c 	res = sas_configure_present(dev, phy_id, sas_addr, &index, &present);
res              1506 drivers/scsi/libsas/sas_expander.c 	if (res)
res              1507 drivers/scsi/libsas/sas_expander.c 		return res;
res              1511 drivers/scsi/libsas/sas_expander.c 	return res;
res              1526 drivers/scsi/libsas/sas_expander.c 	int res = 0;
res              1530 drivers/scsi/libsas/sas_expander.c 		res = sas_configure_parent(parent->parent, parent, sas_addr,
res              1532 drivers/scsi/libsas/sas_expander.c 		if (res)
res              1533 drivers/scsi/libsas/sas_expander.c 			return res;
res              1548 drivers/scsi/libsas/sas_expander.c 			res = sas_configure_phy(parent, i, sas_addr, include);
res              1549 drivers/scsi/libsas/sas_expander.c 			if (res)
res              1550 drivers/scsi/libsas/sas_expander.c 				return res;
res              1554 drivers/scsi/libsas/sas_expander.c 	return res;
res              1584 drivers/scsi/libsas/sas_expander.c 	int res;
res              1586 drivers/scsi/libsas/sas_expander.c 	res = sas_notify_lldd_dev_found(dev);
res              1587 drivers/scsi/libsas/sas_expander.c 	if (res)
res              1588 drivers/scsi/libsas/sas_expander.c 		return res;
res              1590 drivers/scsi/libsas/sas_expander.c 	res = sas_ex_general(dev);
res              1591 drivers/scsi/libsas/sas_expander.c 	if (res)
res              1593 drivers/scsi/libsas/sas_expander.c 	res = sas_ex_manuf_info(dev);
res              1594 drivers/scsi/libsas/sas_expander.c 	if (res)
res              1597 drivers/scsi/libsas/sas_expander.c 	res = sas_expander_discover(dev);
res              1598 drivers/scsi/libsas/sas_expander.c 	if (res) {
res              1600 drivers/scsi/libsas/sas_expander.c 			SAS_ADDR(dev->sas_addr), res);
res              1605 drivers/scsi/libsas/sas_expander.c 	res = sas_check_parent_topology(dev);
res              1606 drivers/scsi/libsas/sas_expander.c 	if (res)
res              1611 drivers/scsi/libsas/sas_expander.c 	return res;
res              1616 drivers/scsi/libsas/sas_expander.c 	int res = 0;
res              1625 drivers/scsi/libsas/sas_expander.c 				res = sas_ex_discover_devices(dev, -1);
res              1627 drivers/scsi/libsas/sas_expander.c 				res = sas_ex_discover_devices(port->port_dev, -1);
res              1632 drivers/scsi/libsas/sas_expander.c 	return res;
res              1637 drivers/scsi/libsas/sas_expander.c 	int res;
res              1642 drivers/scsi/libsas/sas_expander.c 		res = sas_ex_level_discovery(port, level);
res              1646 drivers/scsi/libsas/sas_expander.c 	return res;
res              1651 drivers/scsi/libsas/sas_expander.c 	int res;
res              1654 drivers/scsi/libsas/sas_expander.c 	res = sas_rphy_add(dev->rphy);
res              1655 drivers/scsi/libsas/sas_expander.c 	if (res)
res              1659 drivers/scsi/libsas/sas_expander.c 	res = sas_discover_expander(dev);
res              1660 drivers/scsi/libsas/sas_expander.c 	if (res)
res              1665 drivers/scsi/libsas/sas_expander.c 	return res;
res              1670 drivers/scsi/libsas/sas_expander.c 	return res;
res              1678 drivers/scsi/libsas/sas_expander.c 	int res;
res              1688 drivers/scsi/libsas/sas_expander.c 	res = smp_execute_task(dev, disc_req, DISCOVER_REQ_SIZE,
res              1690 drivers/scsi/libsas/sas_expander.c 	if (res)
res              1693 drivers/scsi/libsas/sas_expander.c 		res = disc_resp->result;
res              1698 drivers/scsi/libsas/sas_expander.c 	return res;
res              1704 drivers/scsi/libsas/sas_expander.c 	int res;
res              1711 drivers/scsi/libsas/sas_expander.c 	res = sas_get_phy_discover(dev, phy_id, disc_resp);
res              1712 drivers/scsi/libsas/sas_expander.c 	if (!res)
res              1716 drivers/scsi/libsas/sas_expander.c 	return res;
res              1722 drivers/scsi/libsas/sas_expander.c 	int res;
res              1731 drivers/scsi/libsas/sas_expander.c 	res = sas_get_phy_discover(dev, phy_id, disc_resp);
res              1732 drivers/scsi/libsas/sas_expander.c 	if (res == 0) {
res              1740 drivers/scsi/libsas/sas_expander.c 	return res;
res              1747 drivers/scsi/libsas/sas_expander.c 	int res = 0;
res              1753 drivers/scsi/libsas/sas_expander.c 		res = sas_get_phy_change_count(dev, i, &phy_change_count);
res              1754 drivers/scsi/libsas/sas_expander.c 		switch (res) {
res              1761 drivers/scsi/libsas/sas_expander.c 			return res;
res              1777 drivers/scsi/libsas/sas_expander.c 	int res;
res              1793 drivers/scsi/libsas/sas_expander.c 	res = smp_execute_task(dev, rg_req, RG_REQ_SIZE, rg_resp,
res              1795 drivers/scsi/libsas/sas_expander.c 	if (res)
res              1798 drivers/scsi/libsas/sas_expander.c 		res = rg_resp->result;
res              1806 drivers/scsi/libsas/sas_expander.c 	return res;
res              1829 drivers/scsi/libsas/sas_expander.c 	int res;
res              1832 drivers/scsi/libsas/sas_expander.c 	res = sas_get_ex_change_count(dev, &ex_change_count);
res              1833 drivers/scsi/libsas/sas_expander.c 	if (res)
res              1840 drivers/scsi/libsas/sas_expander.c 		res = sas_find_bcast_phy(dev, &phy_id, 0, false);
res              1846 drivers/scsi/libsas/sas_expander.c 			return res;
res              1853 drivers/scsi/libsas/sas_expander.c 			res = sas_find_bcast_dev(ch, src_dev);
res              1855 drivers/scsi/libsas/sas_expander.c 				return res;
res              1859 drivers/scsi/libsas/sas_expander.c 	return res;
res              1915 drivers/scsi/libsas/sas_expander.c 	int res = 0;
res              1923 drivers/scsi/libsas/sas_expander.c 				res = sas_discover_bfs_by_root_level(child,
res              1926 drivers/scsi/libsas/sas_expander.c 				res = sas_ex_discover_devices(child, -1);
res              1929 drivers/scsi/libsas/sas_expander.c 	return res;
res              1934 drivers/scsi/libsas/sas_expander.c 	int res;
res              1938 drivers/scsi/libsas/sas_expander.c 	res = sas_ex_discover_devices(dev, -1);
res              1939 drivers/scsi/libsas/sas_expander.c 	if (res)
res              1942 drivers/scsi/libsas/sas_expander.c 		res = sas_discover_bfs_by_root_level(dev, level);
res              1947 drivers/scsi/libsas/sas_expander.c 	return res;
res              1954 drivers/scsi/libsas/sas_expander.c 	int res;
res              1958 drivers/scsi/libsas/sas_expander.c 	res = sas_ex_phy_discover(dev, phy_id);
res              1959 drivers/scsi/libsas/sas_expander.c 	if (res)
res              1960 drivers/scsi/libsas/sas_expander.c 		return res;
res              1965 drivers/scsi/libsas/sas_expander.c 	res = sas_ex_discover_devices(dev, phy_id);
res              1966 drivers/scsi/libsas/sas_expander.c 	if (res)
res              1967 drivers/scsi/libsas/sas_expander.c 		return res;
res              1972 drivers/scsi/libsas/sas_expander.c 				res = sas_discover_bfs_by_root(child);
res              1976 drivers/scsi/libsas/sas_expander.c 	return res;
res              2002 drivers/scsi/libsas/sas_expander.c 	int res;
res              2011 drivers/scsi/libsas/sas_expander.c 	res = sas_get_phy_attached_dev(dev, phy_id, sas_addr, &type);
res              2012 drivers/scsi/libsas/sas_expander.c 	switch (res) {
res              2016 drivers/scsi/libsas/sas_expander.c 		return res;
res              2020 drivers/scsi/libsas/sas_expander.c 		return res;
res              2026 drivers/scsi/libsas/sas_expander.c 		return res;
res              2029 drivers/scsi/libsas/sas_expander.c 	if ((SAS_ADDR(sas_addr) == 0) || (res == -ECOMM)) {
res              2037 drivers/scsi/libsas/sas_expander.c 		return res;
res              2049 drivers/scsi/libsas/sas_expander.c 		return res;
res              2079 drivers/scsi/libsas/sas_expander.c 	int res = 0;
res              2098 drivers/scsi/libsas/sas_expander.c 		res = sas_rediscover_dev(dev, phy_id, last, i);
res              2100 drivers/scsi/libsas/sas_expander.c 		res = sas_discover_new(dev, phy_id);
res              2101 drivers/scsi/libsas/sas_expander.c 	return res;
res              2115 drivers/scsi/libsas/sas_expander.c 	int res;
res              2118 drivers/scsi/libsas/sas_expander.c 	res = sas_find_bcast_dev(port_dev, &dev);
res              2119 drivers/scsi/libsas/sas_expander.c 	if (res == 0 && dev) {
res              2125 drivers/scsi/libsas/sas_expander.c 			res = sas_find_bcast_phy(dev, &phy_id, i, true);
res              2128 drivers/scsi/libsas/sas_expander.c 			res = sas_rediscover(dev, phy_id);
res              2132 drivers/scsi/libsas/sas_expander.c 	return res;
res               168 drivers/scsi/libsas/sas_scsi_host.c 	int res = 0;
res               178 drivers/scsi/libsas/sas_scsi_host.c 		res = ata_sas_queuecmd(cmd, dev->sata_dev.ap);
res               180 drivers/scsi/libsas/sas_scsi_host.c 		return res;
res               187 drivers/scsi/libsas/sas_scsi_host.c 	res = i->dft->lldd_execute_task(task, GFP_ATOMIC);
res               188 drivers/scsi/libsas/sas_scsi_host.c 	if (res)
res               193 drivers/scsi/libsas/sas_scsi_host.c 	pr_debug("lldd_execute_task returned: %d\n", res);
res               196 drivers/scsi/libsas/sas_scsi_host.c 	if (res == -SAS_QUEUE_FULL)
res               281 drivers/scsi/libsas/sas_scsi_host.c 	int i, res;
res               287 drivers/scsi/libsas/sas_scsi_host.c 		res = si->dft->lldd_abort_task(task);
res               297 drivers/scsi/libsas/sas_scsi_host.c 		if (res == TMF_RESP_FUNC_COMPLETE) {
res               303 drivers/scsi/libsas/sas_scsi_host.c 			res = si->dft->lldd_query_task(task);
res               304 drivers/scsi/libsas/sas_scsi_host.c 			switch (res) {
res               321 drivers/scsi/libsas/sas_scsi_host.c 	return res;
res               326 drivers/scsi/libsas/sas_scsi_host.c 	int res = TMF_RESP_FUNC_FAILED;
res               338 drivers/scsi/libsas/sas_scsi_host.c 		res = i->dft->lldd_abort_task_set(dev, lun.scsi_lun);
res               340 drivers/scsi/libsas/sas_scsi_host.c 	if (res == TMF_RESP_FUNC_FAILED) {
res               342 drivers/scsi/libsas/sas_scsi_host.c 			res = i->dft->lldd_clear_task_set(dev, lun.scsi_lun);
res               345 drivers/scsi/libsas/sas_scsi_host.c 	if (res == TMF_RESP_FUNC_FAILED) {
res               347 drivers/scsi/libsas/sas_scsi_host.c 			res = i->dft->lldd_lu_reset(dev, lun.scsi_lun);
res               350 drivers/scsi/libsas/sas_scsi_host.c 	return res;
res               355 drivers/scsi/libsas/sas_scsi_host.c 	int res = TMF_RESP_FUNC_FAILED;
res               363 drivers/scsi/libsas/sas_scsi_host.c 		res = i->dft->lldd_I_T_nexus_reset(dev);
res               365 drivers/scsi/libsas/sas_scsi_host.c 	return res;
res               462 drivers/scsi/libsas/sas_scsi_host.c 	int res = TMF_RESP_FUNC_FAILED;
res               481 drivers/scsi/libsas/sas_scsi_host.c 		res = i->dft->lldd_abort_task(task);
res               484 drivers/scsi/libsas/sas_scsi_host.c 	if (res == TMF_RESP_FUNC_SUCC || res == TMF_RESP_FUNC_COMPLETE)
res               494 drivers/scsi/libsas/sas_scsi_host.c 	int res;
res               508 drivers/scsi/libsas/sas_scsi_host.c 	res = i->dft->lldd_lu_reset(dev, lun.scsi_lun);
res               509 drivers/scsi/libsas/sas_scsi_host.c 	if (res == TMF_RESP_FUNC_SUCC || res == TMF_RESP_FUNC_COMPLETE)
res               517 drivers/scsi/libsas/sas_scsi_host.c 	int res;
res               528 drivers/scsi/libsas/sas_scsi_host.c 	res = i->dft->lldd_I_T_nexus_reset(dev);
res               529 drivers/scsi/libsas/sas_scsi_host.c 	if (res == TMF_RESP_FUNC_SUCC || res == TMF_RESP_FUNC_COMPLETE ||
res               530 drivers/scsi/libsas/sas_scsi_host.c 	    res == -ENODEV)
res               539 drivers/scsi/libsas/sas_scsi_host.c 	int res;
res               545 drivers/scsi/libsas/sas_scsi_host.c 	res = shost->hostt->eh_device_reset_handler(cmd);
res               546 drivers/scsi/libsas/sas_scsi_host.c 	if (res == SUCCESS)
res               547 drivers/scsi/libsas/sas_scsi_host.c 		return res;
res               559 drivers/scsi/libsas/sas_scsi_host.c 	enum task_disposition res = TASK_IS_DONE;
res               600 drivers/scsi/libsas/sas_scsi_host.c 		res = sas_scsi_find_task(task);
res               602 drivers/scsi/libsas/sas_scsi_host.c 		switch (res) {
res               646 drivers/scsi/libsas/sas_scsi_host.c 				res = i->dft->lldd_clear_nexus_port(port);
res               647 drivers/scsi/libsas/sas_scsi_host.c 				if (res == TMF_RESP_FUNC_COMPLETE) {
res               658 drivers/scsi/libsas/sas_scsi_host.c 				res = i->dft->lldd_clear_nexus_ha(ha);
res               659 drivers/scsi/libsas/sas_scsi_host.c 				if (res == TMF_RESP_FUNC_COMPLETE) {
res               929 drivers/scsi/libsas/sas_scsi_host.c 	int res;
res               932 drivers/scsi/libsas/sas_scsi_host.c 	res = request_firmware(&fw, "sas_addr", &shost->shost_gendev);
res               933 drivers/scsi/libsas/sas_scsi_host.c 	if (res)
res               934 drivers/scsi/libsas/sas_scsi_host.c 		return res;
res               937 drivers/scsi/libsas/sas_scsi_host.c 		res = -ENODEV;
res               941 drivers/scsi/libsas/sas_scsi_host.c 	res = hex2bin(addr, fw->data, strnlen(fw->data, SAS_ADDR_SIZE * 2) / 2);
res               942 drivers/scsi/libsas/sas_scsi_host.c 	if (res)
res               947 drivers/scsi/libsas/sas_scsi_host.c 	return res;
res              1316 drivers/scsi/lpfc/lpfc_attr.c 	int res;
res              1326 drivers/scsi/lpfc/lpfc_attr.c 	res = lpfc_check_pci_resettable(phba);
res              1327 drivers/scsi/lpfc/lpfc_attr.c 	if (res)
res              1328 drivers/scsi/lpfc/lpfc_attr.c 		return res;
res              1356 drivers/scsi/lpfc/lpfc_attr.c 	res = pci_reset_bus(pdev);
res              1357 drivers/scsi/lpfc/lpfc_attr.c 	if (res) {
res              1359 drivers/scsi/lpfc/lpfc_attr.c 				"8350 PCI reset bus failed: %d\n", res);
res              1362 drivers/scsi/lpfc/lpfc_attr.c 	return res;
res              1176 drivers/scsi/mvsas/mv_sas.c 	int res = 0;
res              1188 drivers/scsi/mvsas/mv_sas.c 		res = -1;
res              1214 drivers/scsi/mvsas/mv_sas.c 			res = -1;
res              1221 drivers/scsi/mvsas/mv_sas.c 	return res;
res              1282 drivers/scsi/mvsas/mv_sas.c 	int res, retry;
res              1300 drivers/scsi/mvsas/mv_sas.c 		res = mvs_task_exec(task, GFP_KERNEL, NULL, 1, tmf);
res              1302 drivers/scsi/mvsas/mv_sas.c 		if (res) {
res              1304 drivers/scsi/mvsas/mv_sas.c 			mv_printk("executing internal task failed:%d\n", res);
res              1309 drivers/scsi/mvsas/mv_sas.c 		res = TMF_RESP_FUNC_FAILED;
res              1320 drivers/scsi/mvsas/mv_sas.c 			res = TMF_RESP_FUNC_COMPLETE;
res              1328 drivers/scsi/mvsas/mv_sas.c 			res = task->task_status.residual;
res              1335 drivers/scsi/mvsas/mv_sas.c 			res = -EMSGSIZE;
res              1351 drivers/scsi/mvsas/mv_sas.c 	return res;
res               109 drivers/scsi/mvumi.c 	struct mvumi_res *res = kzalloc(sizeof(*res), GFP_ATOMIC);
res               111 drivers/scsi/mvumi.c 	if (!res) {
res               119 drivers/scsi/mvumi.c 		res->virt_addr = kzalloc(size, GFP_ATOMIC);
res               120 drivers/scsi/mvumi.c 		if (!res->virt_addr) {
res               123 drivers/scsi/mvumi.c 			kfree(res);
res               130 drivers/scsi/mvumi.c 		res->virt_addr = dma_alloc_coherent(&mhba->pdev->dev, size,
res               131 drivers/scsi/mvumi.c 						    &res->bus_addr,
res               133 drivers/scsi/mvumi.c 		if (!res->virt_addr) {
res               137 drivers/scsi/mvumi.c 			kfree(res);
res               144 drivers/scsi/mvumi.c 		kfree(res);
res               148 drivers/scsi/mvumi.c 	res->type = type;
res               149 drivers/scsi/mvumi.c 	res->size = size;
res               150 drivers/scsi/mvumi.c 	INIT_LIST_HEAD(&res->entry);
res               151 drivers/scsi/mvumi.c 	list_add_tail(&res->entry, &mhba->res_list);
res               153 drivers/scsi/mvumi.c 	return res;
res               158 drivers/scsi/mvumi.c 	struct mvumi_res *res, *tmp;
res               160 drivers/scsi/mvumi.c 	list_for_each_entry_safe(res, tmp, &mhba->res_list, entry) {
res               161 drivers/scsi/mvumi.c 		switch (res->type) {
res               163 drivers/scsi/mvumi.c 			dma_free_coherent(&mhba->pdev->dev, res->size,
res               164 drivers/scsi/mvumi.c 						res->virt_addr, res->bus_addr);
res               167 drivers/scsi/mvumi.c 			kfree(res->virt_addr);
res               171 drivers/scsi/mvumi.c 				"unknown resource type %d\n", res->type);
res               174 drivers/scsi/mvumi.c 		list_del(&res->entry);
res               175 drivers/scsi/mvumi.c 		kfree(res);
res              2548 drivers/scsi/nsp32.c 	struct resource  *res;
res              2731 drivers/scsi/nsp32.c 	res = request_region(host->io_port, host->n_io_port, "nsp32");
res              2732 drivers/scsi/nsp32.c 	if (res == NULL) {
res               723 drivers/scsi/pcmcia/nsp_cs.c 	int	      ocount, res;
res               742 drivers/scsi/pcmcia/nsp_cs.c 		res = nsp_fifo_count(SCpnt) - ocount;
res               744 drivers/scsi/pcmcia/nsp_cs.c 		if (res == 0) { /* if some data available ? */
res               760 drivers/scsi/pcmcia/nsp_cs.c 		res = min(res, SCpnt->SCp.this_residual);
res               764 drivers/scsi/pcmcia/nsp_cs.c 			res &= ~(BIT(1)|BIT(0)); /* align 4 */
res               765 drivers/scsi/pcmcia/nsp_cs.c 			nsp_fifo32_read(base, SCpnt->SCp.ptr, res >> 2);
res               768 drivers/scsi/pcmcia/nsp_cs.c 			nsp_fifo8_read (base, SCpnt->SCp.ptr, res     );
res               772 drivers/scsi/pcmcia/nsp_cs.c 			res &= ~(BIT(1)|BIT(0)); /* align 4 */
res               773 drivers/scsi/pcmcia/nsp_cs.c 			nsp_mmio_fifo32_read(mmio_base, SCpnt->SCp.ptr, res >> 2);
res               781 drivers/scsi/pcmcia/nsp_cs.c 		nsp_inc_resid(SCpnt, -res);
res               782 drivers/scsi/pcmcia/nsp_cs.c 		SCpnt->SCp.ptr		 += res;
res               783 drivers/scsi/pcmcia/nsp_cs.c 		SCpnt->SCp.this_residual -= res;
res               784 drivers/scsi/pcmcia/nsp_cs.c 		ocount			 += res;
res               822 drivers/scsi/pcmcia/nsp_cs.c 	int           ocount, res;
res               840 drivers/scsi/pcmcia/nsp_cs.c 			res = ocount - nsp_fifo_count(SCpnt);
res               842 drivers/scsi/pcmcia/nsp_cs.c 			nsp_dbg(NSP_DEBUG_DATA_IO, "phase changed stat=0x%x, res=%d\n", stat, res);
res               844 drivers/scsi/pcmcia/nsp_cs.c 			nsp_inc_resid(SCpnt, res);
res               845 drivers/scsi/pcmcia/nsp_cs.c 			SCpnt->SCp.ptr		 -= res;
res               846 drivers/scsi/pcmcia/nsp_cs.c 			SCpnt->SCp.this_residual += res;
res               847 drivers/scsi/pcmcia/nsp_cs.c 			ocount			 -= res;
res               852 drivers/scsi/pcmcia/nsp_cs.c 		res = ocount - nsp_fifo_count(SCpnt);
res               853 drivers/scsi/pcmcia/nsp_cs.c 		if (res > 0) { /* write all data? */
res               854 drivers/scsi/pcmcia/nsp_cs.c 			nsp_dbg(NSP_DEBUG_DATA_IO, "wait for all data out. ocount=0x%x res=%d", ocount, res);
res               858 drivers/scsi/pcmcia/nsp_cs.c 		res = min(SCpnt->SCp.this_residual, WFIFO_CRIT);
res               863 drivers/scsi/pcmcia/nsp_cs.c 			res &= ~(BIT(1)|BIT(0)); /* align 4 */
res               864 drivers/scsi/pcmcia/nsp_cs.c 			nsp_fifo32_write(base, SCpnt->SCp.ptr, res >> 2);
res               867 drivers/scsi/pcmcia/nsp_cs.c 			nsp_fifo8_write (base, SCpnt->SCp.ptr, res     );
res               871 drivers/scsi/pcmcia/nsp_cs.c 			res &= ~(BIT(1)|BIT(0)); /* align 4 */
res               872 drivers/scsi/pcmcia/nsp_cs.c 			nsp_mmio_fifo32_write(mmio_base, SCpnt->SCp.ptr, res >> 2);
res               880 drivers/scsi/pcmcia/nsp_cs.c 		nsp_inc_resid(SCpnt, -res);
res               881 drivers/scsi/pcmcia/nsp_cs.c 		SCpnt->SCp.ptr		 += res;
res               882 drivers/scsi/pcmcia/nsp_cs.c 		SCpnt->SCp.this_residual -= res;
res               883 drivers/scsi/pcmcia/nsp_cs.c 		ocount			 += res;
res               714 drivers/scsi/pm8001/pm8001_ctl.c 	int res, i;
res               734 drivers/scsi/pm8001/pm8001_ctl.c 	res = sscanf(buf, "%s %s", cmd_ptr, filename_ptr);
res               735 drivers/scsi/pm8001/pm8001_ctl.c 	if (res != 2) {
res              1721 drivers/scsi/pm8001/pm8001_hwi.c 	int res;
res              1745 drivers/scsi/pm8001/pm8001_hwi.c 	res = pm8001_tag_alloc(pm8001_ha, &ccb_tag);
res              1746 drivers/scsi/pm8001/pm8001_hwi.c 	if (res)
res              1771 drivers/scsi/pm8001/pm8001_hwi.c 	int res;
res              1789 drivers/scsi/pm8001/pm8001_hwi.c 	res = pm8001_tag_alloc(pm8001_ha, &ccb_tag);
res              1790 drivers/scsi/pm8001/pm8001_hwi.c 	if (res) {
res              1834 drivers/scsi/pm8001/pm8001_hwi.c 	res = pm8001_mpi_build_cmd(pm8001_ha, circularQ, opc, &sata_cmd, 0);
res              1835 drivers/scsi/pm8001/pm8001_hwi.c 	if (res) {
res               619 drivers/scsi/pm8001/pm8001_sas.c 	int res = 0;
res               630 drivers/scsi/pm8001/pm8001_sas.c 		res = -1;
res               654 drivers/scsi/pm8001/pm8001_sas.c 			res = -1;
res               673 drivers/scsi/pm8001/pm8001_sas.c 	return res;
res               712 drivers/scsi/pm8001/pm8001_sas.c 	int res, retry;
res               731 drivers/scsi/pm8001/pm8001_sas.c 		res = pm8001_task_exec(task, GFP_KERNEL, 1, tmf);
res               733 drivers/scsi/pm8001/pm8001_sas.c 		if (res) {
res               747 drivers/scsi/pm8001/pm8001_sas.c 		res = -TMF_RESP_FUNC_FAILED;
res               760 drivers/scsi/pm8001/pm8001_sas.c 			res = TMF_RESP_FUNC_COMPLETE;
res               768 drivers/scsi/pm8001/pm8001_sas.c 			res = task->task_status.residual;
res               776 drivers/scsi/pm8001/pm8001_sas.c 			res = -EMSGSIZE;
res               792 drivers/scsi/pm8001/pm8001_sas.c 	return res;
res               800 drivers/scsi/pm8001/pm8001_sas.c 	int res, retry;
res               817 drivers/scsi/pm8001/pm8001_sas.c 		res = pm8001_tag_alloc(pm8001_ha, &ccb_tag);
res               818 drivers/scsi/pm8001/pm8001_sas.c 		if (res)
res               819 drivers/scsi/pm8001/pm8001_sas.c 			return res;
res               826 drivers/scsi/pm8001/pm8001_sas.c 		res = PM8001_CHIP_DISP->task_abort(pm8001_ha,
res               829 drivers/scsi/pm8001/pm8001_sas.c 		if (res) {
res               837 drivers/scsi/pm8001/pm8001_sas.c 		res = TMF_RESP_FUNC_FAILED;
res               849 drivers/scsi/pm8001/pm8001_sas.c 			res = TMF_RESP_FUNC_COMPLETE;
res               866 drivers/scsi/pm8001/pm8001_sas.c 	return res;
res              1404 drivers/scsi/pm8001/pm80xx_hwi.c 	int res;
res              1428 drivers/scsi/pm8001/pm80xx_hwi.c 	res = pm8001_tag_alloc(pm8001_ha, &ccb_tag);
res              1429 drivers/scsi/pm8001/pm80xx_hwi.c 	if (res) {
res              1457 drivers/scsi/pm8001/pm80xx_hwi.c 	int res;
res              1475 drivers/scsi/pm8001/pm80xx_hwi.c 	res = pm8001_tag_alloc(pm8001_ha, &ccb_tag);
res              1476 drivers/scsi/pm8001/pm80xx_hwi.c 	if (res) {
res              1522 drivers/scsi/pm8001/pm80xx_hwi.c 	res = pm8001_mpi_build_cmd(pm8001_ha, circularQ, opc, &sata_cmd, 0);
res              1523 drivers/scsi/pm8001/pm80xx_hwi.c 	if (res) {
res               139 drivers/scsi/pmcraid.c 	struct pmcraid_resource_entry *temp, *res = NULL;
res               180 drivers/scsi/pmcraid.c 			res = temp;
res               185 drivers/scsi/pmcraid.c 	if (res) {
res               186 drivers/scsi/pmcraid.c 		res->scsi_dev = scsi_dev;
res               187 drivers/scsi/pmcraid.c 		scsi_dev->hostdata = res;
res               188 drivers/scsi/pmcraid.c 		res->change_detected = 0;
res               189 drivers/scsi/pmcraid.c 		atomic_set(&res->read_failures, 0);
res               190 drivers/scsi/pmcraid.c 		atomic_set(&res->write_failures, 0);
res               212 drivers/scsi/pmcraid.c 	struct pmcraid_resource_entry *res = scsi_dev->hostdata;
res               214 drivers/scsi/pmcraid.c 	if (!res)
res               218 drivers/scsi/pmcraid.c 	if (RES_IS_GSCSI(res->cfg_entry) &&
res               228 drivers/scsi/pmcraid.c 	if (RES_IS_GSCSI(res->cfg_entry)) {
res               230 drivers/scsi/pmcraid.c 	} else if (RES_IS_VSET(res->cfg_entry)) {
res               241 drivers/scsi/pmcraid.c 	if (!RES_IS_GSCSI(res->cfg_entry) && !RES_IS_VSET(res->cfg_entry))
res               260 drivers/scsi/pmcraid.c 	struct pmcraid_resource_entry *res;
res               262 drivers/scsi/pmcraid.c 	res = (struct pmcraid_resource_entry *)scsi_dev->hostdata;
res               264 drivers/scsi/pmcraid.c 	if (res)
res               265 drivers/scsi/pmcraid.c 		res->scsi_dev = NULL;
res              1517 drivers/scsi/pmcraid.c 	struct pmcraid_resource_entry *res = NULL;
res              1576 drivers/scsi/pmcraid.c 	list_for_each_entry(res, &pinstance->used_res_q, queue) {
res              1577 drivers/scsi/pmcraid.c 		rc = memcmp(&res->cfg_entry.resource_address,
res              1611 drivers/scsi/pmcraid.c 		res = list_entry(pinstance->free_res_q.next,
res              1614 drivers/scsi/pmcraid.c 		list_del(&res->queue);
res              1615 drivers/scsi/pmcraid.c 		res->scsi_dev = NULL;
res              1616 drivers/scsi/pmcraid.c 		res->reset_progress = 0;
res              1617 drivers/scsi/pmcraid.c 		list_add_tail(&res->queue, &pinstance->used_res_q);
res              1620 drivers/scsi/pmcraid.c 	memcpy(&res->cfg_entry, cfg_entry, pinstance->config_table_entry_size);
res              1624 drivers/scsi/pmcraid.c 		if (res->scsi_dev) {
res              1626 drivers/scsi/pmcraid.c 				res->cfg_entry.unique_flags1 &= 0x7F;
res              1628 drivers/scsi/pmcraid.c 				res->cfg_entry.array_id &= cpu_to_le16(0xFF);
res              1629 drivers/scsi/pmcraid.c 			res->change_detected = RES_CHANGE_DEL;
res              1630 drivers/scsi/pmcraid.c 			res->cfg_entry.resource_handle =
res              1635 drivers/scsi/pmcraid.c 			list_move_tail(&res->queue, &pinstance->free_res_q);
res              1637 drivers/scsi/pmcraid.c 	} else if (!res->scsi_dev) {
res              1638 drivers/scsi/pmcraid.c 		res->change_detected = RES_CHANGE_ADD;
res              2479 drivers/scsi/pmcraid.c 	struct pmcraid_resource_entry *res = scsi_cmd->device->hostdata;
res              2486 drivers/scsi/pmcraid.c 	if (RES_IS_GSCSI(res->cfg_entry))
res              2514 drivers/scsi/pmcraid.c 	struct pmcraid_resource_entry *res = cmd->scsi_cmd->device->hostdata;
res              2522 drivers/scsi/pmcraid.c 	if (RES_IS_VSET(res->cfg_entry) &&
res              2556 drivers/scsi/pmcraid.c 			if (RES_IS_VSET(res->cfg_entry))
res              2586 drivers/scsi/pmcraid.c 	struct pmcraid_resource_entry *res = scsi_cmd->device->hostdata;
res              2593 drivers/scsi/pmcraid.c 	if (!res) {
res              2600 drivers/scsi/pmcraid.c 		atomic_inc(&res->read_failures);
res              2602 drivers/scsi/pmcraid.c 		atomic_inc(&res->write_failures);
res              2604 drivers/scsi/pmcraid.c 	if (!RES_IS_GSCSI(res->cfg_entry) &&
res              2624 drivers/scsi/pmcraid.c 		res->sync_reqd = 1;
res              2634 drivers/scsi/pmcraid.c 		if (!res->reset_progress)
res              2642 drivers/scsi/pmcraid.c 		res->sync_reqd = 1;
res              2666 drivers/scsi/pmcraid.c 		if (RES_IS_GSCSI(res->cfg_entry))
res              2707 drivers/scsi/pmcraid.c 	struct pmcraid_resource_entry *res;
res              2714 drivers/scsi/pmcraid.c 	res = scsi_cmd->device->hostdata;
res              2716 drivers/scsi/pmcraid.c 	if (!res) {
res              2733 drivers/scsi/pmcraid.c 	res->reset_progress = 1;
res              2737 drivers/scsi/pmcraid.c 		     le32_to_cpu(res->cfg_entry.resource_address));
res              2749 drivers/scsi/pmcraid.c 	ioarcb->resource_handle = res->cfg_entry.resource_handle;
res              2784 drivers/scsi/pmcraid.c 	res->reset_progress = 0;
res              2863 drivers/scsi/pmcraid.c 	struct pmcraid_resource_entry *res;
res              2866 drivers/scsi/pmcraid.c 	res = cmd->scsi_cmd->device->hostdata;
res              2907 drivers/scsi/pmcraid.c 	struct pmcraid_resource_entry *res;
res              2911 drivers/scsi/pmcraid.c 	res = cancel_cmd->res;
res              2912 drivers/scsi/pmcraid.c 	cancel_cmd->res = NULL;
res              2923 drivers/scsi/pmcraid.c 			res->sync_reqd = 1;
res              2946 drivers/scsi/pmcraid.c 	struct pmcraid_resource_entry *res;
res              2959 drivers/scsi/pmcraid.c 	res = scsi_cmd->device->hostdata;
res              2961 drivers/scsi/pmcraid.c 	if (res == NULL)
res              3005 drivers/scsi/pmcraid.c 		cancel_cmd->res = cmd->scsi_cmd->device->hostdata;
res              3331 drivers/scsi/pmcraid.c 	struct pmcraid_resource_entry *res;
res              3341 drivers/scsi/pmcraid.c 	res = scsi_cmd->device->hostdata;
res              3378 drivers/scsi/pmcraid.c 	ioarcb->resource_handle = res->cfg_entry.resource_handle;
res              3390 drivers/scsi/pmcraid.c 	if (RES_IS_GSCSI(res->cfg_entry) || RES_IS_VSET(res->cfg_entry)) {
res              3394 drivers/scsi/pmcraid.c 		if (res->sync_reqd) {
res              3396 drivers/scsi/pmcraid.c 			res->sync_reqd = 0;
res              3404 drivers/scsi/pmcraid.c 		if (RES_IS_GSCSI(res->cfg_entry))
res              3413 drivers/scsi/pmcraid.c 		     RES_IS_VSET(res->cfg_entry) ? PMCRAID_VSET_BUS_ID :
res              3415 drivers/scsi/pmcraid.c 		     RES_IS_VSET(res->cfg_entry) ?
res              3417 drivers/scsi/pmcraid.c 				res->cfg_entry.unique_flags1 :
res              3418 drivers/scsi/pmcraid.c 				le16_to_cpu(res->cfg_entry.array_id) & 0xFF) :
res              3419 drivers/scsi/pmcraid.c 			RES_TARGET(res->cfg_entry.resource_address),
res              3420 drivers/scsi/pmcraid.c 		     RES_LUN(res->cfg_entry.resource_address));
res              4292 drivers/scsi/pmcraid.c 	struct pmcraid_resource_entry *res;
res              4308 drivers/scsi/pmcraid.c 	list_for_each_entry_safe(res, temp, &pinstance->used_res_q, queue) {
res              4310 drivers/scsi/pmcraid.c 		if (res->change_detected == RES_CHANGE_DEL && res->scsi_dev) {
res              4311 drivers/scsi/pmcraid.c 			sdev = res->scsi_dev;
res              4323 drivers/scsi/pmcraid.c 					     res->cfg_entry.resource_address);
res              4324 drivers/scsi/pmcraid.c 				list_move_tail(&res->queue,
res              4333 drivers/scsi/pmcraid.c 				res->change_detected = 0;
res              4342 drivers/scsi/pmcraid.c 	list_for_each_entry(res, &pinstance->used_res_q, queue) {
res              4344 drivers/scsi/pmcraid.c 		if (res->change_detected == RES_CHANGE_ADD) {
res              4347 drivers/scsi/pmcraid.c 						     &res->cfg_entry))
res              4350 drivers/scsi/pmcraid.c 			if (RES_IS_VSET(res->cfg_entry)) {
res              4353 drivers/scsi/pmcraid.c 					target = res->cfg_entry.unique_flags1;
res              4355 drivers/scsi/pmcraid.c 					target = le16_to_cpu(res->cfg_entry.array_id) & 0xFF;
res              4361 drivers/scsi/pmcraid.c 					res->cfg_entry.resource_address);
res              4362 drivers/scsi/pmcraid.c 				lun = RES_LUN(res->cfg_entry.resource_address);
res              4365 drivers/scsi/pmcraid.c 			res->change_detected = 0;
res              5488 drivers/scsi/pmcraid.c 	struct pmcraid_resource_entry *res, *temp;
res              5506 drivers/scsi/pmcraid.c 	list_for_each_entry_safe(res, temp, &pinstance->used_res_q, queue)
res              5507 drivers/scsi/pmcraid.c 		list_move_tail(&res->queue, &old_res);
res              5523 drivers/scsi/pmcraid.c 		list_for_each_entry_safe(res, temp, &old_res, queue) {
res              5525 drivers/scsi/pmcraid.c 			rc = memcmp(&res->cfg_entry.resource_address,
res              5529 drivers/scsi/pmcraid.c 				list_move_tail(&res->queue,
res              5545 drivers/scsi/pmcraid.c 			res = list_entry(pinstance->free_res_q.next,
res              5548 drivers/scsi/pmcraid.c 			res->scsi_dev = NULL;
res              5549 drivers/scsi/pmcraid.c 			res->change_detected = RES_CHANGE_ADD;
res              5550 drivers/scsi/pmcraid.c 			res->reset_progress = 0;
res              5551 drivers/scsi/pmcraid.c 			list_move_tail(&res->queue, &pinstance->used_res_q);
res              5558 drivers/scsi/pmcraid.c 			memcpy(&res->cfg_entry, cfgte,
res              5561 drivers/scsi/pmcraid.c 				 res->cfg_entry.resource_type,
res              5563 drivers/scsi/pmcraid.c 					res->cfg_entry.unique_flags1 :
res              5564 drivers/scsi/pmcraid.c 					le16_to_cpu(res->cfg_entry.array_id) & 0xFF),
res              5565 drivers/scsi/pmcraid.c 				 le32_to_cpu(res->cfg_entry.resource_address));
res              5570 drivers/scsi/pmcraid.c 	list_for_each_entry_safe(res, temp, &old_res, queue) {
res              5572 drivers/scsi/pmcraid.c 		if (res->scsi_dev) {
res              5573 drivers/scsi/pmcraid.c 			res->change_detected = RES_CHANGE_DEL;
res              5574 drivers/scsi/pmcraid.c 			res->cfg_entry.resource_handle =
res              5576 drivers/scsi/pmcraid.c 			list_move_tail(&res->queue, &pinstance->used_res_q);
res              5578 drivers/scsi/pmcraid.c 			list_move_tail(&res->queue, &pinstance->free_res_q);
res               332 drivers/scsi/pmcraid.h #define RES_IS_IOA(res)      ((res).resource_type == RES_TYPE_IOA_FP)
res               333 drivers/scsi/pmcraid.h #define RES_IS_GSCSI(res)    ((res).resource_type == RES_TYPE_GSCSI)
res               334 drivers/scsi/pmcraid.h #define RES_IS_VSET(res)     ((res).resource_type == RES_TYPE_VSET)
res               335 drivers/scsi/pmcraid.h #define RES_IS_AFDASD(res)   ((res).resource_type == RES_TYPE_AF_DASD)
res               586 drivers/scsi/pmcraid.h 		struct pmcraid_resource_entry *res;
res                82 drivers/scsi/ppa.c 	int res = 1;
res                86 drivers/scsi/ppa.c 		res = 0;
res                88 drivers/scsi/ppa.c 	dev->wanted = res;
res                90 drivers/scsi/ppa.c 	return res;
res                89 drivers/scsi/ps3rom.c 	int res;
res               126 drivers/scsi/ps3rom.c 	res = lv1_storage_send_device_command(dev->sbd.dev_id,
res               131 drivers/scsi/ps3rom.c 	if (res == LV1_DENIED_BY_POLICY) {
res               138 drivers/scsi/ps3rom.c 	if (res) {
res               141 drivers/scsi/ps3rom.c 			__LINE__, opcode, res);
res               163 drivers/scsi/ps3rom.c 	int res;
res               168 drivers/scsi/ps3rom.c 	res = lv1_storage_read(dev->sbd.dev_id,
res               171 drivers/scsi/ps3rom.c 	if (res) {
res               173 drivers/scsi/ps3rom.c 			__LINE__, res);
res               184 drivers/scsi/ps3rom.c 	int res;
res               191 drivers/scsi/ps3rom.c 	res = lv1_storage_write(dev->sbd.dev_id,
res               194 drivers/scsi/ps3rom.c 	if (res) {
res               196 drivers/scsi/ps3rom.c 			__LINE__, res);
res               209 drivers/scsi/ps3rom.c 	int res;
res               222 drivers/scsi/ps3rom.c 		res = ps3rom_read_request(dev, cmd, srb10_lba(cmd),
res               227 drivers/scsi/ps3rom.c 		res = ps3rom_write_request(dev, cmd, srb10_lba(cmd),
res               232 drivers/scsi/ps3rom.c 		res = ps3rom_atapi_request(dev, cmd);
res               236 drivers/scsi/ps3rom.c 	if (res) {
res               238 drivers/scsi/ps3rom.c 		cmd->result = res;
res               268 drivers/scsi/ps3rom.c 	int res;
res               272 drivers/scsi/ps3rom.c 	res = lv1_storage_get_async_status(dev->sbd.dev_id, &tag, &status);
res               284 drivers/scsi/ps3rom.c 	if (res) {
res               286 drivers/scsi/ps3rom.c 			__func__, __LINE__, res, status);
res                15 drivers/scsi/qla2xxx/qla_bsg.c void qla2x00_bsg_job_done(srb_t *sp, int res)
res                20 drivers/scsi/qla2xxx/qla_bsg.c 	bsg_reply->result = res;
res               363 drivers/scsi/qla2xxx/qla_def.h 	le_id_t res;
res               365 drivers/scsi/qla2xxx/qla_def.h 	res.domain = id.domain;
res               366 drivers/scsi/qla2xxx/qla_def.h 	res.area   = id.area;
res               367 drivers/scsi/qla2xxx/qla_def.h 	res.al_pa  = id.al_pa;
res               369 drivers/scsi/qla2xxx/qla_def.h 	return res;
res               374 drivers/scsi/qla2xxx/qla_def.h 	be_id_t res;
res               376 drivers/scsi/qla2xxx/qla_def.h 	res.domain = id.domain;
res               377 drivers/scsi/qla2xxx/qla_def.h 	res.area   = id.area;
res               378 drivers/scsi/qla2xxx/qla_def.h 	res.al_pa  = id.al_pa;
res               380 drivers/scsi/qla2xxx/qla_def.h 	return res;
res               385 drivers/scsi/qla2xxx/qla_def.h 	port_id_t res;
res               387 drivers/scsi/qla2xxx/qla_def.h 	res.b.domain = id.domain;
res               388 drivers/scsi/qla2xxx/qla_def.h 	res.b.area   = id.area;
res               389 drivers/scsi/qla2xxx/qla_def.h 	res.b.al_pa  = id.al_pa;
res               390 drivers/scsi/qla2xxx/qla_def.h 	res.b.rsvd_1 = 0;
res               392 drivers/scsi/qla2xxx/qla_def.h 	return res;
res               397 drivers/scsi/qla2xxx/qla_def.h 	be_id_t res;
res               399 drivers/scsi/qla2xxx/qla_def.h 	res.domain = port_id.b.domain;
res               400 drivers/scsi/qla2xxx/qla_def.h 	res.area   = port_id.b.area;
res               401 drivers/scsi/qla2xxx/qla_def.h 	res.al_pa  = port_id.b.al_pa;
res               403 drivers/scsi/qla2xxx/qla_def.h 	return res;
res               627 drivers/scsi/qla2xxx/qla_def.h 	void (*done)(struct srb *sp, int res);
res              2991 drivers/scsi/qla2xxx/qla_gs.c static void qla24xx_async_gpsc_sp_done(srb_t *sp, int res)
res              3003 drivers/scsi/qla2xxx/qla_gs.c 	    sp->name, res, fcport->port_name);
res              3007 drivers/scsi/qla2xxx/qla_gs.c 	if (res == QLA_FUNCTION_TIMEOUT)
res              3010 drivers/scsi/qla2xxx/qla_gs.c 	if (res == (DID_ERROR << 16)) {
res              3013 drivers/scsi/qla2xxx/qla_gs.c 	} else if (res) {
res              3034 drivers/scsi/qla2xxx/qla_gs.c 	ea.rc = res;
res              3249 drivers/scsi/qla2xxx/qla_gs.c static void qla2x00_async_gpnid_sp_done(srb_t *sp, int res)
res              3260 drivers/scsi/qla2xxx/qla_gs.c 	if (res)
res              3263 drivers/scsi/qla2xxx/qla_gs.c 		    sp->name, res, sp->gen1, &ct_req->req.port_id.port_id,
res              3275 drivers/scsi/qla2xxx/qla_gs.c 	ea.rc = res;
res              3281 drivers/scsi/qla2xxx/qla_gs.c 	if (res) {
res              3282 drivers/scsi/qla2xxx/qla_gs.c 		if (res == QLA_FUNCTION_TIMEOUT) {
res              3432 drivers/scsi/qla2xxx/qla_gs.c void qla24xx_async_gffid_sp_done(srb_t *sp, int res)
res              3441 drivers/scsi/qla2xxx/qla_gs.c 	       sp->name, res, fcport->d_id.b24, fcport->port_name);
res              3450 drivers/scsi/qla2xxx/qla_gs.c 	if (!res) {
res              3469 drivers/scsi/qla2xxx/qla_gs.c 	ea.rc = res;
res              3857 drivers/scsi/qla2xxx/qla_gs.c static void qla2x00_async_gpnft_gnnft_sp_done(srb_t *sp, int res)
res              3870 drivers/scsi/qla2xxx/qla_gs.c 	    sp->name, res, sp->gen2);
res              3873 drivers/scsi/qla2xxx/qla_gs.c 	sp->rc = res;
res              3874 drivers/scsi/qla2xxx/qla_gs.c 	if (res) {
res              3915 drivers/scsi/qla2xxx/qla_gs.c 		sp->rc = res;
res              4235 drivers/scsi/qla2xxx/qla_gs.c static void qla2x00_async_gnnid_sp_done(srb_t *sp, int res)
res              4251 drivers/scsi/qla2xxx/qla_gs.c 	ea.rc = res;
res              4255 drivers/scsi/qla2xxx/qla_gs.c 	    sp->name, res, fcport->port_name, fcport->node_name);
res              4366 drivers/scsi/qla2xxx/qla_gs.c static void qla2x00_async_gfpnid_sp_done(srb_t *sp, int res)
res              4381 drivers/scsi/qla2xxx/qla_gs.c 	ea.rc = res;
res              4385 drivers/scsi/qla2xxx/qla_gs.c 	    sp->name, res, fcport->port_name, fcport->fabric_port_name);
res               135 drivers/scsi/qla2xxx/qla_init.c static void qla24xx_abort_sp_done(srb_t *sp, int res)
res               269 drivers/scsi/qla2xxx/qla_init.c static void qla2x00_async_login_sp_done(srb_t *sp, int res)
res               276 drivers/scsi/qla2xxx/qla_init.c 	    "%s %8phC res %d \n", __func__, sp->fcport->port_name, res);
res               375 drivers/scsi/qla2xxx/qla_init.c static void qla2x00_async_logout_sp_done(srb_t *sp, int res)
res               379 drivers/scsi/qla2xxx/qla_init.c 	qlt_logo_completion_handler(sp->fcport, res);
res               433 drivers/scsi/qla2xxx/qla_init.c static void qla2x00_async_prlo_sp_done(srb_t *sp, int res)
res               541 drivers/scsi/qla2xxx/qla_init.c static void qla2x00_async_adisc_sp_done(srb_t *sp, int res)
res               549 drivers/scsi/qla2xxx/qla_init.c 	    sp->name, res, sp->fcport->port_name);
res               554 drivers/scsi/qla2xxx/qla_init.c 	ea.rc = res;
res               965 drivers/scsi/qla2xxx/qla_init.c static void qla24xx_async_gnl_sp_done(srb_t *sp, int res)
res               979 drivers/scsi/qla2xxx/qla_init.c 	    sp->name, res, sp->u.iocb_cmd.u.mbx.in_mb[1],
res               982 drivers/scsi/qla2xxx/qla_init.c 	if (res == QLA_FUNCTION_TIMEOUT)
res               988 drivers/scsi/qla2xxx/qla_init.c 	ea.rc = res;
res              1152 drivers/scsi/qla2xxx/qla_init.c static void qla24xx_async_gpdb_sp_done(srb_t *sp, int res)
res              1162 drivers/scsi/qla2xxx/qla_init.c 	    sp->name, res, fcport->port_name, mb[1], mb[2]);
res              1166 drivers/scsi/qla2xxx/qla_init.c 	if (res == QLA_FUNCTION_TIMEOUT)
res              1195 drivers/scsi/qla2xxx/qla_init.c static void qla2x00_async_prli_sp_done(srb_t *sp, int res)
res              1203 drivers/scsi/qla2xxx/qla_init.c 	    sp->fcport->port_name, res);
res              1773 drivers/scsi/qla2xxx/qla_init.c static void qla2x00_tmf_sp_done(srb_t *sp, int res)
res              2549 drivers/scsi/qla2xxx/qla_iocb.c static void qla2x00_els_dcmd_sp_done(srb_t *sp, int res)
res              2713 drivers/scsi/qla2xxx/qla_iocb.c 	int res;
res              2721 drivers/scsi/qla2xxx/qla_iocb.c 	res = ha->isp_ops->abort_command(sp);
res              2724 drivers/scsi/qla2xxx/qla_iocb.c 	    (res == QLA_SUCCESS) ? "successful" : "failed");
res              2745 drivers/scsi/qla2xxx/qla_iocb.c static void qla2x00_els_dcmd2_sp_done(srb_t *sp, int res)
res              2755 drivers/scsi/qla2xxx/qla_iocb.c 	    sp->name, res, sp->handle, fcport->d_id.b24, fcport->port_name);
res              2763 drivers/scsi/qla2xxx/qla_iocb.c 		if (res) {
res              1440 drivers/scsi/qla2xxx/qla_isr.c 	int res;
res              1452 drivers/scsi/qla2xxx/qla_isr.c 	res = (si->u.mbx.in_mb[0] & MBS_MASK);
res              1454 drivers/scsi/qla2xxx/qla_isr.c 	sp->done(sp, res);
res              1463 drivers/scsi/qla2xxx/qla_isr.c 	int res = 0;
res              1470 drivers/scsi/qla2xxx/qla_isr.c 		res = QLA_FUNCTION_FAILED;
res              1472 drivers/scsi/qla2xxx/qla_isr.c 	sp->done(sp, res);
res              1485 drivers/scsi/qla2xxx/qla_isr.c 	int res = 0;
res              1509 drivers/scsi/qla2xxx/qla_isr.c 			    res = DID_OK << 16;
res              1521 drivers/scsi/qla2xxx/qla_isr.c 			    res = DID_ERROR << 16;
res              1527 drivers/scsi/qla2xxx/qla_isr.c 		    res = DID_OK << 16;
res              1538 drivers/scsi/qla2xxx/qla_isr.c 	     res = qla2x00_chk_ms_status(vha, (ms_iocb_entry_t *)pkt,
res              1544 drivers/scsi/qla2xxx/qla_isr.c 	sp->done(sp, res);
res              1558 drivers/scsi/qla2xxx/qla_isr.c 	int res;
res              1588 drivers/scsi/qla2xxx/qla_isr.c 		res = qla2x00_chk_ms_status(sp->vha, (ms_iocb_entry_t *)pkt,
res              1591 drivers/scsi/qla2xxx/qla_isr.c 		sp->done(sp, res);
res              1610 drivers/scsi/qla2xxx/qla_isr.c 			res =  DID_OK << 16;
res              1613 drivers/scsi/qla2xxx/qla_isr.c 				res =  DID_OK << 16;
res              1619 drivers/scsi/qla2xxx/qla_isr.c 				res = DID_ERROR << 16;
res              1640 drivers/scsi/qla2xxx/qla_isr.c 			res = DID_OK << 16;
res              1659 drivers/scsi/qla2xxx/qla_isr.c 			res = DID_ERROR << 16;
res              1668 drivers/scsi/qla2xxx/qla_isr.c 		res =  DID_OK << 16;
res              1674 drivers/scsi/qla2xxx/qla_isr.c 	sp->done(sp, res);
res              2082 drivers/scsi/qla2xxx/qla_isr.c 		     uint32_t sense_len, struct rsp_que *rsp, int res)
res              2106 drivers/scsi/qla2xxx/qla_isr.c 		cp->result = res;
res              2428 drivers/scsi/qla2xxx/qla_isr.c 	int res = 0;
res              2576 drivers/scsi/qla2xxx/qla_isr.c 			res = DID_BUS_BUSY << 16;
res              2601 drivers/scsi/qla2xxx/qla_isr.c 			res = DID_OK << 16;
res              2615 drivers/scsi/qla2xxx/qla_isr.c 				res = DID_ERROR << 16;
res              2619 drivers/scsi/qla2xxx/qla_isr.c 		res = DID_OK << 16 | lscsi_status;
res              2635 drivers/scsi/qla2xxx/qla_isr.c 		    rsp, res);
res              2648 drivers/scsi/qla2xxx/qla_isr.c 				res = DID_ERROR << 16 | lscsi_status;
res              2659 drivers/scsi/qla2xxx/qla_isr.c 				res = DID_ERROR << 16;
res              2673 drivers/scsi/qla2xxx/qla_isr.c 			res = DID_ERROR << 16 | lscsi_status;
res              2681 drivers/scsi/qla2xxx/qla_isr.c 		res = DID_OK << 16 | lscsi_status;
res              2704 drivers/scsi/qla2xxx/qla_isr.c 			    sense_len, rsp, res);
res              2721 drivers/scsi/qla2xxx/qla_isr.c 		res = DID_TRANSPORT_DISRUPTED << 16;
res              2746 drivers/scsi/qla2xxx/qla_isr.c 		res = DID_RESET << 16;
res              2751 drivers/scsi/qla2xxx/qla_isr.c 		res = cp->result;
res              2755 drivers/scsi/qla2xxx/qla_isr.c 		res = DID_ERROR << 16;
res              2769 drivers/scsi/qla2xxx/qla_isr.c 		    comp_status, scsi_status, res, vha->host_no,
res              2775 drivers/scsi/qla2xxx/qla_isr.c 		res = DID_ERROR << 16;
res              2778 drivers/scsi/qla2xxx/qla_isr.c 		res = DID_ERROR << 16;
res              2788 drivers/scsi/qla2xxx/qla_isr.c 		    comp_status, scsi_status, res, vha->host_no,
res              2795 drivers/scsi/qla2xxx/qla_isr.c 		sp->done(sp, res);
res              2871 drivers/scsi/qla2xxx/qla_isr.c 	int res = DID_ERROR << 16;
res              2883 drivers/scsi/qla2xxx/qla_isr.c 		res = DID_BUS_BUSY << 16;
res              2900 drivers/scsi/qla2xxx/qla_isr.c 			sp->done(sp, res);
res              6228 drivers/scsi/qla2xxx/qla_mbx.c static void qla2x00_async_mb_sp_done(srb_t *sp, int res)
res              6230 drivers/scsi/qla2xxx/qla_mbx.c 	sp->u.iocb_cmd.u.mbx.rc = res;
res               918 drivers/scsi/qla2xxx/qla_mid.c static void qla_ctrlvp_sp_done(srb_t *sp, int res)
res              1800 drivers/scsi/qla2xxx/qla_mr.c static void qla2x00_fxdisc_sp_done(srb_t *sp, int res)
res              2131 drivers/scsi/qla2xxx/qla_mr.c 		     uint32_t sense_len, struct rsp_que *rsp, int res)
res              2162 drivers/scsi/qla2xxx/qla_mr.c 		cp->result = res;
res              2216 drivers/scsi/qla2xxx/qla_mr.c 	int res = 0;
res              2263 drivers/scsi/qla2xxx/qla_mr.c 		res = bsg_reply->result = DID_OK << 16;
res              2267 drivers/scsi/qla2xxx/qla_mr.c 	sp->done(sp, res);
res              2295 drivers/scsi/qla2xxx/qla_mr.c 	int res = 0;
res              2373 drivers/scsi/qla2xxx/qla_mr.c 			res = DID_OK << 16;
res              2389 drivers/scsi/qla2xxx/qla_mr.c 				res = DID_ERROR << 16;
res              2393 drivers/scsi/qla2xxx/qla_mr.c 		res = DID_OK << 16 | le16_to_cpu(lscsi_status);
res              2410 drivers/scsi/qla2xxx/qla_mr.c 		    rsp, res);
res              2428 drivers/scsi/qla2xxx/qla_mr.c 				res = DID_ERROR << 16 |
res              2442 drivers/scsi/qla2xxx/qla_mr.c 				res = DID_ERROR << 16;
res              2458 drivers/scsi/qla2xxx/qla_mr.c 			res = DID_ERROR << 16 | le16_to_cpu(lscsi_status);
res              2466 drivers/scsi/qla2xxx/qla_mr.c 		res = DID_OK << 16 | le16_to_cpu(lscsi_status);
res              2492 drivers/scsi/qla2xxx/qla_mr.c 			    sense_len, rsp, res);
res              2509 drivers/scsi/qla2xxx/qla_mr.c 		res = DID_TRANSPORT_DISRUPTED << 16;
res              2520 drivers/scsi/qla2xxx/qla_mr.c 		res = DID_RESET << 16;
res              2524 drivers/scsi/qla2xxx/qla_mr.c 		res = DID_ERROR << 16;
res              2534 drivers/scsi/qla2xxx/qla_mr.c 		    comp_status, scsi_status, res, vha->host_no,
res              2541 drivers/scsi/qla2xxx/qla_mr.c 		sp->done(sp, res);
res              2697 drivers/scsi/qla2xxx/qla_mr.c 	int res = DID_ERROR << 16;
res              2703 drivers/scsi/qla2xxx/qla_mr.c 		sp->done(sp, res);
res               183 drivers/scsi/qla2xxx/qla_nvme.c static void qla_nvme_sp_ls_done(srb_t *sp, int res)
res               190 drivers/scsi/qla2xxx/qla_nvme.c 	if (res)
res               191 drivers/scsi/qla2xxx/qla_nvme.c 		res = -EINVAL;
res               193 drivers/scsi/qla2xxx/qla_nvme.c 	priv->comp_status = res;
res               199 drivers/scsi/qla2xxx/qla_nvme.c static void qla_nvme_sp_done(srb_t *sp, int res)
res               203 drivers/scsi/qla2xxx/qla_nvme.c 	priv->comp_status = res;
res               696 drivers/scsi/qla2xxx/qla_os.c void qla2x00_sp_compl(srb_t *sp, int res)
res               702 drivers/scsi/qla2xxx/qla_os.c 	cmd->result = res;
res               787 drivers/scsi/qla2xxx/qla_os.c void qla2xxx_qpair_sp_compl(srb_t *sp, int res)
res               793 drivers/scsi/qla2xxx/qla_os.c 	cmd->result = res;
res              1092 drivers/scsi/qla2xxx/qla_os.c 	int res;
res              1098 drivers/scsi/qla2xxx/qla_os.c 	res = (vha->fcport_count == 0);
res              1101 drivers/scsi/qla2xxx/qla_os.c 	return res;
res              1691 drivers/scsi/qla2xxx/qla_os.c static void qla2x00_abort_srb(struct qla_qpair *qp, srb_t *sp, const int res,
res              1704 drivers/scsi/qla2xxx/qla_os.c 		sp->done(sp, res);
res              1713 drivers/scsi/qla2xxx/qla_os.c 			sp->done(sp, res);
res              1743 drivers/scsi/qla2xxx/qla_os.c 			sp->done(sp, res);
res              1745 drivers/scsi/qla2xxx/qla_os.c 		sp->done(sp, res);
res              1750 drivers/scsi/qla2xxx/qla_os.c __qla2x00_abort_all_cmds(struct qla_qpair *qp, int res)
res              1770 drivers/scsi/qla2xxx/qla_os.c 				qla2x00_abort_srb(qp, sp, res, &flags);
res              1796 drivers/scsi/qla2xxx/qla_os.c qla2x00_abort_all_cmds(scsi_qla_host_t *vha, int res)
res              1804 drivers/scsi/qla2xxx/qla_os.c 	__qla2x00_abort_all_cmds(ha->base_qpair, res);
res              1812 drivers/scsi/qla2xxx/qla_os.c 		__qla2x00_abort_all_cmds(ha->queue_pair_map[que], res);
res               562 drivers/scsi/qla2xxx/qla_target.c static void qla2x00_async_nack_sp_done(srb_t *sp, int res)
res               569 drivers/scsi/qla2xxx/qla_target.c 	    sp->name, res, sp->fcport->port_name, sp->type);
res               919 drivers/scsi/qla2xxx/qla_target.c 	int res;
res               935 drivers/scsi/qla2xxx/qla_target.c 	res = qla24xx_els_dcmd_iocb(vha, ELS_DCMD_LOGO, logo->id);
res               944 drivers/scsi/qla2xxx/qla_target.c 	    logo->cmd_count, res);
res              1173 drivers/scsi/qla2xxx/qla_target.c 	int res = 0;
res              1193 drivers/scsi/qla2xxx/qla_target.c 		res = -ESRCH;
res              1194 drivers/scsi/qla2xxx/qla_target.c 		return res;
res              1291 drivers/scsi/qla2xxx/qla_target.c 	int res, rc, i;
res              1309 drivers/scsi/qla2xxx/qla_target.c 		res = -EBUSY;
res              1314 drivers/scsi/qla2xxx/qla_target.c 	res = -ENOENT;
res              1320 drivers/scsi/qla2xxx/qla_target.c 			res = 0;
res              1329 drivers/scsi/qla2xxx/qla_target.c 	return res;
res              1460 drivers/scsi/qla2xxx/qla_target.c 	int res;
res              1469 drivers/scsi/qla2xxx/qla_target.c 	res = (tgt->sess_count == 0);
res              1472 drivers/scsi/qla2xxx/qla_target.c 	return res;
res              3204 drivers/scsi/qla2xxx/qla_target.c 	int res;
res              3209 drivers/scsi/qla2xxx/qla_target.c 		res = 0;
res              3219 drivers/scsi/qla2xxx/qla_target.c 	res = qlt_pre_xmit_response(cmd, &prm, xmit_type, scsi_status,
res              3221 drivers/scsi/qla2xxx/qla_target.c 	if (unlikely(res != 0))
res              3242 drivers/scsi/qla2xxx/qla_target.c 		res = 0;
res              3247 drivers/scsi/qla2xxx/qla_target.c 	res = qlt_check_reserve_free_req(qpair, full_req_cnt);
res              3248 drivers/scsi/qla2xxx/qla_target.c 	if (unlikely(res))
res              3252 drivers/scsi/qla2xxx/qla_target.c 		res = qlt_build_ctio_crc2_pkt(qpair, &prm);
res              3254 drivers/scsi/qla2xxx/qla_target.c 		res = qlt_24xx_build_ctio_pkt(qpair, &prm);
res              3255 drivers/scsi/qla2xxx/qla_target.c 	if (unlikely(res != 0)) {
res              3348 drivers/scsi/qla2xxx/qla_target.c 	return res;
res              3359 drivers/scsi/qla2xxx/qla_target.c 	int res = 0;
res              3391 drivers/scsi/qla2xxx/qla_target.c 	res = qlt_check_reserve_free_req(qpair, prm.req_cnt);
res              3392 drivers/scsi/qla2xxx/qla_target.c 	if (res != 0)
res              3395 drivers/scsi/qla2xxx/qla_target.c 		res = qlt_build_ctio_crc2_pkt(qpair, &prm);
res              3397 drivers/scsi/qla2xxx/qla_target.c 		res = qlt_24xx_build_ctio_pkt(qpair, &prm);
res              3399 drivers/scsi/qla2xxx/qla_target.c 	if (unlikely(res != 0)) {
res              3423 drivers/scsi/qla2xxx/qla_target.c 	return res;
res              3429 drivers/scsi/qla2xxx/qla_target.c 	return res;
res              4679 drivers/scsi/qla2xxx/qla_target.c 	int res = 0;
res              4711 drivers/scsi/qla2xxx/qla_target.c 		res = 1;
res              4842 drivers/scsi/qla2xxx/qla_target.c 	return res;
res              4858 drivers/scsi/qla2xxx/qla_target.c 	int res = 0;
res              4884 drivers/scsi/qla2xxx/qla_target.c 		res = qlt_handle_login(vha, iocb);
res              4901 drivers/scsi/qla2xxx/qla_target.c 			res = qlt_handle_login(vha, iocb);
res              4906 drivers/scsi/qla2xxx/qla_target.c 			res = 1;
res              4931 drivers/scsi/qla2xxx/qla_target.c 				res = 0;
res              4990 drivers/scsi/qla2xxx/qla_target.c 				res = 0;
res              5017 drivers/scsi/qla2xxx/qla_target.c 		res = 1; /* send notify ack */
res              5027 drivers/scsi/qla2xxx/qla_target.c 				res = 0;
res              5040 drivers/scsi/qla2xxx/qla_target.c 				res = 0;
res              5050 drivers/scsi/qla2xxx/qla_target.c 			res = 1;
res              5067 drivers/scsi/qla2xxx/qla_target.c 		res = qlt_reset(vha, iocb, QLA_TGT_NEXUS_LOSS_SESS);
res              5071 drivers/scsi/qla2xxx/qla_target.c 		    __func__, wwn, res, sess);
res              5072 drivers/scsi/qla2xxx/qla_target.c 		if (res == 0) {
res              5078 drivers/scsi/qla2xxx/qla_target.c 			res = 0;
res              5083 drivers/scsi/qla2xxx/qla_target.c 				res = 0;
res              5108 drivers/scsi/qla2xxx/qla_target.c 		res = 1; /* send notify ack */
res              5117 drivers/scsi/qla2xxx/qla_target.c 		res = qlt_reset(vha, iocb, QLA_TGT_NEXUS_LOSS_SESS);
res              5123 drivers/scsi/qla2xxx/qla_target.c 	    vha->vp_idx, iocb->u.isp24.status_subcode, res);
res              5125 drivers/scsi/qla2xxx/qla_target.c 	return res;
res              4772 drivers/scsi/qla4xxx/ql4_os.c static void qla4xxx_abort_active_cmds(struct scsi_qla_host *ha, int res)
res              4782 drivers/scsi/qla4xxx/ql4_os.c 			srb->cmd->result = res;
res              2277 drivers/scsi/scsi_debug.c 	int param_len, res, mpage;
res              2290 drivers/scsi/scsi_debug.c 	res = fetch_to_dev_buffer(scp, arr, param_len);
res              2291 drivers/scsi/scsi_debug.c 	if (-1 == res)
res              2293 drivers/scsi/scsi_debug.c 	else if (sdebug_verbose && (res < param_len))
res              2296 drivers/scsi/scsi_debug.c 			    __func__, param_len, res);
res              2524 drivers/scsi/scsi_debug.c 	bool res;
res              2533 drivers/scsi/scsi_debug.c 	res = !memcmp(fake_storep + (block * lb_size), arr,
res              2535 drivers/scsi/scsi_debug.c 	if (!res)
res              2536 drivers/scsi/scsi_debug.c 		return res;
res              2538 drivers/scsi/scsi_debug.c 		res = memcmp(fake_storep, arr + ((num - rest) * lb_size),
res              2540 drivers/scsi/scsi_debug.c 	if (!res)
res              2541 drivers/scsi/scsi_debug.c 		return res;
res              2547 drivers/scsi/scsi_debug.c 	return res;
res              3094 drivers/scsi/scsi_debug.c 	int ret, res;
res              3149 drivers/scsi/scsi_debug.c 	res = fetch_to_dev_buffer(scp, lrdp, lbdof_blen);
res              3150 drivers/scsi/scsi_debug.c 	if (res == -1) {
res              3572 drivers/scsi/scsi_debug.c 	int res = 0;
res              3589 drivers/scsi/scsi_debug.c 		res = SDEG_RES_IMMED_MASK;
res              3592 drivers/scsi/scsi_debug.c 	return res;
res              3618 drivers/scsi/scsi_debug.c 	int k, j, n, res;
res              3666 drivers/scsi/scsi_debug.c 	for (k = 0, j = 0, res = 0; true; ++k, j = 0) {
res              3682 drivers/scsi/scsi_debug.c 		res = p_fill_from_dev_buffer(scp, arr, n, off_rsp);
res              3683 drivers/scsi/scsi_debug.c 		if (res)
res              3684 drivers/scsi/scsi_debug.c 			return res;
res              3692 drivers/scsi/scsi_debug.c 		res = p_fill_from_dev_buffer(scp, arr, j * sz_lun, off_rsp);
res              3693 drivers/scsi/scsi_debug.c 	return res;
res              4626 drivers/scsi/scsi_debug.c 	int jdelay, res;
res              4629 drivers/scsi/scsi_debug.c 		res = count;
res              4640 drivers/scsi/scsi_debug.c 					res = -EBUSY;   /* queued commands */
res              4644 drivers/scsi/scsi_debug.c 			if (res > 0) {
res              4650 drivers/scsi/scsi_debug.c 		return res;
res              4665 drivers/scsi/scsi_debug.c 	int ndelay, res;
res              4669 drivers/scsi/scsi_debug.c 		res = count;
res              4680 drivers/scsi/scsi_debug.c 					res = -EBUSY;   /* queued commands */
res              4684 drivers/scsi/scsi_debug.c 			if (res > 0) {
res              4691 drivers/scsi/scsi_debug.c 		return res;
res               525 drivers/scsi/scsi_devinfo.c 	int res = 0;
res               543 drivers/scsi/scsi_devinfo.c 	     && (res == 0); vendor = strsep(&next, ":")) {
res               552 drivers/scsi/scsi_devinfo.c 			res = -EINVAL;
res               554 drivers/scsi/scsi_devinfo.c 			res = scsi_dev_info_list_add(0 /* compatible */, vendor,
res               557 drivers/scsi/scsi_devinfo.c 	return res;
res              1052 drivers/scsi/scsi_scan.c 	int res = SCSI_SCAN_NO_RESPONSE, result_len = 256;
res              1123 drivers/scsi/scsi_scan.c 		res = SCSI_SCAN_TARGET_PRESENT;
res              1153 drivers/scsi/scsi_scan.c 		res = SCSI_SCAN_TARGET_PRESENT;
res              1157 drivers/scsi/scsi_scan.c 	res = scsi_add_lun(sdev, result, &bflags, shost->async_scan);
res              1158 drivers/scsi/scsi_scan.c 	if (res == SCSI_SCAN_LUN_PRESENT) {
res              1168 drivers/scsi/scsi_scan.c 	if (res == SCSI_SCAN_LUN_PRESENT) {
res              1174 drivers/scsi/scsi_scan.c 				res = SCSI_SCAN_NO_RESPONSE;
res              1180 drivers/scsi/scsi_scan.c 	return res;
res              1431 drivers/scsi/scsi_scan.c 			int res;
res              1433 drivers/scsi/scsi_scan.c 			res = scsi_probe_and_add_lun(starget,
res              1435 drivers/scsi/scsi_scan.c 			if (res == SCSI_SCAN_NO_RESPONSE) {
res              1536 drivers/scsi/scsi_scan.c 	int res;
res              1562 drivers/scsi/scsi_scan.c 	res = scsi_probe_and_add_lun(starget, 0, &bflags, NULL, rescan, NULL);
res              1563 drivers/scsi/scsi_scan.c 	if (res == SCSI_SCAN_LUN_PRESENT || res == SCSI_SCAN_TARGET_PRESENT) {
res               136 drivers/scsi/scsi_sysfs.c 	int res;
res               138 drivers/scsi/scsi_sysfs.c 	res = sscanf(str, "%10s %10s %16s %c", s1, s2, s3, &junk);
res               139 drivers/scsi/scsi_sysfs.c 	if (res != 3)
res               148 drivers/scsi/scsi_sysfs.c 		res = shost->transportt->user_scan(shost, channel, id, lun);
res               150 drivers/scsi/scsi_sysfs.c 		res = scsi_scan_host_selected(shost, channel, id, lun,
res               152 drivers/scsi/scsi_sysfs.c 	return res;
res               188 drivers/scsi/scsi_sysfs.c 	int res;
res               190 drivers/scsi/scsi_sysfs.c 	res = scsi_scan(shost, buf);
res               191 drivers/scsi/scsi_sysfs.c 	if (res == 0)
res               192 drivers/scsi/scsi_sysfs.c 		res = count;
res               193 drivers/scsi/scsi_sysfs.c 	return res;
res              1369 drivers/scsi/scsi_sysfs.c 	int res;
res              1390 drivers/scsi/scsi_sysfs.c 		res = scsi_device_set_state(sdev, SDEV_CANCEL);
res              1391 drivers/scsi/scsi_sysfs.c 		if (res != 0) {
res              1392 drivers/scsi/scsi_sysfs.c 			res = scsi_device_set_state(sdev, SDEV_DEL);
res              1393 drivers/scsi/scsi_sysfs.c 			if (res == 0)
res              1398 drivers/scsi/scsi_sysfs.c 		if (res != 0)
res               835 drivers/scsi/scsi_transport_sas.c 	int res;
res               837 drivers/scsi/scsi_transport_sas.c 	res = sysfs_create_link(&port->dev.kobj, &phy->dev.kobj,
res               839 drivers/scsi/scsi_transport_sas.c 	if (res)
res               841 drivers/scsi/scsi_transport_sas.c 	res = sysfs_create_link(&phy->dev.kobj, &port->dev.kobj, "port");
res               842 drivers/scsi/scsi_transport_sas.c 	if (res)
res               847 drivers/scsi/scsi_transport_sas.c 	       __func__, res);
res              1108 drivers/scsi/scsi_transport_sas.c 	int res;
res              1114 drivers/scsi/scsi_transport_sas.c 	res = sysfs_create_link(&port->dev.kobj, &parent->kobj,
res              1116 drivers/scsi/scsi_transport_sas.c 	if (res)
res              1121 drivers/scsi/scsi_transport_sas.c 	       __func__, res);
res              1232 drivers/scsi/scsi_transport_sas.c 	int res, error;
res              1237 drivers/scsi/scsi_transport_sas.c 	res = scsi_mode_sense(sdev, 1, 0x19, buffer, BUF_SIZE, 30*HZ, 3,
res              1241 drivers/scsi/scsi_transport_sas.c 	if (!scsi_status_is_good(res))
res               201 drivers/scsi/scsi_transport_srp.c 	int res = 0;
res               204 drivers/scsi/scsi_transport_srp.c 		res = kstrtoint(buf, 0, tmo);
res               208 drivers/scsi/scsi_transport_srp.c 	return res;
res               225 drivers/scsi/scsi_transport_srp.c 	int res, delay;
res               227 drivers/scsi/scsi_transport_srp.c 	res = srp_parse_tmo(&delay, buf);
res               228 drivers/scsi/scsi_transport_srp.c 	if (res)
res               230 drivers/scsi/scsi_transport_srp.c 	res = srp_tmo_valid(delay, rport->fast_io_fail_tmo,
res               232 drivers/scsi/scsi_transport_srp.c 	if (res)
res               243 drivers/scsi/scsi_transport_srp.c 	res = count;
res               246 drivers/scsi/scsi_transport_srp.c 	return res;
res               276 drivers/scsi/scsi_transport_srp.c 	int res;
res               279 drivers/scsi/scsi_transport_srp.c 	res = srp_parse_tmo(&fast_io_fail_tmo, buf);
res               280 drivers/scsi/scsi_transport_srp.c 	if (res)
res               282 drivers/scsi/scsi_transport_srp.c 	res = srp_tmo_valid(rport->reconnect_delay, fast_io_fail_tmo,
res               284 drivers/scsi/scsi_transport_srp.c 	if (res)
res               287 drivers/scsi/scsi_transport_srp.c 	res = count;
res               290 drivers/scsi/scsi_transport_srp.c 	return res;
res               311 drivers/scsi/scsi_transport_srp.c 	int res;
res               314 drivers/scsi/scsi_transport_srp.c 	res = srp_parse_tmo(&dev_loss_tmo, buf);
res               315 drivers/scsi/scsi_transport_srp.c 	if (res)
res               317 drivers/scsi/scsi_transport_srp.c 	res = srp_tmo_valid(rport->reconnect_delay, rport->fast_io_fail_tmo,
res               319 drivers/scsi/scsi_transport_srp.c 	if (res)
res               322 drivers/scsi/scsi_transport_srp.c 	res = count;
res               325 drivers/scsi/scsi_transport_srp.c 	return res;
res               383 drivers/scsi/scsi_transport_srp.c 	int delay, res;
res               385 drivers/scsi/scsi_transport_srp.c 	res = srp_reconnect_rport(rport);
res               386 drivers/scsi/scsi_transport_srp.c 	if (res != 0) {
res               389 drivers/scsi/scsi_transport_srp.c 			     ++rport->failed_reconnects, res);
res               537 drivers/scsi/scsi_transport_srp.c 	int res;
res               541 drivers/scsi/scsi_transport_srp.c 	res = mutex_lock_interruptible(&rport->mutex);
res               542 drivers/scsi/scsi_transport_srp.c 	if (res)
res               545 drivers/scsi/scsi_transport_srp.c 	res = rport->state != SRP_RPORT_LOST ? i->f->reconnect(rport) : -ENODEV;
res               547 drivers/scsi/scsi_transport_srp.c 		 dev_name(&shost->shost_gendev), rport->state, res);
res               548 drivers/scsi/scsi_transport_srp.c 	if (res == 0) {
res               583 drivers/scsi/scsi_transport_srp.c 	return res;
res                38 drivers/scsi/scsicam.c 	unsigned char *res = kmalloc(66, GFP_KERNEL);
res                39 drivers/scsi/scsicam.c 	if (res) {
res                44 drivers/scsi/scsicam.c 			memcpy(res, data + 0x1be, 66);
res                47 drivers/scsi/scsicam.c 			kfree(res);
res                48 drivers/scsi/scsicam.c 			res = NULL;
res                51 drivers/scsi/scsicam.c 	return res;
res              1622 drivers/scsi/sd.c 	int retries, res;
res              1643 drivers/scsi/sd.c 		res = scsi_execute(sdp, cmd, DMA_NONE, NULL, 0, NULL, sshdr,
res              1645 drivers/scsi/sd.c 		if (res == 0)
res              1649 drivers/scsi/sd.c 	if (res) {
res              1650 drivers/scsi/sd.c 		sd_print_result(sdkp, "Synchronize Cache(10) failed", res);
res              1652 drivers/scsi/sd.c 		if (driver_byte(res) == DRIVER_SENSE)
res              1663 drivers/scsi/sd.c 		switch (host_byte(res)) {
res              2583 drivers/scsi/sd.c 	int res;
res              2595 drivers/scsi/sd.c 		res = sd_do_mode_sense(sdp, 0, 0x3F, buffer, 192, &data, NULL);
res              2602 drivers/scsi/sd.c 		res = sd_do_mode_sense(sdp, 0, 0x3F, buffer, 4, &data, NULL);
res              2610 drivers/scsi/sd.c 		if (!scsi_status_is_good(res))
res              2611 drivers/scsi/sd.c 			res = sd_do_mode_sense(sdp, 0, 0, buffer, 4, &data, NULL);
res              2616 drivers/scsi/sd.c 		if (!scsi_status_is_good(res))
res              2617 drivers/scsi/sd.c 			res = sd_do_mode_sense(sdp, 0, 0x3F, buffer, 255,
res              2621 drivers/scsi/sd.c 	if (!scsi_status_is_good(res)) {
res              2642 drivers/scsi/sd.c 	int len = 0, res;
res              2679 drivers/scsi/sd.c 	res = sd_do_mode_sense(sdp, dbd, modepage, buffer, first_len,
res              2682 drivers/scsi/sd.c 	if (!scsi_status_is_good(res))
res              2711 drivers/scsi/sd.c 		res = sd_do_mode_sense(sdp, dbd, modepage, buffer, len,
res              2714 drivers/scsi/sd.c 	if (scsi_status_is_good(res)) {
res              2818 drivers/scsi/sd.c 	int res, offset;
res              2829 drivers/scsi/sd.c 	res = scsi_mode_sense(sdp, 1, 0x0a, buffer, 36, SD_TIMEOUT,
res              2832 drivers/scsi/sd.c 	if (!scsi_status_is_good(res) || !data.header_length ||
res              3493 drivers/scsi/sd.c 	int res;
res              3504 drivers/scsi/sd.c 	res = scsi_execute(sdp, cmd, DMA_NONE, NULL, 0, NULL, &sshdr,
res              3506 drivers/scsi/sd.c 	if (res) {
res              3507 drivers/scsi/sd.c 		sd_print_result(sdkp, "Start/Stop Unit failed", res);
res              3508 drivers/scsi/sd.c 		if (driver_byte(res) == DRIVER_SENSE)
res              3513 drivers/scsi/sd.c 			res = 0;
res              3517 drivers/scsi/sd.c 	if (res)
res              1173 drivers/scsi/sg.c 	__poll_t res = 0;
res              1190 drivers/scsi/sg.c 		if ((0 == res) && (1 == srp->done) && (!srp->sg_io_owned))
res              1191 drivers/scsi/sg.c 			res = EPOLLIN | EPOLLRDNORM;
res              1197 drivers/scsi/sg.c 		res |= EPOLLHUP;
res              1200 drivers/scsi/sg.c 			res |= EPOLLOUT | EPOLLWRNORM;
res              1202 drivers/scsi/sg.c 		res |= EPOLLOUT | EPOLLWRNORM;
res              1204 drivers/scsi/sg.c 				      "sg_poll: res=0x%x\n", (__force u32) res));
res              1205 drivers/scsi/sg.c 	return res;
res              1704 drivers/scsi/sg.c 	int res;
res              1775 drivers/scsi/sg.c 			res = -EBUSY; /* sfp->res_in_use == 1 */
res              1777 drivers/scsi/sg.c 				res = -ENOMEM;
res              1779 drivers/scsi/sg.c 			return res;
res              1781 drivers/scsi/sg.c 			res = sg_build_indirect(req_schp, sfp, dxfer_len);
res              1782 drivers/scsi/sg.c 			if (res) {
res              1784 drivers/scsi/sg.c 				return res;
res              1804 drivers/scsi/sg.c 		res = import_iovec(rw, hp->dxferp, iov_count, 0, &iov, &i);
res              1805 drivers/scsi/sg.c 		if (res < 0)
res              1806 drivers/scsi/sg.c 			return res;
res              1814 drivers/scsi/sg.c 		res = blk_rq_map_user_iov(q, rq, md, &i, GFP_ATOMIC);
res              1817 drivers/scsi/sg.c 		res = blk_rq_map_user(q, rq, md, hp->dxferp,
res              1820 drivers/scsi/sg.c 	if (!res) {
res              1828 drivers/scsi/sg.c 	return res;
res              2132 drivers/scsi/sg.c 	int res = 0;
res              2135 drivers/scsi/sg.c 		return res;
res              2140 drivers/scsi/sg.c 		res = 1;
res              2143 drivers/scsi/sg.c 	return res;
res                61 drivers/scsi/sni_53c710.c 	struct  resource *res;
res                63 drivers/scsi/sni_53c710.c 	res = platform_get_resource(dev, IORESOURCE_MEM, 0);
res                64 drivers/scsi/sni_53c710.c 	if (!res)
res                67 drivers/scsi/sni_53c710.c 	base = res->start;
res               414 drivers/scsi/snic/snic_scsi.c 	int res = 0;
res               419 drivers/scsi/snic/snic_scsi.c 		res = DID_TIME_OUT;
res               424 drivers/scsi/snic/snic_scsi.c 		res = DID_ABORT;
res               430 drivers/scsi/snic/snic_scsi.c 		res = DID_ERROR;
res               435 drivers/scsi/snic/snic_scsi.c 		res = DID_REQUEUE;
res               440 drivers/scsi/snic/snic_scsi.c 		res = DID_ERROR;
res               445 drivers/scsi/snic/snic_scsi.c 		res = DID_ERROR;
res               450 drivers/scsi/snic/snic_scsi.c 		res = DID_ERROR;
res               459 drivers/scsi/snic/snic_scsi.c 		res = DID_NO_CONNECT;
res               470 drivers/scsi/snic/snic_scsi.c 		res = DID_ERROR;
res               478 drivers/scsi/snic/snic_scsi.c 	sc->result = (res << 16) | icmnd_cmpl->scsi_status;
res                53 drivers/scsi/snic/vnic_dev.c 	struct vnic_res res[RES_TYPE_MAX];
res               158 drivers/scsi/snic/vnic_dev.c 		vdev->res[type].count = count;
res               159 drivers/scsi/snic/vnic_dev.c 		vdev->res[type].vaddr = (char __iomem *)bar->vaddr + bar_offset;
res               168 drivers/scsi/snic/vnic_dev.c 	return vdev->res[type].count;
res               174 drivers/scsi/snic/vnic_dev.c 	if (!vdev->res[type].vaddr)
res               182 drivers/scsi/snic/vnic_dev.c 		return (char __iomem *)vdev->res[type].vaddr +
res               186 drivers/scsi/snic/vnic_dev.c 		return (char __iomem *)vdev->res[type].vaddr;
res              3999 drivers/scsi/st.c 	int i, cnt, res, offset;
res              4012 drivers/scsi/st.c 		res = copy_from_user(page_address(page) + offset, ubp, cnt);
res              4013 drivers/scsi/st.c 		if (res)
res              4031 drivers/scsi/st.c 	int i, cnt, res, offset;
res              4044 drivers/scsi/st.c 		res = copy_to_user(ubp, page_address(page) + offset, cnt);
res              4045 drivers/scsi/st.c 		if (res)
res              4904 drivers/scsi/st.c 	int res, i, j;
res              4926 drivers/scsi/st.c 	res = get_user_pages_fast(uaddr, nr_pages, rw == READ ? FOLL_WRITE : 0,
res              4930 drivers/scsi/st.c 	if (res < nr_pages)
res              4945 drivers/scsi/st.c 	if (res > 0) {
res              4946 drivers/scsi/st.c 		for (j=0; j < res; j++)
res              4948 drivers/scsi/st.c 		res = 0;
res              4951 drivers/scsi/st.c 	return res;
res               175 drivers/scsi/sun3x_esp.c 	struct resource *res;
res               189 drivers/scsi/sun3x_esp.c 	res = platform_get_resource(dev, IORESOURCE_MEM, 0);
res               190 drivers/scsi/sun3x_esp.c 	if (!res || !res->start)
res               193 drivers/scsi/sun3x_esp.c 	esp->regs = ioremap_nocache(res->start, 0x20);
res               197 drivers/scsi/sun3x_esp.c 	res = platform_get_resource(dev, IORESOURCE_MEM, 1);
res               198 drivers/scsi/sun3x_esp.c 	if (!res || !res->start)
res               201 drivers/scsi/sun3x_esp.c 	esp->dma_regs = ioremap_nocache(res->start, 0x10);
res                85 drivers/scsi/sun_esp.c 	struct resource *res;
res                91 drivers/scsi/sun_esp.c 		res = &op->resource[1];
res                93 drivers/scsi/sun_esp.c 		res = &op->resource[0];
res                95 drivers/scsi/sun_esp.c 	esp->regs = of_ioremap(res, 0, SBUS_ESP_REG_SIZE, "ESP");
res              1089 drivers/scsi/ufs/ufs-qcom.c 	struct resource *res;
res              1167 drivers/scsi/ufs/ufs-qcom.c 		res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res              1168 drivers/scsi/ufs/ufs-qcom.c 		if (res) {
res              1170 drivers/scsi/ufs/ufs-qcom.c 					devm_ioremap_resource(dev, res);
res               187 drivers/sh/intc/core.c 	struct resource *res;
res               212 drivers/sh/intc/core.c 			res = desc->resource + k;
res               213 drivers/sh/intc/core.c 			WARN_ON(resource_type(res) != IORESOURCE_MEM);
res               214 drivers/sh/intc/core.c 			d->window[k].phys = res->start;
res               215 drivers/sh/intc/core.c 			d->window[k].size = resource_size(res);
res               216 drivers/sh/intc/core.c 			d->window[k].virt = ioremap_nocache(res->start,
res               217 drivers/sh/intc/core.c 							 resource_size(res));
res               314 drivers/sh/intc/core.c 		int res;
res               319 drivers/sh/intc/core.c 		res = irq_create_identity_mapping(d->domain, irq);
res               320 drivers/sh/intc/core.c 		if (unlikely(res)) {
res               321 drivers/sh/intc/core.c 			if (res == -EEXIST) {
res               322 drivers/sh/intc/core.c 				res = irq_domain_associate(d->domain, irq, irq);
res               323 drivers/sh/intc/core.c 				if (unlikely(res)) {
res               348 drivers/sh/intc/core.c 			res = irq_create_identity_mapping(d->domain, irq2);
res               349 drivers/sh/intc/core.c 			if (unlikely(res)) {
res               350 drivers/sh/intc/core.c 				if (res == -EEXIST) {
res               351 drivers/sh/intc/core.c 					res = irq_domain_associate(d->domain,
res               353 drivers/sh/intc/core.c 					if (unlikely(res)) {
res              1410 drivers/slimbus/qcom-ngd-ctrl.c 	struct resource *res;
res              1419 drivers/slimbus/qcom-ngd-ctrl.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1420 drivers/slimbus/qcom-ngd-ctrl.c 	ctrl->base = devm_ioremap_resource(dev, res);
res              1424 drivers/slimbus/qcom-ngd-ctrl.c 	res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
res              1425 drivers/slimbus/qcom-ngd-ctrl.c 	if (!res) {
res              1430 drivers/slimbus/qcom-ngd-ctrl.c 	ret = devm_request_irq(dev, res->start, qcom_slim_ngd_interrupt,
res               169 drivers/soc/amlogic/meson-canvas.c 	struct resource *res;
res               177 drivers/soc/amlogic/meson-canvas.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               178 drivers/soc/amlogic/meson-canvas.c 	canvas->reg_base = devm_ioremap_resource(dev, res);
res               608 drivers/soc/amlogic/meson-clk-measure.c 	struct resource *res;
res               626 drivers/soc/amlogic/meson-clk-measure.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               627 drivers/soc/amlogic/meson-clk-measure.c 	base = devm_ioremap_resource(&pdev->dev, res);
res               120 drivers/soc/bcm/brcmstb/pm/pm-arm.c 	struct resource res;
res               123 drivers/soc/bcm/brcmstb/pm/pm-arm.c 	ret = of_address_to_resource(dn, 0, &res);
res               128 drivers/soc/bcm/brcmstb/pm/pm-arm.c 	sram = __arm_ioremap_exec(res.start, resource_size(&res), false);
res               133 drivers/soc/bcm/brcmstb/pm/pm-arm.c 	ctrl.boot_sram_len = resource_size(&res);
res               143 drivers/soc/fsl/guts.c 	struct resource *res;
res               155 drivers/soc/fsl/guts.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               156 drivers/soc/fsl/guts.c 	guts->regs = devm_ioremap_resource(dev, res);
res               213 drivers/soc/fsl/qbman/bman_ccsr.c 	struct resource *res;
res               219 drivers/soc/fsl/qbman/bman_ccsr.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               220 drivers/soc/fsl/qbman/bman_ccsr.c 	if (!res) {
res               225 drivers/soc/fsl/qbman/bman_ccsr.c 	bm_ccsr_start = devm_ioremap(dev, res->start, resource_size(res));
res               680 drivers/soc/fsl/qbman/qman.c 	struct qm_dqrr_entry *res = qm_cl(dqrr->ring, dqrr->pi);
res               688 drivers/soc/fsl/qbman/qman.c 	dpaa_invalidate_touch_ro(res);
res               690 drivers/soc/fsl/qbman/qman.c 	if ((res->verb & QM_DQRR_VERB_VBIT) == dqrr->vbit) {
res               820 drivers/soc/fsl/qbman/qman.c 	union qm_mr_entry *res = qm_cl(mr->ring, mr->pi);
res               824 drivers/soc/fsl/qbman/qman.c 	if ((res->verb & QM_MR_VERB_VBIT) == mr->vbit) {
res               829 drivers/soc/fsl/qbman/qman.c 		res = mr_inc(res);
res               831 drivers/soc/fsl/qbman/qman.c 	dpaa_invalidate_touch_ro(res);
res              1039 drivers/soc/fsl/qbman/qman.c 	int res;
res              1044 drivers/soc/fsl/qbman/qman.c 	res = qm_dqrr_set_ithresh(&portal->p, ithresh);
res              1045 drivers/soc/fsl/qbman/qman.c 	if (res)
res              1046 drivers/soc/fsl/qbman/qman.c 		return res;
res              1614 drivers/soc/fsl/qbman/qman.c 	enum qman_cb_dqrr_result res;
res              1644 drivers/soc/fsl/qbman/qman.c 			res = fq->cb.dqrr(p, fq, dq);
res              1645 drivers/soc/fsl/qbman/qman.c 			if (res == qman_cb_dqrr_stop)
res              1654 drivers/soc/fsl/qbman/qman.c 			res = fq->cb.dqrr(p, fq, dq);
res              1659 drivers/soc/fsl/qbman/qman.c 			if (res == qman_cb_dqrr_stop)
res              1669 drivers/soc/fsl/qbman/qman.c 			    (res != qman_cb_dqrr_park));
res              1671 drivers/soc/fsl/qbman/qman.c 		if (res != qman_cb_dqrr_defer)
res              1673 drivers/soc/fsl/qbman/qman.c 						 res == qman_cb_dqrr_park);
res              1682 drivers/soc/fsl/qbman/qman.c 	} while (++limit < poll_limit && res != qman_cb_dqrr_consume_stop);
res              1856 drivers/soc/fsl/qbman/qman.c 	u8 res, myverb;
res              1940 drivers/soc/fsl/qbman/qman.c 	res = mcr->result;
res              1941 drivers/soc/fsl/qbman/qman.c 	if (res != QM_MCR_RESULT_OK) {
res              2011 drivers/soc/fsl/qbman/qman.c 	u8 res;
res              2037 drivers/soc/fsl/qbman/qman.c 	res = mcr->result;
res              2047 drivers/soc/fsl/qbman/qman.c 	if (res == QM_MCR_RESULT_OK) {
res              2075 drivers/soc/fsl/qbman/qman.c 	} else if (res == QM_MCR_RESULT_PENDING) {
res              2623 drivers/soc/fsl/qbman/qman.c 	u32 channel, wq, res;
res              2685 drivers/soc/fsl/qbman/qman.c 		res = mcr->result; /* Make a copy as we reuse MCR below */
res              2687 drivers/soc/fsl/qbman/qman.c 		if (res == QM_MCR_RESULT_OK)
res              2690 drivers/soc/fsl/qbman/qman.c 		if (res == QM_MCR_RESULT_PENDING) {
res              2740 drivers/soc/fsl/qbman/qman.c 		if (res != QM_MCR_RESULT_OK &&
res              2741 drivers/soc/fsl/qbman/qman.c 		    res != QM_MCR_RESULT_PENDING) {
res              2743 drivers/soc/fsl/qbman/qman.c 				fqid, res);
res               756 drivers/soc/fsl/qbman/qman_ccsr.c 	struct resource *res;
res               763 drivers/soc/fsl/qbman/qman_ccsr.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               764 drivers/soc/fsl/qbman/qman_ccsr.c 	if (!res) {
res               769 drivers/soc/fsl/qbman/qman_ccsr.c 	qm_ccsr_start = devm_ioremap(dev, res->start, resource_size(res));
res               376 drivers/soc/fsl/qbman/qman_test_stash.c 	u8 res = (offset + (L1_CACHE_BYTES - 1))
res               378 drivers/soc/fsl/qbman/qman_test_stash.c 	if (res > 3)
res               380 drivers/soc/fsl/qbman/qman_test_stash.c 	return res;
res                73 drivers/soc/fsl/qe/qe.c 	struct resource res;
res                82 drivers/soc/fsl/qe/qe.c 	ret = of_address_to_resource(qe, 0, &res);
res                84 drivers/soc/fsl/qe/qe.c 		qebase = res.start;
res               321 drivers/soc/fsl/qe/qe_ic.c 	struct resource res;
res               324 drivers/soc/fsl/qe/qe_ic.c 	ret = of_address_to_resource(node, 0, &res);
res               339 drivers/soc/fsl/qe/qe_ic.c 	qe_ic->regs = ioremap(res.start, resource_size(&res));
res                31 drivers/soc/fsl/qe/qe_io.c 	struct resource res;
res                36 drivers/soc/fsl/qe/qe_io.c 	ret = of_address_to_resource(np, 0, &res);
res                39 drivers/soc/fsl/qe/qe_io.c 	par_io = ioremap(res.start, resource_size(&res));
res               682 drivers/soc/ixp4xx/ixp4xx-npe.c 	struct resource *res;
res               687 drivers/soc/ixp4xx/ixp4xx-npe.c 		res = platform_get_resource(pdev, IORESOURCE_MEM, i);
res               688 drivers/soc/ixp4xx/ixp4xx-npe.c 		if (!res)
res               694 drivers/soc/ixp4xx/ixp4xx-npe.c 				 i, res->start, res->end);
res               697 drivers/soc/ixp4xx/ixp4xx-npe.c 		npe->regs = devm_ioremap_resource(dev, res);
res               703 drivers/soc/ixp4xx/ixp4xx-npe.c 				 i, res->start, res->end);
res               708 drivers/soc/ixp4xx/ixp4xx-npe.c 			 i, res->start, res->end);
res               378 drivers/soc/ixp4xx/ixp4xx-qmgr.c 	struct resource *res;
res               381 drivers/soc/ixp4xx/ixp4xx-qmgr.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               382 drivers/soc/ixp4xx/ixp4xx-qmgr.c 	if (!res)
res               384 drivers/soc/ixp4xx/ixp4xx-qmgr.c 	qmgr_regs = devm_ioremap_resource(dev, res);
res              1900 drivers/soc/mediatek/mtk-pmic-wrap.c 	struct resource *res;
res              1920 drivers/soc/mediatek/mtk-pmic-wrap.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "pwrap");
res              1921 drivers/soc/mediatek/mtk-pmic-wrap.c 	wrp->base = devm_ioremap_resource(wrp->dev, res);
res              1935 drivers/soc/mediatek/mtk-pmic-wrap.c 		res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
res              1937 drivers/soc/mediatek/mtk-pmic-wrap.c 		wrp->bridge_base = devm_ioremap_resource(wrp->dev, res);
res               350 drivers/soc/mediatek/mtk-scpsys.c 	struct resource *res;
res               366 drivers/soc/mediatek/mtk-scpsys.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               367 drivers/soc/mediatek/mtk-scpsys.c 	scp->base = devm_ioremap_resource(&pdev->dev, res);
res               315 drivers/soc/qcom/llcc-slice.c 	struct resource *res;
res               318 drivers/soc/qcom/llcc-slice.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, name);
res               319 drivers/soc/qcom/llcc-slice.c 	if (!res)
res               322 drivers/soc/qcom/llcc-slice.c 	base = devm_ioremap_resource(&pdev->dev, res);
res               726 drivers/soc/qcom/qcom-geni-se.c 	struct resource *res;
res               735 drivers/soc/qcom/qcom-geni-se.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               736 drivers/soc/qcom/qcom-geni-se.c 	wrapper->base = devm_ioremap_resource(dev, res);
res                93 drivers/soc/qcom/qcom_aoss.c #define to_qmp_pd_resource(res) container_of(res, struct qmp_pd, pd)
res               313 drivers/soc/qcom/qcom_aoss.c static int qmp_pd_power_toggle(struct qmp_pd *res, bool enable)
res               319 drivers/soc/qcom/qcom_aoss.c 		 res->pd.name, enable ? "on" : "off");
res               320 drivers/soc/qcom/qcom_aoss.c 	return qmp_send(res->qmp, buf, sizeof(buf));
res               346 drivers/soc/qcom/qcom_aoss.c 	struct qmp_pd *res;
res               351 drivers/soc/qcom/qcom_aoss.c 	res = devm_kcalloc(dev, num, sizeof(*res), GFP_KERNEL);
res               352 drivers/soc/qcom/qcom_aoss.c 	if (!res)
res               361 drivers/soc/qcom/qcom_aoss.c 		res[i].qmp = qmp;
res               362 drivers/soc/qcom/qcom_aoss.c 		res[i].pd.name = sdm845_resources[i];
res               363 drivers/soc/qcom/qcom_aoss.c 		res[i].pd.power_on = qmp_pd_power_on;
res               364 drivers/soc/qcom/qcom_aoss.c 		res[i].pd.power_off = qmp_pd_power_off;
res               366 drivers/soc/qcom/qcom_aoss.c 		ret = pm_genpd_init(&res[i].pd, NULL, true);
res               372 drivers/soc/qcom/qcom_aoss.c 		data->domains[i] = &res[i].pd;
res               516 drivers/soc/qcom/qcom_aoss.c 	struct resource *res;
res               529 drivers/soc/qcom/qcom_aoss.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               530 drivers/soc/qcom/qcom_aoss.c 	qmp->msgram = devm_ioremap_resource(&pdev->dev, res);
res               130 drivers/soc/qcom/qcom_gsbi.c 	struct resource *res;
res               142 drivers/soc/qcom/qcom_gsbi.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               143 drivers/soc/qcom/qcom_gsbi.c 	base = devm_ioremap_resource(&pdev->dev, res);
res               535 drivers/soc/qcom/rpmh-rsc.c 	struct resource *res;
res               540 drivers/soc/qcom/rpmh-rsc.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, drv_id);
res               541 drivers/soc/qcom/rpmh-rsc.c 	base = devm_ioremap_resource(&pdev->dev, res);
res               323 drivers/soc/qcom/spm.c 	struct resource *res;
res               332 drivers/soc/qcom/spm.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               333 drivers/soc/qcom/spm.c 	drv->reg_base = devm_ioremap_resource(&pdev->dev, res);
res               113 drivers/soc/samsung/exynos-pmu.c 	struct resource *res;
res               115 drivers/soc/samsung/exynos-pmu.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               116 drivers/soc/samsung/exynos-pmu.c 	pmu_base_addr = devm_ioremap_resource(dev, res);
res               323 drivers/soc/sunxi/sunxi_sram.c 	struct resource *res;
res               334 drivers/soc/sunxi/sunxi_sram.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               335 drivers/soc/sunxi/sunxi_sram.c 	base = devm_ioremap_resource(&pdev->dev, res);
res               144 drivers/soc/tegra/flowctrl.c 	struct resource *res;
res               146 drivers/soc/tegra/flowctrl.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               147 drivers/soc/tegra/flowctrl.c 	tegra_flowctrl_base = devm_ioremap_resource(&pdev->dev, res);
res               177 drivers/soc/tegra/flowctrl.c 	struct resource res;
res               185 drivers/soc/tegra/flowctrl.c 		if (of_address_to_resource(np, 0, &res) < 0) {
res               195 drivers/soc/tegra/flowctrl.c 		res.start = 0x60007000;
res               196 drivers/soc/tegra/flowctrl.c 		res.end = 0x60007fff;
res               197 drivers/soc/tegra/flowctrl.c 		res.flags = IORESOURCE_MEM;
res               207 drivers/soc/tegra/flowctrl.c 	tegra_flowctrl_base = ioremap_nocache(res.start, resource_size(&res));
res               121 drivers/soc/tegra/fuse/fuse-tegra.c 	struct resource *res;
res               125 drivers/soc/tegra/fuse/fuse-tegra.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               126 drivers/soc/tegra/fuse/fuse-tegra.c 	fuse->phys = res->start;
res               127 drivers/soc/tegra/fuse/fuse-tegra.c 	fuse->base = devm_ioremap_resource(&pdev->dev, res);
res               362 drivers/soc/tegra/pmc.c 	struct arm_smccc_res res;
res               366 drivers/soc/tegra/pmc.c 			      0, 0, 0, &res);
res               367 drivers/soc/tegra/pmc.c 		if (res.a0) {
res               370 drivers/soc/tegra/pmc.c 					 __func__, res.a0);
res               373 drivers/soc/tegra/pmc.c 					res.a0);
res               376 drivers/soc/tegra/pmc.c 		return res.a1;
res               385 drivers/soc/tegra/pmc.c 	struct arm_smccc_res res;
res               389 drivers/soc/tegra/pmc.c 			      value, 0, 0, 0, 0, &res);
res               390 drivers/soc/tegra/pmc.c 		if (res.a0) {
res               393 drivers/soc/tegra/pmc.c 					 __func__, res.a0);
res               396 drivers/soc/tegra/pmc.c 					res.a0);
res              2051 drivers/soc/tegra/pmc.c 	struct resource *res;
res              2067 drivers/soc/tegra/pmc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              2068 drivers/soc/tegra/pmc.c 	base = devm_ioremap_resource(&pdev->dev, res);
res              2072 drivers/soc/tegra/pmc.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "wake");
res              2073 drivers/soc/tegra/pmc.c 	if (res) {
res              2074 drivers/soc/tegra/pmc.c 		pmc->wake = devm_ioremap_resource(&pdev->dev, res);
res              2081 drivers/soc/tegra/pmc.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "aotag");
res              2082 drivers/soc/tegra/pmc.c 	if (res) {
res              2083 drivers/soc/tegra/pmc.c 		pmc->aotag = devm_ioremap_resource(&pdev->dev, res);
res              2090 drivers/soc/tegra/pmc.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "scratch");
res              2091 drivers/soc/tegra/pmc.c 	if (res) {
res              2092 drivers/soc/tegra/pmc.c 		pmc->scratch = devm_ioremap_resource(&pdev->dev, res);
res               541 drivers/soc/ti/knav_dma.c 	struct resource res;
res               545 drivers/soc/ti/knav_dma.c 	ret = of_address_to_resource(node, index, &res);
res               552 drivers/soc/ti/knav_dma.c 	regs = devm_ioremap_resource(kdev->dev, &res);
res               557 drivers/soc/ti/knav_dma.c 		*_size = resource_size(&res);
res              1379 drivers/soc/ti/knav_qmss_queue.c 	struct resource res;
res              1383 drivers/soc/ti/knav_qmss_queue.c 	ret = of_address_to_resource(node, index, &res);
res              1390 drivers/soc/ti/knav_qmss_queue.c 	regs = devm_ioremap_resource(kdev->dev, &res);
res                74 drivers/soc/ti/ti_sci_inta_msi.c 				       struct ti_sci_resource *res)
res                79 drivers/soc/ti/ti_sci_inta_msi.c 	for (set = 0; set < res->sets; set++) {
res                80 drivers/soc/ti/ti_sci_inta_msi.c 		for (i = 0; i < res->desc[set].num; i++) {
res                87 drivers/soc/ti/ti_sci_inta_msi.c 			msi_desc->inta.dev_index = res->desc[set].start + i;
res                98 drivers/soc/ti/ti_sci_inta_msi.c 				      struct ti_sci_resource *res)
res               111 drivers/soc/ti/ti_sci_inta_msi.c 	nvec = ti_sci_inta_msi_alloc_descs(dev, res);
res               434 drivers/soc/ti/wkup_m3_ipc.c 	struct resource *res;
res               442 drivers/soc/ti/wkup_m3_ipc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               443 drivers/soc/ti/wkup_m3_ipc.c 	m3_ipc->ipc_mem_base = devm_ioremap_resource(dev, res);
res               126 drivers/soc/xilinx/xlnx_vcu.c 	u32 res;
res               428 drivers/soc/xilinx/xlnx_vcu.c 	cfg_val = (found->res << VCU_PLL_CFG_RES_SHIFT) |
res               499 drivers/soc/xilinx/xlnx_vcu.c 	struct resource *res;
res               508 drivers/soc/xilinx/xlnx_vcu.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "vcu_slcr");
res               509 drivers/soc/xilinx/xlnx_vcu.c 	if (!res) {
res               514 drivers/soc/xilinx/xlnx_vcu.c 	xvcu->vcu_slcr_ba = devm_ioremap_nocache(&pdev->dev, res->start,
res               515 drivers/soc/xilinx/xlnx_vcu.c 						 resource_size(res));
res               521 drivers/soc/xilinx/xlnx_vcu.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "logicore");
res               522 drivers/soc/xilinx/xlnx_vcu.c 	if (!res) {
res               527 drivers/soc/xilinx/xlnx_vcu.c 	xvcu->logicore_reg_ba = devm_ioremap_nocache(&pdev->dev, res->start,
res               528 drivers/soc/xilinx/xlnx_vcu.c 						     resource_size(res));
res               116 drivers/soc/zte/zx2967_pm_domains.c 	struct resource *res;
res               126 drivers/soc/zte/zx2967_pm_domains.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               127 drivers/soc/zte/zx2967_pm_domains.c 	pcubase = devm_ioremap_resource(&pdev->dev, res);
res               105 drivers/soundwire/intel.c 	struct sdw_intel_link_res *res;
res               195 drivers/soundwire/intel.c 	void __iomem *s = sdw->res->shim;
res               196 drivers/soundwire/intel.c 	void __iomem *a = sdw->res->alh;
res               291 drivers/soundwire/intel.c 	void __iomem *shim = sdw->res->shim;
res               311 drivers/soundwire/intel.c 	void __iomem *shim = sdw->res->shim;
res               372 drivers/soundwire/intel.c 	void __iomem *shim = sdw->res->shim;
res               406 drivers/soundwire/intel.c 	void __iomem *shim = sdw->res->shim;
res               478 drivers/soundwire/intel.c 	void __iomem *shim = sdw->res->shim;
res               510 drivers/soundwire/intel.c 	void __iomem *alh = sdw->res->alh;
res               536 drivers/soundwire/intel.c 	struct sdw_intel_link_res *res = sdw->res;
res               538 drivers/soundwire/intel.c 	if (res->ops && res->ops->config_stream && res->arg)
res               539 drivers/soundwire/intel.c 		return res->ops->config_stream(res->arg,
res               553 drivers/soundwire/intel.c 	void __iomem *shim = sdw->res->shim;
res               572 drivers/soundwire/intel.c 	void __iomem *shim = sdw->res->shim;
res              1016 drivers/soundwire/intel.c 	sdw->res = dev_get_platdata(&pdev->dev);
res              1018 drivers/soundwire/intel.c 	sdw->cdns.registers = sdw->res->registers;
res              1063 drivers/soundwire/intel.c 	ret = request_threaded_irq(sdw->res->irq, sdw_cdns_irq, sdw_cdns_thread,
res              1067 drivers/soundwire/intel.c 			sdw->res->irq);
res              1084 drivers/soundwire/intel.c 	free_irq(sdw->res->irq, sdw);
res              1099 drivers/soundwire/intel.c 		free_irq(sdw->res->irq, sdw);
res                30 drivers/soundwire/intel_init.c 	struct sdw_intel_link_res res;
res                60 drivers/soundwire/intel_init.c *sdw_intel_add_controller(struct sdw_intel_res *res)
res                71 drivers/soundwire/intel_init.c 	if (acpi_bus_get_device(res->handle, &adev))
res                87 drivers/soundwire/intel_init.c 	caps = ioread32(res->mmio_base + SDW_SHIM_BASE + SDW_SHIM_LCAP);
res               125 drivers/soundwire/intel_init.c 		link->res.irq = res->irq;
res               126 drivers/soundwire/intel_init.c 		link->res.registers = res->mmio_base + SDW_LINK_BASE
res               128 drivers/soundwire/intel_init.c 		link->res.shim = res->mmio_base + SDW_SHIM_BASE;
res               129 drivers/soundwire/intel_init.c 		link->res.alh = res->mmio_base + SDW_ALH_BASE;
res               131 drivers/soundwire/intel_init.c 		link->res.ops = res->ops;
res               132 drivers/soundwire/intel_init.c 		link->res.arg = res->arg;
res               136 drivers/soundwire/intel_init.c 		pdevinfo.parent = res->parent;
res               140 drivers/soundwire/intel_init.c 		pdevinfo.data = &link->res;
res               141 drivers/soundwire/intel_init.c 		pdevinfo.size_data = sizeof(link->res);
res               167 drivers/soundwire/intel_init.c 	struct sdw_intel_res *res = cdata;
res               181 drivers/soundwire/intel_init.c 	res->handle = handle;
res               205 drivers/soundwire/intel_init.c void *sdw_intel_init(acpi_handle *parent_handle, struct sdw_intel_res *res)
res               212 drivers/soundwire/intel_init.c 				     NULL, res, NULL);
res               216 drivers/soundwire/intel_init.c 	return sdw_intel_add_controller(res);
res               454 drivers/spi/atmel-quadspi.c 	struct resource *res;
res               475 drivers/spi/atmel-quadspi.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "qspi_base");
res               476 drivers/spi/atmel-quadspi.c 	aq->regs = devm_ioremap_resource(&pdev->dev, res);
res               484 drivers/spi/atmel-quadspi.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "qspi_mmap");
res               485 drivers/spi/atmel-quadspi.c 	aq->mem = devm_ioremap_resource(&pdev->dev, res);
res               492 drivers/spi/atmel-quadspi.c 	aq->mmap_size = resource_size(res);
res               310 drivers/spi/spi-au1550.c 	u32 res;
res               370 drivers/spi/spi-au1550.c 	res = au1xxx_dbdma_put_dest(hw->dma_rx_ch, virt_to_phys(hw->rx),
res               372 drivers/spi/spi-au1550.c 	if (!res)
res               375 drivers/spi/spi-au1550.c 	res = au1xxx_dbdma_put_source(hw->dma_tx_ch, virt_to_phys(hw->tx),
res               377 drivers/spi/spi-au1550.c 	if (!res)
res              1203 drivers/spi/spi-bcm-qspi.c 	struct resource *res;
res              1248 drivers/spi/spi-bcm-qspi.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "hif_mspi");
res              1249 drivers/spi/spi-bcm-qspi.c 	if (!res)
res              1250 drivers/spi/spi-bcm-qspi.c 		res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
res              1253 drivers/spi/spi-bcm-qspi.c 	if (res) {
res              1254 drivers/spi/spi-bcm-qspi.c 		qspi->base[MSPI]  = devm_ioremap_resource(dev, res);
res              1263 drivers/spi/spi-bcm-qspi.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "bspi");
res              1264 drivers/spi/spi-bcm-qspi.c 	if (res) {
res              1265 drivers/spi/spi-bcm-qspi.c 		qspi->base[BSPI]  = devm_ioremap_resource(dev, res);
res              1277 drivers/spi/spi-bcm-qspi.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "cs_reg");
res              1278 drivers/spi/spi-bcm-qspi.c 	if (res) {
res              1279 drivers/spi/spi-bcm-qspi.c 		qspi->base[CHIP_SELECT]  = devm_ioremap_resource(dev, res);
res               319 drivers/spi/spi-efm32.c 	struct resource *res;
res               383 drivers/spi/spi-efm32.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               384 drivers/spi/spi-efm32.c 	if (!res) {
res               390 drivers/spi/spi-efm32.c 	if (resource_size(res) < 0x60) {
res               396 drivers/spi/spi-efm32.c 	ddata->base = devm_ioremap_resource(&pdev->dev, res);
res               648 drivers/spi/spi-ep93xx.c 	struct resource *res;
res               662 drivers/spi/spi-ep93xx.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               663 drivers/spi/spi-ep93xx.c 	if (!res) {
res               704 drivers/spi/spi-ep93xx.c 	espi->sspdr_phys = res->start + SSPDR;
res               706 drivers/spi/spi-ep93xx.c 	espi->mmio = devm_ioremap_resource(&pdev->dev, res);
res               732 drivers/spi/spi-ep93xx.c 		 (unsigned long)res->start, irq);
res              1003 drivers/spi/spi-fsl-dspi.c 	struct resource *res;
res              1059 drivers/spi/spi-fsl-dspi.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1060 drivers/spi/spi-fsl-dspi.c 	base = devm_ioremap_resource(&pdev->dev, res);
res              1122 drivers/spi/spi-fsl-dspi.c 		ret = dspi_request_dma(dspi, res->start);
res               843 drivers/spi/spi-fsl-lpspi.c 	struct resource *res;
res               906 drivers/spi/spi-fsl-lpspi.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               907 drivers/spi/spi-fsl-lpspi.c 	fsl_lpspi->base = devm_ioremap_resource(&pdev->dev, res);
res               912 drivers/spi/spi-fsl-lpspi.c 	fsl_lpspi->base_phys = res->start;
res               831 drivers/spi/spi-fsl-qspi.c 	struct resource *res;
res               853 drivers/spi/spi-fsl-qspi.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "QuadSPI");
res               854 drivers/spi/spi-fsl-qspi.c 	q->iobase = devm_ioremap_resource(dev, res);
res               860 drivers/spi/spi-fsl-qspi.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
res               862 drivers/spi/spi-fsl-qspi.c 	q->ahb_addr = devm_ioremap_resource(dev, res);
res               868 drivers/spi/spi-fsl-qspi.c 	q->memmap_phy = res->start;
res               582 drivers/spi/spi-img-spfi.c 	struct resource *res;
res               596 drivers/spi/spi-img-spfi.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               597 drivers/spi/spi-img-spfi.c 	spfi->regs = devm_ioremap_resource(spfi->dev, res);
res               602 drivers/spi/spi-img-spfi.c 	spfi->phys = res->start;
res              1590 drivers/spi/spi-imx.c 	struct resource *res;
res              1669 drivers/spi/spi-imx.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1670 drivers/spi/spi-imx.c 	spi_imx->base = devm_ioremap_resource(&pdev->dev, res);
res              1675 drivers/spi/spi-imx.c 	spi_imx->base_phys = res->start;
res                97 drivers/spi/spi-iproc-qspi.c 	struct resource *res;
res               107 drivers/spi/spi-iproc-qspi.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "intr_regs");
res               108 drivers/spi/spi-iproc-qspi.c 	priv->int_reg = devm_ioremap_resource(dev, res);
res               112 drivers/spi/spi-iproc-qspi.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
res               114 drivers/spi/spi-iproc-qspi.c 	priv->int_status_reg = devm_ioremap_resource(dev, res);
res               145 drivers/spi/spi-jcore.c 	struct resource *res;
res               167 drivers/spi/spi-jcore.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               168 drivers/spi/spi-jcore.c 	if (!res)
res               170 drivers/spi/spi-jcore.c 	if (!devm_request_mem_region(&pdev->dev, res->start,
res               171 drivers/spi/spi-jcore.c 				     resource_size(res), pdev->name))
res               173 drivers/spi/spi-jcore.c 	hw->base = devm_ioremap_nocache(&pdev->dev, res->start,
res               174 drivers/spi/spi-jcore.c 					resource_size(res));
res               800 drivers/spi/spi-lantiq-ssc.c 	struct resource *res;
res               815 drivers/spi/spi-lantiq-ssc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               816 drivers/spi/spi-lantiq-ssc.c 	if (!res) {
res               843 drivers/spi/spi-lantiq-ssc.c 	spi->regbase = devm_ioremap_resource(dev, res);
res               555 drivers/spi/spi-mem.c static void devm_spi_mem_dirmap_release(struct device *dev, void *res)
res               557 drivers/spi/spi-mem.c 	struct spi_mem_dirmap_desc *desc = *(struct spi_mem_dirmap_desc **)res;
res               597 drivers/spi/spi-mem.c static int devm_spi_mem_dirmap_match(struct device *dev, void *res, void *data)
res               599 drivers/spi/spi-mem.c         struct spi_mem_dirmap_desc **ptr = res;
res               622 drivers/spi/spi-mt65xx.c 	struct resource *res;
res               686 drivers/spi/spi-mt65xx.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               687 drivers/spi/spi-mt65xx.c 	if (!res) {
res               693 drivers/spi/spi-mt65xx.c 	mdata->base = devm_ioremap_resource(&pdev->dev, res);
res               527 drivers/spi/spi-mxic.c 	struct resource *res;
res               553 drivers/spi/spi-mxic.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "regs");
res               554 drivers/spi/spi-mxic.c 	mxic->regs = devm_ioremap_resource(&pdev->dev, res);
res               679 drivers/spi/spi-npcm-fiu.c 	struct resource *res;
res               707 drivers/spi/spi-npcm-fiu.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "control");
res               708 drivers/spi/spi-npcm-fiu.c 	regbase = devm_ioremap_resource(dev, res);
res               948 drivers/spi/spi-nxp-fspi.c 	struct resource *res;
res               970 drivers/spi/spi-nxp-fspi.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "fspi_base");
res               971 drivers/spi/spi-nxp-fspi.c 	f->iobase = devm_ioremap_resource(dev, res);
res               978 drivers/spi/spi-nxp-fspi.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "fspi_mmap");
res               979 drivers/spi/spi-nxp-fspi.c 	f->ahb_addr = devm_ioremap_resource(dev, res);
res               986 drivers/spi/spi-nxp-fspi.c 	f->memmap_phy = res->start;
res               987 drivers/spi/spi-nxp-fspi.c 	f->memmap_phy_size = resource_size(res);
res              2220 drivers/spi/spi-pl022.c 	pl022->phybase = adev->res.start;
res              2221 drivers/spi/spi-pl022.c 	pl022->virtbase = devm_ioremap(dev, adev->res.start,
res              2222 drivers/spi/spi-pl022.c 				       resource_size(&adev->res));
res              2228 drivers/spi/spi-pl022.c 		&adev->res.start, pl022->virtbase);
res              1546 drivers/spi/spi-pxa2xx.c 	struct resource *res;
res              1579 drivers/spi/spi-pxa2xx.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1580 drivers/spi/spi-pxa2xx.c 	if (!res)
res              1585 drivers/spi/spi-pxa2xx.c 	ssp->phys_base = res->start;
res              1586 drivers/spi/spi-pxa2xx.c 	ssp->mmio_base = devm_ioremap_resource(&pdev->dev, res);
res              1000 drivers/spi/spi-qup.c 	struct resource *res;
res              1007 drivers/spi/spi-qup.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1008 drivers/spi/spi-qup.c 	base = devm_ioremap_resource(dev, res);
res              1081 drivers/spi/spi-qup.c 	ret = spi_qup_init_dma(master, res->start);
res              1067 drivers/spi/spi-rspi.c 			    const struct resource *res)
res              1085 drivers/spi/spi-rspi.c 					     res->start + RSPI_SPDR);
res              1090 drivers/spi/spi-rspi.c 					     res->start + RSPI_SPDR);
res              1196 drivers/spi/spi-rspi.c 	struct resource *res;
res              1233 drivers/spi/spi-rspi.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1234 drivers/spi/spi-rspi.c 	rspi->addr = devm_ioremap_resource(&pdev->dev, res);
res              1291 drivers/spi/spi-rspi.c 	ret = rspi_request_dma(&pdev->dev, ctlr, res);
res               215 drivers/spi/spi-sh-hspi.c 	struct resource *res;
res               222 drivers/spi/spi-sh-hspi.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               223 drivers/spi/spi-sh-hspi.c 	if (!res) {
res               247 drivers/spi/spi-sh-hspi.c 				       res->start, resource_size(res));
res              1212 drivers/spi/spi-sh-msiof.c 	const struct resource *res;
res              1229 drivers/spi/spi-sh-msiof.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res              1230 drivers/spi/spi-sh-msiof.c 	if (!res)
res              1231 drivers/spi/spi-sh-msiof.c 		res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1235 drivers/spi/spi-sh-msiof.c 						 dma_tx_id, res->start + TFDR);
res              1240 drivers/spi/spi-sh-msiof.c 						 dma_rx_id, res->start + RFDR);
res               427 drivers/spi/spi-sh.c 	struct resource *res;
res               433 drivers/spi/spi-sh.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               434 drivers/spi/spi-sh.c 	if (unlikely(res == NULL)) {
res               452 drivers/spi/spi-sh.c 	switch (res->flags & IORESOURCE_MEM_TYPE_MASK) {
res               466 drivers/spi/spi-sh.c 	ss->addr = devm_ioremap(&pdev->dev, res->start, resource_size(res));
res               371 drivers/spi/spi-slave-mt27xx.c 	struct resource *res;
res               396 drivers/spi/spi-slave-mt27xx.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               397 drivers/spi/spi-slave-mt27xx.c 	if (!res) {
res               405 drivers/spi/spi-slave-mt27xx.c 	mdata->base = devm_ioremap_resource(&pdev->dev, res);
res               458 drivers/spi/spi-sprd-adi.c 	struct resource *res;
res               477 drivers/spi/spi-sprd-adi.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               478 drivers/spi/spi-sprd-adi.c 	sadi->base = devm_ioremap_resource(&pdev->dev, res);
res               485 drivers/spi/spi-sprd-adi.c 	sadi->slave_pbase = res->start + ADI_SLAVE_OFFSET;
res               920 drivers/spi/spi-sprd.c 	struct resource *res;
res               930 drivers/spi/spi-sprd.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               931 drivers/spi/spi-sprd.c 	ss->base = devm_ioremap_resource(&pdev->dev, res);
res               937 drivers/spi/spi-sprd.c 	ss->phy_base = res->start;
res               539 drivers/spi/spi-stm32-qspi.c 	struct resource *res;
res               549 drivers/spi/spi-stm32-qspi.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "qspi");
res               550 drivers/spi/spi-stm32-qspi.c 	qspi->io_base = devm_ioremap_resource(dev, res);
res               556 drivers/spi/spi-stm32-qspi.c 	qspi->phys_base = res->start;
res               558 drivers/spi/spi-stm32-qspi.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "qspi_mm");
res               559 drivers/spi/spi-stm32-qspi.c 	qspi->mm_base = devm_ioremap_resource(dev, res);
res               565 drivers/spi/spi-stm32-qspi.c 	qspi->mm_size = resource_size(res);
res              1812 drivers/spi/spi-stm32.c 	struct resource *res;
res              1831 drivers/spi/spi-stm32.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1832 drivers/spi/spi-stm32.c 	spi->base = devm_ioremap_resource(&pdev->dev, res);
res              1838 drivers/spi/spi-stm32.c 	spi->phys_addr = (dma_addr_t)res->start;
res               327 drivers/spi/spi-txx9.c 	struct resource *res;
res               358 drivers/spi/spi-txx9.c 	res = platform_get_resource(dev, IORESOURCE_MEM, 0);
res               359 drivers/spi/spi-txx9.c 	c->membase = devm_ioremap_resource(&dev->dev, res);
res               379 drivers/spi/spi-txx9.c 		 (unsigned long long)res->start, irq,
res               393 drivers/spi/spi-xilinx.c 	struct resource *res;
res               435 drivers/spi/spi-xilinx.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               436 drivers/spi/spi-xilinx.c 	xspi->regs = devm_ioremap_resource(&pdev->dev, res);
res               490 drivers/spi/spi-xilinx.c 		(unsigned long long)res->start, xspi->regs, xspi->irq);
res              2521 drivers/spi/spi.c static void devm_spi_unregister(struct device *dev, void *res)
res              2523 drivers/spi/spi.c 	spi_unregister_controller(*(struct spi_controller **)res);
res              2713 drivers/spi/spi.c void spi_res_free(void *res)
res              2715 drivers/spi/spi.c 	struct spi_res *sres = container_of(res, struct spi_res, data);
res              2717 drivers/spi/spi.c 	if (!res)
res              2730 drivers/spi/spi.c void spi_res_add(struct spi_message *message, void *res)
res              2732 drivers/spi/spi.c 	struct spi_res *sres = container_of(res, struct spi_res, data);
res              2746 drivers/spi/spi.c 	struct spi_res *res, *tmp;
res              2748 drivers/spi/spi.c 	list_for_each_entry_safe_reverse(res, tmp, &message->resources, entry) {
res              2749 drivers/spi/spi.c 		if (res->release)
res              2750 drivers/spi/spi.c 			res->release(ctlr, message, res->data);
res              2752 drivers/spi/spi.c 		list_del(&res->entry);
res              2754 drivers/spi/spi.c 		kfree(res);
res              2765 drivers/spi/spi.c 					    void *res)
res              2767 drivers/spi/spi.c 	struct spi_replaced_transfers *rxfer = res;
res              2772 drivers/spi/spi.c 		rxfer->release(ctlr, msg, res);
res              1160 drivers/spmi/spmi-pmic-arb.c 	struct resource *res;
res              1173 drivers/spmi/spmi-pmic-arb.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "core");
res              1174 drivers/spmi/spmi-pmic-arb.c 	core = devm_ioremap_resource(&ctrl->dev, res);
res              1180 drivers/spmi/spmi-pmic-arb.c 	pmic_arb->core_size = resource_size(res);
res              1206 drivers/spmi/spmi-pmic-arb.c 		res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
res              1208 drivers/spmi/spmi-pmic-arb.c 		pmic_arb->rd_base = devm_ioremap_resource(&ctrl->dev, res);
res              1214 drivers/spmi/spmi-pmic-arb.c 		res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
res              1216 drivers/spmi/spmi-pmic-arb.c 		pmic_arb->wr_base = devm_ioremap_resource(&ctrl->dev, res);
res              1226 drivers/spmi/spmi-pmic-arb.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "intr");
res              1227 drivers/spmi/spmi-pmic-arb.c 	pmic_arb->intr = devm_ioremap_resource(&ctrl->dev, res);
res              1233 drivers/spmi/spmi-pmic-arb.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "cnfg");
res              1234 drivers/spmi/spmi-pmic-arb.c 	pmic_arb->cnfg = devm_ioremap_resource(&ctrl->dev, res);
res                32 drivers/ssb/bridge_pcmcia_80211.c 	int res = 0;
res                46 drivers/ssb/bridge_pcmcia_80211.c 	res = pcmcia_request_window(dev, dev->resource[2], 250);
res                47 drivers/ssb/bridge_pcmcia_80211.c 	if (res != 0)
res                50 drivers/ssb/bridge_pcmcia_80211.c 	res = pcmcia_map_mem_page(dev, dev->resource[2], 0);
res                51 drivers/ssb/bridge_pcmcia_80211.c 	if (res != 0)
res                57 drivers/ssb/bridge_pcmcia_80211.c 	res = pcmcia_enable_device(dev);
res                58 drivers/ssb/bridge_pcmcia_80211.c 	if (res != 0)
res                73 drivers/ssb/bridge_pcmcia_80211.c 	dev_err(&dev->dev, "Initialization failed (%d, %d)\n", res, err);
res               512 drivers/ssb/driver_chipcommon.c 	u32 res = 0;
res               515 drivers/ssb/driver_chipcommon.c 	res = chipco_write32_masked(cc, SSB_CHIPCO_GPIOOUT, mask, value);
res               518 drivers/ssb/driver_chipcommon.c 	return res;
res               524 drivers/ssb/driver_chipcommon.c 	u32 res = 0;
res               527 drivers/ssb/driver_chipcommon.c 	res = chipco_write32_masked(cc, SSB_CHIPCO_GPIOOUTEN, mask, value);
res               530 drivers/ssb/driver_chipcommon.c 	return res;
res               536 drivers/ssb/driver_chipcommon.c 	u32 res = 0;
res               539 drivers/ssb/driver_chipcommon.c 	res = chipco_write32_masked(cc, SSB_CHIPCO_GPIOCTL, mask, value);
res               542 drivers/ssb/driver_chipcommon.c 	return res;
res               549 drivers/ssb/driver_chipcommon.c 	u32 res = 0;
res               552 drivers/ssb/driver_chipcommon.c 	res = chipco_write32_masked(cc, SSB_CHIPCO_GPIOIRQ, mask, value);
res               555 drivers/ssb/driver_chipcommon.c 	return res;
res               561 drivers/ssb/driver_chipcommon.c 	u32 res = 0;
res               564 drivers/ssb/driver_chipcommon.c 	res = chipco_write32_masked(cc, SSB_CHIPCO_GPIOPOL, mask, value);
res               567 drivers/ssb/driver_chipcommon.c 	return res;
res               573 drivers/ssb/driver_chipcommon.c 	u32 res = 0;
res               579 drivers/ssb/driver_chipcommon.c 	res = chipco_write32_masked(cc, SSB_CHIPCO_GPIOPULLUP, mask, value);
res               582 drivers/ssb/driver_chipcommon.c 	return res;
res               588 drivers/ssb/driver_chipcommon.c 	u32 res = 0;
res               594 drivers/ssb/driver_chipcommon.c 	res = chipco_write32_masked(cc, SSB_CHIPCO_GPIOPULLDOWN, mask, value);
res               597 drivers/ssb/driver_chipcommon.c 	return res;
res               156 drivers/ssb/driver_extif.c 	u32 res = 0;
res               159 drivers/ssb/driver_extif.c 	res = extif_write32_masked(extif, SSB_EXTIF_GPIO_OUT(0),
res               163 drivers/ssb/driver_extif.c 	return res;
res               169 drivers/ssb/driver_extif.c 	u32 res = 0;
res               172 drivers/ssb/driver_extif.c 	res = extif_write32_masked(extif, SSB_EXTIF_GPIO_OUTEN(0),
res               176 drivers/ssb/driver_extif.c 	return res;
res               182 drivers/ssb/driver_extif.c 	u32 res = 0;
res               185 drivers/ssb/driver_extif.c 	res = extif_write32_masked(extif, SSB_EXTIF_GPIO_INTPOL, mask, value);
res               188 drivers/ssb/driver_extif.c 	return res;
res               194 drivers/ssb/driver_extif.c 	u32 res = 0;
res               197 drivers/ssb/driver_extif.c 	res = extif_write32_masked(extif, SSB_EXTIF_GPIO_INTMASK, mask, value);
res               200 drivers/ssb/driver_extif.c 	return res;
res               254 drivers/ssb/driver_gige.c 	struct resource *res;
res               262 drivers/ssb/driver_gige.c 	res = &(pdev->resource[0]);
res               263 drivers/ssb/driver_gige.c 	res->flags = IORESOURCE_MEM | IORESOURCE_PCI_FIXED;
res               264 drivers/ssb/driver_gige.c 	res->name = dev->mem_resource.name;
res               265 drivers/ssb/driver_gige.c 	res->start = dev->mem_resource.start;
res               266 drivers/ssb/driver_gige.c 	res->end = dev->mem_resource.end;
res                72 drivers/ssb/embedded.c 	u32 res = 0;
res                76 drivers/ssb/embedded.c 		res = ssb_chipco_gpio_in(&bus->chipco, mask);
res                78 drivers/ssb/embedded.c 		res = ssb_extif_gpio_in(&bus->extif, mask);
res                83 drivers/ssb/embedded.c 	return res;
res                90 drivers/ssb/embedded.c 	u32 res = 0;
res                94 drivers/ssb/embedded.c 		res = ssb_chipco_gpio_out(&bus->chipco, mask, value);
res                96 drivers/ssb/embedded.c 		res = ssb_extif_gpio_out(&bus->extif, mask, value);
res               101 drivers/ssb/embedded.c 	return res;
res               108 drivers/ssb/embedded.c 	u32 res = 0;
res               112 drivers/ssb/embedded.c 		res = ssb_chipco_gpio_outen(&bus->chipco, mask, value);
res               114 drivers/ssb/embedded.c 		res = ssb_extif_gpio_outen(&bus->extif, mask, value);
res               119 drivers/ssb/embedded.c 	return res;
res               126 drivers/ssb/embedded.c 	u32 res = 0;
res               130 drivers/ssb/embedded.c 		res = ssb_chipco_gpio_control(&bus->chipco, mask, value);
res               133 drivers/ssb/embedded.c 	return res;
res               140 drivers/ssb/embedded.c 	u32 res = 0;
res               144 drivers/ssb/embedded.c 		res = ssb_chipco_gpio_intmask(&bus->chipco, mask, value);
res               146 drivers/ssb/embedded.c 		res = ssb_extif_gpio_intmask(&bus->extif, mask, value);
res               151 drivers/ssb/embedded.c 	return res;
res               158 drivers/ssb/embedded.c 	u32 res = 0;
res               162 drivers/ssb/embedded.c 		res = ssb_chipco_gpio_polarity(&bus->chipco, mask, value);
res               164 drivers/ssb/embedded.c 		res = ssb_extif_gpio_polarity(&bus->extif, mask, value);
res               169 drivers/ssb/embedded.c 	return res;
res               179 drivers/ssb/embedded.c 	int res;
res               189 drivers/ssb/embedded.c 		res = ssb_gige_pcibios_plat_dev_init(dev, pdev);
res               190 drivers/ssb/embedded.c 		if (res >= 0)
res               191 drivers/ssb/embedded.c 			return res;
res               221 drivers/ssb/embedded.c 	int res;
res               231 drivers/ssb/embedded.c 		res = ssb_gige_map_irq(dev, pdev);
res               232 drivers/ssb/embedded.c 		if (res >= 0)
res               233 drivers/ssb/embedded.c 			return res;
res               242 drivers/ssb/embedded.c 	int res;
res               247 drivers/ssb/embedded.c 	res = ssb_pcicore_pcibios_map_irq(dev, slot, pin);
res               248 drivers/ssb/embedded.c 	if (res >= 0)
res               249 drivers/ssb/embedded.c 		return res;
res               251 drivers/ssb/embedded.c 	res = ssb_for_each_bus_call((unsigned long)dev, gige_map_irq_callback);
res               252 drivers/ssb/embedded.c 	if (res >= 0)
res               253 drivers/ssb/embedded.c 		return res;
res                97 drivers/ssb/main.c 	int res;
res               101 drivers/ssb/main.c 		res = func(bus, data);
res               102 drivers/ssb/main.c 		if (res >= 0) {
res               104 drivers/ssb/main.c 			return res;
res                73 drivers/ssb/pcmcia.c 	int res;
res                75 drivers/ssb/pcmcia.c 	res = pcmcia_write_config_byte(bus->host_pcmcia, offset, value);
res                76 drivers/ssb/pcmcia.c 	if (unlikely(res != 0))
res                85 drivers/ssb/pcmcia.c 	int res;
res                87 drivers/ssb/pcmcia.c 	res = pcmcia_read_config_byte(bus->host_pcmcia, offset, value);
res                88 drivers/ssb/pcmcia.c 	if (unlikely(res != 0))
res               701 drivers/ssb/pcmcia.c 	int res;
res               709 drivers/ssb/pcmcia.c 	res = pcmcia_loop_tuple(bus->host_pcmcia, CISTPL_FUNCE,
res               711 drivers/ssb/pcmcia.c 	if (res != 0) {
res               717 drivers/ssb/pcmcia.c 	res = pcmcia_loop_tuple(bus->host_pcmcia, SSB_PCMCIA_CIS,
res               719 drivers/ssb/pcmcia.c 	if ((res == 0) || (res == -ENOSPC))
res               104 drivers/ssb/sprom.c 	int res = 0, err = -ENOMEM;
res               133 drivers/ssb/sprom.c 	res = sprom_write(bus, sprom);
res               142 drivers/ssb/sprom.c 	if (res)
res               143 drivers/ssb/sprom.c 		return res;
res                28 drivers/staging/board/board.c 	struct resource res;
res                31 drivers/staging/board/board.c 		if (!of_address_to_resource(dn, 0, &res)) {
res                32 drivers/staging/board/board.c 			if (res.start == base_address) {
res                74 drivers/staging/board/board.c static void __init gic_fixup_resource(struct resource *res)
res                77 drivers/staging/board/board.c 	unsigned int hwirq = res->start;
res                80 drivers/staging/board/board.c 	if (resource_type(res) != IORESOURCE_IRQ || !irqc_node)
res                87 drivers/staging/board/board.c 	switch (res->flags &
res               110 drivers/staging/board/board.c 	res->start = virq;
res               113 drivers/staging/board/board.c void __init board_staging_gic_fixup_resources(struct resource *res,
res               119 drivers/staging/board/board.c 		gic_fixup_resource(&res[i]);
res                29 drivers/staging/board/board.h void board_staging_gic_fixup_resources(struct resource *res, unsigned int nres);
res               245 drivers/staging/fbtft/fb_agm1264k-fl.c 		u8 res = 0;
res               249 drivers/staging/fbtft/fb_agm1264k-fl.c 				res |= 1 << i;
res               251 drivers/staging/fbtft/fb_agm1264k-fl.c 		*dest++ = res;
res               253 drivers/staging/fbtft/fb_agm1264k-fl.c 		*dest++ = ~res;
res               416 drivers/staging/fbtft/fbtft-core.c 	ssize_t res;
res               420 drivers/staging/fbtft/fbtft-core.c 	res = fb_sys_write(info, buf, count, ppos);
res               425 drivers/staging/fbtft/fbtft-core.c 	return res;
res               130 drivers/staging/fieldbus/anybuss/arcx-anybus.c 	struct resource *res;
res               134 drivers/staging/fieldbus/anybuss/arcx-anybus.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, idx + 1);
res               135 drivers/staging/fieldbus/anybuss/arcx-anybus.c 	base = devm_ioremap_resource(dev, res);
res               233 drivers/staging/fieldbus/anybuss/arcx-anybus.c 	struct resource *res;
res               247 drivers/staging/fieldbus/anybuss/arcx-anybus.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               248 drivers/staging/fieldbus/anybuss/arcx-anybus.c 	cd->cpld_base = devm_ioremap_resource(dev, res);
res              1409 drivers/staging/fieldbus/anybuss/host.c static void host_release(struct device *dev, void *res)
res              1411 drivers/staging/fieldbus/anybuss/host.c 	struct anybuss_host **dr = res;
res               577 drivers/staging/kpc2000/kpc2000_i2c.c 	struct resource *res;
res               588 drivers/staging/kpc2000/kpc2000_i2c.c 	res = platform_get_resource(pldev, IORESOURCE_MEM, 0);
res               589 drivers/staging/kpc2000/kpc2000_i2c.c 	if (!res)
res               593 drivers/staging/kpc2000/kpc2000_i2c.c 							 res->start,
res               594 drivers/staging/kpc2000/kpc2000_i2c.c 							 resource_size(res));
res               213 drivers/staging/kpc2000/kpc2000_spi.c 	int res;
res               222 drivers/staging/kpc2000/kpc2000_spi.c 			res = kp_spi_wait_for_reg_bit(cs, KP_SPI_REG_STATUS,
res               224 drivers/staging/kpc2000/kpc2000_spi.c 			if (res < 0)
res               236 drivers/staging/kpc2000/kpc2000_spi.c 			res = kp_spi_wait_for_reg_bit(cs, KP_SPI_REG_STATUS,
res               238 drivers/staging/kpc2000/kpc2000_spi.c 			if (res < 0)
res              2900 drivers/staging/media/allegro-dvt/allegro-core.c 	struct resource *res, *sram_res;
res              2914 drivers/staging/media/allegro-dvt/allegro-core.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "regs");
res              2915 drivers/staging/media/allegro-dvt/allegro-core.c 	if (!res) {
res              2920 drivers/staging/media/allegro-dvt/allegro-core.c 	regs = devm_ioremap_nocache(&pdev->dev, res->start, resource_size(res));
res               737 drivers/staging/media/hantro/hantro_drv.c 	struct resource *res;
res               774 drivers/staging/media/hantro/hantro_drv.c 		res = vpu->variant->reg_names ?
res               778 drivers/staging/media/hantro/hantro_drv.c 		vpu->reg_bases[i] = devm_ioremap_resource(vpu->dev, res);
res               575 drivers/staging/media/imx/imx6-mipi-csi2.c 	struct resource *res;
res               616 drivers/staging/media/imx/imx6-mipi-csi2.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               617 drivers/staging/media/imx/imx6-mipi-csi2.c 	if (!res) {
res               622 drivers/staging/media/imx/imx6-mipi-csi2.c 	csi2->base = devm_ioremap(&pdev->dev, res->start, PAGE_SIZE);
res              1345 drivers/staging/media/ipu3/ipu3-abi.h 	struct imgu_abi_sp_resolution res;
res               734 drivers/staging/media/ipu3/ipu3-css.c 	cfg_iter->input_info.res.width =
res               736 drivers/staging/media/ipu3/ipu3-css.c 	cfg_iter->input_info.res.height =
res               748 drivers/staging/media/ipu3/ipu3-css.c 	cfg_iter->internal_info.res.width = css_pipe->rect[IPU3_CSS_RECT_BDS].width;
res               749 drivers/staging/media/ipu3/ipu3-css.c 	cfg_iter->internal_info.res.height =
res               760 drivers/staging/media/ipu3/ipu3-css.c 	cfg_iter->output_info.res.width =
res               762 drivers/staging/media/ipu3/ipu3-css.c 	cfg_iter->output_info.res.height =
res               774 drivers/staging/media/ipu3/ipu3-css.c 	cfg_iter->vf_info.res.width =
res               776 drivers/staging/media/ipu3/ipu3-css.c 	cfg_iter->vf_info.res.height =
res               938 drivers/staging/media/ipu3/ipu3-css.c 	sp_stage->frames.in.info.res.width =
res               940 drivers/staging/media/ipu3/ipu3-css.c 	sp_stage->frames.in.info.res.height =
res               955 drivers/staging/media/ipu3/ipu3-css.c 	sp_stage->frames.out[0].info.res.width =
res               957 drivers/staging/media/ipu3/ipu3-css.c 	sp_stage->frames.out[0].info.res.height =
res               978 drivers/staging/media/ipu3/ipu3-css.c 	sp_stage->frames.internal_frame_info.res.width =
res               980 drivers/staging/media/ipu3/ipu3-css.c 	sp_stage->frames.internal_frame_info.res.height =
res               992 drivers/staging/media/ipu3/ipu3-css.c 	sp_stage->frames.out_vf.info.res.width =
res               994 drivers/staging/media/ipu3/ipu3-css.c 	sp_stage->frames.out_vf.info.res.height =
res              1587 drivers/staging/media/ipu3/ipu3-css.c static u32 imgu_css_adjust(u32 res, u32 align)
res              1589 drivers/staging/media/ipu3/ipu3-css.c 	u32 val = max_t(u32, IPU3_CSS_MIN_RES, res);
res               727 drivers/staging/media/omap4iss/iss.c 			   enum iss_subclk_resource res)
res               729 drivers/staging/media/omap4iss/iss.c 	iss->subclk_resources |= res;
res               735 drivers/staging/media/omap4iss/iss.c 			    enum iss_subclk_resource res)
res               737 drivers/staging/media/omap4iss/iss.c 	iss->subclk_resources &= ~res;
res               776 drivers/staging/media/omap4iss/iss.c 				enum iss_isp_subclk_resource res)
res               778 drivers/staging/media/omap4iss/iss.c 	iss->isp_subclk_resources |= res;
res               784 drivers/staging/media/omap4iss/iss.c 				 enum iss_isp_subclk_resource res)
res               786 drivers/staging/media/omap4iss/iss.c 	iss->isp_subclk_resources &= ~res;
res               909 drivers/staging/media/omap4iss/iss.c 				enum iss_mem_resources res)
res               913 drivers/staging/media/omap4iss/iss.c 	mem = platform_get_resource(pdev, IORESOURCE_MEM, res);
res               915 drivers/staging/media/omap4iss/iss.c 	iss->regs[res] = devm_ioremap_resource(iss->dev, mem);
res               917 drivers/staging/media/omap4iss/iss.c 	return PTR_ERR_OR_ZERO(iss->regs[res]);
res                95 drivers/staging/media/omap4iss/iss.h 	struct resource *res[OMAP4_ISS_MEM_LAST];
res               144 drivers/staging/media/omap4iss/iss.h 			   enum iss_subclk_resource res);
res               146 drivers/staging/media/omap4iss/iss.h 			    enum iss_subclk_resource res);
res               148 drivers/staging/media/omap4iss/iss.h 				enum iss_isp_subclk_resource res);
res               150 drivers/staging/media/omap4iss/iss.h 				 enum iss_isp_subclk_resource res);
res               165 drivers/staging/media/omap4iss/iss.h u32 iss_reg_read(struct iss_device *iss, enum iss_mem_resources res,
res               168 drivers/staging/media/omap4iss/iss.h 	return readl(iss->regs[res] + offset);
res               179 drivers/staging/media/omap4iss/iss.h void iss_reg_write(struct iss_device *iss, enum iss_mem_resources res,
res               182 drivers/staging/media/omap4iss/iss.h 	writel(value, iss->regs[res] + offset);
res               193 drivers/staging/media/omap4iss/iss.h void iss_reg_clr(struct iss_device *iss, enum iss_mem_resources res,
res               196 drivers/staging/media/omap4iss/iss.h 	u32 v = iss_reg_read(iss, res, offset);
res               198 drivers/staging/media/omap4iss/iss.h 	iss_reg_write(iss, res, offset, v & ~clr);
res               209 drivers/staging/media/omap4iss/iss.h void iss_reg_set(struct iss_device *iss, enum iss_mem_resources res,
res               212 drivers/staging/media/omap4iss/iss.h 	u32 v = iss_reg_read(iss, res, offset);
res               214 drivers/staging/media/omap4iss/iss.h 	iss_reg_write(iss, res, offset, v | set);
res               228 drivers/staging/media/omap4iss/iss.h void iss_reg_update(struct iss_device *iss, enum iss_mem_resources res,
res               231 drivers/staging/media/omap4iss/iss.h 	u32 v = iss_reg_read(iss, res, offset);
res               233 drivers/staging/media/omap4iss/iss.h 	iss_reg_write(iss, res, offset, (v & ~clr) | set);
res               809 drivers/staging/media/soc_camera/soc_camera.c 	__poll_t res = EPOLLERR;
res               815 drivers/staging/media/soc_camera/soc_camera.c 	res = ici->ops->poll(file, pt);
res               817 drivers/staging/media/soc_camera/soc_camera.c 	return res;
res               149 drivers/staging/media/sunxi/cedrus/cedrus_hw.c 	struct resource *res;
res               228 drivers/staging/media/sunxi/cedrus/cedrus_hw.c 	res = platform_get_resource(dev->pdev, IORESOURCE_MEM, 0);
res               229 drivers/staging/media/sunxi/cedrus/cedrus_hw.c 	dev->base = devm_ioremap_resource(dev->dev, res);
res               730 drivers/staging/most/dim2/dim2.c 	struct resource *res;
res               758 drivers/staging/most/dim2/dim2.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               759 drivers/staging/most/dim2/dim2.c 	dev->io_base = devm_ioremap_resource(&pdev->dev, res);
res               836 drivers/staging/most/dim2/dim2.c 		if (sizeof(res->start) == sizeof(long long))
res               838 drivers/staging/most/dim2/dim2.c 		else if (sizeof(res->start) == sizeof(long))
res               843 drivers/staging/most/dim2/dim2.c 		snprintf(dev->name, sizeof(dev->name), fmt, res->start);
res               653 drivers/staging/mt7621-dma/mtk-hsdma.c 	struct resource *res;
res               670 drivers/staging/mt7621-dma/mtk-hsdma.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               671 drivers/staging/mt7621-dma/mtk-hsdma.c 	base = devm_ioremap_resource(&pdev->dev, res);
res               327 drivers/staging/mt7621-pci-phy/pci-mt7621-phy.c 	struct resource *res;
res               348 drivers/staging/mt7621-pci-phy/pci-mt7621-phy.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               349 drivers/staging/mt7621-pci-phy/pci-mt7621-phy.c 	if (!res) {
res               354 drivers/staging/mt7621-pci-phy/pci-mt7621-phy.c 	port_base = devm_ioremap_resource(dev, res);
res               295 drivers/staging/mt7621-pci/pci-mt7621.c 		struct resource *res = NULL;
res               300 drivers/staging/mt7621-pci/pci-mt7621.c 			res = &pcie->io;
res               304 drivers/staging/mt7621-pci/pci-mt7621.c 			res = &pcie->mem;
res               309 drivers/staging/mt7621-pci/pci-mt7621.c 		if (res)
res               310 drivers/staging/mt7621-pci/pci-mt7621.c 			of_pci_range_to_resource(&range, node, res);
res               619 drivers/staging/mt7621-pci/pci-mt7621.c 					 struct list_head *res)
res               623 drivers/staging/mt7621-pci/pci-mt7621.c 	pci_add_resource_offset(res, &pcie->io, pcie->offset.io);
res               624 drivers/staging/mt7621-pci/pci-mt7621.c 	pci_add_resource_offset(res, &pcie->mem, pcie->offset.mem);
res               625 drivers/staging/mt7621-pci/pci-mt7621.c 	pci_add_resource(res, &pcie->busn);
res               627 drivers/staging/mt7621-pci/pci-mt7621.c 	return devm_request_pci_bus_resources(dev, res);
res               631 drivers/staging/mt7621-pci/pci-mt7621.c 				     struct list_head *res)
res               635 drivers/staging/mt7621-pci/pci-mt7621.c 	list_splice_init(res, &host->windows);
res               657 drivers/staging/mt7621-pci/pci-mt7621.c 	LIST_HEAD(res);
res               705 drivers/staging/mt7621-pci/pci-mt7621.c 	err = mt7621_pcie_request_resources(pcie, &res);
res               711 drivers/staging/mt7621-pci/pci-mt7621.c 	err = mt7621_pcie_register_host(bridge, &res);
res                50 drivers/staging/netlogic/platform_net.c static void xlr_resource_init(struct resource *res, int offset, int irq)
res                52 drivers/staging/netlogic/platform_net.c 	res->name = "gmac";
res                54 drivers/staging/netlogic/platform_net.c 	res->start = CPHYSADDR(nlm_mmio_base(offset));
res                55 drivers/staging/netlogic/platform_net.c 	res->end = res->start + 0xfff;
res                56 drivers/staging/netlogic/platform_net.c 	res->flags = IORESOURCE_MEM;
res                58 drivers/staging/netlogic/platform_net.c 	res++;
res                59 drivers/staging/netlogic/platform_net.c 	res->name = "gmac";
res                60 drivers/staging/netlogic/platform_net.c 	res->start = irq;
res                61 drivers/staging/netlogic/platform_net.c 	res->end = irq;
res                62 drivers/staging/netlogic/platform_net.c 	res->flags = IORESOURCE_IRQ;
res               949 drivers/staging/netlogic/xlr_net.c 	struct resource *res;
res               979 drivers/staging/netlogic/xlr_net.c 		res = platform_get_resource(pdev, IORESOURCE_MEM, port);
res               980 drivers/staging/netlogic/xlr_net.c 		priv->base_addr = devm_ioremap_resource(&pdev->dev, res);
res               988 drivers/staging/netlogic/xlr_net.c 		res = platform_get_resource(pdev, IORESOURCE_IRQ, port);
res               989 drivers/staging/netlogic/xlr_net.c 		if (!res) {
res               996 drivers/staging/netlogic/xlr_net.c 		ndev->irq = res->start;
res              1023 drivers/staging/netlogic/xlr_net.c 		if (strcmp(res->name, "gmac") == 0) {
res                89 drivers/staging/nvec/nvec_power.c 	struct bat_response *res = data;
res                94 drivers/staging/nvec/nvec_power.c 	if (res->sub_type == 0) {
res                95 drivers/staging/nvec/nvec_power.c 		if (power->on != res->plu) {
res                96 drivers/staging/nvec/nvec_power.c 			power->on = res->plu;
res               125 drivers/staging/nvec/nvec_power.c 	struct bat_response *res = data;
res               131 drivers/staging/nvec/nvec_power.c 	switch (res->sub_type) {
res               133 drivers/staging/nvec/nvec_power.c 		if (res->plc[0] & 1) {
res               141 drivers/staging/nvec/nvec_power.c 			switch ((res->plc[0] >> 1) & 3) {
res               164 drivers/staging/nvec/nvec_power.c 		power->bat_cap = res->plc[1];
res               169 drivers/staging/nvec/nvec_power.c 		power->bat_voltage_now = res->plu * 1000;
res               172 drivers/staging/nvec/nvec_power.c 		power->time_remain = res->plu * 3600;
res               175 drivers/staging/nvec/nvec_power.c 		power->bat_current_now = res->pls * 1000;
res               178 drivers/staging/nvec/nvec_power.c 		power->bat_current_avg = res->pls * 1000;
res               181 drivers/staging/nvec/nvec_power.c 		power->capacity_remain = res->plu * 1000;
res               184 drivers/staging/nvec/nvec_power.c 		power->charge_last_full = res->plu * 1000;
res               187 drivers/staging/nvec/nvec_power.c 		power->charge_full_design = res->plu * 1000;
res               190 drivers/staging/nvec/nvec_power.c 		power->critical_capacity = res->plu * 1000;
res               193 drivers/staging/nvec/nvec_power.c 		power->bat_temperature = res->plu - 2732;
res               196 drivers/staging/nvec/nvec_power.c 		memcpy(power->bat_manu, &res->plc, res->length - 2);
res               197 drivers/staging/nvec/nvec_power.c 		power->bat_model[res->length - 2] = '\0';
res               200 drivers/staging/nvec/nvec_power.c 		memcpy(power->bat_model, &res->plc, res->length - 2);
res               201 drivers/staging/nvec/nvec_power.c 		power->bat_model[res->length - 2] = '\0';
res               204 drivers/staging/nvec/nvec_power.c 		memcpy(power->bat_type, &res->plc, res->length - 2);
res               205 drivers/staging/nvec/nvec_power.c 		power->bat_type[res->length - 2] = '\0';
res               995 drivers/staging/qlge/qlge.h 	__le16 res;
res               799 drivers/staging/ralink-gdma/ralink-gdma.c 	struct resource *res;
res               821 drivers/staging/ralink-gdma/ralink-gdma.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               822 drivers/staging/ralink-gdma/ralink-gdma.c 	base = devm_ioremap_resource(&pdev->dev, res);
res                96 drivers/staging/rtl8188eu/core/rtw_cmd.c 	int res = _FAIL;
res               104 drivers/staging/rtl8188eu/core/rtw_cmd.c 	res = rtw_cmd_filter(pcmdpriv, cmd_obj);
res               105 drivers/staging/rtl8188eu/core/rtw_cmd.c 	if (res == _FAIL) {
res               110 drivers/staging/rtl8188eu/core/rtw_cmd.c 	res = _rtw_enqueue_cmd(&pcmdpriv->cmd_queue, cmd_obj);
res               112 drivers/staging/rtl8188eu/core/rtw_cmd.c 	if (res == _SUCCESS)
res               117 drivers/staging/rtl8188eu/core/rtw_cmd.c 	return res;
res               178 drivers/staging/rtl8188eu/core/rtw_cmd.c 			pcmd->res = H2C_DROPPED;
res               185 drivers/staging/rtl8188eu/core/rtw_cmd.c 					pcmd->res = ret;
res               188 drivers/staging/rtl8188eu/core/rtw_cmd.c 				pcmd->res = H2C_PARAMETERS_ERROR;
res               234 drivers/staging/rtl8188eu/core/rtw_cmd.c 	u8 res = _FAIL;
res               287 drivers/staging/rtl8188eu/core/rtw_cmd.c 	res = rtw_enqueue_cmd(pcmdpriv, ph2c);
res               289 drivers/staging/rtl8188eu/core/rtw_cmd.c 	if (res == _SUCCESS) {
res               300 drivers/staging/rtl8188eu/core/rtw_cmd.c 	return res;
res               315 drivers/staging/rtl8188eu/core/rtw_cmd.c 	u8	res = _SUCCESS;
res               326 drivers/staging/rtl8188eu/core/rtw_cmd.c 		res = _FAIL;
res               337 drivers/staging/rtl8188eu/core/rtw_cmd.c 	res = rtw_enqueue_cmd(pcmdpriv, pcmd);
res               340 drivers/staging/rtl8188eu/core/rtw_cmd.c 	return res;
res               345 drivers/staging/rtl8188eu/core/rtw_cmd.c 	u8	res = _SUCCESS;
res               368 drivers/staging/rtl8188eu/core/rtw_cmd.c 		res = _FAIL;
res               394 drivers/staging/rtl8188eu/core/rtw_cmd.c 		res = _FAIL;
res               473 drivers/staging/rtl8188eu/core/rtw_cmd.c 	res = rtw_enqueue_cmd(pcmdpriv, pcmd);
res               477 drivers/staging/rtl8188eu/core/rtw_cmd.c 	return res;
res               485 drivers/staging/rtl8188eu/core/rtw_cmd.c 	u8 res = _SUCCESS;
res               492 drivers/staging/rtl8188eu/core/rtw_cmd.c 		res = _FAIL;
res               501 drivers/staging/rtl8188eu/core/rtw_cmd.c 			res = _FAIL;
res               506 drivers/staging/rtl8188eu/core/rtw_cmd.c 		res = rtw_enqueue_cmd(cmdpriv, cmdobj);
res               510 drivers/staging/rtl8188eu/core/rtw_cmd.c 			res = _FAIL;
res               516 drivers/staging/rtl8188eu/core/rtw_cmd.c 	return res;
res               591 drivers/staging/rtl8188eu/core/rtw_cmd.c 	u8	res = _SUCCESS;
res               598 drivers/staging/rtl8188eu/core/rtw_cmd.c 			res = _FAIL;
res               605 drivers/staging/rtl8188eu/core/rtw_cmd.c 			res = _FAIL;
res               613 drivers/staging/rtl8188eu/core/rtw_cmd.c 			res = _FAIL;
res               627 drivers/staging/rtl8188eu/core/rtw_cmd.c 		res = rtw_enqueue_cmd(pcmdpriv, ph2c);
res               631 drivers/staging/rtl8188eu/core/rtw_cmd.c 	return res;
res               639 drivers/staging/rtl8188eu/core/rtw_cmd.c 	u8	res = _SUCCESS;
res               643 drivers/staging/rtl8188eu/core/rtw_cmd.c 		res = _FAIL;
res               650 drivers/staging/rtl8188eu/core/rtw_cmd.c 		res = _FAIL;
res               659 drivers/staging/rtl8188eu/core/rtw_cmd.c 	res = rtw_enqueue_cmd(pcmdpriv, ph2c);
res               663 drivers/staging/rtl8188eu/core/rtw_cmd.c 	return res;
res               671 drivers/staging/rtl8188eu/core/rtw_cmd.c 	u8	res = _SUCCESS;
res               675 drivers/staging/rtl8188eu/core/rtw_cmd.c 		res = _FAIL;
res               682 drivers/staging/rtl8188eu/core/rtw_cmd.c 		res = _FAIL;
res               692 drivers/staging/rtl8188eu/core/rtw_cmd.c 	res = rtw_enqueue_cmd(pcmdpriv, ph2c);
res               694 drivers/staging/rtl8188eu/core/rtw_cmd.c 	return res;
res               703 drivers/staging/rtl8188eu/core/rtw_cmd.c 	u8	res = _SUCCESS;
res               709 drivers/staging/rtl8188eu/core/rtw_cmd.c 		res = _FAIL;
res               716 drivers/staging/rtl8188eu/core/rtw_cmd.c 		res = _FAIL;
res               726 drivers/staging/rtl8188eu/core/rtw_cmd.c 			res = _FAIL;
res               731 drivers/staging/rtl8188eu/core/rtw_cmd.c 		res = rtw_enqueue_cmd(pcmdpriv, pcmdobj);
res               735 drivers/staging/rtl8188eu/core/rtw_cmd.c 			res = _FAIL;
res               740 drivers/staging/rtl8188eu/core/rtw_cmd.c 	if (res == _SUCCESS)
res               745 drivers/staging/rtl8188eu/core/rtw_cmd.c 	return res;
res               873 drivers/staging/rtl8188eu/core/rtw_cmd.c 	u8	res = _SUCCESS;
res               878 drivers/staging/rtl8188eu/core/rtw_cmd.c 			res = _FAIL;
res               885 drivers/staging/rtl8188eu/core/rtw_cmd.c 			res = _FAIL;
res               895 drivers/staging/rtl8188eu/core/rtw_cmd.c 		res = rtw_enqueue_cmd(pcmdpriv, ph2c);
res               902 drivers/staging/rtl8188eu/core/rtw_cmd.c 	return res;
res               916 drivers/staging/rtl8188eu/core/rtw_cmd.c 	u8	res = _SUCCESS;
res               920 drivers/staging/rtl8188eu/core/rtw_cmd.c 		res = _FAIL;
res               927 drivers/staging/rtl8188eu/core/rtw_cmd.c 		res = _FAIL;
res               935 drivers/staging/rtl8188eu/core/rtw_cmd.c 	res = rtw_enqueue_cmd(pcmdpriv, ph2c);
res               938 drivers/staging/rtl8188eu/core/rtw_cmd.c 	return res;
res               952 drivers/staging/rtl8188eu/core/rtw_cmd.c 	u8	res = _SUCCESS;
res               956 drivers/staging/rtl8188eu/core/rtw_cmd.c 		return res;
res               961 drivers/staging/rtl8188eu/core/rtw_cmd.c 			res = _FAIL;
res               968 drivers/staging/rtl8188eu/core/rtw_cmd.c 			res = _FAIL;
res               977 drivers/staging/rtl8188eu/core/rtw_cmd.c 		res = rtw_enqueue_cmd(pcmdpriv, ph2c);
res               983 drivers/staging/rtl8188eu/core/rtw_cmd.c 	return res;
res              1051 drivers/staging/rtl8188eu/core/rtw_cmd.c 	u8	res = _SUCCESS;
res              1055 drivers/staging/rtl8188eu/core/rtw_cmd.c 		res = _FAIL;
res              1062 drivers/staging/rtl8188eu/core/rtw_cmd.c 		res = _FAIL;
res              1072 drivers/staging/rtl8188eu/core/rtw_cmd.c 	res = rtw_enqueue_cmd(pcmdpriv, ph2c);
res              1074 drivers/staging/rtl8188eu/core/rtw_cmd.c 	return res;
res              1122 drivers/staging/rtl8188eu/core/rtw_cmd.c 	if (pcmd->res == H2C_DROPPED) {
res              1127 drivers/staging/rtl8188eu/core/rtw_cmd.c 	} else if (pcmd->res != H2C_SUCCESS) {
res              1141 drivers/staging/rtl8188eu/core/rtw_cmd.c 	if (pcmd->res != H2C_SUCCESS) {
res              1158 drivers/staging/rtl8188eu/core/rtw_cmd.c 	if (pcmd->res == H2C_DROPPED) {
res              1163 drivers/staging/rtl8188eu/core/rtw_cmd.c 	} else if (pcmd->res != H2C_SUCCESS) {
res              1180 drivers/staging/rtl8188eu/core/rtw_cmd.c 	if (pcmd->res != H2C_SUCCESS) {
res               399 drivers/staging/rtl8188eu/core/rtw_ioctl_set.c 	u8 res = true;
res               404 drivers/staging/rtl8188eu/core/rtw_ioctl_set.c 		res = false;
res               408 drivers/staging/rtl8188eu/core/rtw_ioctl_set.c 		res = false;
res               417 drivers/staging/rtl8188eu/core/rtw_ioctl_set.c 		res = true;
res               434 drivers/staging/rtl8188eu/core/rtw_ioctl_set.c 		res = rtw_sitesurvey_cmd(padapter, pssid, ssid_max_num, NULL, 0);
res               439 drivers/staging/rtl8188eu/core/rtw_ioctl_set.c 	return res;
res               445 drivers/staging/rtl8188eu/core/rtw_ioctl_set.c 	int res;
res               460 drivers/staging/rtl8188eu/core/rtw_ioctl_set.c 	res = rtw_set_auth(padapter, psecuritypriv);
res               462 drivers/staging/rtl8188eu/core/rtw_ioctl_set.c 	if (res == _SUCCESS)
res               472 drivers/staging/rtl8188eu/core/rtw_ioctl_set.c 	int keyid, res;
res               525 drivers/staging/rtl8188eu/core/rtw_ioctl_set.c 	res = rtw_set_key(padapter, psecuritypriv, keyid, 1);
res               527 drivers/staging/rtl8188eu/core/rtw_ioctl_set.c 	if (res == _FAIL)
res                31 drivers/staging/rtl8188eu/core/rtw_mlme.c 	int res = _SUCCESS;
res                51 drivers/staging/rtl8188eu/core/rtw_mlme.c 		res = _FAIL;
res                73 drivers/staging/rtl8188eu/core/rtw_mlme.c 	return res;
res               229 drivers/staging/rtl8188eu/core/rtw_mlme.c 	int res;
res               237 drivers/staging/rtl8188eu/core/rtw_mlme.c 		res = false;
res               239 drivers/staging/rtl8188eu/core/rtw_mlme.c 		res =  true;
res               241 drivers/staging/rtl8188eu/core/rtw_mlme.c 	return res;
res              1521 drivers/staging/rtl8188eu/core/rtw_mlme.c 	int res = _SUCCESS;
res              1525 drivers/staging/rtl8188eu/core/rtw_mlme.c 		res = _FAIL;  /* try again */
res              1532 drivers/staging/rtl8188eu/core/rtw_mlme.c 		res = _FAIL;
res              1545 drivers/staging/rtl8188eu/core/rtw_mlme.c 	res = rtw_enqueue_cmd(pcmdpriv, pcmd);
res              1547 drivers/staging/rtl8188eu/core/rtw_mlme.c 	return res;
res              1557 drivers/staging/rtl8188eu/core/rtw_mlme.c 	int res = _SUCCESS;
res              1565 drivers/staging/rtl8188eu/core/rtw_mlme.c 		res = _FAIL;
res              1615 drivers/staging/rtl8188eu/core/rtw_mlme.c 		res = _FAIL;
res              1630 drivers/staging/rtl8188eu/core/rtw_mlme.c 	return res;
res              3329 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c 	int res;
res              3357 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c 		res = -4;
res              3369 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c 	res = pmlmeinfo->aid;
res              3403 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c 	if (res > 0)
res              3408 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c 	report_join_res(padapter, res);
res              4261 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c void report_join_res(struct adapter *padapter, int res)
res              4299 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c 	pjoinbss_evt->network.join_res	= res;
res              4300 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c 	pjoinbss_evt->network.aid = res;
res              4302 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c 	DBG_88E("%s(%d)\n", __func__, res);
res              5325 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c 	u8 res;
res              5330 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c 		res = _FAIL;
res              5338 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c 		res = _FAIL;
res              5349 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c 	res = rtw_enqueue_cmd(pcmdpriv, ph2c);
res              5352 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c 	return res;
res                51 drivers/staging/rtl8188eu/core/rtw_recv.c 	int	res = _SUCCESS;
res                77 drivers/staging/rtl8188eu/core/rtw_recv.c 	res = rtw_hal_init_recv_priv(padapter);
res                86 drivers/staging/rtl8188eu/core/rtw_recv.c 	return res;
res               211 drivers/staging/rtl8188eu/core/rtw_recv.c 	int	i, res = _SUCCESS;
res               238 drivers/staging/rtl8188eu/core/rtw_recv.c 					res = _FAIL;
res               335 drivers/staging/rtl8188eu/core/rtw_recv.c 				res = _FAIL;
res               353 drivers/staging/rtl8188eu/core/rtw_recv.c 	return res;
res               363 drivers/staging/rtl8188eu/core/rtw_recv.c 	u32	 res = _SUCCESS;
res               395 drivers/staging/rtl8188eu/core/rtw_recv.c 			res = rtw_wep_decrypt(padapter, (u8 *)precv_frame);
res               398 drivers/staging/rtl8188eu/core/rtw_recv.c 			res = rtw_tkip_decrypt(padapter, (u8 *)precv_frame);
res               401 drivers/staging/rtl8188eu/core/rtw_recv.c 			res = rtw_aes_decrypt(padapter, (u8 *)precv_frame);
res               410 drivers/staging/rtl8188eu/core/rtw_recv.c 	if (res == _FAIL) {
res               260 drivers/staging/rtl8188eu/core/rtw_security.c 	u32 res = 0;
res               263 drivers/staging/rtl8188eu/core/rtw_security.c 		res |= ((u32)(*p++)) << (8*i);
res               264 drivers/staging/rtl8188eu/core/rtw_security.c 	return res;
res               592 drivers/staging/rtl8188eu/core/rtw_security.c 	u32	res = _SUCCESS;
res               649 drivers/staging/rtl8188eu/core/rtw_security.c 			res = _FAIL;
res               652 drivers/staging/rtl8188eu/core/rtw_security.c 	return res;
res               671 drivers/staging/rtl8188eu/core/rtw_security.c 	u32		res = _SUCCESS;
res               682 drivers/staging/rtl8188eu/core/rtw_security.c 					res = _FAIL;
res               718 drivers/staging/rtl8188eu/core/rtw_security.c 				res = _FAIL;
res               722 drivers/staging/rtl8188eu/core/rtw_security.c 			res = _FAIL;
res               726 drivers/staging/rtl8188eu/core/rtw_security.c 	return res;
res              1232 drivers/staging/rtl8188eu/core/rtw_security.c 	u32 res = _SUCCESS;
res              1271 drivers/staging/rtl8188eu/core/rtw_security.c 			res = _FAIL;
res              1275 drivers/staging/rtl8188eu/core/rtw_security.c 	return res;
res              1281 drivers/staging/rtl8188eu/core/rtw_security.c 	u32 res = _SUCCESS;
res              1300 drivers/staging/rtl8188eu/core/rtw_security.c 					res = _FAIL;
res              1312 drivers/staging/rtl8188eu/core/rtw_security.c 				res = _FAIL;
res              1321 drivers/staging/rtl8188eu/core/rtw_security.c 				res = _FAIL;
res              1325 drivers/staging/rtl8188eu/core/rtw_security.c 				res = _FAIL;
res              1329 drivers/staging/rtl8188eu/core/rtw_security.c 				res = _FAIL;
res              1345 drivers/staging/rtl8188eu/core/rtw_security.c 			res = _FAIL;
res              1349 drivers/staging/rtl8188eu/core/rtw_security.c 	return res;
res               447 drivers/staging/rtl8188eu/core/rtw_sta_mgt.c 	u32 res = _SUCCESS;
res               454 drivers/staging/rtl8188eu/core/rtw_sta_mgt.c 		res = _FAIL;
res               463 drivers/staging/rtl8188eu/core/rtw_sta_mgt.c 	return res;
res               476 drivers/staging/rtl8188eu/core/rtw_sta_mgt.c 	u8 res = true;
res               502 drivers/staging/rtl8188eu/core/rtw_sta_mgt.c 		res = (match) ? false : true;
res               504 drivers/staging/rtl8188eu/core/rtw_sta_mgt.c 		res = (match) ? true : false;
res               506 drivers/staging/rtl8188eu/core/rtw_sta_mgt.c 		res = true;
res               510 drivers/staging/rtl8188eu/core/rtw_sta_mgt.c 	return res;
res                43 drivers/staging/rtl8188eu/core/rtw_xmit.c 	int res = _SUCCESS;
res                76 drivers/staging/rtl8188eu/core/rtw_xmit.c 		res = _FAIL;
res               111 drivers/staging/rtl8188eu/core/rtw_xmit.c 		res = _FAIL;
res               127 drivers/staging/rtl8188eu/core/rtw_xmit.c 		res = rtw_os_xmit_resource_alloc(padapter, pxmitbuf, (MAX_XMITBUF_SZ + XMITBUF_ALIGN_SZ));
res               128 drivers/staging/rtl8188eu/core/rtw_xmit.c 		if (res == _FAIL) {
res               130 drivers/staging/rtl8188eu/core/rtw_xmit.c 			res = rtw_os_xmit_resource_alloc(padapter, pxmitbuf, (MAX_XMITBUF_SZ + XMITBUF_ALIGN_SZ));
res               131 drivers/staging/rtl8188eu/core/rtw_xmit.c 			if (res == _FAIL)
res               150 drivers/staging/rtl8188eu/core/rtw_xmit.c 		res = _FAIL;
res               165 drivers/staging/rtl8188eu/core/rtw_xmit.c 		res = rtw_os_xmit_resource_alloc(padapter, pxmitbuf, max_xmit_extbuf_size + XMITBUF_ALIGN_SZ);
res               166 drivers/staging/rtl8188eu/core/rtw_xmit.c 		if (res == _FAIL) {
res               167 drivers/staging/rtl8188eu/core/rtw_xmit.c 			res = _FAIL;
res               177 drivers/staging/rtl8188eu/core/rtw_xmit.c 	res = rtw_alloc_hwxmits(padapter);
res               178 drivers/staging/rtl8188eu/core/rtw_xmit.c 	if (res == _FAIL)
res               200 drivers/staging/rtl8188eu/core/rtw_xmit.c 	return res;
res               403 drivers/staging/rtl8188eu/core/rtw_xmit.c 	int res = _SUCCESS;
res               470 drivers/staging/rtl8188eu/core/rtw_xmit.c 			res = _FAIL;
res               474 drivers/staging/rtl8188eu/core/rtw_xmit.c 			res = _FAIL;
res               486 drivers/staging/rtl8188eu/core/rtw_xmit.c 		res = _FAIL;
res               516 drivers/staging/rtl8188eu/core/rtw_xmit.c 			res = _FAIL;
res               554 drivers/staging/rtl8188eu/core/rtw_xmit.c 			res = _FAIL;
res               585 drivers/staging/rtl8188eu/core/rtw_xmit.c 	return res;
res               743 drivers/staging/rtl8188eu/core/rtw_xmit.c 	int res = _SUCCESS;
res               791 drivers/staging/rtl8188eu/core/rtw_xmit.c 			res = _FAIL;
res               851 drivers/staging/rtl8188eu/core/rtw_xmit.c 	return res;
res               918 drivers/staging/rtl8188eu/core/rtw_xmit.c 	s32 res = _SUCCESS;
res               940 drivers/staging/rtl8188eu/core/rtw_xmit.c 		res = _FAIL;
res              1041 drivers/staging/rtl8188eu/core/rtw_xmit.c 		res = _FAIL;
res              1053 drivers/staging/rtl8188eu/core/rtw_xmit.c 	return res;
res              1482 drivers/staging/rtl8188eu/core/rtw_xmit.c 	int res = _SUCCESS;
res              1490 drivers/staging/rtl8188eu/core/rtw_xmit.c 		res = _FAIL;
res              1505 drivers/staging/rtl8188eu/core/rtw_xmit.c 	return res;
res              1595 drivers/staging/rtl8188eu/core/rtw_xmit.c 	s32 res;
res              1604 drivers/staging/rtl8188eu/core/rtw_xmit.c 	res = update_attrib(padapter, *ppkt, &pxmitframe->attrib);
res              1606 drivers/staging/rtl8188eu/core/rtw_xmit.c 	if (res == _FAIL) {
res                22 drivers/staging/rtl8188eu/hal/rtl8188eu_recv.c 	int	i, res = _SUCCESS;
res                35 drivers/staging/rtl8188eu/hal/rtl8188eu_recv.c 		res = _FAIL;
res                43 drivers/staging/rtl8188eu/hal/rtl8188eu_recv.c 		res = rtw_os_recvbuf_resource_alloc(padapter, precvbuf);
res                44 drivers/staging/rtl8188eu/hal/rtl8188eu_recv.c 		if (res == _FAIL)
res                68 drivers/staging/rtl8188eu/hal/rtl8188eu_recv.c 	return res;
res               603 drivers/staging/rtl8188eu/hal/rtl8188eu_xmit.c 	s32 res;
res               627 drivers/staging/rtl8188eu/hal/rtl8188eu_xmit.c 	res = rtw_xmitframe_coalesce(adapt, pxmitframe->pkt, pxmitframe);
res               629 drivers/staging/rtl8188eu/hal/rtl8188eu_xmit.c 	if (res == _SUCCESS) {
res               640 drivers/staging/rtl8188eu/hal/rtl8188eu_xmit.c 	res = rtw_xmitframe_enqueue(adapt, pxmitframe);
res               643 drivers/staging/rtl8188eu/hal/rtl8188eu_xmit.c 	if (res != _SUCCESS) {
res                25 drivers/staging/rtl8188eu/include/rtw_cmd.h 	u8	res;
res               529 drivers/staging/rtl8188eu/include/rtw_mlme_ext.h void report_join_res(struct adapter *padapter, int res);
res              2085 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c 	u8 res = _SUCCESS;
res              2089 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c 		res = _FAIL;
res              2096 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c 		res = _FAIL;
res              2108 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c 	res = rtw_enqueue_cmd(pcmdpriv, ph2c);
res              2112 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c 	return res;
res              2121 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c 	int res = _SUCCESS;
res              2127 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c 		res = _FAIL;
res              2133 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c 		res = _FAIL;
res              2167 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c 	res = rtw_enqueue_cmd(pcmdpriv, pcmd);
res              2171 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c 	return res;
res               119 drivers/staging/rtl8188eu/os_dep/xmit_linux.c 	s32 res;
res               139 drivers/staging/rtl8188eu/os_dep/xmit_linux.c 			res = rtw_xmit(padapter, &newskb);
res               140 drivers/staging/rtl8188eu/os_dep/xmit_linux.c 			if (res < 0) {
res               172 drivers/staging/rtl8188eu/os_dep/xmit_linux.c 	s32 res = 0;
res               188 drivers/staging/rtl8188eu/os_dep/xmit_linux.c 			res = rtw_mlcst2unicst(padapter, pkt);
res               189 drivers/staging/rtl8188eu/os_dep/xmit_linux.c 			if (res)
res               194 drivers/staging/rtl8188eu/os_dep/xmit_linux.c 	res = rtw_xmit(padapter, &pkt);
res               195 drivers/staging/rtl8188eu/os_dep/xmit_linux.c 	if (res < 0)
res               287 drivers/staging/rtl8192e/rtllib_rx.c 	int res, hdrlen;
res               306 drivers/staging/rtl8192e/rtllib_rx.c 	res = crypt->ops->decrypt_mpdu(skb, hdrlen, crypt->priv);
res               308 drivers/staging/rtl8192e/rtllib_rx.c 	if (res < 0) {
res               310 drivers/staging/rtl8192e/rtllib_rx.c 			   hdr->addr2, res);
res               311 drivers/staging/rtl8192e/rtllib_rx.c 		if (res == -2)
res               318 drivers/staging/rtl8192e/rtllib_rx.c 	return res;
res               328 drivers/staging/rtl8192e/rtllib_rx.c 	int res, hdrlen;
res               346 drivers/staging/rtl8192e/rtllib_rx.c 	res = crypt->ops->decrypt_msdu(skb, keyidx, hdrlen, crypt->priv);
res               348 drivers/staging/rtl8192e/rtllib_rx.c 	if (res < 0) {
res               161 drivers/staging/rtl8192e/rtllib_tx.c 	int res;
res               178 drivers/staging/rtl8192e/rtllib_tx.c 	res = 0;
res               180 drivers/staging/rtl8192e/rtllib_tx.c 		res = crypt->ops->encrypt_msdu(frag, hdr_len, crypt->priv);
res               181 drivers/staging/rtl8192e/rtllib_tx.c 	if (res == 0 && crypt->ops->encrypt_mpdu)
res               182 drivers/staging/rtl8192e/rtllib_tx.c 		res = crypt->ops->encrypt_mpdu(frag, hdr_len, crypt->priv);
res               185 drivers/staging/rtl8192e/rtllib_tx.c 	if (res < 0) {
res               338 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 	int res, hdrlen;
res               360 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 	res = crypt->ops->decrypt_mpdu(skb, hdrlen, crypt->priv);
res               362 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 	if (res < 0) {
res               365 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 			") res=%d\n", hdr->addr2, res);
res               366 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 		if (res == -2)
res               374 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 	return res;
res               384 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 	int res, hdrlen;
res               397 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 	res = crypt->ops->decrypt_msdu(skb, keyidx, hdrlen, crypt->priv);
res               399 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 	if (res < 0) {
res               170 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 	int res;
res               199 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 	res = 0;
res               201 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 		res = crypt->ops->encrypt_msdu(frag, hdr_len, crypt->priv);
res               202 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 	if (res == 0 && crypt->ops->encrypt_mpdu)
res               203 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 		res = crypt->ops->encrypt_mpdu(frag, hdr_len, crypt->priv);
res               206 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 	if (res < 0) {
res                43 drivers/staging/rtl8712/recv_linux.c 	int res = 0;
res                48 drivers/staging/rtl8712/recv_linux.c 		res = -ENOMEM;
res                58 drivers/staging/rtl8712/recv_linux.c 	return res;
res               363 drivers/staging/rtl8712/rtl8712_cmd.c 				pcmd->res = H2C_SUCCESS;
res               428 drivers/staging/rtl8712/rtl8712_efuse.c 	u8 res = true;
res               440 drivers/staging/rtl8712/rtl8712_efuse.c 			res = false;
res               443 drivers/staging/rtl8712/rtl8712_efuse.c 		res = efuse_one_byte_rw(adapter, bRead, start_addr + i,
res               445 drivers/staging/rtl8712/rtl8712_efuse.c 		if (!bRead && !res)
res               450 drivers/staging/rtl8712/rtl8712_efuse.c 	return res;
res               605 drivers/staging/rtl8712/rtl8712_xmit.c 	int res = _SUCCESS, xcnt = 0;
res               666 drivers/staging/rtl8712/rtl8712_xmit.c 				res = r8712_xmitframe_coalesce(padapter,
res               673 drivers/staging/rtl8712/rtl8712_xmit.c 		if (res == _SUCCESS)
res               731 drivers/staging/rtl8712/rtl8712_xmit.c 	int res;
res               733 drivers/staging/rtl8712/rtl8712_xmit.c 	res = r8712_xmitframe_coalesce(padapter, pxmitframe->pkt, pxmitframe);
res               735 drivers/staging/rtl8712/rtl8712_xmit.c 	if (res == _SUCCESS)
res               625 drivers/staging/rtl8712/rtl871x_cmd.c 	if (pcmd->res != H2C_SUCCESS)
res               636 drivers/staging/rtl8712/rtl871x_cmd.c 	if (pcmd->res != H2C_SUCCESS) {
res               649 drivers/staging/rtl8712/rtl871x_cmd.c 	if (pcmd->res != H2C_SUCCESS)
res               665 drivers/staging/rtl8712/rtl871x_cmd.c 	if (pcmd->res != H2C_SUCCESS)
res                32 drivers/staging/rtl8712/rtl871x_cmd.h 	u8	res;
res                57 drivers/staging/rtl8712/rtl871x_cmd.h 	u8 res;
res               175 drivers/staging/rtl8712/rtl871x_mlme.c 	sint res;
res               179 drivers/staging/rtl8712/rtl871x_mlme.c 		res = false;
res               181 drivers/staging/rtl8712/rtl871x_mlme.c 		res = true;
res               183 drivers/staging/rtl8712/rtl871x_mlme.c 	return res;
res               156 drivers/staging/rtl8712/rtl871x_mp_ioctl.c 	int res = 0;
res               190 drivers/staging/rtl8712/rtl871x_mp_ioctl.c 		res = -ENOMEM;
res               203 drivers/staging/rtl8712/rtl871x_mp_ioctl.c 	return res;
res               192 drivers/staging/rtl8712/rtl871x_pwrctrl.c 	int res = 0;
res               199 drivers/staging/rtl8712/rtl871x_pwrctrl.c 		res = -EINVAL;
res               202 drivers/staging/rtl8712/rtl871x_pwrctrl.c 	return res;
res               140 drivers/staging/rtl8712/rtl871x_recv.c 	sint i, res = _SUCCESS;
res               184 drivers/staging/rtl8712/rtl871x_recv.c 				res = _FAIL;
res               194 drivers/staging/rtl8712/rtl871x_recv.c 	return res;
res               465 drivers/staging/rtl8712/rtl871x_recv.c 	int res;
res               486 drivers/staging/rtl8712/rtl871x_recv.c 		res = sta2sta_data_frame(adapter, precv_frame, &psta);
res               491 drivers/staging/rtl8712/rtl871x_recv.c 		res = ap2sta_data_frame(adapter, precv_frame, &psta);
res               496 drivers/staging/rtl8712/rtl871x_recv.c 		res = sta2ap_data_frame(adapter, precv_frame, &psta);
res               505 drivers/staging/rtl8712/rtl871x_recv.c 	if (res == _FAIL)
res               249 drivers/staging/rtl8712/rtl871x_security.c 	u32 res = 0;
res               252 drivers/staging/rtl8712/rtl871x_security.c 		res |= ((u32)(*p++)) << (8 * i);
res               253 drivers/staging/rtl8712/rtl871x_security.c 	return res;
res               574 drivers/staging/rtl8712/rtl871x_security.c 	u32 res = _SUCCESS;
res               632 drivers/staging/rtl8712/rtl871x_security.c 			res = _FAIL;
res               635 drivers/staging/rtl8712/rtl871x_security.c 	return res;
res              1146 drivers/staging/rtl8712/rtl871x_security.c 	u32 res = _SUCCESS;
res              1181 drivers/staging/rtl8712/rtl871x_security.c 			res = _FAIL;
res              1184 drivers/staging/rtl8712/rtl871x_security.c 	return res;
res              1446 drivers/staging/rtl8723bs/core/rtw_ap.c 	u8 res = _SUCCESS;
res              1450 drivers/staging/rtl8723bs/core/rtw_ap.c 		res = _FAIL;
res              1457 drivers/staging/rtl8723bs/core/rtw_ap.c 		res = _FAIL;
res              1469 drivers/staging/rtl8723bs/core/rtw_ap.c 	res = rtw_enqueue_cmd(pcmdpriv, ph2c);
res              1473 drivers/staging/rtl8723bs/core/rtw_ap.c 	return res;
res              1488 drivers/staging/rtl8723bs/core/rtw_ap.c 	int res = _SUCCESS;
res              1494 drivers/staging/rtl8723bs/core/rtw_ap.c 		res = _FAIL;
res              1500 drivers/staging/rtl8723bs/core/rtw_ap.c 		res = _FAIL;
res              1536 drivers/staging/rtl8723bs/core/rtw_ap.c 	res = rtw_enqueue_cmd(pcmdpriv, pcmd);
res              1540 drivers/staging/rtl8723bs/core/rtw_ap.c 	return res;
res               168 drivers/staging/rtl8723bs/core/rtw_cmd.c 	int res = 0;
res               182 drivers/staging/rtl8723bs/core/rtw_cmd.c 		res = -ENOMEM;
res               191 drivers/staging/rtl8723bs/core/rtw_cmd.c 		res = -ENOMEM;
res               201 drivers/staging/rtl8723bs/core/rtw_cmd.c 	return res;
res               337 drivers/staging/rtl8723bs/core/rtw_cmd.c 	int res = _FAIL;
res               346 drivers/staging/rtl8723bs/core/rtw_cmd.c 	res = rtw_cmd_filter(pcmdpriv, cmd_obj);
res               347 drivers/staging/rtl8723bs/core/rtw_cmd.c 	if (_FAIL == res) {
res               352 drivers/staging/rtl8723bs/core/rtw_cmd.c 	res = _rtw_enqueue_cmd(&pcmdpriv->cmd_queue, cmd_obj);
res               354 drivers/staging/rtl8723bs/core/rtw_cmd.c 	if (res == _SUCCESS)
res               358 drivers/staging/rtl8723bs/core/rtw_cmd.c 	return res;
res               468 drivers/staging/rtl8723bs/core/rtw_cmd.c 			pcmd->res = H2C_DROPPED;
res               483 drivers/staging/rtl8723bs/core/rtw_cmd.c 				pcmd->res = ret;
res               488 drivers/staging/rtl8723bs/core/rtw_cmd.c 			pcmd->res = H2C_PARAMETERS_ERROR;
res               500 drivers/staging/rtl8723bs/core/rtw_cmd.c 				if (pcmd->res == H2C_SUCCESS)
res               580 drivers/staging/rtl8723bs/core/rtw_cmd.c 	u8 res = _FAIL;
res               639 drivers/staging/rtl8723bs/core/rtw_cmd.c 	res = rtw_enqueue_cmd(pcmdpriv, ph2c);
res               641 drivers/staging/rtl8723bs/core/rtw_cmd.c 	if (res == _SUCCESS) {
res               648 drivers/staging/rtl8723bs/core/rtw_cmd.c 	return res;
res               656 drivers/staging/rtl8723bs/core/rtw_cmd.c 	u8 res = _SUCCESS;
res               660 drivers/staging/rtl8723bs/core/rtw_cmd.c 		res = _FAIL;
res               667 drivers/staging/rtl8723bs/core/rtw_cmd.c 		res = _FAIL;
res               675 drivers/staging/rtl8723bs/core/rtw_cmd.c 	res = rtw_enqueue_cmd(pcmdpriv, ph2c);
res               677 drivers/staging/rtl8723bs/core/rtw_cmd.c 	return res;
res               693 drivers/staging/rtl8723bs/core/rtw_cmd.c 	u8 res = _SUCCESS;
res               703 drivers/staging/rtl8723bs/core/rtw_cmd.c 		res = _FAIL;
res               716 drivers/staging/rtl8723bs/core/rtw_cmd.c 	res = rtw_enqueue_cmd(pcmdpriv, pcmd);
res               719 drivers/staging/rtl8723bs/core/rtw_cmd.c 	return res;
res               727 drivers/staging/rtl8723bs/core/rtw_cmd.c 	int res = _SUCCESS;
res               736 drivers/staging/rtl8723bs/core/rtw_cmd.c 			res = _FAIL;
res               752 drivers/staging/rtl8723bs/core/rtw_cmd.c 		res = rtw_enqueue_cmd(pcmdpriv, pcmd);
res               754 drivers/staging/rtl8723bs/core/rtw_cmd.c 		if (res == _SUCCESS && (flags & RTW_CMDF_WAIT_ACK)) {
res               765 drivers/staging/rtl8723bs/core/rtw_cmd.c 	return res;
res               770 drivers/staging/rtl8723bs/core/rtw_cmd.c 	u8 res = _SUCCESS;
res               794 drivers/staging/rtl8723bs/core/rtw_cmd.c 		res = _FAIL;
res               893 drivers/staging/rtl8723bs/core/rtw_cmd.c 	res = rtw_enqueue_cmd(pcmdpriv, pcmd);
res               896 drivers/staging/rtl8723bs/core/rtw_cmd.c 	return res;
res               904 drivers/staging/rtl8723bs/core/rtw_cmd.c 	u8 res = _SUCCESS;
res               911 drivers/staging/rtl8723bs/core/rtw_cmd.c 		res = _FAIL;
res               920 drivers/staging/rtl8723bs/core/rtw_cmd.c 			res = _FAIL;
res               925 drivers/staging/rtl8723bs/core/rtw_cmd.c 		res = rtw_enqueue_cmd(cmdpriv, cmdobj);
res               929 drivers/staging/rtl8723bs/core/rtw_cmd.c 			res = _FAIL;
res               934 drivers/staging/rtl8723bs/core/rtw_cmd.c 	return res;
res               943 drivers/staging/rtl8723bs/core/rtw_cmd.c 	u8 res = _SUCCESS;
res               948 drivers/staging/rtl8723bs/core/rtw_cmd.c 		res = _FAIL;
res               957 drivers/staging/rtl8723bs/core/rtw_cmd.c 			res = _FAIL;
res               962 drivers/staging/rtl8723bs/core/rtw_cmd.c 		res = rtw_enqueue_cmd(pcmdpriv, ph2c);
res               968 drivers/staging/rtl8723bs/core/rtw_cmd.c 	return res;
res               980 drivers/staging/rtl8723bs/core/rtw_cmd.c 	u8 res = _SUCCESS;
res               984 drivers/staging/rtl8723bs/core/rtw_cmd.c 		res = _FAIL;
res              1009 drivers/staging/rtl8723bs/core/rtw_cmd.c 			res = _FAIL;
res              1017 drivers/staging/rtl8723bs/core/rtw_cmd.c 			res = _FAIL;
res              1024 drivers/staging/rtl8723bs/core/rtw_cmd.c 		res = rtw_enqueue_cmd(pcmdpriv, ph2c);
res              1030 drivers/staging/rtl8723bs/core/rtw_cmd.c 	return res;
res              1040 drivers/staging/rtl8723bs/core/rtw_cmd.c 	u8 res = _SUCCESS;
res              1051 drivers/staging/rtl8723bs/core/rtw_cmd.c 			res = _FAIL;
res              1058 drivers/staging/rtl8723bs/core/rtw_cmd.c 			res = _FAIL;
res              1066 drivers/staging/rtl8723bs/core/rtw_cmd.c 			res = _FAIL;
res              1078 drivers/staging/rtl8723bs/core/rtw_cmd.c 		res = rtw_enqueue_cmd(pcmdpriv, ph2c);
res              1083 drivers/staging/rtl8723bs/core/rtw_cmd.c 	return res;
res              1092 drivers/staging/rtl8723bs/core/rtw_cmd.c 	u8 res = _SUCCESS;
res              1096 drivers/staging/rtl8723bs/core/rtw_cmd.c 		res = _FAIL;
res              1103 drivers/staging/rtl8723bs/core/rtw_cmd.c 		res = _FAIL;
res              1115 drivers/staging/rtl8723bs/core/rtw_cmd.c 	res = rtw_enqueue_cmd(pcmdpriv, ph2c);
res              1118 drivers/staging/rtl8723bs/core/rtw_cmd.c 	return res;
res              1126 drivers/staging/rtl8723bs/core/rtw_cmd.c 	u8 res = _SUCCESS;
res              1130 drivers/staging/rtl8723bs/core/rtw_cmd.c 		res = _FAIL;
res              1137 drivers/staging/rtl8723bs/core/rtw_cmd.c 		res = _FAIL;
res              1150 drivers/staging/rtl8723bs/core/rtw_cmd.c 	res = rtw_enqueue_cmd(pcmdpriv, ph2c);
res              1153 drivers/staging/rtl8723bs/core/rtw_cmd.c 	return res;
res              1161 drivers/staging/rtl8723bs/core/rtw_cmd.c 	u8 res = _SUCCESS;
res              1165 drivers/staging/rtl8723bs/core/rtw_cmd.c 		res = _FAIL;
res              1172 drivers/staging/rtl8723bs/core/rtw_cmd.c 		res = _FAIL;
res              1185 drivers/staging/rtl8723bs/core/rtw_cmd.c 	res = rtw_enqueue_cmd(pcmdpriv, ph2c);
res              1188 drivers/staging/rtl8723bs/core/rtw_cmd.c 	return res;
res              1196 drivers/staging/rtl8723bs/core/rtw_cmd.c 	u8 res = _SUCCESS;
res              1201 drivers/staging/rtl8723bs/core/rtw_cmd.c 		res = _FAIL;
res              1208 drivers/staging/rtl8723bs/core/rtw_cmd.c 		res = _FAIL;
res              1220 drivers/staging/rtl8723bs/core/rtw_cmd.c 	res = rtw_enqueue_cmd(pcmdpriv, ph2c);
res              1223 drivers/staging/rtl8723bs/core/rtw_cmd.c 	return res;
res              1232 drivers/staging/rtl8723bs/core/rtw_cmd.c 	u8 res = _SUCCESS;
res              1238 drivers/staging/rtl8723bs/core/rtw_cmd.c 		res = _FAIL;
res              1244 drivers/staging/rtl8723bs/core/rtw_cmd.c 		res = _FAIL;
res              1251 drivers/staging/rtl8723bs/core/rtw_cmd.c 		res = _FAIL;
res              1261 drivers/staging/rtl8723bs/core/rtw_cmd.c 			res = _FAIL;
res              1266 drivers/staging/rtl8723bs/core/rtw_cmd.c 		res = rtw_enqueue_cmd(pcmdpriv, pcmdobj);
res              1270 drivers/staging/rtl8723bs/core/rtw_cmd.c 			res = _FAIL;
res              1276 drivers/staging/rtl8723bs/core/rtw_cmd.c 	if (res == _SUCCESS)
res              1280 drivers/staging/rtl8723bs/core/rtw_cmd.c 	return res;
res              1513 drivers/staging/rtl8723bs/core/rtw_cmd.c 	u8 res = _SUCCESS;
res              1521 drivers/staging/rtl8723bs/core/rtw_cmd.c 			res = _FAIL;
res              1528 drivers/staging/rtl8723bs/core/rtw_cmd.c 			res = _FAIL;
res              1539 drivers/staging/rtl8723bs/core/rtw_cmd.c 		res = rtw_enqueue_cmd(pcmdpriv, ph2c);
res              1545 drivers/staging/rtl8723bs/core/rtw_cmd.c 	return res;
res              1558 drivers/staging/rtl8723bs/core/rtw_cmd.c 	u8 res = _SUCCESS;
res              1563 drivers/staging/rtl8723bs/core/rtw_cmd.c 		res = _FAIL;
res              1570 drivers/staging/rtl8723bs/core/rtw_cmd.c 		res = _FAIL;
res              1581 drivers/staging/rtl8723bs/core/rtw_cmd.c 	res = rtw_enqueue_cmd(pcmdpriv, ph2c);
res              1585 drivers/staging/rtl8723bs/core/rtw_cmd.c 	return res;
res              1631 drivers/staging/rtl8723bs/core/rtw_cmd.c 	u8 res = _SUCCESS;
res              1636 drivers/staging/rtl8723bs/core/rtw_cmd.c 		res = _FAIL;
res              1643 drivers/staging/rtl8723bs/core/rtw_cmd.c 		res = _FAIL;
res              1654 drivers/staging/rtl8723bs/core/rtw_cmd.c 	res = rtw_enqueue_cmd(pcmdpriv, ph2c);
res              1658 drivers/staging/rtl8723bs/core/rtw_cmd.c 	return res;
res              1667 drivers/staging/rtl8723bs/core/rtw_cmd.c 	u8 res = _SUCCESS;
res              1671 drivers/staging/rtl8723bs/core/rtw_cmd.c 		res = _FAIL;
res              1678 drivers/staging/rtl8723bs/core/rtw_cmd.c 		res = _FAIL;
res              1688 drivers/staging/rtl8723bs/core/rtw_cmd.c 	res = rtw_enqueue_cmd(pcmdpriv, ppscmd);
res              1691 drivers/staging/rtl8723bs/core/rtw_cmd.c 	return res;
res              1739 drivers/staging/rtl8723bs/core/rtw_cmd.c 	u8 res = _SUCCESS;
res              1743 drivers/staging/rtl8723bs/core/rtw_cmd.c 		res = _FAIL;
res              1750 drivers/staging/rtl8723bs/core/rtw_cmd.c 		res = _FAIL;
res              1761 drivers/staging/rtl8723bs/core/rtw_cmd.c 	res = rtw_enqueue_cmd(pcmdpriv, ph2c);
res              1765 drivers/staging/rtl8723bs/core/rtw_cmd.c 	return res;
res              1833 drivers/staging/rtl8723bs/core/rtw_cmd.c 	u8 res = _SUCCESS;
res              1837 drivers/staging/rtl8723bs/core/rtw_cmd.c 		res = _FAIL;
res              1844 drivers/staging/rtl8723bs/core/rtw_cmd.c 		res = _FAIL;
res              1855 drivers/staging/rtl8723bs/core/rtw_cmd.c 	res = rtw_enqueue_cmd(pcmdpriv, ph2c);
res              1858 drivers/staging/rtl8723bs/core/rtw_cmd.c 	return res;
res              1868 drivers/staging/rtl8723bs/core/rtw_cmd.c 	u8 res = _SUCCESS;
res              1872 drivers/staging/rtl8723bs/core/rtw_cmd.c 		res = _FAIL;
res              1879 drivers/staging/rtl8723bs/core/rtw_cmd.c 		res = _FAIL;
res              1890 drivers/staging/rtl8723bs/core/rtw_cmd.c 	res = rtw_enqueue_cmd(pcmdpriv, ph2c);
res              1894 drivers/staging/rtl8723bs/core/rtw_cmd.c 	return res;
res              2003 drivers/staging/rtl8723bs/core/rtw_cmd.c 	if (pcmd->res == H2C_DROPPED) {
res              2007 drivers/staging/rtl8723bs/core/rtw_cmd.c 	} else if (pcmd->res != H2C_SUCCESS) {
res              2020 drivers/staging/rtl8723bs/core/rtw_cmd.c 	if (pcmd->res != H2C_SUCCESS) {
res              2036 drivers/staging/rtl8723bs/core/rtw_cmd.c 	if (pcmd->res == H2C_DROPPED) {
res              2040 drivers/staging/rtl8723bs/core/rtw_cmd.c 	} else if (pcmd->res != H2C_SUCCESS) {
res              2059 drivers/staging/rtl8723bs/core/rtw_cmd.c 	if ((pcmd->res != H2C_SUCCESS)) {
res               507 drivers/staging/rtl8723bs/core/rtw_ioctl_set.c 	u8 res = true;
res               512 drivers/staging/rtl8723bs/core/rtw_ioctl_set.c 		res = false;
res               516 drivers/staging/rtl8723bs/core/rtw_ioctl_set.c 		res = false;
res               525 drivers/staging/rtl8723bs/core/rtw_ioctl_set.c 		res = true;
res               541 drivers/staging/rtl8723bs/core/rtw_ioctl_set.c 		res = rtw_sitesurvey_cmd(padapter, pssid, ssid_max_num, NULL, 0);
res               547 drivers/staging/rtl8723bs/core/rtw_ioctl_set.c 	return res;
res               553 drivers/staging/rtl8723bs/core/rtw_ioctl_set.c 	int res;
res               565 drivers/staging/rtl8723bs/core/rtw_ioctl_set.c 	res = rtw_set_auth(padapter, psecuritypriv);
res               567 drivers/staging/rtl8723bs/core/rtw_ioctl_set.c 	if (res == _SUCCESS)
res               578 drivers/staging/rtl8723bs/core/rtw_ioctl_set.c 	sint		keyid, res;
res               622 drivers/staging/rtl8723bs/core/rtw_ioctl_set.c 	res = rtw_set_key(padapter, psecuritypriv, keyid, 1, true);
res               624 drivers/staging/rtl8723bs/core/rtw_ioctl_set.c 	if (res == _FAIL)
res                23 drivers/staging/rtl8723bs/core/rtw_mlme.c 	int	res = _SUCCESS;
res                44 drivers/staging/rtl8723bs/core/rtw_mlme.c 		res = _FAIL;
res                83 drivers/staging/rtl8723bs/core/rtw_mlme.c 	return res;
res               310 drivers/staging/rtl8723bs/core/rtw_mlme.c 	sint res;
res               315 drivers/staging/rtl8723bs/core/rtw_mlme.c 		res = false;
res               317 drivers/staging/rtl8723bs/core/rtw_mlme.c 		res =  true;
res               318 drivers/staging/rtl8723bs/core/rtw_mlme.c 	return res;
res              1463 drivers/staging/rtl8723bs/core/rtw_mlme.c 		res = _FAIL;
res              1465 drivers/staging/rtl8723bs/core/rtw_mlme.c 			res = rtw_select_and_join_from_scanned_queue(pmlmepriv);
res              1466 drivers/staging/rtl8723bs/core/rtw_mlme.c 			RT_TRACE(_module_rtl871x_mlme_c_, _drv_err_, ("rtw_select_and_join_from_scanned_queue again! res:%d\n", res));
res              1469 drivers/staging/rtl8723bs/core/rtw_mlme.c 		if (res == _SUCCESS) {
res              1473 drivers/staging/rtl8723bs/core/rtw_mlme.c 		} else if (res == 2) {/* there is no need to wait for join */
res              2207 drivers/staging/rtl8723bs/core/rtw_mlme.c 	sint		res = _SUCCESS;
res              2211 drivers/staging/rtl8723bs/core/rtw_mlme.c 		res = _FAIL;  /* try again */
res              2218 drivers/staging/rtl8723bs/core/rtw_mlme.c 		res = _FAIL;
res              2235 drivers/staging/rtl8723bs/core/rtw_mlme.c 	res = rtw_enqueue_cmd(pcmdpriv, pcmd);
res              2238 drivers/staging/rtl8723bs/core/rtw_mlme.c 	return res;
res              2247 drivers/staging/rtl8723bs/core/rtw_mlme.c 	sint	res = _SUCCESS;
res              2251 drivers/staging/rtl8723bs/core/rtw_mlme.c 		res = _FAIL;
res              2293 drivers/staging/rtl8723bs/core/rtw_mlme.c 		res = _FAIL;
res              2303 drivers/staging/rtl8723bs/core/rtw_mlme.c 			res = _FAIL;  /* try again */
res              2315 drivers/staging/rtl8723bs/core/rtw_mlme.c 		res = rtw_enqueue_cmd(pcmdpriv, pcmd);
res              2321 drivers/staging/rtl8723bs/core/rtw_mlme.c 	return res;
res              1649 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c 	int res;
res              1678 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c 		res = -4;
res              1689 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c 	res = pmlmeinfo->aid = (int)(le16_to_cpu(*(__le16 *)(pframe + WLAN_HDR_A3_LEN + 4))&0x3fff);
res              1728 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c 	if (res > 0) {
res              1734 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c 	report_join_res(padapter, res);
res              5113 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c void report_join_res(struct adapter *padapter, int res)
res              5151 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c 	pjoinbss_evt->network.join_res	= pjoinbss_evt->network.aid = res;
res              5153 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c 	DBG_871X("report_join_res(%d)\n", res);
res              6542 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c 	u8 res = _SUCCESS;
res              6546 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c 		res = _FAIL;
res              6552 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c 	res = rtw_enqueue_cmd(pcmdpriv, ph2c);
res              6555 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c 	return res;
res              6565 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c 	u8 res = _SUCCESS;
res              6570 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c 		res = _FAIL;
res              6577 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c 		res = _FAIL;
res              6592 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c 	res = rtw_enqueue_cmd(pcmdpriv, ph2c);
res              6595 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c 	return res;
res               852 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c 	s32 res;
res               856 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c 	res = _SUCCESS;
res               871 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c 				res = _FAIL;
res               879 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c 	if (_FAIL == res)
res               881 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c 			res = _SUCCESS;
res               883 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c 	return res;
res               947 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c 	s32 res;
res               951 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c 	res = _SUCCESS;
res               966 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c 				res = _FAIL;
res               974 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c 	if (_FAIL == res)
res               976 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c 			res = _SUCCESS;
res               978 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c 	return res;
res               996 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c 	s32 res;
res              1000 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c 	res = _SUCCESS;
res              1015 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c 				res = _FAIL;
res              1023 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c 	if (_FAIL == res)
res              1025 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c 			res = _SUCCESS;
res              1027 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c 	return res;
res                39 drivers/staging/rtl8723bs/core/rtw_recv.c 	sint	res = _SUCCESS;
res                54 drivers/staging/rtl8723bs/core/rtw_recv.c 		res = _FAIL;
res                79 drivers/staging/rtl8723bs/core/rtw_recv.c 	res = rtw_hal_init_recv_priv(padapter);
res                89 drivers/staging/rtl8723bs/core/rtw_recv.c 	return res;
res               315 drivers/staging/rtl8723bs/core/rtw_recv.c 	sint	i, res = _SUCCESS;
res               349 drivers/staging/rtl8723bs/core/rtw_recv.c 					res = _FAIL;
res               419 drivers/staging/rtl8723bs/core/rtw_recv.c 				res = _FAIL;
res               437 drivers/staging/rtl8723bs/core/rtw_recv.c 	return res;
res               449 drivers/staging/rtl8723bs/core/rtw_recv.c 	u32  res = _SUCCESS;
res               496 drivers/staging/rtl8723bs/core/rtw_recv.c 			res = rtw_tkip_decrypt(padapter, (u8 *)precv_frame);
res               500 drivers/staging/rtl8723bs/core/rtw_recv.c 			res = rtw_aes_decrypt(padapter, (u8 *)precv_frame);
res               533 drivers/staging/rtl8723bs/core/rtw_recv.c 	if (res == _FAIL) {
res               321 drivers/staging/rtl8723bs/core/rtw_security.c 	u32 res = 0;
res               324 drivers/staging/rtl8723bs/core/rtw_security.c 		res |= ((u32)(*p++)) << (8*i);
res               327 drivers/staging/rtl8723bs/core/rtw_security.c 	return res;
res               668 drivers/staging/rtl8723bs/core/rtw_security.c 	u32 res = _SUCCESS;
res               754 drivers/staging/rtl8723bs/core/rtw_security.c 	return res;
res               776 drivers/staging/rtl8723bs/core/rtw_security.c 	u32 	res = _SUCCESS;
res               790 drivers/staging/rtl8723bs/core/rtw_security.c 					res = _FAIL;
res               852 drivers/staging/rtl8723bs/core/rtw_security.c 				res = _FAIL;
res               858 drivers/staging/rtl8723bs/core/rtw_security.c 			res = _FAIL;
res               863 drivers/staging/rtl8723bs/core/rtw_security.c 	return res;
res              1537 drivers/staging/rtl8723bs/core/rtw_security.c 	u32 res = _SUCCESS;
res              1573 drivers/staging/rtl8723bs/core/rtw_security.c 	return res;
res              1582 drivers/staging/rtl8723bs/core/rtw_security.c 	sint res = _SUCCESS;
res              1842 drivers/staging/rtl8723bs/core/rtw_security.c 			res = _FAIL;
res              1845 drivers/staging/rtl8723bs/core/rtw_security.c 	return res;
res              1865 drivers/staging/rtl8723bs/core/rtw_security.c 	u32 res = _SUCCESS;
res              1882 drivers/staging/rtl8723bs/core/rtw_security.c 					res = _FAIL;
res              1917 drivers/staging/rtl8723bs/core/rtw_security.c 					res = _FAIL;
res              1926 drivers/staging/rtl8723bs/core/rtw_security.c 			res = aes_decipher(prwskey, prxattrib->hdrlen, pframe, length);
res              1931 drivers/staging/rtl8723bs/core/rtw_security.c 			res = _FAIL;
res              1935 drivers/staging/rtl8723bs/core/rtw_security.c 	return res;
res              1943 drivers/staging/rtl8723bs/core/rtw_security.c 	u32 res = _FAIL;
res              2003 drivers/staging/rtl8723bs/core/rtw_security.c 			res = _SUCCESS;
res              2008 drivers/staging/rtl8723bs/core/rtw_security.c 		res = RTW_RX_HANDLED;
res              2012 drivers/staging/rtl8723bs/core/rtw_security.c 	return res;
res               560 drivers/staging/rtl8723bs/core/rtw_sta_mgt.c 	u32 res = _SUCCESS;
res               569 drivers/staging/rtl8723bs/core/rtw_sta_mgt.c 		res = _FAIL;
res               592 drivers/staging/rtl8723bs/core/rtw_sta_mgt.c 	bool res = true;
res               617 drivers/staging/rtl8723bs/core/rtw_sta_mgt.c 		res = !match;
res               620 drivers/staging/rtl8723bs/core/rtw_sta_mgt.c 		res = match;
res               622 drivers/staging/rtl8723bs/core/rtw_sta_mgt.c 		 res = true;
res               624 drivers/staging/rtl8723bs/core/rtw_sta_mgt.c 	return res;
res              2109 drivers/staging/rtl8723bs/core/rtw_wlan_util.c 	u8 res = -1;
res              2133 drivers/staging/rtl8723bs/core/rtw_wlan_util.c 		res = 0;
res              2136 drivers/staging/rtl8723bs/core/rtw_wlan_util.c 		res = -1;
res              2140 drivers/staging/rtl8723bs/core/rtw_wlan_util.c 	return res;
res                44 drivers/staging/rtl8723bs/core/rtw_xmit.c 	sint	res = _SUCCESS;
res                82 drivers/staging/rtl8723bs/core/rtw_xmit.c 		res = _FAIL;
res               120 drivers/staging/rtl8723bs/core/rtw_xmit.c 		res = _FAIL;
res               138 drivers/staging/rtl8723bs/core/rtw_xmit.c 		res = rtw_os_xmit_resource_alloc(padapter, pxmitbuf, (MAX_XMITBUF_SZ + XMITBUF_ALIGN_SZ), true);
res               139 drivers/staging/rtl8723bs/core/rtw_xmit.c 		if (res == _FAIL) {
res               141 drivers/staging/rtl8723bs/core/rtw_xmit.c 			res = rtw_os_xmit_resource_alloc(padapter, pxmitbuf, (MAX_XMITBUF_SZ + XMITBUF_ALIGN_SZ), true);
res               142 drivers/staging/rtl8723bs/core/rtw_xmit.c 			if (res == _FAIL)
res               172 drivers/staging/rtl8723bs/core/rtw_xmit.c 		res = _FAIL;
res               204 drivers/staging/rtl8723bs/core/rtw_xmit.c 		res = _FAIL;
res               219 drivers/staging/rtl8723bs/core/rtw_xmit.c 		res = rtw_os_xmit_resource_alloc(padapter, pxmitbuf, MAX_XMIT_EXTBUF_SZ + XMITBUF_ALIGN_SZ, true);
res               220 drivers/staging/rtl8723bs/core/rtw_xmit.c 		if (res == _FAIL) {
res               221 drivers/staging/rtl8723bs/core/rtw_xmit.c 			res = _FAIL;
res               249 drivers/staging/rtl8723bs/core/rtw_xmit.c 			res = rtw_os_xmit_resource_alloc(padapter, pxmitbuf, MAX_CMDBUF_SZ+XMITBUF_ALIGN_SZ, true);
res               250 drivers/staging/rtl8723bs/core/rtw_xmit.c 			if (res == _FAIL) {
res               251 drivers/staging/rtl8723bs/core/rtw_xmit.c 				res = _FAIL;
res               263 drivers/staging/rtl8723bs/core/rtw_xmit.c 	res = rtw_alloc_hwxmits(padapter);
res               264 drivers/staging/rtl8723bs/core/rtw_xmit.c 	if (res == _FAIL)
res               279 drivers/staging/rtl8723bs/core/rtw_xmit.c 	return res;
res               506 drivers/staging/rtl8723bs/core/rtw_xmit.c 	sint res = _SUCCESS;
res               525 drivers/staging/rtl8723bs/core/rtw_xmit.c 			res = _FAIL;
res               570 drivers/staging/rtl8723bs/core/rtw_xmit.c 			res = _FAIL;
res               622 drivers/staging/rtl8723bs/core/rtw_xmit.c 	return res;
res               687 drivers/staging/rtl8723bs/core/rtw_xmit.c 	sint res = _SUCCESS;
res               781 drivers/staging/rtl8723bs/core/rtw_xmit.c 			res = _FAIL;
res               785 drivers/staging/rtl8723bs/core/rtw_xmit.c 			res = _FAIL;
res               797 drivers/staging/rtl8723bs/core/rtw_xmit.c 		res = _FAIL;
res               812 drivers/staging/rtl8723bs/core/rtw_xmit.c 		res = _FAIL;
res               849 drivers/staging/rtl8723bs/core/rtw_xmit.c 	return res;
res              1025 drivers/staging/rtl8723bs/core/rtw_xmit.c 	sint res = _SUCCESS;
res              1067 drivers/staging/rtl8723bs/core/rtw_xmit.c 			res = _FAIL;
res              1152 drivers/staging/rtl8723bs/core/rtw_xmit.c 	return res;
res              1216 drivers/staging/rtl8723bs/core/rtw_xmit.c 	s32 res = _SUCCESS;
res              1255 drivers/staging/rtl8723bs/core/rtw_xmit.c 		res = _FAIL;
res              1339 drivers/staging/rtl8723bs/core/rtw_xmit.c 		res = _FAIL;
res              1351 drivers/staging/rtl8723bs/core/rtw_xmit.c 	return res;
res              2090 drivers/staging/rtl8723bs/core/rtw_xmit.c 	sint res = _SUCCESS;
res              2112 drivers/staging/rtl8723bs/core/rtw_xmit.c 		res = _FAIL;
res              2144 drivers/staging/rtl8723bs/core/rtw_xmit.c 	return res;
res              2295 drivers/staging/rtl8723bs/core/rtw_xmit.c 	s32 res;
res              2318 drivers/staging/rtl8723bs/core/rtw_xmit.c 	res = update_attrib(padapter, *ppkt, &pxmitframe->attrib);
res              2320 drivers/staging/rtl8723bs/core/rtw_xmit.c 	if (res == _FAIL) {
res              1702 drivers/staging/rtl8723bs/hal/hal_com.c 	u32 res, i = 0;
res              1711 drivers/staging/rtl8723bs/hal/hal_com.c 			res = rtw_hal_read_rfreg(padapter, RF_PATH_A, 0x7f, 0xffffffff);
res              1712 drivers/staging/rtl8723bs/hal/hal_com.c 			res &= 0xfff87fff;
res              1713 drivers/staging/rtl8723bs/hal/hal_com.c 			DBG_871X("Offset RF Gain. before reg 0x7f = 0x%08x\n", res);
res              1729 drivers/staging/rtl8723bs/hal/hal_com.c 			res = rtw_hal_read_rfreg(padapter, RF_PATH_A, 0x7f, 0xffffffff);
res              1730 drivers/staging/rtl8723bs/hal/hal_com.c 			DBG_871X("Offset RF Gain. After reg 0x7f = 0x%08x\n", res);
res              1256 drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c 		res = rtw_read8(padapter, REG_PNO_STATUS);
res              1257 drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c 		DBG_871X("cmd: 0x81 REG_PNO_STATUS: 0x%02x\n", res);
res              1258 drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c 		while (!(res&BIT(7)) && count < 25) {
res              1259 drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c 			DBG_871X("[%d] cmd: 0x81 REG_PNO_STATUS: 0x%02x\n", count, res);
res              1260 drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c 			res = rtw_read8(padapter, REG_PNO_STATUS);
res              1264 drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c 		DBG_871X("cmd: 0x81 REG_PNO_STATUS: 0x%02x\n", res);
res               163 drivers/staging/rtl8723bs/hal/rtl8723bs_recv.c 	u8 res = false;
res               176 drivers/staging/rtl8723bs/hal/rtl8723bs_recv.c 	res = rtw_c2h_packet_wk_cmd(padapter, tmp, length);
res               178 drivers/staging/rtl8723bs/hal/rtl8723bs_recv.c 	if (!res)
res               411 drivers/staging/rtl8723bs/hal/rtl8723bs_recv.c 	s32 res;
res               416 drivers/staging/rtl8723bs/hal/rtl8723bs_recv.c 	res = _SUCCESS;
res               426 drivers/staging/rtl8723bs/hal/rtl8723bs_recv.c 		res = _FAIL;
res               463 drivers/staging/rtl8723bs/hal/rtl8723bs_recv.c 	if (res == _FAIL)
res               494 drivers/staging/rtl8723bs/hal/rtl8723bs_recv.c 	return res;
res              1419 drivers/staging/rtl8723bs/hal/sdio_halinit.c 	int res;
res              1485 drivers/staging/rtl8723bs/hal/sdio_halinit.c 					res = sdio_local_read(padapter, SDIO_REG_RX0_REQ_LEN, 4, (u8 *)&tmp);
res              1489 drivers/staging/rtl8723bs/hal/sdio_halinit.c 						res = RecvOnePkt(padapter, len);
res              1493 drivers/staging/rtl8723bs/hal/sdio_halinit.c 					DBG_871X_LEVEL(_drv_always_, "RecvOnePkt Result: %d\n", res);
res              1695 drivers/staging/rtl8723bs/hal/sdio_halinit.c 					res = sdio_local_read(padapter, SDIO_REG_RX0_REQ_LEN, 4, (u8 *)&tmp);
res              1700 drivers/staging/rtl8723bs/hal/sdio_halinit.c 						res = RecvOnePkt(padapter, len);
res              1704 drivers/staging/rtl8723bs/hal/sdio_halinit.c 					DBG_871X_LEVEL(_drv_always_, "RecvOnePkt Result: %d\n", res);
res              1175 drivers/staging/rtl8723bs/hal/sdio_ops.c 	u8 res = false;
res              1195 drivers/staging/rtl8723bs/hal/sdio_ops.c 			res = true;
res              1197 drivers/staging/rtl8723bs/hal/sdio_ops.c 			res = false;
res              1202 drivers/staging/rtl8723bs/hal/sdio_ops.c 	return res;
res                25 drivers/staging/rtl8723bs/include/rtw_cmd.h 		u8 res;
res               646 drivers/staging/rtl8723bs/include/rtw_mlme_ext.h void report_join_res(struct adapter *padapter, int res);
res               140 drivers/staging/rtl8723bs/os_dep/xmit_linux.c 	s32	res;
res               182 drivers/staging/rtl8723bs/os_dep/xmit_linux.c 			res = rtw_xmit(padapter, &newskb);
res               183 drivers/staging/rtl8723bs/os_dep/xmit_linux.c 			if (res < 0) {
res               207 drivers/staging/rtl8723bs/os_dep/xmit_linux.c 	s32 res = 0;
res               233 drivers/staging/rtl8723bs/os_dep/xmit_linux.c 			res = rtw_mlcst2unicst(padapter, pkt);
res               234 drivers/staging/rtl8723bs/os_dep/xmit_linux.c 			if (res)
res               243 drivers/staging/rtl8723bs/os_dep/xmit_linux.c 	res = rtw_xmit(padapter, &pkt);
res               244 drivers/staging/rtl8723bs/os_dep/xmit_linux.c 	if (res < 0) {
res                27 drivers/staging/vc04_services/bcm2835-audio/bcm2835.c static void bcm2835_devm_free_vchi_ctx(struct device *dev, void *res)
res                29 drivers/staging/vc04_services/bcm2835-audio/bcm2835.c 	struct bcm2835_vchi_ctx *vchi_ctx = res;
res                84 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c 	struct resource *res;
res               138 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               139 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c 	g_regs = devm_ioremap_resource(&pdev->dev, res);
res               265 drivers/staging/vme/devices/vme_user.c 	loff_t res;
res               272 drivers/staging/vme/devices/vme_user.c 		res = fixed_size_llseek(file, off, whence, image_size);
res               274 drivers/staging/vme/devices/vme_user.c 		return res;
res               637 drivers/staging/wilc1000/wilc_hif.c 	struct assoc_resp *res = (struct assoc_resp *)buffer;
res               639 drivers/staging/wilc1000/wilc_hif.c 	ret_conn_info->status = le16_to_cpu(res->status_code);
res               641 drivers/staging/wilc1000/wilc_hif.c 		ies = &buffer[sizeof(*res)];
res               642 drivers/staging/wilc1000/wilc_hif.c 		ies_len = buffer_len - sizeof(*res);
res               138 drivers/tee/optee/call.c 		struct arm_smccc_res res;
res               142 drivers/tee/optee/call.c 				 &res);
res               144 drivers/tee/optee/call.c 		if (res.a0 == OPTEE_SMC_RETURN_ETHREAD_LIMIT) {
res               150 drivers/tee/optee/call.c 		} else if (OPTEE_SMC_RETURN_IS_RPC(res.a0)) {
res               152 drivers/tee/optee/call.c 			param.a0 = res.a0;
res               153 drivers/tee/optee/call.c 			param.a1 = res.a1;
res               154 drivers/tee/optee/call.c 			param.a2 = res.a2;
res               155 drivers/tee/optee/call.c 			param.a3 = res.a3;
res               158 drivers/tee/optee/call.c 			ret = res.a0;
res               396 drivers/tee/optee/call.c 		struct arm_smccc_res res;
res               399 drivers/tee/optee/call.c 				 0, &res);
res               400 drivers/tee/optee/call.c 		if (res.a0 == OPTEE_SMC_RETURN_OK)
res               422 drivers/tee/optee/call.c 		} res;
res               425 drivers/tee/optee/call.c 				 0, &res.smccc);
res               426 drivers/tee/optee/call.c 		if (res.result.status == OPTEE_SMC_RETURN_ENOTAVAIL)
res               428 drivers/tee/optee/call.c 		if (res.result.status == OPTEE_SMC_RETURN_OK) {
res               431 drivers/tee/optee/call.c 			shm = reg_pair_to_ptr(res.result.shm_upper32,
res               432 drivers/tee/optee/call.c 					      res.result.shm_lower32);
res               340 drivers/tee/optee/core.c 	struct arm_smccc_res res;
res               342 drivers/tee/optee/core.c 	invoke_fn(OPTEE_SMC_CALLS_UID, 0, 0, 0, 0, 0, 0, 0, &res);
res               344 drivers/tee/optee/core.c 	if (res.a0 == OPTEE_MSG_UID_0 && res.a1 == OPTEE_MSG_UID_1 &&
res               345 drivers/tee/optee/core.c 	    res.a2 == OPTEE_MSG_UID_2 && res.a3 == OPTEE_MSG_UID_3)
res               355 drivers/tee/optee/core.c 	} res = {
res               362 drivers/tee/optee/core.c 		  &res.smccc);
res               364 drivers/tee/optee/core.c 	if (res.result.build_id)
res               365 drivers/tee/optee/core.c 		pr_info("revision %lu.%lu (%08lx)", res.result.major,
res               366 drivers/tee/optee/core.c 			res.result.minor, res.result.build_id);
res               368 drivers/tee/optee/core.c 		pr_info("revision %lu.%lu", res.result.major, res.result.minor);
res               376 drivers/tee/optee/core.c 	} res;
res               378 drivers/tee/optee/core.c 	invoke_fn(OPTEE_SMC_CALLS_REVISION, 0, 0, 0, 0, 0, 0, 0, &res.smccc);
res               380 drivers/tee/optee/core.c 	if (res.result.major == OPTEE_MSG_REVISION_MAJOR &&
res               381 drivers/tee/optee/core.c 	    (int)res.result.minor >= OPTEE_MSG_REVISION_MINOR)
res               392 drivers/tee/optee/core.c 	} res;
res               404 drivers/tee/optee/core.c 		  &res.smccc);
res               406 drivers/tee/optee/core.c 	if (res.result.status != OPTEE_SMC_RETURN_OK)
res               409 drivers/tee/optee/core.c 	*sec_caps = res.result.capabilities;
res               446 drivers/tee/optee/core.c 	} res;
res               458 drivers/tee/optee/core.c 	invoke_fn(OPTEE_SMC_GET_SHM_CONFIG, 0, 0, 0, 0, 0, 0, 0, &res.smccc);
res               459 drivers/tee/optee/core.c 	if (res.result.status != OPTEE_SMC_RETURN_OK) {
res               464 drivers/tee/optee/core.c 	if (res.result.settings != OPTEE_SMC_SHM_CACHED) {
res               469 drivers/tee/optee/core.c 	begin = roundup(res.result.start, PAGE_SIZE);
res               470 drivers/tee/optee/core.c 	end = rounddown(res.result.start + res.result.size, PAGE_SIZE);
res               523 drivers/tee/optee/core.c 			    struct arm_smccc_res *res)
res               525 drivers/tee/optee/core.c 	arm_smccc_smc(a0, a1, a2, a3, a4, a5, a6, a7, res);
res               532 drivers/tee/optee/core.c 			    struct arm_smccc_res *res)
res               534 drivers/tee/optee/core.c 	arm_smccc_hvc(a0, a1, a2, a3, a4, a5, a6, a7, res);
res               711 drivers/thermal/armada_thermal.c 	struct resource *res;
res               715 drivers/thermal/armada_thermal.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               716 drivers/thermal/armada_thermal.c 	base = devm_ioremap_resource(&pdev->dev, res);
res               169 drivers/thermal/broadcom/bcm2835_thermal.c 	struct resource *res;
res               183 drivers/thermal/broadcom/bcm2835_thermal.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               184 drivers/thermal/broadcom/bcm2835_thermal.c 	data->regs = devm_ioremap_resource(&pdev->dev, res);
res               295 drivers/thermal/broadcom/brcmstb_thermal.c 	struct resource *res;
res               302 drivers/thermal/broadcom/brcmstb_thermal.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               303 drivers/thermal/broadcom/brcmstb_thermal.c 	priv->tmon_base = devm_ioremap_resource(&pdev->dev, res);
res                53 drivers/thermal/broadcom/sr-thermal.c 	struct resource *res;
res                62 drivers/thermal/broadcom/sr-thermal.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                63 drivers/thermal/broadcom/sr-thermal.c 	sr_thermal->regs = (void __iomem *)devm_memremap(&pdev->dev, res->start,
res                64 drivers/thermal/broadcom/sr-thermal.c 							 resource_size(res),
res               285 drivers/thermal/devfreq_cooling.c 	int res;
res               289 drivers/thermal/devfreq_cooling.c 		res = -EAGAIN;
res               296 drivers/thermal/devfreq_cooling.c 			res = -EINVAL;
res               300 drivers/thermal/devfreq_cooling.c 		res = dfc->power_ops->get_real_power(df, power, freq, voltage);
res               301 drivers/thermal/devfreq_cooling.c 		if (!res) {
res               330 drivers/thermal/devfreq_cooling.c 	return res;
res               125 drivers/thermal/dove_thermal.c 	struct resource *res;
res               132 drivers/thermal/dove_thermal.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               133 drivers/thermal/dove_thermal.c 	priv->sensor = devm_ioremap_resource(&pdev->dev, res);
res               137 drivers/thermal/dove_thermal.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res               138 drivers/thermal/dove_thermal.c 	priv->control = devm_ioremap_resource(&pdev->dev, res);
res               560 drivers/thermal/hisi_thermal.c 	struct resource *res;
res               571 drivers/thermal/hisi_thermal.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               572 drivers/thermal/hisi_thermal.c 	data->regs = devm_ioremap_resource(dev, res);
res                67 drivers/thermal/kirkwood_thermal.c 	struct resource *res;
res                73 drivers/thermal/kirkwood_thermal.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                74 drivers/thermal/kirkwood_thermal.c 	priv->sensor = devm_ioremap_resource(&pdev->dev, res);
res               870 drivers/thermal/mtk_thermal.c 	struct resource *res;
res               888 drivers/thermal/mtk_thermal.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               889 drivers/thermal/mtk_thermal.c 	mt->thermal_base = devm_ioremap_resource(&pdev->dev, res);
res               581 drivers/thermal/of-thermal.c static void devm_thermal_zone_of_sensor_release(struct device *dev, void *res)
res               584 drivers/thermal/of-thermal.c 					  *(struct thermal_zone_device **)res);
res               587 drivers/thermal/of-thermal.c static int devm_thermal_zone_of_sensor_match(struct device *dev, void *res,
res               590 drivers/thermal/of-thermal.c 	struct thermal_zone_device **r = res;
res               354 drivers/thermal/qcom/qcom-spmi-temp-alarm.c 	u32 res;
res               372 drivers/thermal/qcom/qcom-spmi-temp-alarm.c 	ret = of_property_read_u32(node, "reg", &res);
res               389 drivers/thermal/qcom/qcom-spmi-temp-alarm.c 	chip->base = res;
res               158 drivers/thermal/qcom/tsens-common.c 	struct resource *res;
res               169 drivers/thermal/qcom/tsens-common.c 		res = platform_get_resource(op, IORESOURCE_MEM, 1);
res               170 drivers/thermal/qcom/tsens-common.c 		srot_base = devm_ioremap_resource(&op->dev, res);
res               187 drivers/thermal/qcom/tsens-common.c 	res = platform_get_resource(op, IORESOURCE_MEM, 0);
res               188 drivers/thermal/qcom/tsens-common.c 	tm_base = devm_ioremap_resource(&op->dev, res);
res               362 drivers/thermal/rcar_gen3_thermal.c 	struct resource *res;
res               409 drivers/thermal/rcar_gen3_thermal.c 		res = platform_get_resource(pdev, IORESOURCE_MEM, i);
res               410 drivers/thermal/rcar_gen3_thermal.c 		if (!res)
res               419 drivers/thermal/rcar_gen3_thermal.c 		tsc->base = devm_ioremap_resource(dev, res);
res               495 drivers/thermal/rcar_thermal.c 	struct resource *res, *irq;
res               526 drivers/thermal/rcar_thermal.c 			res = platform_get_resource(pdev, IORESOURCE_MEM,
res               528 drivers/thermal/rcar_thermal.c 			common->base = devm_ioremap_resource(dev, res);
res               548 drivers/thermal/rcar_thermal.c 		res = platform_get_resource(pdev, IORESOURCE_MEM, mres++);
res               549 drivers/thermal/rcar_thermal.c 		if (!res)
res               558 drivers/thermal/rcar_thermal.c 		priv->base = devm_ioremap_resource(dev, res);
res              1222 drivers/thermal/rockchip_thermal.c 	struct resource *res;
res              1248 drivers/thermal/rockchip_thermal.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1249 drivers/thermal/rockchip_thermal.c 	thermal->regs = devm_ioremap_resource(&pdev->dev, res);
res               868 drivers/thermal/samsung/exynos_tmu.c 	struct resource res;
res               883 drivers/thermal/samsung/exynos_tmu.c 	if (of_address_to_resource(pdev->dev.of_node, 0, &res)) {
res               888 drivers/thermal/samsung/exynos_tmu.c 	data->base = devm_ioremap(&pdev->dev, res.start, resource_size(&res));
res               945 drivers/thermal/samsung/exynos_tmu.c 		if (res.start == EXYNOS5433_G3D_BASE)
res               982 drivers/thermal/samsung/exynos_tmu.c 	if (of_address_to_resource(pdev->dev.of_node, 1, &res)) {
res               987 drivers/thermal/samsung/exynos_tmu.c 	data->base_second = devm_ioremap(&pdev->dev, res.start,
res               988 drivers/thermal/samsung/exynos_tmu.c 					resource_size(&res));
res                94 drivers/thermal/spear_thermal.c 	struct resource *res;
res               107 drivers/thermal/spear_thermal.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               108 drivers/thermal/spear_thermal.c 	stdev->thermal_base = devm_ioremap_resource(&pdev->dev, res);
res               124 drivers/thermal/st/st_thermal_memmap.c 	struct resource *res;
res               126 drivers/thermal/st/st_thermal_memmap.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               127 drivers/thermal/st/st_thermal_memmap.c 	if (!res) {
res               132 drivers/thermal/st/st_thermal_memmap.c 	sensor->mmio_base = devm_ioremap_resource(dev, res);
res               614 drivers/thermal/st/stm_thermal.c 	struct resource *res;
res               633 drivers/thermal/st/stm_thermal.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               634 drivers/thermal/st/stm_thermal.c 	base = devm_ioremap_resource(&pdev->dev, res);
res                42 drivers/thermal/tango_thermal.c static int tango_get_temp(void *arg, int *res)
res                58 drivers/thermal/tango_thermal.c 	*res = (idx * 9 / 2 - 38) * 1000; /* millidegrees Celsius */
res                76 drivers/thermal/tango_thermal.c 	struct resource *res;
res                84 drivers/thermal/tango_thermal.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                85 drivers/thermal/tango_thermal.c 	priv->base = devm_ioremap_resource(&pdev->dev, res);
res              2110 drivers/thermal/tegra/soctherm.c 	struct resource *res;
res              2132 drivers/thermal/tegra/soctherm.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
res              2134 drivers/thermal/tegra/soctherm.c 	tegra->regs = devm_ioremap_resource(&pdev->dev, res);
res              2141 drivers/thermal/tegra/soctherm.c 		res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
res              2143 drivers/thermal/tegra/soctherm.c 		tegra->clk_regs = devm_ioremap_resource(&pdev->dev, res);
res              2149 drivers/thermal/tegra/soctherm.c 		res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
res              2151 drivers/thermal/tegra/soctherm.c 		tegra->ccroc_regs = devm_ioremap_resource(&pdev->dev, res);
res              1055 drivers/thermal/thermal_core.c static void thermal_cooling_device_release(struct device *dev, void *res)
res              1058 drivers/thermal/thermal_core.c 				*(struct thermal_cooling_device **)res);
res               823 drivers/thermal/ti-soc-thermal/ti-bandgap.c 	struct resource *res;
res               850 drivers/thermal/ti-soc-thermal/ti-bandgap.c 		res = platform_get_resource(pdev, IORESOURCE_MEM, i);
res               851 drivers/thermal/ti-soc-thermal/ti-bandgap.c 		if (!res)
res               853 drivers/thermal/ti-soc-thermal/ti-bandgap.c 		chunk = devm_ioremap_resource(&pdev->dev, res);
res               860 drivers/thermal/ti-soc-thermal/ti-bandgap.c 	} while (res);
res               120 drivers/thermal/zx2967_thermal.c 	struct resource *res;
res               127 drivers/thermal/zx2967_thermal.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               128 drivers/thermal/zx2967_thermal.c 	priv->regs = devm_ioremap_resource(&pdev->dev, res);
res               222 drivers/thunderbolt/ctl.c 	struct tb_cfg_result res = { 0 };
res               223 drivers/thunderbolt/ctl.c 	res.response_route = tb_cfg_get_route(&pkg->header);
res               224 drivers/thunderbolt/ctl.c 	res.response_port = 0;
res               225 drivers/thunderbolt/ctl.c 	res.err = check_header(response, sizeof(*pkg), TB_CFG_PKG_ERROR,
res               227 drivers/thunderbolt/ctl.c 	if (res.err)
res               228 drivers/thunderbolt/ctl.c 		return res;
res               233 drivers/thunderbolt/ctl.c 	res.err = 1;
res               234 drivers/thunderbolt/ctl.c 	res.tb_error = pkg->error;
res               235 drivers/thunderbolt/ctl.c 	res.response_port = pkg->port;
res               236 drivers/thunderbolt/ctl.c 	return res;
res               244 drivers/thunderbolt/ctl.c 	struct tb_cfg_result res = { 0 };
res               249 drivers/thunderbolt/ctl.c 	res.response_port = 0; /* will be updated later for cfg_read/write */
res               250 drivers/thunderbolt/ctl.c 	res.response_route = tb_cfg_get_route(header);
res               251 drivers/thunderbolt/ctl.c 	res.err = check_header(pkg, len, type, route);
res               252 drivers/thunderbolt/ctl.c 	return res;
res               256 drivers/thunderbolt/ctl.c 			       const struct tb_cfg_result *res)
res               258 drivers/thunderbolt/ctl.c 	WARN_ON(res->err != 1);
res               259 drivers/thunderbolt/ctl.c 	switch (res->tb_error) {
res               271 drivers/thunderbolt/ctl.c 			res->response_route, res->response_port);
res               280 drivers/thunderbolt/ctl.c 			res->response_route, res->response_port);
res               284 drivers/thunderbolt/ctl.c 			res->response_route, res->response_port);
res               289 drivers/thunderbolt/ctl.c 			res->response_route, res->response_port);
res               343 drivers/thunderbolt/ctl.c 	int res;
res               364 drivers/thunderbolt/ctl.c 	res = tb_ring_tx(ctl->tx, &pkg->frame);
res               365 drivers/thunderbolt/ctl.c 	if (res) /* ring is stopped */
res               367 drivers/thunderbolt/ctl.c 	return res;
res               575 drivers/thunderbolt/ctl.c 	struct tb_cfg_result res = { 0 };
res               581 drivers/thunderbolt/ctl.c 		res.err = ret;
res               582 drivers/thunderbolt/ctl.c 		return res;
res               756 drivers/thunderbolt/ctl.c 	struct tb_cfg_result res;
res               759 drivers/thunderbolt/ctl.c 	res = parse_header(pkg, req->response_size, req->response_type,
res               761 drivers/thunderbolt/ctl.c 	if (!res.err)
res               764 drivers/thunderbolt/ctl.c 	req->result = res;
res               781 drivers/thunderbolt/ctl.c 	struct tb_cfg_result res = { 0 };
res               787 drivers/thunderbolt/ctl.c 		res.err = -ENOMEM;
res               788 drivers/thunderbolt/ctl.c 		return res;
res               800 drivers/thunderbolt/ctl.c 	res = tb_cfg_request_sync(ctl, req, timeout_msec);
res               804 drivers/thunderbolt/ctl.c 	return res;
res               816 drivers/thunderbolt/ctl.c 	struct tb_cfg_result res = { 0 };
res               834 drivers/thunderbolt/ctl.c 			res.err = -ENOMEM;
res               835 drivers/thunderbolt/ctl.c 			return res;
res               849 drivers/thunderbolt/ctl.c 		res = tb_cfg_request_sync(ctl, req, timeout_msec);
res               853 drivers/thunderbolt/ctl.c 		if (res.err != -ETIMEDOUT)
res               860 drivers/thunderbolt/ctl.c 	if (res.err)
res               861 drivers/thunderbolt/ctl.c 		return res;
res               863 drivers/thunderbolt/ctl.c 	res.response_port = reply.addr.port;
res               864 drivers/thunderbolt/ctl.c 	res.err = check_config_address(reply.addr, space, offset, length);
res               865 drivers/thunderbolt/ctl.c 	if (!res.err)
res               867 drivers/thunderbolt/ctl.c 	return res;
res               879 drivers/thunderbolt/ctl.c 	struct tb_cfg_result res = { 0 };
res               899 drivers/thunderbolt/ctl.c 			res.err = -ENOMEM;
res               900 drivers/thunderbolt/ctl.c 			return res;
res               914 drivers/thunderbolt/ctl.c 		res = tb_cfg_request_sync(ctl, req, timeout_msec);
res               918 drivers/thunderbolt/ctl.c 		if (res.err != -ETIMEDOUT)
res               925 drivers/thunderbolt/ctl.c 	if (res.err)
res               926 drivers/thunderbolt/ctl.c 		return res;
res               928 drivers/thunderbolt/ctl.c 	res.response_port = reply.addr.port;
res               929 drivers/thunderbolt/ctl.c 	res.err = check_config_address(reply.addr, space, offset, length);
res               930 drivers/thunderbolt/ctl.c 	return res;
res               934 drivers/thunderbolt/ctl.c 			    const struct tb_cfg_result *res)
res               943 drivers/thunderbolt/ctl.c 	    res->tb_error == TB_CFG_ERROR_INVALID_CONFIG_SPACE)
res               946 drivers/thunderbolt/ctl.c 	tb_cfg_print_error(ctl, res);
res               953 drivers/thunderbolt/ctl.c 	struct tb_cfg_result res = tb_cfg_read_raw(ctl, buffer, route, port,
res               955 drivers/thunderbolt/ctl.c 	switch (res.err) {
res               962 drivers/thunderbolt/ctl.c 		return tb_cfg_get_error(ctl, space, &res);
res               970 drivers/thunderbolt/ctl.c 		WARN(1, "tb_cfg_read: %d\n", res.err);
res               973 drivers/thunderbolt/ctl.c 	return res.err;
res               979 drivers/thunderbolt/ctl.c 	struct tb_cfg_result res = tb_cfg_write_raw(ctl, buffer, route, port,
res               981 drivers/thunderbolt/ctl.c 	switch (res.err) {
res               988 drivers/thunderbolt/ctl.c 		return tb_cfg_get_error(ctl, space, &res);
res               996 drivers/thunderbolt/ctl.c 		WARN(1, "tb_cfg_write: %d\n", res.err);
res               999 drivers/thunderbolt/ctl.c 	return res.err;
res              1014 drivers/thunderbolt/ctl.c 	struct tb_cfg_result res = tb_cfg_read_raw(ctl, &dummy, route, 0,
res              1017 drivers/thunderbolt/ctl.c 	if (res.err == 1)
res              1019 drivers/thunderbolt/ctl.c 	if (res.err)
res              1020 drivers/thunderbolt/ctl.c 		return res.err;
res              1021 drivers/thunderbolt/ctl.c 	return res.response_port;
res               103 drivers/thunderbolt/dma_port.c 	struct tb_cfg_result res;
res               118 drivers/thunderbolt/dma_port.c 	res = tb_cfg_request_sync(ctl, req, timeout_msec);
res               122 drivers/thunderbolt/dma_port.c 	if (res.err)
res               123 drivers/thunderbolt/dma_port.c 		return res.err;
res               144 drivers/thunderbolt/dma_port.c 	struct tb_cfg_result res;
res               161 drivers/thunderbolt/dma_port.c 	res = tb_cfg_request_sync(ctl, req, timeout_msec);
res               165 drivers/thunderbolt/dma_port.c 	return res.err;
res                44 drivers/thunderbolt/eeprom.c 	int res = tb_eeprom_ctl_read(sw, &ctl);
res                45 drivers/thunderbolt/eeprom.c 	if (res)
res                46 drivers/thunderbolt/eeprom.c 		return res;
res                49 drivers/thunderbolt/eeprom.c 		res = tb_eeprom_ctl_write(sw, &ctl);
res                50 drivers/thunderbolt/eeprom.c 		if (res)
res                51 drivers/thunderbolt/eeprom.c 			return res;
res                56 drivers/thunderbolt/eeprom.c 		res = tb_eeprom_ctl_write(sw, &ctl);
res                57 drivers/thunderbolt/eeprom.c 		if (res)
res                58 drivers/thunderbolt/eeprom.c 			return res;
res                73 drivers/thunderbolt/eeprom.c 	int res;
res                75 drivers/thunderbolt/eeprom.c 		res = tb_eeprom_ctl_write(sw, ctl);
res                76 drivers/thunderbolt/eeprom.c 		if (res)
res                77 drivers/thunderbolt/eeprom.c 			return res;
res                80 drivers/thunderbolt/eeprom.c 	res = tb_eeprom_ctl_write(sw, ctl);
res                81 drivers/thunderbolt/eeprom.c 	if (res)
res                82 drivers/thunderbolt/eeprom.c 		return res;
res                84 drivers/thunderbolt/eeprom.c 		res = tb_eeprom_ctl_read(sw, ctl);
res                85 drivers/thunderbolt/eeprom.c 		if (res)
res                86 drivers/thunderbolt/eeprom.c 			return res;
res                99 drivers/thunderbolt/eeprom.c 	int res = tb_eeprom_ctl_read(sw, &ctl);
res               100 drivers/thunderbolt/eeprom.c 	if (res)
res               101 drivers/thunderbolt/eeprom.c 		return res;
res               104 drivers/thunderbolt/eeprom.c 		res = tb_eeprom_transfer(sw, &ctl, TB_EEPROM_OUT);
res               105 drivers/thunderbolt/eeprom.c 		if (res)
res               106 drivers/thunderbolt/eeprom.c 			return res;
res               119 drivers/thunderbolt/eeprom.c 	int res = tb_eeprom_ctl_read(sw, &ctl);
res               120 drivers/thunderbolt/eeprom.c 	if (res)
res               121 drivers/thunderbolt/eeprom.c 		return res;
res               125 drivers/thunderbolt/eeprom.c 		res = tb_eeprom_transfer(sw, &ctl, TB_EEPROM_IN);
res               126 drivers/thunderbolt/eeprom.c 		if (res)
res               127 drivers/thunderbolt/eeprom.c 			return res;
res               139 drivers/thunderbolt/eeprom.c 	int i, res;
res               140 drivers/thunderbolt/eeprom.c 	res = tb_eeprom_active(sw, true);
res               141 drivers/thunderbolt/eeprom.c 	if (res)
res               142 drivers/thunderbolt/eeprom.c 		return res;
res               143 drivers/thunderbolt/eeprom.c 	res = tb_eeprom_out(sw, 3);
res               144 drivers/thunderbolt/eeprom.c 	if (res)
res               145 drivers/thunderbolt/eeprom.c 		return res;
res               146 drivers/thunderbolt/eeprom.c 	res = tb_eeprom_out(sw, offset >> 8);
res               147 drivers/thunderbolt/eeprom.c 	if (res)
res               148 drivers/thunderbolt/eeprom.c 		return res;
res               149 drivers/thunderbolt/eeprom.c 	res = tb_eeprom_out(sw, offset);
res               150 drivers/thunderbolt/eeprom.c 	if (res)
res               151 drivers/thunderbolt/eeprom.c 		return res;
res               153 drivers/thunderbolt/eeprom.c 		res = tb_eeprom_in(sw, val + i);
res               154 drivers/thunderbolt/eeprom.c 		if (res)
res               155 drivers/thunderbolt/eeprom.c 			return res;
res               247 drivers/thunderbolt/eeprom.c 	int res;
res               252 drivers/thunderbolt/eeprom.c 	res = tb_sw_read(sw, &cap, TB_CFG_SWITCH, sw->cap_plug_events,
res               254 drivers/thunderbolt/eeprom.c 	if (res)
res               255 drivers/thunderbolt/eeprom.c 		return res;
res               282 drivers/thunderbolt/eeprom.c 	int res = tb_eeprom_get_drom_offset(sw, &drom_offset);
res               283 drivers/thunderbolt/eeprom.c 	if (res)
res               284 drivers/thunderbolt/eeprom.c 		return res;
res               290 drivers/thunderbolt/eeprom.c 	res = tb_eeprom_read_n(sw, drom_offset, data, 9);
res               291 drivers/thunderbolt/eeprom.c 	if (res)
res               292 drivers/thunderbolt/eeprom.c 		return res;
res               335 drivers/thunderbolt/eeprom.c 	int res;
res               352 drivers/thunderbolt/eeprom.c 	res = tb_port_read(port, &type, TB_CFG_PORT, 2, 1);
res               353 drivers/thunderbolt/eeprom.c 	if (res)
res               354 drivers/thunderbolt/eeprom.c 		return res;
res               383 drivers/thunderbolt/eeprom.c 	int res;
res               395 drivers/thunderbolt/eeprom.c 			res = tb_drom_parse_entry_generic(sw, entry);
res               398 drivers/thunderbolt/eeprom.c 			res = tb_drom_parse_entry_port(sw, entry);
res               401 drivers/thunderbolt/eeprom.c 		if (res)
res               402 drivers/thunderbolt/eeprom.c 			return res;
res               415 drivers/thunderbolt/eeprom.c 	int len, res;
res               425 drivers/thunderbolt/eeprom.c 	res = device_property_read_u8_array(dev, "ThunderboltDROM", sw->drom,
res               427 drivers/thunderbolt/eeprom.c 	if (res)
res               496 drivers/thunderbolt/eeprom.c 	int res;
res               531 drivers/thunderbolt/eeprom.c 	res = tb_eeprom_get_drom_offset(sw, &drom_offset);
res               532 drivers/thunderbolt/eeprom.c 	if (res)
res               533 drivers/thunderbolt/eeprom.c 		return res;
res               535 drivers/thunderbolt/eeprom.c 	res = tb_eeprom_read_n(sw, drom_offset + 14, (u8 *) &size, 2);
res               536 drivers/thunderbolt/eeprom.c 	if (res)
res               537 drivers/thunderbolt/eeprom.c 		return res;
res               549 drivers/thunderbolt/eeprom.c 	res = tb_eeprom_read_n(sw, drom_offset, sw->drom, size);
res               550 drivers/thunderbolt/eeprom.c 	if (res)
res               274 drivers/thunderbolt/icm.c 		struct tb_cfg_result res;
res               291 drivers/thunderbolt/icm.c 		res = tb_cfg_request_sync(tb->ctl, req, timeout_msec);
res               296 drivers/thunderbolt/icm.c 		if (res.err != -ETIMEDOUT)
res               297 drivers/thunderbolt/icm.c 			return res.err == 1 ? -EIO : res.err;
res              1662 drivers/thunderbolt/icm.c 		struct tb_cfg_result res;
res              1665 drivers/thunderbolt/icm.c 		res = tb_cfg_read_raw(tb->ctl, &tmp, 0, 0, TB_CFG_SWITCH,
res              1667 drivers/thunderbolt/icm.c 		if (!res.err)
res              1045 drivers/thunderbolt/nhi.c 	int res, irq, nvec;
res              1073 drivers/thunderbolt/nhi.c 		res = devm_request_irq(&pdev->dev, irq, nhi_msi,
res              1075 drivers/thunderbolt/nhi.c 		if (res) {
res              1077 drivers/thunderbolt/nhi.c 			return res;
res              1098 drivers/thunderbolt/nhi.c 	int res;
res              1105 drivers/thunderbolt/nhi.c 	res = pcim_enable_device(pdev);
res              1106 drivers/thunderbolt/nhi.c 	if (res) {
res              1108 drivers/thunderbolt/nhi.c 		return res;
res              1111 drivers/thunderbolt/nhi.c 	res = pcim_iomap_regions(pdev, 1 << 0, "thunderbolt");
res              1112 drivers/thunderbolt/nhi.c 	if (res) {
res              1114 drivers/thunderbolt/nhi.c 		return res;
res              1137 drivers/thunderbolt/nhi.c 	res = nhi_init_msi(nhi);
res              1138 drivers/thunderbolt/nhi.c 	if (res) {
res              1140 drivers/thunderbolt/nhi.c 		return res;
res              1145 drivers/thunderbolt/nhi.c 	res = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64));
res              1146 drivers/thunderbolt/nhi.c 	if (res)
res              1147 drivers/thunderbolt/nhi.c 		res = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32));
res              1148 drivers/thunderbolt/nhi.c 	if (res) {
res              1150 drivers/thunderbolt/nhi.c 		return res;
res              1156 drivers/thunderbolt/nhi.c 		res = nhi->ops->init(nhi);
res              1157 drivers/thunderbolt/nhi.c 		if (res)
res              1158 drivers/thunderbolt/nhi.c 			return res;
res              1172 drivers/thunderbolt/nhi.c 	res = tb_domain_add(tb);
res              1173 drivers/thunderbolt/nhi.c 	if (res) {
res              1180 drivers/thunderbolt/nhi.c 		return res;
res               334 drivers/thunderbolt/path.c 	int i, res;
res               336 drivers/thunderbolt/path.c 		res = tb_port_add_nfc_credits(path->hops[i].in_port,
res               338 drivers/thunderbolt/path.c 		if (res)
res               397 drivers/thunderbolt/path.c 	int i, res;
res               400 drivers/thunderbolt/path.c 		res = __tb_path_deactivate_hop(path->hops[i].in_port,
res               403 drivers/thunderbolt/path.c 		if (res && res != -ENODEV)
res               437 drivers/thunderbolt/path.c 	int i, res;
res               455 drivers/thunderbolt/path.c 		res = tb_port_clear_counter(path->hops[i].in_port,
res               457 drivers/thunderbolt/path.c 		if (res)
res               463 drivers/thunderbolt/path.c 		res = tb_port_add_nfc_credits(path->hops[i].in_port,
res               465 drivers/thunderbolt/path.c 		if (res) {
res               506 drivers/thunderbolt/path.c 		res = tb_port_write(path->hops[i].in_port, &hop, TB_CFG_HOPS,
res               508 drivers/thunderbolt/path.c 		if (res) {
res               519 drivers/thunderbolt/path.c 	return res;
res               492 drivers/thunderbolt/switch.c 	int res;
res               497 drivers/thunderbolt/switch.c 	res = tb_port_read(port, &phy, TB_CFG_PORT, port->cap_phy, 2);
res               498 drivers/thunderbolt/switch.c 	if (res)
res               499 drivers/thunderbolt/switch.c 		return res;
res               639 drivers/thunderbolt/switch.c 	int res;
res               642 drivers/thunderbolt/switch.c 	res = tb_port_read(port, &port->config, TB_CFG_PORT, 0, 8);
res               643 drivers/thunderbolt/switch.c 	if (res) {
res               644 drivers/thunderbolt/switch.c 		if (res == -ENODEV) {
res               649 drivers/thunderbolt/switch.c 		return res;
res               986 drivers/thunderbolt/switch.c 	struct tb_cfg_result res;
res               993 drivers/thunderbolt/switch.c 	res.err = tb_cfg_write(tb->ctl, ((u32 *) &header) + 2, route,
res               995 drivers/thunderbolt/switch.c 	if (res.err)
res               996 drivers/thunderbolt/switch.c 		return res.err;
res               997 drivers/thunderbolt/switch.c 	res = tb_cfg_reset(tb->ctl, route, TB_CFG_DEFAULT_TIMEOUT);
res               998 drivers/thunderbolt/switch.c 	if (res.err > 0)
res              1000 drivers/thunderbolt/switch.c 	return res.err;
res              1013 drivers/thunderbolt/switch.c 	int res;
res              1019 drivers/thunderbolt/switch.c 	res = tb_sw_write(sw, ((u32 *) &sw->config) + 4, TB_CFG_SWITCH, 4, 1);
res              1020 drivers/thunderbolt/switch.c 	if (res)
res              1021 drivers/thunderbolt/switch.c 		return res;
res              1023 drivers/thunderbolt/switch.c 	res = tb_sw_read(sw, &data, TB_CFG_SWITCH, sw->cap_plug_events + 1, 1);
res              1024 drivers/thunderbolt/switch.c 	if (res)
res              1025 drivers/thunderbolt/switch.c 		return res;
res                81 drivers/thunderbolt/tunnel.c 	int res;
res                83 drivers/thunderbolt/tunnel.c 	res = tb_pci_port_enable(tunnel->src_port, activate);
res                84 drivers/thunderbolt/tunnel.c 	if (res)
res                85 drivers/thunderbolt/tunnel.c 		return res;
res               612 drivers/thunderbolt/tunnel.c 	int res, i;
res               628 drivers/thunderbolt/tunnel.c 		res = tunnel->init(tunnel);
res               629 drivers/thunderbolt/tunnel.c 		if (res)
res               630 drivers/thunderbolt/tunnel.c 			return res;
res               634 drivers/thunderbolt/tunnel.c 		res = tb_path_activate(tunnel->paths[i]);
res               635 drivers/thunderbolt/tunnel.c 		if (res)
res               640 drivers/thunderbolt/tunnel.c 		res = tunnel->activate(tunnel, true);
res               641 drivers/thunderbolt/tunnel.c 		if (res)
res               650 drivers/thunderbolt/tunnel.c 	return res;
res               137 drivers/thunderbolt/xdomain.c 	struct tb_cfg_result res;
res               152 drivers/thunderbolt/xdomain.c 	res = tb_cfg_request_sync(ctl, req, timeout_msec);
res               156 drivers/thunderbolt/xdomain.c 	return res.err == 1 ? -EIO : res.err;
res               229 drivers/thunderbolt/xdomain.c 	struct tb_xdp_uuid_response res;
res               237 drivers/thunderbolt/xdomain.c 	memset(&res, 0, sizeof(res));
res               239 drivers/thunderbolt/xdomain.c 				   TB_CFG_PKG_XDOMAIN_REQ, &res, sizeof(res),
res               245 drivers/thunderbolt/xdomain.c 	ret = tb_xdp_handle_error(&res.hdr);
res               249 drivers/thunderbolt/xdomain.c 	uuid_copy(uuid, &res.src_uuid);
res               256 drivers/thunderbolt/xdomain.c 	struct tb_xdp_uuid_response res;
res               258 drivers/thunderbolt/xdomain.c 	memset(&res, 0, sizeof(res));
res               259 drivers/thunderbolt/xdomain.c 	tb_xdp_fill_header(&res.hdr, route, sequence, UUID_RESPONSE,
res               260 drivers/thunderbolt/xdomain.c 			   sizeof(res));
res               262 drivers/thunderbolt/xdomain.c 	uuid_copy(&res.src_uuid, uuid);
res               263 drivers/thunderbolt/xdomain.c 	res.src_route_hi = upper_32_bits(route);
res               264 drivers/thunderbolt/xdomain.c 	res.src_route_lo = lower_32_bits(route);
res               266 drivers/thunderbolt/xdomain.c 	return __tb_xdomain_response(ctl, &res, sizeof(res),
res               273 drivers/thunderbolt/xdomain.c 	struct tb_xdp_error_response res;
res               275 drivers/thunderbolt/xdomain.c 	memset(&res, 0, sizeof(res));
res               276 drivers/thunderbolt/xdomain.c 	tb_xdp_fill_header(&res.hdr, route, sequence, ERROR_RESPONSE,
res               277 drivers/thunderbolt/xdomain.c 			   sizeof(res));
res               278 drivers/thunderbolt/xdomain.c 	res.error = error;
res               280 drivers/thunderbolt/xdomain.c 	return __tb_xdomain_response(ctl, &res, sizeof(res),
res               288 drivers/thunderbolt/xdomain.c 	struct tb_xdp_properties_response *res;
res               295 drivers/thunderbolt/xdomain.c 	total_size = sizeof(*res) + TB_XDP_PROPERTIES_MAX_DATA_LENGTH * 4;
res               296 drivers/thunderbolt/xdomain.c 	res = kzalloc(total_size, GFP_KERNEL);
res               297 drivers/thunderbolt/xdomain.c 	if (!res)
res               311 drivers/thunderbolt/xdomain.c 					   TB_CFG_PKG_XDOMAIN_REQ, res,
res               317 drivers/thunderbolt/xdomain.c 		ret = tb_xdp_handle_error(&res->hdr);
res               326 drivers/thunderbolt/xdomain.c 		len = res->hdr.xd_hdr.length_sn & TB_XDOMAIN_LENGTH_MASK;
res               327 drivers/thunderbolt/xdomain.c 		if (len < sizeof(*res) / 4) {
res               332 drivers/thunderbolt/xdomain.c 		len += sizeof(res->hdr.xd_hdr) / 4;
res               333 drivers/thunderbolt/xdomain.c 		len -= sizeof(*res) / 4;
res               335 drivers/thunderbolt/xdomain.c 		if (res->offset != req.offset) {
res               345 drivers/thunderbolt/xdomain.c 			data_len = res->data_length;
res               358 drivers/thunderbolt/xdomain.c 		memcpy(data + req.offset, res->data, len * 4);
res               363 drivers/thunderbolt/xdomain.c 	*generation = res->generation;
res               365 drivers/thunderbolt/xdomain.c 	kfree(res);
res               371 drivers/thunderbolt/xdomain.c 	kfree(res);
res               380 drivers/thunderbolt/xdomain.c 	struct tb_xdp_properties_response *res;
res               405 drivers/thunderbolt/xdomain.c 	total_size = sizeof(*res) + len * 4;
res               407 drivers/thunderbolt/xdomain.c 	res = kzalloc(total_size, GFP_KERNEL);
res               408 drivers/thunderbolt/xdomain.c 	if (!res) {
res               413 drivers/thunderbolt/xdomain.c 	tb_xdp_fill_header(&res->hdr, route, sequence, PROPERTIES_RESPONSE,
res               415 drivers/thunderbolt/xdomain.c 	res->generation = xdomain_property_block_gen;
res               416 drivers/thunderbolt/xdomain.c 	res->data_length = xdomain_property_block_len;
res               417 drivers/thunderbolt/xdomain.c 	res->offset = req->offset;
res               418 drivers/thunderbolt/xdomain.c 	uuid_copy(&res->src_uuid, src_uuid);
res               419 drivers/thunderbolt/xdomain.c 	uuid_copy(&res->dst_uuid, &req->src_uuid);
res               420 drivers/thunderbolt/xdomain.c 	memcpy(res->data, &xdomain_property_block[req->offset], len * 4);
res               424 drivers/thunderbolt/xdomain.c 	ret = __tb_xdomain_response(ctl, res, total_size,
res               427 drivers/thunderbolt/xdomain.c 	kfree(res);
res               434 drivers/thunderbolt/xdomain.c 	struct tb_xdp_properties_changed_response res;
res               443 drivers/thunderbolt/xdomain.c 	memset(&res, 0, sizeof(res));
res               445 drivers/thunderbolt/xdomain.c 				   TB_CFG_PKG_XDOMAIN_REQ, &res, sizeof(res),
res               451 drivers/thunderbolt/xdomain.c 	return tb_xdp_handle_error(&res.hdr);
res               457 drivers/thunderbolt/xdomain.c 	struct tb_xdp_properties_changed_response res;
res               459 drivers/thunderbolt/xdomain.c 	memset(&res, 0, sizeof(res));
res               460 drivers/thunderbolt/xdomain.c 	tb_xdp_fill_header(&res.hdr, route, sequence,
res               461 drivers/thunderbolt/xdomain.c 			   PROPERTIES_CHANGED_RESPONSE, sizeof(res));
res               462 drivers/thunderbolt/xdomain.c 	return __tb_xdomain_response(ctl, &res, sizeof(res),
res               901 drivers/tty/mips_ejtag_fdc.c 	priv->reg = devm_ioremap_nocache(priv->dev, dev->res.start,
res               902 drivers/tty/mips_ejtag_fdc.c 					 resource_size(&dev->res));
res               905 drivers/tty/mips_ejtag_fdc.c 			&dev->res);
res               268 drivers/tty/serial/8250/8250.h 	int res;
res               274 drivers/tty/serial/8250/8250.h 		res = 1;
res               277 drivers/tty/serial/8250/8250.h 		res = 0;
res               281 drivers/tty/serial/8250/8250.h 	return res;
res               310 drivers/tty/serial/8250/8250_aspeed_vuart.c 	struct resource *res;
res               323 drivers/tty/serial/8250/8250_aspeed_vuart.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               324 drivers/tty/serial/8250/8250_aspeed_vuart.c 	vuart->regs = devm_ioremap_resource(&pdev->dev, res);
res               331 drivers/tty/serial/8250/8250_aspeed_vuart.c 	port.port.mapbase = res->start;
res               332 drivers/tty/serial/8250/8250_aspeed_vuart.c 	port.port.mapsize = resource_size(res);
res                28 drivers/tty/serial/8250/8250_bcm2835aux.c 	struct resource *res;
res                64 drivers/tty/serial/8250/8250_bcm2835aux.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                65 drivers/tty/serial/8250/8250_bcm2835aux.c 	if (!res) {
res                69 drivers/tty/serial/8250/8250_bcm2835aux.c 	data->uart.port.membase = devm_ioremap_resource(&pdev->dev, res);
res               105 drivers/tty/serial/8250/8250_lpc18xx.c 	struct resource *res;
res               112 drivers/tty/serial/8250/8250_lpc18xx.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               113 drivers/tty/serial/8250/8250_lpc18xx.c 	if (!res) {
res               120 drivers/tty/serial/8250/8250_lpc18xx.c 	uart.port.membase = devm_ioremap(&pdev->dev, res->start,
res               121 drivers/tty/serial/8250/8250_lpc18xx.c 					 resource_size(res));
res               164 drivers/tty/serial/8250/8250_lpc18xx.c 	uart.port.mapbase = res->start;
res               716 drivers/tty/serial/amba-pl010.c 	base = devm_ioremap(&dev->dev, dev->res.start,
res               717 drivers/tty/serial/amba-pl010.c 			    resource_size(&dev->res));
res               726 drivers/tty/serial/amba-pl010.c 	uap->port.mapbase = dev->res.start;
res              2646 drivers/tty/serial/amba-pl011.c 	ret = pl011_setup_port(&dev->dev, uap, &dev->res, portnr);
res               446 drivers/tty/serial/clps711x.c 	struct resource *res;
res               458 drivers/tty/serial/clps711x.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               459 drivers/tty/serial/clps711x.c 	s->port.membase = devm_ioremap_resource(&pdev->dev, res);
res               479 drivers/tty/serial/clps711x.c 	s->port.mapbase		= res->start;
res                47 drivers/tty/serial/cpm_uart/cpm_uart_cpm2.c 	struct resource res;
res                58 drivers/tty/serial/cpm_uart/cpm_uart_cpm2.c 	if (of_address_to_resource(np, 1, &res))
res                61 drivers/tty/serial/cpm_uart/cpm_uart_cpm2.c 	len = resource_size(&res);
res                62 drivers/tty/serial/cpm_uart/cpm_uart_cpm2.c 	pram = ioremap(res.start, len);
res               454 drivers/tty/serial/digicolor-usart.c 	struct resource *res;
res               474 drivers/tty/serial/digicolor-usart.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               475 drivers/tty/serial/digicolor-usart.c 	dp->port.mapbase = res->start;
res               476 drivers/tty/serial/digicolor-usart.c 	dp->port.membase = devm_ioremap_resource(&pdev->dev, res);
res               709 drivers/tty/serial/efm32-uart.c 	struct resource *res;
res               719 drivers/tty/serial/efm32-uart.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               720 drivers/tty/serial/efm32-uart.c 	if (!res) {
res               726 drivers/tty/serial/efm32-uart.c 	if (resource_size(res) < 60) {
res               747 drivers/tty/serial/efm32-uart.c 	efm_port->port.mapbase = res->start;
res               831 drivers/tty/serial/fsl_linflexuart.c 	struct resource *res;
res               851 drivers/tty/serial/fsl_linflexuart.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               852 drivers/tty/serial/fsl_linflexuart.c 	if (!res)
res               855 drivers/tty/serial/fsl_linflexuart.c 	sport->mapbase = res->start;
res               856 drivers/tty/serial/fsl_linflexuart.c 	sport->membase = devm_ioremap_resource(&pdev->dev, res);
res              2379 drivers/tty/serial/fsl_lpuart.c 	struct resource *res;
res              2386 drivers/tty/serial/fsl_lpuart.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              2387 drivers/tty/serial/fsl_lpuart.c 	sport->port.membase = devm_ioremap_resource(&pdev->dev, res);
res              2392 drivers/tty/serial/fsl_lpuart.c 	sport->port.mapbase = res->start;
res              2225 drivers/tty/serial/imx.c 	struct resource *res;
res              2244 drivers/tty/serial/imx.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              2245 drivers/tty/serial/imx.c 	base = devm_ioremap_resource(&pdev->dev, res);
res              2254 drivers/tty/serial/imx.c 	sport->port.mapbase = res->start;
res               534 drivers/tty/serial/lantiq.c 	struct resource *res;
res               537 drivers/tty/serial/lantiq.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               538 drivers/tty/serial/lantiq.c 	if (!res) {
res               542 drivers/tty/serial/lantiq.c 	size = resource_size(res);
res               544 drivers/tty/serial/lantiq.c 	res = devm_request_mem_region(&pdev->dev, res->start,
res               546 drivers/tty/serial/lantiq.c 	if (!res) {
res               639 drivers/tty/serial/lpc32xx_hs.c 	struct resource *res;
res               650 drivers/tty/serial/lpc32xx_hs.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               651 drivers/tty/serial/lpc32xx_hs.c 	if (!res) {
res               657 drivers/tty/serial/lpc32xx_hs.c 	p->port.mapbase = res->start;
res               800 drivers/tty/serial/max310x.c 	irqreturn_t res = IRQ_NONE;
res               811 drivers/tty/serial/max310x.c 		res = IRQ_HANDLED;
res               823 drivers/tty/serial/max310x.c 	return res;
res               505 drivers/tty/serial/milbeaut_usio.c 	struct resource *res;
res               522 drivers/tty/serial/milbeaut_usio.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               523 drivers/tty/serial/milbeaut_usio.c 	if (res == NULL) {
res               528 drivers/tty/serial/milbeaut_usio.c 	port->membase = devm_ioremap(&pdev->dev, res->start,
res               529 drivers/tty/serial/milbeaut_usio.c 				resource_size(res));
res              1613 drivers/tty/serial/mpc52xx_uart.c 	struct resource res;
res              1638 drivers/tty/serial/mpc52xx_uart.c 	ret = of_address_to_resource(np, 0, &res);
res              1655 drivers/tty/serial/mpc52xx_uart.c 	port->mapbase = res.start;
res              1656 drivers/tty/serial/mpc52xx_uart.c 	port->membase = ioremap(res.start, sizeof(struct mpc52xx_psc));
res              1746 drivers/tty/serial/mpc52xx_uart.c 	struct resource res;
res              1781 drivers/tty/serial/mpc52xx_uart.c 	ret = of_address_to_resource(op->dev.of_node, 0, &res);
res              1785 drivers/tty/serial/mpc52xx_uart.c 	port->mapbase = res.start;
res               557 drivers/tty/serial/mps2-uart.c 	struct resource *res;
res               560 drivers/tty/serial/mps2-uart.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               561 drivers/tty/serial/mps2-uart.c 	mps_port->port.membase = devm_ioremap_resource(&pdev->dev, res);
res               565 drivers/tty/serial/mps2-uart.c 	mps_port->port.mapbase = res->start;
res               566 drivers/tty/serial/mps2-uart.c 	mps_port->port.mapsize = resource_size(res);
res               294 drivers/tty/serial/omap-serial.c 	int res;
res               310 drivers/tty/serial/omap-serial.c 			res = (port->rs485.flags & SER_RS485_RTS_AFTER_SEND) ?
res               312 drivers/tty/serial/omap-serial.c 			if (gpio_get_value(up->rts_gpio) != res) {
res               316 drivers/tty/serial/omap-serial.c 				gpio_set_value(up->rts_gpio, res);
res               409 drivers/tty/serial/omap-serial.c 	int res;
res               420 drivers/tty/serial/omap-serial.c 		res = (port->rs485.flags & SER_RS485_RTS_ON_SEND) ? 1 : 0;
res               421 drivers/tty/serial/omap-serial.c 		if (gpio_get_value(up->rts_gpio) != res) {
res               422 drivers/tty/serial/omap-serial.c 			gpio_set_value(up->rts_gpio, res);
res               402 drivers/tty/serial/owl-uart.c 	struct resource *res;
res               404 drivers/tty/serial/owl-uart.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               405 drivers/tty/serial/owl-uart.c 	if (!res)
res               410 drivers/tty/serial/owl-uart.c 			resource_size(res));
res               419 drivers/tty/serial/owl-uart.c 	struct resource *res;
res               421 drivers/tty/serial/owl-uart.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               422 drivers/tty/serial/owl-uart.c 	if (!res)
res               426 drivers/tty/serial/owl-uart.c 			resource_size(res), dev_name(port->dev)))
res               431 drivers/tty/serial/owl-uart.c 				resource_size(res));
res               792 drivers/tty/serial/pnx8xxx_uart.c 	struct resource *res = pdev->resource;
res               795 drivers/tty/serial/pnx8xxx_uart.c 	for (i = 0; i < pdev->num_resources; i++, res++) {
res               796 drivers/tty/serial/pnx8xxx_uart.c 		if (!(res->flags & IORESOURCE_MEM))
res               800 drivers/tty/serial/pnx8xxx_uart.c 			if (pnx8xxx_ports[i].port.mapbase != res->start)
res              1264 drivers/tty/serial/qcom_geni_serial.c 	struct resource *res;
res              1301 drivers/tty/serial/qcom_geni_serial.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1302 drivers/tty/serial/qcom_geni_serial.c 	if (!res)
res              1304 drivers/tty/serial/qcom_geni_serial.c 	uport->mapbase = res->start;
res               490 drivers/tty/serial/rda-uart.c 	struct resource *res;
res               492 drivers/tty/serial/rda-uart.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               493 drivers/tty/serial/rda-uart.c 	if (!res)
res               497 drivers/tty/serial/rda-uart.c 				     resource_size(res), dev_name(port->dev)))
res               502 drivers/tty/serial/rda-uart.c 						     resource_size(res));
res               533 drivers/tty/serial/rda-uart.c 	struct resource *res;
res               535 drivers/tty/serial/rda-uart.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               536 drivers/tty/serial/rda-uart.c 	if (!res)
res               541 drivers/tty/serial/rda-uart.c 					resource_size(res));
res               887 drivers/tty/serial/sa1100.c 	struct resource *res = dev->resource;
res               890 drivers/tty/serial/sa1100.c 	for (i = 0; i < dev->num_resources; i++, res++)
res               891 drivers/tty/serial/sa1100.c 		if (res->flags & IORESOURCE_MEM)
res               896 drivers/tty/serial/sa1100.c 			if (sa1100_ports[i].port.mapbase != res->start)
res              1743 drivers/tty/serial/samsung.c 	struct resource *res;
res              1770 drivers/tty/serial/samsung.c 	res = platform_get_resource(platdev, IORESOURCE_MEM, 0);
res              1771 drivers/tty/serial/samsung.c 	if (res == NULL) {
res              1776 drivers/tty/serial/samsung.c 	dbg("resource %pR)\n", res);
res              1778 drivers/tty/serial/samsung.c 	port->membase = devm_ioremap(port->dev, res->start, resource_size(res));
res              1784 drivers/tty/serial/samsung.c 	port->mapbase = res->start;
res               887 drivers/tty/serial/sccnxp.c 	struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               894 drivers/tty/serial/sccnxp.c 	membase = devm_ioremap_resource(&pdev->dev, res);
res               998 drivers/tty/serial/sccnxp.c 		s->port[i].mapbase	= res->start;
res              2720 drivers/tty/serial/sh-sci.c 	struct resource *res;
res              2724 drivers/tty/serial/sh-sci.c 	res = request_mem_region(port->mapbase, sport->reg_size,
res              2726 drivers/tty/serial/sh-sci.c 	if (unlikely(res == NULL)) {
res              2733 drivers/tty/serial/sh-sci.c 		release_resource(res);
res              2887 drivers/tty/serial/sh-sci.c 	const struct resource *res;
res              2897 drivers/tty/serial/sh-sci.c 	res = platform_get_resource(dev, IORESOURCE_MEM, 0);
res              2898 drivers/tty/serial/sh-sci.c 	if (res == NULL)
res              2901 drivers/tty/serial/sh-sci.c 	port->mapbase = res->start;
res              2902 drivers/tty/serial/sh-sci.c 	sci_port->reg_size = resource_size(res);
res              1269 drivers/tty/serial/sirfsoc_uart.c 	struct resource *res;
res              1355 drivers/tty/serial/sirfsoc_uart.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1356 drivers/tty/serial/sirfsoc_uart.c 	if (res == NULL) {
res              1361 drivers/tty/serial/sirfsoc_uart.c 	port->mapbase = res->start;
res              1363 drivers/tty/serial/sirfsoc_uart.c 			res->start, resource_size(res));
res              1369 drivers/tty/serial/sirfsoc_uart.c 	res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
res              1370 drivers/tty/serial/sirfsoc_uart.c 	if (res == NULL) {
res              1375 drivers/tty/serial/sirfsoc_uart.c 	port->irq = res->start;
res              1170 drivers/tty/serial/sprd_serial.c 	struct resource *res;
res              1204 drivers/tty/serial/sprd_serial.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1205 drivers/tty/serial/sprd_serial.c 	up->membase = devm_ioremap_resource(&pdev->dev, res);
res              1209 drivers/tty/serial/sprd_serial.c 	up->mapbase = res->start;
res               724 drivers/tty/serial/st-asc.c 	struct resource *res;
res               734 drivers/tty/serial/st-asc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               735 drivers/tty/serial/st-asc.c 	port->membase = devm_ioremap_resource(&pdev->dev, res);
res               738 drivers/tty/serial/st-asc.c 	port->mapbase = res->start;
res               921 drivers/tty/serial/stm32-usart.c 	struct resource *res;
res               947 drivers/tty/serial/stm32-usart.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               948 drivers/tty/serial/stm32-usart.c 	port->membase = devm_ioremap_resource(&pdev->dev, res);
res               951 drivers/tty/serial/stm32-usart.c 	port->mapbase = res->start;
res               787 drivers/tty/serial/uartlite.c 	struct resource *res;
res               819 drivers/tty/serial/uartlite.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               820 drivers/tty/serial/uartlite.c 	if (!res)
res               851 drivers/tty/serial/uartlite.c 	ret = ulite_assign(&pdev->dev, id, res->start, irq, pdata);
res              1197 drivers/tty/serial/ucc_uart.c 	struct resource res;
res              1263 drivers/tty/serial/ucc_uart.c 	ret = of_address_to_resource(np, 0, &res);
res              1268 drivers/tty/serial/ucc_uart.c 	if (!res.start) {
res              1273 drivers/tty/serial/ucc_uart.c 	qe_port->port.mapbase = res.start;
res              1422 drivers/tty/serial/ucc_uart.c 	qe_port->us_info.regs = (phys_addr_t) res.start;
res               631 drivers/tty/serial/vr41xx_siu.c 	struct resource *res;
res               634 drivers/tty/serial/vr41xx_siu.c 	res = request_mem_region(port->mapbase, size, siu_type_name(port));
res               635 drivers/tty/serial/vr41xx_siu.c 	if (res == NULL)
res               641 drivers/tty/serial/vr41xx_siu.c 			release_resource(res);
res               694 drivers/tty/serial/vr41xx_siu.c 	struct resource *res;
res               713 drivers/tty/serial/vr41xx_siu.c 		res = platform_get_resource(pdev, IORESOURCE_MEM, i);
res               714 drivers/tty/serial/vr41xx_siu.c 		port->mapbase = res->start;
res              1417 drivers/tty/serial/xilinx_uartps.c 	struct resource *res;
res              1508 drivers/tty/serial/xilinx_uartps.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1509 drivers/tty/serial/xilinx_uartps.c 	if (!res) {
res              1542 drivers/tty/serial/xilinx_uartps.c 	port->mapbase = res->start;
res               395 drivers/tty/tty_io.c 	struct tty_driver *p, *res = NULL;
res               422 drivers/tty/tty_io.c 			res = tty_driver_kref_get(p);
res               429 drivers/tty/tty_io.c 	return res;
res              1061 drivers/tty/tty_io.c 		ssize_t res;
res              1062 drivers/tty/tty_io.c 		res = vfs_write(p, buf, count, &p->f_pos);
res              1064 drivers/tty/tty_io.c 		return res;
res               220 drivers/uio/uio_fsl_elbc_gpcm.c 				   struct resource *res,
res               236 drivers/uio/uio_fsl_elbc_gpcm.c 	if ((~(reg_or & OR_GPCM_AM) + 1) != resource_size(res)) {
res               242 drivers/uio/uio_fsl_elbc_gpcm.c 	if ((reg_br & reg_or & BR_BA) != fsl_lbc_addr(res->start)) {
res               251 drivers/uio/uio_fsl_elbc_gpcm.c 		       struct resource *res, u32 *reg_br,
res               259 drivers/uio/uio_fsl_elbc_gpcm.c 	ret = of_address_to_resource(node, 0, res);
res               295 drivers/uio/uio_fsl_elbc_gpcm.c 	ret = check_of_data(priv, res, *reg_br, *reg_or);
res               315 drivers/uio/uio_fsl_elbc_gpcm.c 	struct resource res;
res               334 drivers/uio/uio_fsl_elbc_gpcm.c 	ret = get_of_data(priv, node, &res, &reg_br_new, &reg_or_new,
res               354 drivers/uio/uio_fsl_elbc_gpcm.c 		     != fsl_lbc_addr(res.start)) {
res               377 drivers/uio/uio_fsl_elbc_gpcm.c 	reg_br_new |= fsl_lbc_addr(res.start) | BR_MS_GPCM | BR_V;
res               382 drivers/uio/uio_fsl_elbc_gpcm.c 	info->mem[0].internal_addr = ioremap(res.start, resource_size(&res));
res               391 drivers/uio/uio_fsl_elbc_gpcm.c 	info->mem[0].addr = res.start;
res               392 drivers/uio/uio_fsl_elbc_gpcm.c 	info->mem[0].size = resource_size(&res);
res               423 drivers/uio/uio_fsl_elbc_gpcm.c 		 priv->name, (unsigned long long)res.start, priv->bank,
res               109 drivers/usb/c67x00/c67x00-drv.c 	struct resource *res, *res2;
res               112 drivers/usb/c67x00/c67x00-drv.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               113 drivers/usb/c67x00/c67x00-drv.c 	if (!res)
res               128 drivers/usb/c67x00/c67x00-drv.c 	if (!request_mem_region(res->start, resource_size(res),
res               134 drivers/usb/c67x00/c67x00-drv.c 	c67x00->hpi.base = ioremap(res->start, resource_size(res));
res               173 drivers/usb/c67x00/c67x00-drv.c 	release_mem_region(res->start, resource_size(res));
res               183 drivers/usb/c67x00/c67x00-drv.c 	struct resource *res;
res               191 drivers/usb/c67x00/c67x00-drv.c 	res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
res               192 drivers/usb/c67x00/c67x00-drv.c 	if (res)
res               193 drivers/usb/c67x00/c67x00-drv.c 		free_irq(res->start, c67x00);
res               197 drivers/usb/c67x00/c67x00-drv.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               198 drivers/usb/c67x00/c67x00-drv.c 	if (res)
res               199 drivers/usb/c67x00/c67x00-drv.c 		release_mem_region(res->start, resource_size(res));
res               238 drivers/usb/c67x00/c67x00-ll-hpi.c 	u16 res;
res               240 drivers/usb/c67x00/c67x00-ll-hpi.c 	res = wait_for_completion_timeout(&dev->hpi.lcp.msg_received, 5 * HZ);
res               241 drivers/usb/c67x00/c67x00-ll-hpi.c 	WARN_ON(!res);
res               243 drivers/usb/c67x00/c67x00-ll-hpi.c 	return (res == 0) ? -EIO : 0;
res                71 drivers/usb/cdns3/cdns3-pci-wrap.c 	struct resource *res;
res               105 drivers/usb/cdns3/cdns3-pci-wrap.c 	res = wrap->dev_res;
res               110 drivers/usb/cdns3/cdns3-pci-wrap.c 		res[RES_DEV_ID].start = pci_resource_start(pdev, PCI_BAR_DEV);
res               111 drivers/usb/cdns3/cdns3-pci-wrap.c 		res[RES_DEV_ID].end =   pci_resource_end(pdev, PCI_BAR_DEV);
res               112 drivers/usb/cdns3/cdns3-pci-wrap.c 		res[RES_DEV_ID].name = "dev";
res               113 drivers/usb/cdns3/cdns3-pci-wrap.c 		res[RES_DEV_ID].flags = IORESOURCE_MEM;
res               115 drivers/usb/cdns3/cdns3-pci-wrap.c 			&res[RES_DEV_ID].start);
res               117 drivers/usb/cdns3/cdns3-pci-wrap.c 		res[RES_HOST_ID].start = pci_resource_start(pdev, PCI_BAR_HOST);
res               118 drivers/usb/cdns3/cdns3-pci-wrap.c 		res[RES_HOST_ID].end = pci_resource_end(pdev, PCI_BAR_HOST);
res               119 drivers/usb/cdns3/cdns3-pci-wrap.c 		res[RES_HOST_ID].name = "xhci";
res               120 drivers/usb/cdns3/cdns3-pci-wrap.c 		res[RES_HOST_ID].flags = IORESOURCE_MEM;
res               122 drivers/usb/cdns3/cdns3-pci-wrap.c 			&res[RES_HOST_ID].start);
res               134 drivers/usb/cdns3/cdns3-pci-wrap.c 		res[RES_DRD_ID].start = pci_resource_start(pdev, PCI_BAR_OTG);
res               135 drivers/usb/cdns3/cdns3-pci-wrap.c 		res[RES_DRD_ID].end =   pci_resource_end(pdev, PCI_BAR_OTG);
res               136 drivers/usb/cdns3/cdns3-pci-wrap.c 		res[RES_DRD_ID].name = "otg";
res               137 drivers/usb/cdns3/cdns3-pci-wrap.c 		res[RES_DRD_ID].flags = IORESOURCE_MEM;
res               139 drivers/usb/cdns3/cdns3-pci-wrap.c 			&res[RES_DRD_ID].start);
res               155 drivers/usb/cdns3/cdns3-pci-wrap.c 		plat_info.res = wrap->dev_res;
res               441 drivers/usb/cdns3/core.c 	struct resource	*res;
res               460 drivers/usb/cdns3/core.c 	res = platform_get_resource_byname(pdev, IORESOURCE_IRQ, "host");
res               461 drivers/usb/cdns3/core.c 	if (!res) {
res               466 drivers/usb/cdns3/core.c 	cdns->xhci_res[0] = *res;
res               468 drivers/usb/cdns3/core.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "xhci");
res               469 drivers/usb/cdns3/core.c 	if (!res) {
res               474 drivers/usb/cdns3/core.c 	cdns->xhci_res[1] = *res;
res               483 drivers/usb/cdns3/core.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "dev");
res               484 drivers/usb/cdns3/core.c 	regs = devm_ioremap_resource(dev, res);
res               498 drivers/usb/cdns3/core.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "otg");
res               499 drivers/usb/cdns3/core.c 	if (!res) {
res               504 drivers/usb/cdns3/core.c 	cdns->otg_res = *res;
res                59 drivers/usb/chipidea/ci_hdrc_pci.c 	struct resource res[3];
res                88 drivers/usb/chipidea/ci_hdrc_pci.c 	memset(res, 0, sizeof(res));
res                89 drivers/usb/chipidea/ci_hdrc_pci.c 	res[0].start	= pci_resource_start(pdev, 0);
res                90 drivers/usb/chipidea/ci_hdrc_pci.c 	res[0].end	= pci_resource_end(pdev, 0);
res                91 drivers/usb/chipidea/ci_hdrc_pci.c 	res[0].flags	= IORESOURCE_MEM;
res                92 drivers/usb/chipidea/ci_hdrc_pci.c 	res[1].start	= pdev->irq;
res                93 drivers/usb/chipidea/ci_hdrc_pci.c 	res[1].flags	= IORESOURCE_IRQ;
res                95 drivers/usb/chipidea/ci_hdrc_pci.c 	ci->ci = ci_hdrc_add_device(&pdev->dev, res, nres, platdata);
res               850 drivers/usb/chipidea/core.c 			struct resource *res, int nres,
res               872 drivers/usb/chipidea/core.c 	ret = platform_device_add_resources(pdev, res, nres);
res               980 drivers/usb/chipidea/core.c 	struct resource	*res;
res               990 drivers/usb/chipidea/core.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               991 drivers/usb/chipidea/core.c 	base = devm_ioremap_resource(dev, res);
res              1072 drivers/usb/chipidea/core.c 	ci->hw_bank.phys = res->start;
res               425 drivers/usb/class/cdc-acm.c 	int res;
res               430 drivers/usb/class/cdc-acm.c 	res = usb_submit_urb(acm->read_urbs[index], mem_flags);
res               431 drivers/usb/class/cdc-acm.c 	if (res) {
res               432 drivers/usb/class/cdc-acm.c 		if (res != -EPERM && res != -ENODEV) {
res               435 drivers/usb/class/cdc-acm.c 				index, res);
res               437 drivers/usb/class/cdc-acm.c 			dev_vdbg(&acm->data->dev, "intended failure %d\n", res);
res               440 drivers/usb/class/cdc-acm.c 		return res;
res               450 drivers/usb/class/cdc-acm.c 	int res;
res               454 drivers/usb/class/cdc-acm.c 		res = acm_submit_read_urb(acm, i, mem_flags);
res               455 drivers/usb/class/cdc-acm.c 		if (res)
res               456 drivers/usb/class/cdc-acm.c 			return res;
res               640 drivers/usb/class/cdc-acm.c 	int res;
res               650 drivers/usb/class/cdc-acm.c 	res = acm_set_control(acm, val);
res               651 drivers/usb/class/cdc-acm.c 	if (res && (acm->ctrl_caps & USB_CDC_CAP_LINE))
res              1173 drivers/usb/class/cdc-acm.c 	int res;
res              1274 drivers/usb/class/cdc-acm.c 		res = usb_find_common_endpoints(data_interface->cur_altsetting,
res              1276 drivers/usb/class/cdc-acm.c 		if (res)
res              1277 drivers/usb/class/cdc-acm.c 			return res;
res              1237 drivers/usb/class/usblp.c 	int res;
res              1259 drivers/usb/class/usblp.c 			res = usb_find_common_endpoints(ifd,
res              1263 drivers/usb/class/usblp.c 			res = usb_find_bulk_out_endpoint(ifd, &epwrite);
res              1267 drivers/usb/class/usblp.c 		if (res)
res              1892 drivers/usb/class/usbtmc.c 	unsigned long res;
res              1894 drivers/usb/class/usbtmc.c 	res = copy_from_user(&request, arg, sizeof(struct usbtmc_ctrlrequest));
res              1895 drivers/usb/class/usbtmc.c 	if (res)
res              1908 drivers/usb/class/usbtmc.c 			res = copy_from_user(buffer, request.data,
res              1910 drivers/usb/class/usbtmc.c 			if (res) {
res              1932 drivers/usb/class/usbtmc.c 		res = copy_to_user(request.data, buffer, rv);
res              1933 drivers/usb/class/usbtmc.c 		if (res)
res              5012 drivers/usb/dwc2/hcd.c 	struct resource *res;
res              5074 drivers/usb/dwc2/hcd.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              5075 drivers/usb/dwc2/hcd.c 	hcd->rsrc_start = res->start;
res              5076 drivers/usb/dwc2/hcd.c 	hcd->rsrc_len = resource_size(res);
res                98 drivers/usb/dwc2/pci.c 	struct resource		res[2];
res               127 drivers/usb/dwc2/pci.c 	memset(res, 0x00, sizeof(struct resource) * ARRAY_SIZE(res));
res               129 drivers/usb/dwc2/pci.c 	res[0].start	= pci_resource_start(pci, 0);
res               130 drivers/usb/dwc2/pci.c 	res[0].end	= pci_resource_end(pci, 0);
res               131 drivers/usb/dwc2/pci.c 	res[0].name	= "dwc2";
res               132 drivers/usb/dwc2/pci.c 	res[0].flags	= IORESOURCE_MEM;
res               134 drivers/usb/dwc2/pci.c 	res[1].start	= pci->irq;
res               135 drivers/usb/dwc2/pci.c 	res[1].name	= "dwc2";
res               136 drivers/usb/dwc2/pci.c 	res[1].flags	= IORESOURCE_IRQ;
res               138 drivers/usb/dwc2/pci.c 	ret = platform_device_add_resources(dwc2, res, ARRAY_SIZE(res));
res               375 drivers/usb/dwc2/platform.c 	struct resource *res;
res               395 drivers/usb/dwc2/platform.c 	res = platform_get_resource(dev, IORESOURCE_MEM, 0);
res               396 drivers/usb/dwc2/platform.c 	hsotg->regs = devm_ioremap_resource(&dev->dev, res);
res               401 drivers/usb/dwc2/platform.c 		(unsigned long)res->start, hsotg->regs);
res              1401 drivers/usb/dwc3/core.c 	struct resource		*res, dwc_res;
res              1419 drivers/usb/dwc3/core.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1420 drivers/usb/dwc3/core.c 	if (!res) {
res              1425 drivers/usb/dwc3/core.c 	dwc->xhci_resources[0].start = res->start;
res              1428 drivers/usb/dwc3/core.c 	dwc->xhci_resources[0].flags = res->flags;
res              1429 drivers/usb/dwc3/core.c 	dwc->xhci_resources[0].name = res->name;
res              1435 drivers/usb/dwc3/core.c 	dwc_res = *res;
res                41 drivers/usb/dwc3/dwc3-haps.c 	struct resource		res[2];
res                60 drivers/usb/dwc3/dwc3-haps.c 	memset(res, 0x00, sizeof(struct resource) * ARRAY_SIZE(res));
res                62 drivers/usb/dwc3/dwc3-haps.c 	res[0].start	= pci_resource_start(pci, 0);
res                63 drivers/usb/dwc3/dwc3-haps.c 	res[0].end	= pci_resource_end(pci, 0);
res                64 drivers/usb/dwc3/dwc3-haps.c 	res[0].name	= "dwc_usb3";
res                65 drivers/usb/dwc3/dwc3-haps.c 	res[0].flags	= IORESOURCE_MEM;
res                67 drivers/usb/dwc3/dwc3-haps.c 	res[1].start	= pci->irq;
res                68 drivers/usb/dwc3/dwc3-haps.c 	res[1].name	= "dwc_usb3";
res                69 drivers/usb/dwc3/dwc3-haps.c 	res[1].flags	= IORESOURCE_IRQ;
res                71 drivers/usb/dwc3/dwc3-haps.c 	ret = platform_device_add_resources(dwc->dwc3, res, ARRAY_SIZE(res));
res               221 drivers/usb/dwc3/dwc3-pci.c 	struct resource		res[2];
res               241 drivers/usb/dwc3/dwc3-pci.c 	memset(res, 0x00, sizeof(struct resource) * ARRAY_SIZE(res));
res               243 drivers/usb/dwc3/dwc3-pci.c 	res[0].start	= pci_resource_start(pci, 0);
res               244 drivers/usb/dwc3/dwc3-pci.c 	res[0].end	= pci_resource_end(pci, 0);
res               245 drivers/usb/dwc3/dwc3-pci.c 	res[0].name	= "dwc_usb3";
res               246 drivers/usb/dwc3/dwc3-pci.c 	res[0].flags	= IORESOURCE_MEM;
res               248 drivers/usb/dwc3/dwc3-pci.c 	res[1].start	= pci->irq;
res               249 drivers/usb/dwc3/dwc3-pci.c 	res[1].name	= "dwc_usb3";
res               250 drivers/usb/dwc3/dwc3-pci.c 	res[1].flags	= IORESOURCE_IRQ;
res               252 drivers/usb/dwc3/dwc3-pci.c 	ret = platform_device_add_resources(dwc->dwc3, res, ARRAY_SIZE(res));
res               459 drivers/usb/dwc3/dwc3-qcom.c 	struct resource		*res, *child_res = NULL;
res               477 drivers/usb/dwc3/dwc3-qcom.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               478 drivers/usb/dwc3/dwc3-qcom.c 	if (!res) {
res               484 drivers/usb/dwc3/dwc3-qcom.c 	child_res[0].flags = res->flags;
res               485 drivers/usb/dwc3/dwc3-qcom.c 	child_res[0].start = res->start;
res               558 drivers/usb/dwc3/dwc3-qcom.c 	struct resource		*res, *parent_res = NULL;
res               604 drivers/usb/dwc3/dwc3-qcom.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               607 drivers/usb/dwc3/dwc3-qcom.c 		parent_res = res;
res               609 drivers/usb/dwc3/dwc3-qcom.c 		parent_res = kmemdup(res, sizeof(struct resource), GFP_KERNEL);
res               613 drivers/usb/dwc3/dwc3-qcom.c 		parent_res->start = res->start +
res               198 drivers/usb/dwc3/dwc3-st.c 	struct resource *res;
res               209 drivers/usb/dwc3/dwc3-st.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "reg-glue");
res               210 drivers/usb/dwc3/dwc3-st.c 	dwc3_data->glue_base = devm_ioremap_resource(dev, res);
res               221 drivers/usb/dwc3/dwc3-st.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "syscfg-reg");
res               222 drivers/usb/dwc3/dwc3-st.c 	if (!res) {
res               227 drivers/usb/dwc3/dwc3-st.c 	dwc3_data->syscfg_reg_off = res->start;
res                49 drivers/usb/dwc3/host.c 	struct resource		*res;
res                57 drivers/usb/dwc3/host.c 	res = platform_get_resource_byname(dwc3_pdev, IORESOURCE_IRQ, "host");
res                58 drivers/usb/dwc3/host.c 	if (!res)
res                59 drivers/usb/dwc3/host.c 		res = platform_get_resource_byname(dwc3_pdev, IORESOURCE_IRQ,
res                61 drivers/usb/dwc3/host.c 	if (!res)
res                62 drivers/usb/dwc3/host.c 		res = platform_get_resource(dwc3_pdev, IORESOURCE_IRQ, 0);
res                63 drivers/usb/dwc3/host.c 	if (!res)
res                68 drivers/usb/dwc3/host.c 	dwc->xhci_resources[1].flags = res->flags;
res                69 drivers/usb/dwc3/host.c 	dwc->xhci_resources[1].name = res->name;
res              1428 drivers/usb/gadget/composite.c 	int i, res;
res              1430 drivers/usb/gadget/composite.c 	res = 0;
res              1443 drivers/usb/gadget/composite.c 				++res;
res              1446 drivers/usb/gadget/composite.c 	BUG_ON(res > 255);
res              1447 drivers/usb/gadget/composite.c 	return res;
res              1508 drivers/usb/gadget/composite.c 	int j, res;
res              1510 drivers/usb/gadget/composite.c 	res = 10; /* header length */
res              1517 drivers/usb/gadget/composite.c 			return min(res + d->ext_prop_len, 4096);
res              1519 drivers/usb/gadget/composite.c 	return res;
res               796 drivers/usb/gadget/configfs.c 	int res;
res               798 drivers/usb/gadget/configfs.c 	res = utf16s_to_utf8s((wchar_t *) gi->qw_sign, OS_STRING_QW_SIGN_LEN,
res               800 drivers/usb/gadget/configfs.c 	page[res++] = '\n';
res               802 drivers/usb/gadget/configfs.c 	return res;
res               809 drivers/usb/gadget/configfs.c 	int res, l;
res               816 drivers/usb/gadget/configfs.c 	res = utf8s_to_utf16s(page, l,
res               819 drivers/usb/gadget/configfs.c 	if (res > 0)
res               820 drivers/usb/gadget/configfs.c 		res = len;
res               823 drivers/usb/gadget/configfs.c 	return res;
res              1186 drivers/usb/gadget/function/f_fs.c 	ssize_t res;
res              1210 drivers/usb/gadget/function/f_fs.c 	res = ffs_epfile_io(kiocb->ki_filp, p);
res              1211 drivers/usb/gadget/function/f_fs.c 	if (res == -EIOCBQUEUED)
res              1212 drivers/usb/gadget/function/f_fs.c 		return res;
res              1217 drivers/usb/gadget/function/f_fs.c 	return res;
res              1223 drivers/usb/gadget/function/f_fs.c 	ssize_t res;
res              1256 drivers/usb/gadget/function/f_fs.c 	res = ffs_epfile_io(kiocb->ki_filp, p);
res              1257 drivers/usb/gadget/function/f_fs.c 	if (res == -EIOCBQUEUED)
res              1258 drivers/usb/gadget/function/f_fs.c 		return res;
res              1266 drivers/usb/gadget/function/f_fs.c 	return res;
res               310 drivers/usb/gadget/udc/aspeed-vhub/core.c 	struct resource *res;
res               320 drivers/usb/gadget/udc/aspeed-vhub/core.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               321 drivers/usb/gadget/udc/aspeed-vhub/core.c 	vhub->regs = devm_ioremap_resource(&pdev->dev, res);
res               326 drivers/usb/gadget/udc/aspeed-vhub/core.c 	UDCDBG(vhub, "vHub@%pR mapped @%p\n", res, vhub->regs);
res              1811 drivers/usb/gadget/udc/at91_udc.c 	struct resource	*res;
res              1842 drivers/usb/gadget/udc/at91_udc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1843 drivers/usb/gadget/udc/at91_udc.c 	udc->udp_baseaddr = devm_ioremap_resource(dev, res);
res              2205 drivers/usb/gadget/udc/atmel_usba_udc.c 	struct resource *res;
res              2217 drivers/usb/gadget/udc/atmel_usba_udc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, CTRL_IOMEM_ID);
res              2218 drivers/usb/gadget/udc/atmel_usba_udc.c 	udc->regs = devm_ioremap_resource(&pdev->dev, res);
res              2222 drivers/usb/gadget/udc/atmel_usba_udc.c 		 res, udc->regs);
res              2224 drivers/usb/gadget/udc/atmel_usba_udc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, FIFO_IOMEM_ID);
res              2225 drivers/usb/gadget/udc/atmel_usba_udc.c 	udc->fifo = devm_ioremap_resource(&pdev->dev, res);
res              2228 drivers/usb/gadget/udc/atmel_usba_udc.c 	dev_info(&pdev->dev, "FIFO at %pR mapped at %p\n", res, udc->fifo);
res              2285 drivers/usb/gadget/udc/bcm63xx_udc.c 	struct resource *res;
res              2301 drivers/usb/gadget/udc/bcm63xx_udc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              2302 drivers/usb/gadget/udc/bcm63xx_udc.c 	udc->usbd_regs = devm_ioremap_resource(dev, res);
res              2306 drivers/usb/gadget/udc/bcm63xx_udc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res              2307 drivers/usb/gadget/udc/bcm63xx_udc.c 	udc->iudma_regs = devm_ioremap_resource(dev, res);
res               483 drivers/usb/gadget/udc/bdc/bdc_core.c 	struct resource *res;
res               511 drivers/usb/gadget/udc/bdc/bdc_core.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               512 drivers/usb/gadget/udc/bdc/bdc_core.c 	bdc->regs = devm_ioremap_resource(dev, res);
res                43 drivers/usb/gadget/udc/bdc/bdc_pci.c 	struct resource res[2];
res                64 drivers/usb/gadget/udc/bdc/bdc_pci.c 	memset(res, 0x00, sizeof(struct resource) * ARRAY_SIZE(res));
res                67 drivers/usb/gadget/udc/bdc/bdc_pci.c 	res[0].start	= pci_resource_start(pci, 0);
res                68 drivers/usb/gadget/udc/bdc/bdc_pci.c 	res[0].end	= pci_resource_end(pci, 0);
res                69 drivers/usb/gadget/udc/bdc/bdc_pci.c 	res[0].name	= BRCM_BDC_NAME;
res                70 drivers/usb/gadget/udc/bdc/bdc_pci.c 	res[0].flags	= IORESOURCE_MEM;
res                72 drivers/usb/gadget/udc/bdc/bdc_pci.c 	res[1].start	= pci->irq;
res                73 drivers/usb/gadget/udc/bdc/bdc_pci.c 	res[1].name	= BRCM_BDC_NAME;
res                74 drivers/usb/gadget/udc/bdc/bdc_pci.c 	res[1].flags	= IORESOURCE_IRQ;
res                76 drivers/usb/gadget/udc/bdc/bdc_pci.c 	ret = platform_device_add_resources(bdc, res, ARRAY_SIZE(res));
res              1078 drivers/usb/gadget/udc/fotg210-udc.c 	struct resource *res, *ires;
res              1084 drivers/usb/gadget/udc/fotg210-udc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1085 drivers/usb/gadget/udc/fotg210-udc.c 	if (!res) {
res              1110 drivers/usb/gadget/udc/fotg210-udc.c 	fotg210->reg = ioremap(res->start, resource_size(res));
res                88 drivers/usb/gadget/udc/fsl_mxc_udc.c 		struct resource *res = platform_get_resource
res                90 drivers/usb/gadget/udc/fsl_mxc_udc.c 		void __iomem *phy_regs = ioremap(res->start +
res              2163 drivers/usb/gadget/udc/fsl_qe_udc.c 	int i, res = 0;
res              2169 drivers/usb/gadget/udc/fsl_qe_udc.c 	for (i = (USB_MAX_ENDPOINTS-1); ((i >= 0) && (res == 0)); i--) {
res              2177 drivers/usb/gadget/udc/fsl_qe_udc.c 					res = qe_ep0_txconf(ep);
res              2179 drivers/usb/gadget/udc/fsl_qe_udc.c 					res = qe_ep_txconf(ep);
res              2183 drivers/usb/gadget/udc/fsl_qe_udc.c 	return res;
res              2365 drivers/usb/gadget/udc/fsl_udc_core.c 	struct resource *res;
res              2390 drivers/usb/gadget/udc/fsl_udc_core.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              2391 drivers/usb/gadget/udc/fsl_udc_core.c 	if (!res) {
res              2397 drivers/usb/gadget/udc/fsl_udc_core.c 		if (!request_mem_region(res->start, resource_size(res),
res              2405 drivers/usb/gadget/udc/fsl_udc_core.c 	dr_regs = ioremap(res->start, resource_size(res));
res              2543 drivers/usb/gadget/udc/fsl_udc_core.c 		release_mem_region(res->start, resource_size(res));
res              2555 drivers/usb/gadget/udc/fsl_udc_core.c 	struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              2579 drivers/usb/gadget/udc/fsl_udc_core.c 	if (res && (pdata->operating_mode == FSL_USB2_DR_DEVICE))
res              2580 drivers/usb/gadget/udc/fsl_udc_core.c 		release_mem_region(res->start, resource_size(res));
res               100 drivers/usb/gadget/udc/fsl_usb2_udc.h 	u8 res[236];
res               411 drivers/usb/gadget/udc/fsl_usb2_udc.h 	u32 res;
res              1361 drivers/usb/gadget/udc/fusb300_udc.c 	struct resource *res, *ires, *ires1;
res              1368 drivers/usb/gadget/udc/fusb300_udc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1369 drivers/usb/gadget/udc/fusb300_udc.c 	if (!res) {
res              1391 drivers/usb/gadget/udc/fusb300_udc.c 	reg = ioremap(res->start, resource_size(res));
res              2121 drivers/usb/gadget/udc/gr_udc.c 	struct resource *res;
res              2131 drivers/usb/gadget/udc/gr_udc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              2132 drivers/usb/gadget/udc/gr_udc.c 	regs = devm_ioremap_resource(dev->dev, res);
res              3003 drivers/usb/gadget/udc/lpc32xx_udc.c 	struct resource *res;
res              3051 drivers/usb/gadget/udc/lpc32xx_udc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              3052 drivers/usb/gadget/udc/lpc32xx_udc.c 	if (!res)
res              3064 drivers/usb/gadget/udc/lpc32xx_udc.c 	udc->udp_baseaddr = devm_ioremap_resource(dev, res);
res              1540 drivers/usb/gadget/udc/m66592-udc.c 	struct resource *res, *ires;
res              1547 drivers/usb/gadget/udc/m66592-udc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1548 drivers/usb/gadget/udc/m66592-udc.c 	if (!res) {
res              1562 drivers/usb/gadget/udc/m66592-udc.c 	reg = ioremap(res->start, resource_size(res));
res              2324 drivers/usb/gadget/udc/pxa25x_udc.c 	struct resource *res;
res              2370 drivers/usb/gadget/udc/pxa25x_udc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              2371 drivers/usb/gadget/udc/pxa25x_udc.c 	dev->regs = devm_ioremap_resource(&pdev->dev, res);
res              1830 drivers/usb/gadget/udc/r8a66597-udc.c 	struct resource *res;
res              1832 drivers/usb/gadget/udc/r8a66597-udc.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "sudmac");
res              1833 drivers/usb/gadget/udc/r8a66597-udc.c 	r8a66597->sudmac_reg = devm_ioremap_resource(&pdev->dev, res);
res              1841 drivers/usb/gadget/udc/r8a66597-udc.c 	struct resource *res, *ires;
res              1849 drivers/usb/gadget/udc/r8a66597-udc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1850 drivers/usb/gadget/udc/r8a66597-udc.c 	reg = devm_ioremap_resource(&pdev->dev, res);
res               943 drivers/usb/gadget/udc/renesas_usb3.c static void usb3_set_p0_con_update_res(struct renesas_usb3 *usb3, u32 res)
res               948 drivers/usb/gadget/udc/renesas_usb3.c 	val |= res | P0_CON_RES_WEN;
res              1011 drivers/usb/gadget/udc/renesas_usb3.c static void usb3_set_pn_con_update_res(struct renesas_usb3 *usb3, u32 res)
res              1016 drivers/usb/gadget/udc/renesas_usb3.c 	val |= res & PN_CON_RES_MASK;
res              2736 drivers/usb/gadget/udc/renesas_usb3.c 	struct resource *res;
res              2755 drivers/usb/gadget/udc/renesas_usb3.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              2756 drivers/usb/gadget/udc/renesas_usb3.c 	usb3->reg = devm_ioremap_resource(&pdev->dev, res);
res              1266 drivers/usb/gadget/udc/s3c-hsudc.c 	struct resource *res;
res              1293 drivers/usb/gadget/udc/s3c-hsudc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1295 drivers/usb/gadget/udc/s3c-hsudc.c 	hsudc->regs = devm_ioremap_resource(&pdev->dev, res);
res               104 drivers/usb/gadget/udc/snps_udc_plat.c 	struct resource *res;
res               115 drivers/usb/gadget/udc/snps_udc_plat.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               116 drivers/usb/gadget/udc/snps_udc_plat.c 	udc->virt_addr = devm_ioremap_resource(dev, res);
res               133 drivers/usb/gadget/udc/snps_udc_plat.c 	udc->phys_addr = (unsigned long)res->start;
res              2047 drivers/usb/gadget/udc/udc-xilinx.c 	struct resource *res;
res              2071 drivers/usb/gadget/udc/udc-xilinx.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              2072 drivers/usb/gadget/udc/udc-xilinx.c 	udc->addr = devm_ioremap_resource(&pdev->dev, res);
res              2130 drivers/usb/gadget/udc/udc-xilinx.c 		 driver_name, (u32)res->start, udc->addr,
res                90 drivers/usb/host/ehci-atmel.c 	struct resource *res;
res               122 drivers/usb/host/ehci-atmel.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               123 drivers/usb/host/ehci-atmel.c 	hcd->regs = devm_ioremap_resource(&pdev->dev, res);
res               129 drivers/usb/host/ehci-atmel.c 	hcd->rsrc_start = res->start;
res               130 drivers/usb/host/ehci-atmel.c 	hcd->rsrc_len = resource_size(res);
res               156 drivers/usb/host/ehci-exynos.c 	struct resource *res;
res               195 drivers/usb/host/ehci-exynos.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               196 drivers/usb/host/ehci-exynos.c 	hcd->regs = devm_ioremap_resource(&pdev->dev, res);
res               202 drivers/usb/host/ehci-exynos.c 	hcd->rsrc_start = res->start;
res               203 drivers/usb/host/ehci-exynos.c 	hcd->rsrc_len = resource_size(res);
res                51 drivers/usb/host/ehci-fsl.c 	struct resource *res;
res                79 drivers/usb/host/ehci-fsl.c 	res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
res                80 drivers/usb/host/ehci-fsl.c 	if (!res) {
res                86 drivers/usb/host/ehci-fsl.c 	irq = res->start;
res                95 drivers/usb/host/ehci-fsl.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                96 drivers/usb/host/ehci-fsl.c 	hcd->regs = devm_ioremap_resource(&pdev->dev, res);
res               102 drivers/usb/host/ehci-fsl.c 	hcd->rsrc_start = res->start;
res               103 drivers/usb/host/ehci-fsl.c 	hcd->rsrc_len = resource_size(res);
res                77 drivers/usb/host/ehci-grlib.c 	struct resource res;
res                87 drivers/usb/host/ehci-grlib.c 	rv = of_address_to_resource(dn, 0, &res);
res                98 drivers/usb/host/ehci-grlib.c 	hcd->rsrc_start = res.start;
res                99 drivers/usb/host/ehci-grlib.c 	hcd->rsrc_len = resource_size(&res);
res               109 drivers/usb/host/ehci-grlib.c 	hcd->regs = devm_ioremap_resource(&op->dev, &res);
res                41 drivers/usb/host/ehci-mxc.c 	struct resource *res;
res                58 drivers/usb/host/ehci-mxc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                59 drivers/usb/host/ehci-mxc.c 	hcd->regs = devm_ioremap_resource(&pdev->dev, res);
res                64 drivers/usb/host/ehci-mxc.c 	hcd->rsrc_start = res->start;
res                65 drivers/usb/host/ehci-mxc.c 	hcd->rsrc_len = resource_size(res);
res                64 drivers/usb/host/ehci-npcm7xx.c 	struct resource *res;
res               135 drivers/usb/host/ehci-npcm7xx.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               136 drivers/usb/host/ehci-npcm7xx.c 	hcd->regs = devm_ioremap_resource(&pdev->dev, res);
res               141 drivers/usb/host/ehci-npcm7xx.c 	hcd->rsrc_start = res->start;
res               142 drivers/usb/host/ehci-npcm7xx.c 	hcd->rsrc_len = resource_size(res);
res                90 drivers/usb/host/ehci-omap.c 	struct resource	*res;
res               121 drivers/usb/host/ehci-omap.c 	res =  platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               122 drivers/usb/host/ehci-omap.c 	regs = devm_ioremap_resource(dev, res);
res               143 drivers/usb/host/ehci-omap.c 	hcd->rsrc_start = res->start;
res               144 drivers/usb/host/ehci-omap.c 	hcd->rsrc_len = resource_size(res);
res               211 drivers/usb/host/ehci-orion.c 	struct resource *res;
res               239 drivers/usb/host/ehci-orion.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               240 drivers/usb/host/ehci-orion.c 	regs = devm_ioremap_resource(&pdev->dev, res);
res               253 drivers/usb/host/ehci-orion.c 	hcd->rsrc_start = res->start;
res               254 drivers/usb/host/ehci-orion.c 	hcd->rsrc_len = resource_size(res);
res                97 drivers/usb/host/ehci-pmcmsp.c 	struct resource *res;
res               103 drivers/usb/host/ehci-pmcmsp.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res               104 drivers/usb/host/ehci-pmcmsp.c 	if (res == NULL)
res               106 drivers/usb/host/ehci-pmcmsp.c 	res_len = resource_size(res);
res               107 drivers/usb/host/ehci-pmcmsp.c 	if (!request_mem_region(res->start, res_len, "mab regs"))
res               110 drivers/usb/host/ehci-pmcmsp.c 	dev->mab_regs = ioremap_nocache(res->start, res_len);
res               117 drivers/usb/host/ehci-pmcmsp.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 2);
res               118 drivers/usb/host/ehci-pmcmsp.c 	if (res == NULL) {
res               122 drivers/usb/host/ehci-pmcmsp.c 	res_len = resource_size(res);
res               123 drivers/usb/host/ehci-pmcmsp.c 	if (!request_mem_region(res->start, res_len, "usbid regs")) {
res               127 drivers/usb/host/ehci-pmcmsp.c 	dev->usbid_regs = ioremap_nocache(res->start, res_len);
res               135 drivers/usb/host/ehci-pmcmsp.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 2);
res               136 drivers/usb/host/ehci-pmcmsp.c 	res_len = resource_size(res);
res               137 drivers/usb/host/ehci-pmcmsp.c 	release_mem_region(res->start, res_len);
res               141 drivers/usb/host/ehci-pmcmsp.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res               142 drivers/usb/host/ehci-pmcmsp.c 	res_len = resource_size(res);
res               143 drivers/usb/host/ehci-pmcmsp.c 	release_mem_region(res->start, res_len);
res               162 drivers/usb/host/ehci-pmcmsp.c 	struct resource *res;
res               169 drivers/usb/host/ehci-pmcmsp.c 	res = platform_get_resource(dev, IORESOURCE_MEM, 0);
res               170 drivers/usb/host/ehci-pmcmsp.c 	if (res == NULL) {
res               175 drivers/usb/host/ehci-pmcmsp.c 	hcd->rsrc_start = res->start;
res               176 drivers/usb/host/ehci-pmcmsp.c 	hcd->rsrc_len = resource_size(res);
res               188 drivers/usb/host/ehci-pmcmsp.c 	res = platform_get_resource(dev, IORESOURCE_IRQ, 0);
res               189 drivers/usb/host/ehci-pmcmsp.c 	if (res == NULL) {
res               205 drivers/usb/host/ehci-pmcmsp.c 	retval = usb_add_hcd(hcd, res->start, IRQF_SHARED);
res                99 drivers/usb/host/ehci-ppc-of.c 	struct resource res;
res               110 drivers/usb/host/ehci-ppc-of.c 	rv = of_address_to_resource(dn, 0, &res);
res               118 drivers/usb/host/ehci-ppc-of.c 	hcd->rsrc_start = res.start;
res               119 drivers/usb/host/ehci-ppc-of.c 	hcd->rsrc_len = resource_size(&res);
res               129 drivers/usb/host/ehci-ppc-of.c 	hcd->regs = devm_ioremap_resource(&op->dev, &res);
res               139 drivers/usb/host/ehci-ppc-of.c 		if (!of_address_to_resource(np, 0, &res))
res               142 drivers/usb/host/ehci-ppc-of.c 					     res.start + OHCI_HCCTRL_OFFSET,
res               192 drivers/usb/host/ehci-ppc-of.c 	struct resource res;
res               206 drivers/usb/host/ehci-ppc-of.c 			if (!of_address_to_resource(np, 0, &res))
res               207 drivers/usb/host/ehci-ppc-of.c 				if (!request_mem_region(res.start,
res               211 drivers/usb/host/ehci-ppc-of.c 					release_mem_region(res.start, 0x4);
res                77 drivers/usb/host/ehci-sh.c 	struct resource *res;
res               102 drivers/usb/host/ehci-sh.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               103 drivers/usb/host/ehci-sh.c 	hcd->regs = devm_ioremap_resource(&pdev->dev, res);
res               108 drivers/usb/host/ehci-sh.c 	hcd->rsrc_start = res->start;
res               109 drivers/usb/host/ehci-sh.c 	hcd->rsrc_len = resource_size(res);
res                62 drivers/usb/host/ehci-spear.c 	struct resource *res;
res                98 drivers/usb/host/ehci-spear.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                99 drivers/usb/host/ehci-spear.c 	hcd->regs = devm_ioremap_resource(&pdev->dev, res);
res               104 drivers/usb/host/ehci-spear.c 	hcd->rsrc_start = res->start;
res               105 drivers/usb/host/ehci-spear.c 	hcd->rsrc_len = resource_size(res);
res               387 drivers/usb/host/ehci-tegra.c 	struct resource *res;
res               457 drivers/usb/host/ehci-tegra.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               458 drivers/usb/host/ehci-tegra.c 	hcd->regs = devm_ioremap_resource(&pdev->dev, res);
res               463 drivers/usb/host/ehci-tegra.c 	hcd->rsrc_start = res->start;
res               464 drivers/usb/host/ehci-tegra.c 	hcd->rsrc_len = resource_size(res);
res               121 drivers/usb/host/ehci-xilinx-of.c 	struct resource res;
res               131 drivers/usb/host/ehci-xilinx-of.c 	rv = of_address_to_resource(dn, 0, &res);
res               140 drivers/usb/host/ehci-xilinx-of.c 	hcd->rsrc_start = res.start;
res               141 drivers/usb/host/ehci-xilinx-of.c 	hcd->rsrc_len = resource_size(&res);
res               151 drivers/usb/host/ehci-xilinx-of.c 	hcd->regs = devm_ioremap_resource(&op->dev, &res);
res              5572 drivers/usb/host/fotg210-hcd.c 	struct resource *res;
res              5582 drivers/usb/host/fotg210-hcd.c 	res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
res              5583 drivers/usb/host/fotg210-hcd.c 	if (!res) {
res              5589 drivers/usb/host/fotg210-hcd.c 	irq = res->start;
res              5601 drivers/usb/host/fotg210-hcd.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              5602 drivers/usb/host/fotg210-hcd.c 	hcd->regs = devm_ioremap_resource(&pdev->dev, res);
res              5608 drivers/usb/host/fotg210-hcd.c 	hcd->rsrc_start = res->start;
res              5609 drivers/usb/host/fotg210-hcd.c 	hcd->rsrc_len = resource_size(res);
res                83 drivers/usb/host/fsl-mph-dr-of.c 	const struct resource *res = ofdev->resource;
res               107 drivers/usb/host/fsl-mph-dr-of.c 		retval = platform_device_add_resources(pdev, res, num);
res              1808 drivers/usb/host/imx21-hcd.c 	struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1813 drivers/usb/host/imx21-hcd.c 	if (res != NULL) {
res              1817 drivers/usb/host/imx21-hcd.c 		release_mem_region(res->start, resource_size(res));
res              1829 drivers/usb/host/imx21-hcd.c 	struct resource *res;
res              1835 drivers/usb/host/imx21-hcd.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1836 drivers/usb/host/imx21-hcd.c 	if (!res)
res              1863 drivers/usb/host/imx21-hcd.c 	res = request_mem_region(res->start, resource_size(res), hcd_name);
res              1864 drivers/usb/host/imx21-hcd.c 	if (!res) {
res              1869 drivers/usb/host/imx21-hcd.c 	imx21->regs = ioremap(res->start, resource_size(res));
res              1911 drivers/usb/host/imx21-hcd.c 	release_mem_region(res->start, resource_size(res));
res              1534 drivers/usb/host/isp116x-hcd.c 	struct resource *res;
res              1543 drivers/usb/host/isp116x-hcd.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res              1544 drivers/usb/host/isp116x-hcd.c 	release_mem_region(res->start, 2);
res              1546 drivers/usb/host/isp116x-hcd.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1547 drivers/usb/host/isp116x-hcd.c 	release_mem_region(res->start, 2);
res               174 drivers/usb/host/ohci-at91.c 	struct resource *res;
res               188 drivers/usb/host/ohci-at91.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               189 drivers/usb/host/ohci-at91.c 	hcd->regs = devm_ioremap_resource(dev, res);
res               194 drivers/usb/host/ohci-at91.c 	hcd->rsrc_start = res->start;
res               195 drivers/usb/host/ohci-at91.c 	hcd->rsrc_len = resource_size(res);
res               126 drivers/usb/host/ohci-exynos.c 	struct resource *res;
res               164 drivers/usb/host/ohci-exynos.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               165 drivers/usb/host/ohci-exynos.c 	hcd->regs = devm_ioremap_resource(&pdev->dev, res);
res               170 drivers/usb/host/ohci-exynos.c 	hcd->rsrc_start = res->start;
res               171 drivers/usb/host/ohci-exynos.c 	hcd->rsrc_len = resource_size(res);
res               155 drivers/usb/host/ohci-nxp.c 	struct resource *res;
res               204 drivers/usb/host/ohci-nxp.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               205 drivers/usb/host/ohci-nxp.c 	hcd->regs = devm_ioremap_resource(&pdev->dev, res);
res               210 drivers/usb/host/ohci-nxp.c 	hcd->rsrc_start = res->start;
res               211 drivers/usb/host/ohci-nxp.c 	hcd->rsrc_len = resource_size(res);
res                92 drivers/usb/host/ohci-ppc-of.c 	struct resource res;
res               108 drivers/usb/host/ohci-ppc-of.c 	rv = of_address_to_resource(dn, 0, &res);
res               116 drivers/usb/host/ohci-ppc-of.c 	hcd->rsrc_start = res.start;
res               117 drivers/usb/host/ohci-ppc-of.c 	hcd->rsrc_len = resource_size(&res);
res               119 drivers/usb/host/ohci-ppc-of.c 	hcd->regs = devm_ioremap_resource(&op->dev, &res);
res               163 drivers/usb/host/ohci-ppc-of.c 		if (!of_address_to_resource(np, 0, &res)) {
res               164 drivers/usb/host/ohci-ppc-of.c 			if (!request_mem_region(res.start, 0x4, hcd_name)) {
res               169 drivers/usb/host/ohci-ppc-of.c 				release_mem_region(res.start, 0x4);
res               197 drivers/usb/host/ohci-sa1111.c 	hcd->rsrc_start = dev->res.start;
res               198 drivers/usb/host/ohci-sa1111.c 	hcd->rsrc_len = resource_size(&dev->res);
res                92 drivers/usb/host/ohci-sm501.c 	struct resource	*res, *mem;
res               114 drivers/usb/host/ohci-sm501.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               115 drivers/usb/host/ohci-sm501.c 	if (res == NULL) {
res               127 drivers/usb/host/ohci-sm501.c 	hcd->rsrc_start = res->start;
res               128 drivers/usb/host/ohci-sm501.c 	hcd->rsrc_len = resource_size(res);
res                41 drivers/usb/host/ohci-spear.c 	struct resource *res;
res                72 drivers/usb/host/ohci-spear.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                73 drivers/usb/host/ohci-spear.c 	hcd->regs = devm_ioremap_resource(&pdev->dev, res);
res                80 drivers/usb/host/ohci-spear.c 	hcd->rsrc_len = resource_size(res);
res              4209 drivers/usb/host/oxu210hp-hcd.c 	struct resource *res;
res              4221 drivers/usb/host/oxu210hp-hcd.c 	res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
res              4222 drivers/usb/host/oxu210hp-hcd.c 	if (!res) {
res              4227 drivers/usb/host/oxu210hp-hcd.c 	irq = res->start;
res              4230 drivers/usb/host/oxu210hp-hcd.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              4231 drivers/usb/host/oxu210hp-hcd.c 	base = devm_ioremap_resource(&pdev->dev, res);
res              4236 drivers/usb/host/oxu210hp-hcd.c 	memstart = res->start;
res              4237 drivers/usb/host/oxu210hp-hcd.c 	memlen = resource_size(res);
res              2402 drivers/usb/host/r8a66597-hcd.c 	struct resource *res = NULL, *ires;
res              2414 drivers/usb/host/r8a66597-hcd.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              2415 drivers/usb/host/r8a66597-hcd.c 	if (!res) {
res              2432 drivers/usb/host/r8a66597-hcd.c 	reg = ioremap(res->start, resource_size(res));
res              2490 drivers/usb/host/r8a66597-hcd.c 	hcd->rsrc_start = res->start;
res              1589 drivers/usb/host/sl811-hcd.c 	struct resource		*res;
res              1595 drivers/usb/host/sl811-hcd.c 	res = platform_get_resource(dev, IORESOURCE_MEM, 1);
res              1596 drivers/usb/host/sl811-hcd.c 	if (res)
res              1599 drivers/usb/host/sl811-hcd.c 	res = platform_get_resource(dev, IORESOURCE_MEM, 0);
res              1600 drivers/usb/host/sl811-hcd.c 	if (res)
res                95 drivers/usb/host/uhci-grlib.c 	struct resource res;
res               104 drivers/usb/host/uhci-grlib.c 	rv = of_address_to_resource(dn, 0, &res);
res               115 drivers/usb/host/uhci-grlib.c 	hcd->rsrc_start = res.start;
res               116 drivers/usb/host/uhci-grlib.c 	hcd->rsrc_len = resource_size(&res);
res               125 drivers/usb/host/uhci-grlib.c 	hcd->regs = devm_ioremap_resource(&op->dev, &res);
res                72 drivers/usb/host/uhci-platform.c 	struct resource *res;
res                94 drivers/usb/host/uhci-platform.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                95 drivers/usb/host/uhci-platform.c 	hcd->regs = devm_ioremap_resource(&pdev->dev, res);
res               100 drivers/usb/host/uhci-platform.c 	hcd->rsrc_start = res->start;
res               101 drivers/usb/host/uhci-platform.c 	hcd->rsrc_len = resource_size(res);
res                34 drivers/usb/host/xhci-ext-caps.c 	struct resource	res = { 0, };
res                44 drivers/usb/host/xhci-ext-caps.c 	res.start = hcd->rsrc_start + cap_offset;
res                45 drivers/usb/host/xhci-ext-caps.c 	res.end	  = res.start + USB_SW_RESOURCE_SIZE - 1;
res                46 drivers/usb/host/xhci-ext-caps.c 	res.name  = USB_SW_DRV_NAME;
res                47 drivers/usb/host/xhci-ext-caps.c 	res.flags = IORESOURCE_MEM;
res                49 drivers/usb/host/xhci-ext-caps.c 	ret = platform_device_add_resources(pdev, &res, 1);
res               204 drivers/usb/host/xhci-histb.c 	struct resource *res;
res               222 drivers/usb/host/xhci-histb.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               223 drivers/usb/host/xhci-histb.c 	histb->ctrl = devm_ioremap_resource(&pdev->dev, res);
res               253 drivers/usb/host/xhci-histb.c 	hcd->rsrc_start = res->start;
res               254 drivers/usb/host/xhci-histb.c 	hcd->rsrc_len = resource_size(res);
res               432 drivers/usb/host/xhci-mtk.c 	struct resource *res;
res               509 drivers/usb/host/xhci-mtk.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "mac");
res               510 drivers/usb/host/xhci-mtk.c 	hcd->regs = devm_ioremap_resource(dev, res);
res               515 drivers/usb/host/xhci-mtk.c 	hcd->rsrc_start = res->start;
res               516 drivers/usb/host/xhci-mtk.c 	hcd->rsrc_len = resource_size(res);
res               518 drivers/usb/host/xhci-mtk.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "ippc");
res               519 drivers/usb/host/xhci-mtk.c 	if (res) {	/* ippc register is optional */
res               520 drivers/usb/host/xhci-mtk.c 		mtk->ippc_regs = devm_ioremap_resource(dev, res);
res                49 drivers/usb/host/xhci-mvebu.c 	struct resource	*res;
res                53 drivers/usb/host/xhci-mvebu.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res                54 drivers/usb/host/xhci-mvebu.c 	if (!res)
res                61 drivers/usb/host/xhci-mvebu.c 	base = ioremap(res->start, resource_size(res));
res               162 drivers/usb/host/xhci-plat.c 	struct resource         *res;
res               222 drivers/usb/host/xhci-plat.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               223 drivers/usb/host/xhci-plat.c 	hcd->regs = devm_ioremap_resource(&pdev->dev, res);
res               229 drivers/usb/host/xhci-plat.c 	hcd->rsrc_start = res->start;
res               230 drivers/usb/host/xhci-plat.c 	hcd->rsrc_len = resource_size(res);
res               964 drivers/usb/host/xhci-tegra.c 	struct resource *res, *regs;
res               986 drivers/usb/host/xhci-tegra.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res               987 drivers/usb/host/xhci-tegra.c 	tegra->fpci_base = devm_ioremap_resource(&pdev->dev, res);
res               992 drivers/usb/host/xhci-tegra.c 		res = platform_get_resource(pdev, IORESOURCE_MEM, 2);
res               993 drivers/usb/host/xhci-tegra.c 		tegra->ipfs_base = devm_ioremap_resource(&pdev->dev, res);
res               976 drivers/usb/host/xhci.c 	u32			res;
res              1042 drivers/usb/host/xhci.c 		res = readl(&xhci->op_regs->status);
res              1044 drivers/usb/host/xhci.c 		    (((res & STS_SRE) == 0) &&
res              1045 drivers/usb/host/xhci.c 				((res & STS_HCE) == 0))) {
res               376 drivers/usb/image/microtek.c 	int res;
res               389 drivers/usb/image/microtek.c 	res = usb_submit_urb( transfer, GFP_ATOMIC );
res               390 drivers/usb/image/microtek.c 	if ( unlikely(res) ) {
res               391 drivers/usb/image/microtek.c 		MTS_INT_ERROR( "could not submit URB! Error was %d\n",(int)res );
res               570 drivers/usb/image/microtek.c 	int res;
res               605 drivers/usb/image/microtek.c 	res=usb_submit_urb(desc->urb, GFP_ATOMIC);
res               607 drivers/usb/image/microtek.c 	if(unlikely(res)){
res               608 drivers/usb/image/microtek.c 		MTS_ERROR("error %d submitting URB\n",(int)res);
res               659 drivers/usb/misc/adutux.c 	int res;
res               672 drivers/usb/misc/adutux.c 	res = usb_find_common_endpoints_reverse(interface->cur_altsetting,
res               676 drivers/usb/misc/adutux.c 	if (res) {
res               678 drivers/usb/misc/adutux.c 		retval = res;
res               116 drivers/usb/misc/chaoskey.c 	int res;
res               121 drivers/usb/misc/chaoskey.c 	res = usb_find_bulk_in_endpoint(altsetting, &epd);
res               122 drivers/usb/misc/chaoskey.c 	if (res) {
res               124 drivers/usb/misc/chaoskey.c 		return res;
res               758 drivers/usb/misc/iowarrior.c 	int res;
res               782 drivers/usb/misc/iowarrior.c 	res = usb_find_last_int_in_endpoint(iface_desc, &dev->int_in_endpoint);
res               783 drivers/usb/misc/iowarrior.c 	if (res) {
res               785 drivers/usb/misc/iowarrior.c 		retval = res;
res               794 drivers/usb/misc/iowarrior.c 		res = usb_find_last_int_out_endpoint(iface_desc,
res               796 drivers/usb/misc/iowarrior.c 		if (res) {
res               798 drivers/usb/misc/iowarrior.c 			retval = res;
res               657 drivers/usb/misc/ldusb.c 	int res;
res               685 drivers/usb/misc/ldusb.c 	res = usb_find_last_int_in_endpoint(iface_desc,
res               687 drivers/usb/misc/ldusb.c 	if (res) {
res               689 drivers/usb/misc/ldusb.c 		retval = res;
res               693 drivers/usb/misc/ldusb.c 	res = usb_find_last_int_out_endpoint(iface_desc,
res               695 drivers/usb/misc/ldusb.c 	if (res)
res               198 drivers/usb/misc/yurex.c 	int res;
res               214 drivers/usb/misc/yurex.c 	res = usb_find_int_in_endpoint(iface_desc, &endpoint);
res               215 drivers/usb/misc/yurex.c 	if (res) {
res               217 drivers/usb/misc/yurex.c 		retval = res;
res               831 drivers/usb/mtu3/mtu3_core.c 	struct resource *res;
res               843 drivers/usb/mtu3/mtu3_core.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "mac");
res               844 drivers/usb/mtu3/mtu3_core.c 	mtu->mac_base = devm_ioremap_resource(dev, res);
res               219 drivers/usb/mtu3/mtu3_plat.c 	struct resource *res;
res               266 drivers/usb/mtu3/mtu3_plat.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "ippc");
res               267 drivers/usb/mtu3/mtu3_plat.c 	ssusb->ippc_base = devm_ioremap_resource(dev, res);
res               499 drivers/usb/musb/am35x.c 	pinfo.res = pdev->resource;
res               576 drivers/usb/musb/da8xx.c 	pinfo.res = musb_resources;
res               554 drivers/usb/musb/davinci.c 	pinfo.res = musb_resources;
res               727 drivers/usb/musb/musb_dsps.c 	struct resource	*res;
res               735 drivers/usb/musb/musb_dsps.c 	res = platform_get_resource_byname(parent, IORESOURCE_MEM, "mc");
res               736 drivers/usb/musb/musb_dsps.c 	if (!res) {
res               740 drivers/usb/musb/musb_dsps.c 	resources[0] = *res;
res               742 drivers/usb/musb/musb_dsps.c 	res = platform_get_resource_byname(parent, IORESOURCE_IRQ, "mc");
res               743 drivers/usb/musb/musb_dsps.c 	if (!res) {
res               747 drivers/usb/musb/musb_dsps.c 	resources[1] = *res;
res               784 drivers/usb/musb/sunxi.c 	pinfo.res	= pdev->resource;
res              1239 drivers/usb/musb/tusb6010.c 	pinfo.res = musb_resources;
res               152 drivers/usb/phy/phy-am335x-control.c 	struct resource	*res;
res               169 drivers/usb/phy/phy-am335x-control.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "phy_ctrl");
res               170 drivers/usb/phy/phy-am335x-control.c 	ctrl_usb->phy_reg = devm_ioremap_resource(&pdev->dev, res);
res               174 drivers/usb/phy/phy-am335x-control.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "wakeup");
res               175 drivers/usb/phy/phy-am335x-control.c 	ctrl_usb->wkup = devm_ioremap_resource(&pdev->dev, res);
res               838 drivers/usb/phy/phy-fsl-usb.c 	struct resource *res;
res               850 drivers/usb/phy/phy-fsl-usb.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               851 drivers/usb/phy/phy-fsl-usb.c 	if (!res)
res               857 drivers/usb/phy/phy-fsl-usb.c 	usb_dr_regs = ioremap(res->start, sizeof(struct usb_dr_mmap));
res               247 drivers/usb/phy/phy-gpio-vbus-usb.c 	struct resource *res;
res               284 drivers/usb/phy/phy-gpio-vbus-usb.c 	res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
res               285 drivers/usb/phy/phy-gpio-vbus-usb.c 	if (res) {
res               286 drivers/usb/phy/phy-gpio-vbus-usb.c 		irq = res->start;
res               287 drivers/usb/phy/phy-gpio-vbus-usb.c 		irqflags = (res->flags & IRQF_TRIGGER_MASK) | IRQF_SHARED;
res                69 drivers/usb/phy/phy-keystone.c 	struct resource		*res;
res                76 drivers/usb/phy/phy-keystone.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                77 drivers/usb/phy/phy-keystone.c 	k_phy->phy_ctrl = devm_ioremap_resource(dev, res);
res               713 drivers/usb/phy/phy-mxs-usb.c 	struct resource *res;
res               726 drivers/usb/phy/phy-mxs-usb.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               727 drivers/usb/phy/phy-mxs-usb.c 	base = devm_ioremap_resource(&pdev->dev, res);
res               947 drivers/usb/phy/phy-tegra-usb.c 	struct resource *res;
res               953 drivers/usb/phy/phy-tegra-usb.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res               954 drivers/usb/phy/phy-tegra-usb.c 	if (!res) {
res               959 drivers/usb/phy/phy-tegra-usb.c 	tegra_phy->pad_regs = devm_ioremap(&pdev->dev, res->start,
res               960 drivers/usb/phy/phy-tegra-usb.c 		resource_size(res));
res              1057 drivers/usb/phy/phy-tegra-usb.c 	struct resource *res;
res              1074 drivers/usb/phy/phy-tegra-usb.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1075 drivers/usb/phy/phy-tegra-usb.c 	if (!res) {
res              1080 drivers/usb/phy/phy-tegra-usb.c 	tegra_phy->regs = devm_ioremap(&pdev->dev, res->start,
res              1081 drivers/usb/phy/phy-tegra-usb.c 		resource_size(res));
res               284 drivers/usb/phy/phy.c static void devm_usb_phy_release(struct device *dev, void *res)
res               286 drivers/usb/phy/phy.c 	struct usb_phy *phy = *(struct usb_phy **)res;
res               293 drivers/usb/phy/phy.c 	struct phy_devm *res = _res;
res               295 drivers/usb/phy/phy.c 	if (res->nb)
res               296 drivers/usb/phy/phy.c 		usb_unregister_notifier(res->phy, res->nb);
res               297 drivers/usb/phy/phy.c 	usb_put_phy(res->phy);
res               300 drivers/usb/phy/phy.c static int devm_usb_phy_match(struct device *dev, void *res, void *match_data)
res               302 drivers/usb/phy/phy.c 	struct usb_phy **phy = res;
res               593 drivers/usb/renesas_usbhs/common.c 	struct resource *res, *irq_res;
res               622 drivers/usb/renesas_usbhs/common.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               623 drivers/usb/renesas_usbhs/common.c 	priv->base = devm_ioremap_resource(&pdev->dev, res);
res               213 drivers/usb/roles/class.c 		bool res;
res               216 drivers/usb/roles/class.c 		ret = kstrtobool(buf, &res);
res               217 drivers/usb/roles/class.c 		if (ret || res)
res               154 drivers/usb/roles/intel-xhci-usb-role-switch.c 	struct resource *res;
res               161 drivers/usb/roles/intel-xhci-usb-role-switch.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               162 drivers/usb/roles/intel-xhci-usb-role-switch.c 	if (!res)
res               164 drivers/usb/roles/intel-xhci-usb-role-switch.c 	data->base = devm_ioremap_nocache(dev, res->start, resource_size(res));
res               303 drivers/usb/serial/generic.c 	int res;
res               310 drivers/usb/serial/generic.c 	res = usb_submit_urb(port->read_urbs[index], mem_flags);
res               311 drivers/usb/serial/generic.c 	if (res) {
res               312 drivers/usb/serial/generic.c 		if (res != -EPERM && res != -ENODEV) {
res               315 drivers/usb/serial/generic.c 					__func__, res);
res               318 drivers/usb/serial/generic.c 		return res;
res               327 drivers/usb/serial/generic.c 	int res;
res               331 drivers/usb/serial/generic.c 		res = usb_serial_generic_submit_read_urb(port, i, mem_flags);
res               332 drivers/usb/serial/generic.c 		if (res)
res               341 drivers/usb/serial/generic.c 	return res;
res              1943 drivers/usb/serial/keyspan.c 		res,	/* resulting baud rate using 13/8 prescaler */
res              1972 drivers/usb/serial/keyspan.c 		res = clk / div;
res              1973 drivers/usb/serial/keyspan.c 		diff = (res > b16) ? (res-b16) : (b16-res);
res               151 drivers/usb/serial/kl5kusb105.c 	unsigned long res = 0;
res               153 drivers/usb/serial/kl5kusb105.c 	res =   ((status & KL5KUSB105A_DSR) ? TIOCM_DSR : 0)
res               157 drivers/usb/serial/kl5kusb105.c 	return res;
res              1976 drivers/usb/serial/mos7840.c 	int res;
res              1983 drivers/usb/serial/mos7840.c 	res = usb_control_msg(serial->dev, usb_rcvctrlpipe(serial->dev, 0),
res              1986 drivers/usb/serial/mos7840.c 	if (res == VENDOR_READ_LENGTH)
res              1997 drivers/usb/serial/mos7840.c 		res = usb_control_msg(serial->dev,
res              2001 drivers/usb/serial/mos7840.c 		if (res == VENDOR_READ_LENGTH)
res               129 drivers/usb/serial/opticon.c 	int res;
res               141 drivers/usb/serial/opticon.c 	res = usb_serial_generic_open(tty, port);
res               142 drivers/usb/serial/opticon.c 	if (res)
res               143 drivers/usb/serial/opticon.c 		return res;
res               149 drivers/usb/serial/opticon.c 	return res;
res               194 drivers/usb/serial/pl2303.c 	int res;
res               196 drivers/usb/serial/pl2303.c 	res = usb_control_msg(serial->dev, usb_rcvctrlpipe(serial->dev, 0),
res               199 drivers/usb/serial/pl2303.c 	if (res != 1) {
res               201 drivers/usb/serial/pl2303.c 								value, res);
res               202 drivers/usb/serial/pl2303.c 		if (res >= 0)
res               203 drivers/usb/serial/pl2303.c 			res = -EIO;
res               205 drivers/usb/serial/pl2303.c 		return res;
res               216 drivers/usb/serial/pl2303.c 	int res;
res               220 drivers/usb/serial/pl2303.c 	res = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0),
res               223 drivers/usb/serial/pl2303.c 	if (res) {
res               225 drivers/usb/serial/pl2303.c 								value, res);
res               226 drivers/usb/serial/pl2303.c 		return res;
res               133 drivers/usb/serial/upd78f0730.c 	int res;
res               142 drivers/usb/serial/upd78f0730.c 	res = usb_control_msg(usbdev, usb_sndctrlpipe(usbdev, 0), 0x00,
res               148 drivers/usb/serial/upd78f0730.c 	if (res != size) {
res               152 drivers/usb/serial/upd78f0730.c 			*(u8 *)data, res);
res               154 drivers/usb/serial/upd78f0730.c 		if (res >= 0)
res               155 drivers/usb/serial/upd78f0730.c 			res = -EIO;
res               157 drivers/usb/serial/upd78f0730.c 		return res;
res               194 drivers/usb/serial/upd78f0730.c 	int res;
res               202 drivers/usb/serial/upd78f0730.c 	res = ((signals & UPD78F0730_DTR) ? TIOCM_DTR : 0) |
res               205 drivers/usb/serial/upd78f0730.c 	dev_dbg(dev, "%s - res = %x\n", __func__, res);
res               207 drivers/usb/serial/upd78f0730.c 	return res;
res               217 drivers/usb/serial/upd78f0730.c 	int res;
res               241 drivers/usb/serial/upd78f0730.c 	res = upd78f0730_send_ctl(port, &request, sizeof(request));
res               244 drivers/usb/serial/upd78f0730.c 	return res;
res               388 drivers/usb/serial/upd78f0730.c 	int res;
res               390 drivers/usb/serial/upd78f0730.c 	res = upd78f0730_send_ctl(port, &request, sizeof(request));
res               391 drivers/usb/serial/upd78f0730.c 	if (res)
res               392 drivers/usb/serial/upd78f0730.c 		return res;
res                46 drivers/usb/serial/usb_wwan.c 	int res;
res                57 drivers/usb/serial/usb_wwan.c 	res = usb_autopm_get_interface(serial->interface);
res                58 drivers/usb/serial/usb_wwan.c 	if (res)
res                59 drivers/usb/serial/usb_wwan.c 		return res;
res                61 drivers/usb/serial/usb_wwan.c 	res = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0),
res                67 drivers/usb/serial/usb_wwan.c 	return res;
res                55 drivers/usb/storage/initializers.c 	int res;
res                69 drivers/usb/storage/initializers.c 	res = usb_stor_bulk_transfer_buf(us, us->send_bulk_pipe, bcb,
res                71 drivers/usb/storage/initializers.c 	if (res)
res                75 drivers/usb/storage/initializers.c 	res = usb_stor_bulk_transfer_buf(us, us->recv_bulk_pipe, bcs,
res                77 drivers/usb/storage/initializers.c 	if (res)
res               734 drivers/usb/storage/usb.c 	int res;
res               742 drivers/usb/storage/usb.c 	res = usb_find_common_endpoints(alt, &ep_in, &ep_out, NULL, NULL);
res               743 drivers/usb/storage/usb.c 	if (res) {
res               745 drivers/usb/storage/usb.c 		return res;
res               748 drivers/usb/storage/usb.c 	res = usb_find_int_in_endpoint(alt, &ep_int);
res               749 drivers/usb/storage/usb.c 	if (res && us->protocol == USB_PR_CBI) {
res               751 drivers/usb/storage/usb.c 		return res;
res              1281 drivers/usb/typec/tcpm/tcpm.c 	int i, res;
res              1307 drivers/usb/typec/tcpm/tcpm.c 		res = tcpm_pd_transmit(port, TCPC_TX_SOP, &msg);
res              1308 drivers/usb/typec/tcpm/tcpm.c 		if (res < 0) {
res                68 drivers/usb/typec/ucsi/ucsi_acpi.c 	struct resource *res;
res                76 drivers/usb/typec/ucsi/ucsi_acpi.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                77 drivers/usb/typec/ucsi/ucsi_acpi.c 	if (!res) {
res                83 drivers/usb/typec/ucsi/ucsi_acpi.c 	status = acpi_release_memory(ACPI_HANDLE(&pdev->dev), res, 1);
res                93 drivers/usb/typec/ucsi/ucsi_acpi.c 	ua->ppm.data = devm_ioremap(&pdev->dev, res->start, resource_size(res));
res               139 drivers/usb/usb-skeleton.c 	int res;
res               151 drivers/usb/usb-skeleton.c 	res = dev->errors ? (dev->errors == -EPIPE ? -EPIPE : -EIO) : 0;
res               157 drivers/usb/usb-skeleton.c 	return res;
res               112 drivers/vfio/pci/vfio_pci.c 	struct resource *res;
res               119 drivers/vfio/pci/vfio_pci.c 		res = vdev->pdev->resource + bar;
res               124 drivers/vfio/pci/vfio_pci.c 		if (!(res->flags & IORESOURCE_MEM))
res               132 drivers/vfio/pci/vfio_pci.c 		if (!resource_size(res))
res               135 drivers/vfio/pci/vfio_pci.c 		if (resource_size(res) >= PAGE_SIZE) {
res               140 drivers/vfio/pci/vfio_pci.c 		if (!(res->start & ~PAGE_MASK)) {
res               151 drivers/vfio/pci/vfio_pci.c 			dummy_res->resource.start = res->end + 1;
res               152 drivers/vfio/pci/vfio_pci.c 			dummy_res->resource.end = res->start + PAGE_SIZE - 1;
res               153 drivers/vfio/pci/vfio_pci.c 			dummy_res->resource.flags = res->flags;
res               154 drivers/vfio/pci/vfio_pci.c 			if (request_resource(res->parent,
res                26 drivers/vfio/platform/vfio_amba.c 		return &adev->res;
res               151 drivers/vfio/platform/vfio_platform_common.c 		struct resource *res =
res               154 drivers/vfio/platform/vfio_platform_common.c 		if (!res)
res               157 drivers/vfio/platform/vfio_platform_common.c 		vdev->regions[i].addr = res->start;
res               158 drivers/vfio/platform/vfio_platform_common.c 		vdev->regions[i].size = resource_size(res);
res               161 drivers/vfio/platform/vfio_platform_common.c 		switch (resource_type(res)) {
res               165 drivers/vfio/platform/vfio_platform_common.c 			if (!(res->flags & IORESOURCE_READONLY))
res               197 drivers/video/backlight/88pm860x_bl.c 	struct resource *res;
res               206 drivers/video/backlight/88pm860x_bl.c 	res = platform_get_resource_byname(pdev, IORESOURCE_REG, "duty cycle");
res               207 drivers/video/backlight/88pm860x_bl.c 	if (!res) {
res               211 drivers/video/backlight/88pm860x_bl.c 	data->reg_duty_cycle = res->start;
res               212 drivers/video/backlight/88pm860x_bl.c 	res = platform_get_resource_byname(pdev, IORESOURCE_REG, "always on");
res               213 drivers/video/backlight/88pm860x_bl.c 	if (!res) {
res               217 drivers/video/backlight/88pm860x_bl.c 	data->reg_always_on = res->start;
res               218 drivers/video/backlight/88pm860x_bl.c 	res = platform_get_resource_byname(pdev, IORESOURCE_REG, "current");
res               219 drivers/video/backlight/88pm860x_bl.c 	if (!res) {
res               223 drivers/video/backlight/88pm860x_bl.c 	data->reg_current = res->start;
res               469 drivers/video/backlight/backlight.c static void devm_backlight_device_release(struct device *dev, void *res)
res               471 drivers/video/backlight/backlight.c 	struct backlight_device *backlight = *(struct backlight_device **)res;
res               476 drivers/video/backlight/backlight.c static int devm_backlight_device_match(struct device *dev, void *res,
res               479 drivers/video/backlight/backlight.c 	struct backlight_device **r = res;
res                65 drivers/video/backlight/ep93xx_bl.c 	struct resource *res;
res                71 drivers/video/backlight/ep93xx_bl.c 	res = platform_get_resource(dev, IORESOURCE_MEM, 0);
res                72 drivers/video/backlight/ep93xx_bl.c 	if (!res)
res                84 drivers/video/backlight/ep93xx_bl.c 	ep93xxbl->mmio = devm_ioremap(&dev->dev, res->start,
res                85 drivers/video/backlight/ep93xx_bl.c 				      resource_size(res));
res               248 drivers/video/backlight/lcd.c static void devm_lcd_device_release(struct device *dev, void *res)
res               250 drivers/video/backlight/lcd.c 	struct lcd_device *lcd = *(struct lcd_device **)res;
res               255 drivers/video/backlight/lcd.c static int devm_lcd_device_match(struct device *dev, void *res, void *data)
res               257 drivers/video/backlight/lcd.c 	struct lcd_device **r = res;
res               137 drivers/video/backlight/max8925_bl.c 	struct resource *res;
res               146 drivers/video/backlight/max8925_bl.c 	res = platform_get_resource(pdev, IORESOURCE_REG, 0);
res               147 drivers/video/backlight/max8925_bl.c 	if (!res) {
res               151 drivers/video/backlight/max8925_bl.c 	data->reg_mode_cntl = res->start;
res               152 drivers/video/backlight/max8925_bl.c 	res = platform_get_resource(pdev, IORESOURCE_REG, 1);
res               153 drivers/video/backlight/max8925_bl.c 	if (!res) {
res               157 drivers/video/backlight/max8925_bl.c 	data->reg_cntl = res->start;
res               466 drivers/video/fbdev/amba-clcd.c 	fb->fb.fix.mmio_start	= fb->dev->res.start;
res               467 drivers/video/fbdev/amba-clcd.c 	fb->fb.fix.mmio_len	= resource_size(&fb->dev->res);
res               910 drivers/video/fbdev/amba-clcd.c 		(unsigned long long)dev->res.start);
res               580 drivers/video/fbdev/amifb.c #define DIVUL(x1, x2) ({int res; asm("divul %1,%2,%3": "=d" (res): \
res               581 drivers/video/fbdev/amifb.c 	"d" (x2), "d" ((long)((x1) / 0x100000000ULL)), "0" ((long)(x1))); res;})
res                25 drivers/video/fbdev/aty/mach64_ct.c 	u8 res;
res                30 drivers/video/fbdev/aty/mach64_ct.c 	res = aty_ld_8(CLOCK_CNTL_DATA, par);
res                31 drivers/video/fbdev/aty/mach64_ct.c 	return res;
res               231 drivers/video/fbdev/broadsheetfb.c 	u16 res;
res               240 drivers/video/fbdev/broadsheetfb.c 	res = par->board->get_hdb(par);
res               246 drivers/video/fbdev/broadsheetfb.c 	return res;
res                78 drivers/video/fbdev/carminefb.c 	struct carmine_resolution *res;
res               258 drivers/video/fbdev/carminefb.c 	width = par->res->hdp * 4 / CARMINE_DISP_WIDTH_UNIT;
res               261 drivers/video/fbdev/carminefb.c 	height = par->res->vdp - 1;
res               274 drivers/video/fbdev/carminefb.c 	window_size = (par->res->vdp - 1) << CARMINE_DISP_WIN_H_SHIFT;
res               275 drivers/video/fbdev/carminefb.c 	window_size |= par->res->hdp;
res               377 drivers/video/fbdev/carminefb.c 	hdp = par->res->hdp - 1;
res               378 drivers/video/fbdev/carminefb.c 	vdp = par->res->vdp - 1;
res               379 drivers/video/fbdev/carminefb.c 	htp = par->res->htp - 1;
res               380 drivers/video/fbdev/carminefb.c 	hsp = par->res->hsp - 1;
res               381 drivers/video/fbdev/carminefb.c 	hsw = par->res->hsw - 1;
res               382 drivers/video/fbdev/carminefb.c 	vtr = par->res->vtr - 1;
res               383 drivers/video/fbdev/carminefb.c 	vsp = par->res->vsp - 1;
res               384 drivers/video/fbdev/carminefb.c 	vsw = par->res->vsw - 1;
res               402 drivers/video/fbdev/carminefb.c 		(par->res->disp_mode & CARMINE_DISP_DCM_MASK);
res               421 drivers/video/fbdev/carminefb.c 		par->res = &car_modes[par->new_mode];
res               215 drivers/video/fbdev/clps711x-fb.c 	struct resource *res;
res               229 drivers/video/fbdev/clps711x-fb.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               230 drivers/video/fbdev/clps711x-fb.c 	if (!res)
res               232 drivers/video/fbdev/clps711x-fb.c 	cfb->base = devm_ioremap(dev, res->start, resource_size(res));
res               238 drivers/video/fbdev/clps711x-fb.c 	info->fix.mmio_start = res->start;
res               239 drivers/video/fbdev/clps711x-fb.c 	info->fix.mmio_len = resource_size(res);
res               241 drivers/video/fbdev/clps711x-fb.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res               242 drivers/video/fbdev/clps711x-fb.c 	info->screen_base = devm_ioremap_resource(dev, res);
res               249 drivers/video/fbdev/clps711x-fb.c 	if (res->start & 0x0fffffff) {
res               260 drivers/video/fbdev/clps711x-fb.c 	cfb->buffsize = resource_size(res);
res               261 drivers/video/fbdev/clps711x-fb.c 	info->fix.smem_start = res->start;
res               283 drivers/video/fbdev/cobalt_lcdfb.c 	struct resource *res;
res               290 drivers/video/fbdev/cobalt_lcdfb.c 	res = platform_get_resource(dev, IORESOURCE_MEM, 0);
res               291 drivers/video/fbdev/cobalt_lcdfb.c 	if (!res) {
res               296 drivers/video/fbdev/cobalt_lcdfb.c 	info->screen_size = resource_size(res);
res               297 drivers/video/fbdev/cobalt_lcdfb.c 	info->screen_base = devm_ioremap(&dev->dev, res->start,
res               306 drivers/video/fbdev/cobalt_lcdfb.c 	info->fix.smem_start = res->start;
res                70 drivers/video/fbdev/controlfb.h 	struct preg res[5];
res              1345 drivers/video/fbdev/core/fbmem.c 		int res;
res              1352 drivers/video/fbdev/core/fbmem.c 		res = fb->fb_mmap(info, vma);
res              1354 drivers/video/fbdev/core/fbmem.c 		return res;
res              1394 drivers/video/fbdev/core/fbmem.c 	int res = 0;
res              1408 drivers/video/fbdev/core/fbmem.c 		res = -ENODEV;
res              1413 drivers/video/fbdev/core/fbmem.c 		res = info->fbops->fb_open(info,1);
res              1414 drivers/video/fbdev/core/fbmem.c 		if (res)
res              1423 drivers/video/fbdev/core/fbmem.c 	if (res)
res              1425 drivers/video/fbdev/core/fbmem.c 	return res;
res              1494 drivers/video/fbdev/core/fbmon.c 	struct resource *res = NULL;
res              1501 drivers/video/fbdev/core/fbmon.c 		res = &dev->resource[PCI_ROM_RESOURCE];
res              1503 drivers/video/fbdev/core/fbmon.c 	if (res && res->flags & IORESOURCE_ROM_SHADOW)
res               657 drivers/video/fbdev/efifb.c 		struct resource *res = &dev->resource[i];
res               659 drivers/video/fbdev/efifb.c 		if (!(res->flags & IORESOURCE_MEM))
res               662 drivers/video/fbdev/efifb.c 		if (res->start <= base && res->end >= base + size - 1) {
res               663 drivers/video/fbdev/efifb.c 			record_efifb_bar_resource(dev, i, base - res->start);
res               112 drivers/video/fbdev/ep93xx-fb.c 	struct resource			*res;
res               466 drivers/video/fbdev/ep93xx-fb.c 	struct resource *res;
res               490 drivers/video/fbdev/ep93xx-fb.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               491 drivers/video/fbdev/ep93xx-fb.c 	if (!res) {
res               505 drivers/video/fbdev/ep93xx-fb.c 	fbi->res = res;
res               506 drivers/video/fbdev/ep93xx-fb.c 	fbi->mmio_base = devm_ioremap(&pdev->dev, res->start,
res               507 drivers/video/fbdev/ep93xx-fb.c 				      resource_size(res));
res              1398 drivers/video/fbdev/fsl-diu-fb.c 	int res = 0;
res              1408 drivers/video/fbdev/fsl-diu-fb.c 		res = fsl_diu_set_par(info);
res              1409 drivers/video/fbdev/fsl-diu-fb.c 		if (res < 0)
res              1418 drivers/video/fbdev/fsl-diu-fb.c 	return res;
res              1426 drivers/video/fbdev/fsl-diu-fb.c 	int res = 0;
res              1448 drivers/video/fbdev/fsl-diu-fb.c 	return res;
res               852 drivers/video/fbdev/imxfb.c 	struct resource *res;
res               868 drivers/video/fbdev/imxfb.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               869 drivers/video/fbdev/imxfb.c 	if (!res)
res               929 drivers/video/fbdev/imxfb.c 	res = request_mem_region(res->start, resource_size(res),
res               931 drivers/video/fbdev/imxfb.c 	if (!res) {
res               969 drivers/video/fbdev/imxfb.c 	fbi->regs = ioremap(res->start, resource_size(res));
res              1054 drivers/video/fbdev/imxfb.c 	release_mem_region(res->start, resource_size(res));
res              1068 drivers/video/fbdev/imxfb.c 	struct resource *res;
res              1070 drivers/video/fbdev/imxfb.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1082 drivers/video/fbdev/imxfb.c 	release_mem_region(res->start, resource_size(res));
res              2274 drivers/video/fbdev/matrox/matroxfb_base.c 		int res = RSResolution(RSptr->info)-1;
res              2276 drivers/video/fbdev/matrox/matroxfb_base.c 			left = timmings[res].left;
res              2278 drivers/video/fbdev/matrox/matroxfb_base.c 			xres = timmings[res].xres;
res              2280 drivers/video/fbdev/matrox/matroxfb_base.c 			right = timmings[res].right;
res              2282 drivers/video/fbdev/matrox/matroxfb_base.c 			hslen = timmings[res].hslen;
res              2284 drivers/video/fbdev/matrox/matroxfb_base.c 			upper = timmings[res].upper;
res              2286 drivers/video/fbdev/matrox/matroxfb_base.c 			yres = timmings[res].yres;
res              2288 drivers/video/fbdev/matrox/matroxfb_base.c 			lower = timmings[res].lower;
res              2290 drivers/video/fbdev/matrox/matroxfb_base.c 			vslen = timmings[res].vslen;
res              2292 drivers/video/fbdev/matrox/matroxfb_base.c 			fv = timmings[res].vfreq;
res                54 drivers/video/fbdev/mb862xx/mb862xxfb.h 	struct resource		*res;		/* framebuffer/mmio resource */
res               673 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c 	struct resource res;
res               677 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c 	if (of_address_to_resource(np, 0, &res)) {
res               697 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c 	res_size = resource_size(&res);
res               698 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c 	par->res = request_mem_region(res.start, res_size, DRV_NAME);
res               699 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c 	if (par->res == NULL) {
res               709 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c 	par->fb_base_phys = res.start;
res               710 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c 	par->mmio_base_phys = res.start + MB862XX_MMIO_BASE;
res               774 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c 	release_mem_region(res.start, res_size);
res               786 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c 	resource_size_t res_size = resource_size(par->res);
res               810 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c 	release_mem_region(par->res->start, res_size);
res               608 drivers/video/fbdev/mbx/mbxfb.c 	int res;
res               618 drivers/video/fbdev/mbx/mbxfb.c 			res = mbxfb_setupOverlay(&setup);
res               619 drivers/video/fbdev/mbx/mbxfb.c 			if (res)
res               620 drivers/video/fbdev/mbx/mbxfb.c 				return res;
res               418 drivers/video/fbdev/metronomefb.c 	int res;
res               420 drivers/video/fbdev/metronomefb.c 	res = par->board->setup_io(par);
res               421 drivers/video/fbdev/metronomefb.c 	if (res)
res               422 drivers/video/fbdev/metronomefb.c 		return res;
res               424 drivers/video/fbdev/metronomefb.c 	res = metronome_powerup_cmd(par);
res               425 drivers/video/fbdev/metronomefb.c 	if (res)
res               426 drivers/video/fbdev/metronomefb.c 		return res;
res               428 drivers/video/fbdev/metronomefb.c 	res = metronome_config_cmd(par);
res               429 drivers/video/fbdev/metronomefb.c 	if (res)
res               430 drivers/video/fbdev/metronomefb.c 		return res;
res               432 drivers/video/fbdev/metronomefb.c 	res = metronome_init_cmd(par);
res               434 drivers/video/fbdev/metronomefb.c 	return res;
res               435 drivers/video/fbdev/mmp/hw/mmp_ctrl.c 	struct resource *res;
res               441 drivers/video/fbdev/mmp/hw/mmp_ctrl.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               442 drivers/video/fbdev/mmp/hw/mmp_ctrl.c 	if (res == NULL) {
res               480 drivers/video/fbdev/mmp/hw/mmp_ctrl.c 	if (!devm_request_mem_region(ctrl->dev, res->start,
res               481 drivers/video/fbdev/mmp/hw/mmp_ctrl.c 			resource_size(res), ctrl->name)) {
res               483 drivers/video/fbdev/mmp/hw/mmp_ctrl.c 			"can't request region for resource %pR\n", res);
res               489 drivers/video/fbdev/mmp/hw/mmp_ctrl.c 			res->start, resource_size(res));
res               491 drivers/video/fbdev/mmp/hw/mmp_ctrl.c 		dev_err(ctrl->dev, "%s: res %pR map failed\n", __func__, res);
res               972 drivers/video/fbdev/nvidia/nvidia.c 	struct resource *res= &par->pci_dev->resource[PCI_ROM_RESOURCE];
res               974 drivers/video/fbdev/nvidia/nvidia.c 	if (res && res->flags & IORESOURCE_ROM_SHADOW) {
res               984 drivers/video/fbdev/nvidia/nvidia.c 	struct resource *res= &par->pci_dev->resource[PCI_ROM_RESOURCE];
res               986 drivers/video/fbdev/nvidia/nvidia.c 	if (res && res->flags & IORESOURCE_ROM_SHADOW)
res               300 drivers/video/fbdev/ocfb.c 	struct resource *res;
res               323 drivers/video/fbdev/ocfb.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               324 drivers/video/fbdev/ocfb.c 	if (!res) {
res               328 drivers/video/fbdev/ocfb.c 	fbdev->regs = devm_ioremap_resource(&pdev->dev, res);
res              5264 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	struct resource *res;
res              5293 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	res = platform_get_resource_byname(dsidev, IORESOURCE_MEM, "proto");
res              5294 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	if (!res) {
res              5295 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		res = platform_get_resource(dsidev, IORESOURCE_MEM, 0);
res              5296 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		if (!res) {
res              5301 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		temp_res.start = res->start;
res              5303 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		res = &temp_res;
res              5306 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	dsi_mem = res;
res              5308 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	dsi->proto_base = devm_ioremap(&dsidev->dev, res->start,
res              5309 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		resource_size(res));
res              5315 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	res = platform_get_resource_byname(dsidev, IORESOURCE_MEM, "phy");
res              5316 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	if (!res) {
res              5317 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		res = platform_get_resource(dsidev, IORESOURCE_MEM, 0);
res              5318 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		if (!res) {
res              5323 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		temp_res.start = res->start + DSI_PHY_OFFSET;
res              5325 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		res = &temp_res;
res              5328 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	dsi->phy_base = devm_ioremap(&dsidev->dev, res->start,
res              5329 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		resource_size(res));
res              5335 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	res = platform_get_resource_byname(dsidev, IORESOURCE_MEM, "pll");
res              5336 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	if (!res) {
res              5337 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		res = platform_get_resource(dsidev, IORESOURCE_MEM, 0);
res              5338 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		if (!res) {
res              5343 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		temp_res.start = res->start + DSI_PLL_OFFSET;
res              5345 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		res = &temp_res;
res              5348 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	dsi->pll_base = devm_ioremap(&dsidev->dev, res->start,
res              5349 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		resource_size(res));
res               878 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	struct resource *res;
res               880 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "core");
res               881 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	if (!res) {
res               886 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	core->base = devm_ioremap_resource(&pdev->dev, res);
res               890 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c 	struct resource *res;
res               892 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "core");
res               893 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c 	if (!res) {
res               898 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c 	core->base = devm_ioremap_resource(&pdev->dev, res);
res               210 drivers/video/fbdev/omap2/omapfb/dss/hdmi_phy.c 	struct resource *res;
res               216 drivers/video/fbdev/omap2/omapfb/dss/hdmi_phy.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "phy");
res               217 drivers/video/fbdev/omap2/omapfb/dss/hdmi_phy.c 	if (!res) {
res               222 drivers/video/fbdev/omap2/omapfb/dss/hdmi_phy.c 	phy->base = devm_ioremap_resource(&pdev->dev, res);
res               223 drivers/video/fbdev/omap2/omapfb/dss/hdmi_pll.c 	struct resource *res;
res               227 drivers/video/fbdev/omap2/omapfb/dss/hdmi_pll.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "pll");
res               228 drivers/video/fbdev/omap2/omapfb/dss/hdmi_pll.c 	if (!res) {
res               233 drivers/video/fbdev/omap2/omapfb/dss/hdmi_pll.c 	pll->base = devm_ioremap_resource(&pdev->dev, res);
res               260 drivers/video/fbdev/omap2/omapfb/dss/hdmi_wp.c 	struct resource *res;
res               262 drivers/video/fbdev/omap2/omapfb/dss/hdmi_wp.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "wp");
res               263 drivers/video/fbdev/omap2/omapfb/dss/hdmi_wp.c 	if (!res) {
res               267 drivers/video/fbdev/omap2/omapfb/dss/hdmi_wp.c 	wp->phys_base = res->start;
res               269 drivers/video/fbdev/omap2/omapfb/dss/hdmi_wp.c 	wp->base = devm_ioremap_resource(&pdev->dev, res);
res               132 drivers/video/fbdev/omap2/omapfb/dss/video-pll.c 	struct resource *res;
res               141 drivers/video/fbdev/omap2/omapfb/dss/video-pll.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, reg_name[id]);
res               142 drivers/video/fbdev/omap2/omapfb/dss/video-pll.c 	if (!res) {
res               148 drivers/video/fbdev/omap2/omapfb/dss/video-pll.c 	pll_base = devm_ioremap_resource(&pdev->dev, res);
res               156 drivers/video/fbdev/omap2/omapfb/dss/video-pll.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
res               158 drivers/video/fbdev/omap2/omapfb/dss/video-pll.c 	if (!res) {
res               164 drivers/video/fbdev/omap2/omapfb/dss/video-pll.c 	clkctrl_base = devm_ioremap_resource(&pdev->dev, res);
res               848 drivers/video/fbdev/ps3fb.c 			struct ps3fb_ioctl_res res;
res               850 drivers/video/fbdev/ps3fb.c 			res.xres = info->fix.line_length / BPP;
res               851 drivers/video/fbdev/ps3fb.c 			res.yres = info->var.yres_virtual;
res               852 drivers/video/fbdev/ps3fb.c 			res.xoff = (res.xres - info->var.xres) / 2;
res               853 drivers/video/fbdev/ps3fb.c 			res.yoff = (res.yres - info->var.yres) / 2;
res               854 drivers/video/fbdev/ps3fb.c 			res.num_frames = par->num_frames;
res               855 drivers/video/fbdev/ps3fb.c 			if (!copy_to_user(argp, &res, sizeof(res)))
res               605 drivers/video/fbdev/pxa168fb.c 	struct resource *res;
res               621 drivers/video/fbdev/pxa168fb.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               622 drivers/video/fbdev/pxa168fb.c 	if (res == NULL) {
res               659 drivers/video/fbdev/pxa168fb.c 	info->fix.mmio_start = res->start;
res               660 drivers/video/fbdev/pxa168fb.c 	info->fix.mmio_len = resource_size(res);
res               668 drivers/video/fbdev/pxa168fb.c 	fbi->reg_base = devm_ioremap_nocache(&pdev->dev, res->start,
res               669 drivers/video/fbdev/pxa168fb.c 					     resource_size(res));
res              1171 drivers/video/fbdev/s3c-fb.c 			    struct s3c_fb_win **res)
res              1200 drivers/video/fbdev/s3c-fb.c 	*res = win;
res              1362 drivers/video/fbdev/s3c-fb.c 	struct resource *res;
res              1414 drivers/video/fbdev/s3c-fb.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1415 drivers/video/fbdev/s3c-fb.c 	sfb->regs = devm_ioremap_resource(dev, res);
res              1421 drivers/video/fbdev/s3c-fb.c 	res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
res              1422 drivers/video/fbdev/s3c-fb.c 	if (!res) {
res              1427 drivers/video/fbdev/s3c-fb.c 	sfb->irq_no = res->start;
res               829 drivers/video/fbdev/s3c2410fb.c 	struct resource *res;
res               867 drivers/video/fbdev/s3c2410fb.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               868 drivers/video/fbdev/s3c2410fb.c 	if (res == NULL) {
res               874 drivers/video/fbdev/s3c2410fb.c 	size = resource_size(res);
res               875 drivers/video/fbdev/s3c2410fb.c 	info->mem = request_mem_region(res->start, size, pdev->name);
res               882 drivers/video/fbdev/s3c2410fb.c 	info->io = ioremap(res->start, size);
res              1006 drivers/video/fbdev/s3c2410fb.c 	release_mem_region(res->start, size);
res              1159 drivers/video/fbdev/sa1100fb.c 	struct resource *res;
res              1175 drivers/video/fbdev/sa1100fb.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1176 drivers/video/fbdev/sa1100fb.c 	fbi->base = devm_ioremap_resource(&pdev->dev, res);
res               434 drivers/video/fbdev/sh7760fb.c 	struct resource *res;
res               438 drivers/video/fbdev/sh7760fb.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               439 drivers/video/fbdev/sh7760fb.c 	if (unlikely(res == NULL)) {
res               458 drivers/video/fbdev/sh7760fb.c 	par->ioarea = request_mem_region(res->start,
res               459 drivers/video/fbdev/sh7760fb.c 					 resource_size(res), pdev->name);
res               466 drivers/video/fbdev/sh7760fb.c 	par->base = ioremap_nocache(res->start, resource_size(res));
res               551 drivers/video/fbdev/sh7760fb.c 	release_mem_region(res->start, resource_size(res));
res              2512 drivers/video/fbdev/sh_mobile_lcdcfb.c 	struct resource *res;
res              2522 drivers/video/fbdev/sh_mobile_lcdcfb.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              2524 drivers/video/fbdev/sh_mobile_lcdcfb.c 	if (!res || irq < 0) {
res              2591 drivers/video/fbdev/sh_mobile_lcdcfb.c 	priv->base = ioremap_nocache(res->start, resource_size(res));
res              1526 drivers/video/fbdev/sm501fb.c 	struct resource	*res;
res              1539 drivers/video/fbdev/sm501fb.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1540 drivers/video/fbdev/sm501fb.c 	if (res == NULL) {
res              1546 drivers/video/fbdev/sm501fb.c 	info->regs_res = request_mem_region(res->start,
res              1547 drivers/video/fbdev/sm501fb.c 					    resource_size(res),
res              1556 drivers/video/fbdev/sm501fb.c 	info->regs = ioremap(res->start, resource_size(res));
res              1565 drivers/video/fbdev/sm501fb.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res              1566 drivers/video/fbdev/sm501fb.c 	if (res == NULL) {
res              1572 drivers/video/fbdev/sm501fb.c 	info->regs2d_res = request_mem_region(res->start,
res              1573 drivers/video/fbdev/sm501fb.c 					      resource_size(res),
res              1582 drivers/video/fbdev/sm501fb.c 	info->regs2d = ioremap(res->start, resource_size(res));
res              1590 drivers/video/fbdev/sm501fb.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 2);
res              1591 drivers/video/fbdev/sm501fb.c 	if (res == NULL) {
res              1597 drivers/video/fbdev/sm501fb.c 	info->fbmem_res = request_mem_region(res->start,
res              1598 drivers/video/fbdev/sm501fb.c 					     resource_size(res),
res              1606 drivers/video/fbdev/sm501fb.c 	info->fbmem = ioremap(res->start, resource_size(res));
res              1613 drivers/video/fbdev/sm501fb.c 	info->fbmem_len = resource_size(res);
res              1509 drivers/video/fbdev/via/viafbdev.c 	ssize_t res;
res              1512 drivers/video/fbdev/via/viafbdev.c 	res = odev_update(buffer, count, &dev_new);
res              1513 drivers/video/fbdev/via/viafbdev.c 	if (res != count)
res              1514 drivers/video/fbdev/via/viafbdev.c 		return res;
res              1522 drivers/video/fbdev/via/viafbdev.c 	return res;
res              1549 drivers/video/fbdev/via/viafbdev.c 	ssize_t res;
res              1552 drivers/video/fbdev/via/viafbdev.c 	res = odev_update(buffer, count, &dev_new);
res              1553 drivers/video/fbdev/via/viafbdev.c 	if (res != count)
res              1554 drivers/video/fbdev/via/viafbdev.c 		return res;
res              1562 drivers/video/fbdev/via/viafbdev.c 	return res;
res               269 drivers/video/fbdev/vt8500lcdfb.c 	struct resource *res;
res               315 drivers/video/fbdev/vt8500lcdfb.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               316 drivers/video/fbdev/vt8500lcdfb.c 	if (res == NULL) {
res               321 drivers/video/fbdev/vt8500lcdfb.c 	res = request_mem_region(res->start, resource_size(res), "vt8500lcd");
res               322 drivers/video/fbdev/vt8500lcdfb.c 	if (res == NULL) {
res               327 drivers/video/fbdev/vt8500lcdfb.c 	fbi->regbase = ioremap(res->start, resource_size(res));
res               438 drivers/video/fbdev/vt8500lcdfb.c 	release_mem_region(res->start, resource_size(res));
res               445 drivers/video/fbdev/vt8500lcdfb.c 	struct resource *res;
res               463 drivers/video/fbdev/vt8500lcdfb.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               464 drivers/video/fbdev/vt8500lcdfb.c 	release_mem_region(res->start, resource_size(res));
res               264 drivers/video/fbdev/wm8505fb.c 	struct resource	*res;
res               302 drivers/video/fbdev/wm8505fb.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               303 drivers/video/fbdev/wm8505fb.c 	fbi->regbase = devm_ioremap_resource(&pdev->dev, res);
res               121 drivers/video/fbdev/wmt_ge_rops.c 	struct resource *res;
res               123 drivers/video/fbdev/wmt_ge_rops.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               124 drivers/video/fbdev/wmt_ge_rops.c 	if (res == NULL) {
res               135 drivers/video/fbdev/wmt_ge_rops.c 	regbase = ioremap(res->start, resource_size(res));
res               273 drivers/video/fbdev/xen-fbfront.c 	ssize_t res;
res               275 drivers/video/fbdev/xen-fbfront.c 	res = fb_sys_write(p, buf, count, ppos);
res               277 drivers/video/fbdev/xen-fbfront.c 	return res;
res               272 drivers/video/fbdev/xilinxfb.c 		struct resource *res;
res               274 drivers/video/fbdev/xilinxfb.c 		res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               275 drivers/video/fbdev/xilinxfb.c 		drvdata->regs = devm_ioremap_resource(&pdev->dev, res);
res               279 drivers/video/fbdev/xilinxfb.c 		drvdata->regs_phys = res->start;
res               162 drivers/virtio/virtio_input.c 	virtio_cread(vi->vdev, struct virtio_input_config, u.abs.res, &re);
res               315 drivers/visorbus/visorchipset.c 	int res = 0;
res               319 drivers/visorbus/visorchipset.c 		res = -EIO;
res               334 drivers/visorbus/visorchipset.c 		res = controlvm_respond_chipset_init(&inmsg->hdr, rc, features);
res               336 drivers/visorbus/visorchipset.c 	return res;
res              1114 drivers/visorbus/visorchipset.c 	int res;
res              1116 drivers/visorbus/visorchipset.c 	res = kobject_uevent(&chipset_dev->acpi_device->dev.kobj, KOBJ_ONLINE);
res              1118 drivers/visorbus/visorchipset.c 		controlvm_respond(msg_hdr, res, NULL);
res              1119 drivers/visorbus/visorchipset.c 	return res;
res              1133 drivers/visorbus/visorchipset.c 	int res;
res              1136 drivers/visorbus/visorchipset.c 	res = kobject_uevent_env(&chipset_dev->acpi_device->dev.kobj,
res              1139 drivers/visorbus/visorchipset.c 		controlvm_respond(msg_hdr, res, NULL);
res              1140 drivers/visorbus/visorchipset.c 	return res;
res              1152 drivers/visorbus/visorchipset.c 	int res = kobject_uevent(&chipset_dev->acpi_device->dev.kobj,
res              1156 drivers/visorbus/visorchipset.c 		controlvm_respond(msg_hdr, res, NULL);
res              1157 drivers/visorbus/visorchipset.c 	return res;
res               776 drivers/vlynq/vlynq.c 	int res = 0;
res               778 drivers/vlynq/vlynq.c 	res = bus_register(&vlynq_bus_type);
res               779 drivers/vlynq/vlynq.c 	if (res)
res               782 drivers/vlynq/vlynq.c 	res = platform_driver_register(&vlynq_platform_driver);
res               783 drivers/vlynq/vlynq.c 	if (res)
res               791 drivers/vlynq/vlynq.c 	return res;
res               510 drivers/w1/masters/ds1wm.c 	struct resource *res;
res               523 drivers/w1/masters/ds1wm.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               524 drivers/w1/masters/ds1wm.c 	if (!res)
res               526 drivers/w1/masters/ds1wm.c 	ds1wm_data->map = devm_ioremap(&pdev->dev, res->start,
res               527 drivers/w1/masters/ds1wm.c 				       resource_size(res));
res               549 drivers/w1/masters/ds1wm.c 	if ((8 << ds1wm_data->bus_shift) > resource_size(res)) {
res               552 drivers/w1/masters/ds1wm.c 			(int)resource_size(res),
res               559 drivers/w1/masters/ds1wm.c 	res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
res               560 drivers/w1/masters/ds1wm.c 	if (!res)
res               562 drivers/w1/masters/ds1wm.c 	ds1wm_data->irq = res->start;
res               571 drivers/w1/masters/ds1wm.c 	if (res->flags & IORESOURCE_IRQ_HIGHEDGE)
res               573 drivers/w1/masters/ds1wm.c 	if (res->flags & IORESOURCE_IRQ_LOWEDGE)
res               575 drivers/w1/masters/ds1wm.c 	if (res->flags & IORESOURCE_IRQ_HIGHLEVEL)
res               577 drivers/w1/masters/ds1wm.c 	if (res->flags & IORESOURCE_IRQ_LOWLEVEL)
res                80 drivers/w1/masters/sgi_w1.c 	struct resource *res;
res                87 drivers/w1/masters/sgi_w1.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res                88 drivers/w1/masters/sgi_w1.c 	sdev->mcr = devm_ioremap_resource(&pdev->dev, res);
res               293 drivers/w1/slaves/w1_ds2408.c 	int res;
res               302 drivers/w1/slaves/w1_ds2408.c 	res = w1_reset_bus(sl->master);
res               303 drivers/w1/slaves/w1_ds2408.c 	if (res)
res               307 drivers/w1/slaves/w1_ds2408.c 	res = w1_reset_bus(sl->master);
res               310 drivers/w1/slaves/w1_ds2408.c 	return res;
res               232 drivers/w1/w1_io.c 	u8 res = 0;
res               235 drivers/w1/w1_io.c 		res = dev->bus_master->read_byte(dev->bus_master->data);
res               238 drivers/w1/w1_io.c 			res |= (w1_touch_bit(dev,1) << i);
res               240 drivers/w1/w1_io.c 	return res;
res                73 drivers/w1/w1_netlink.h 			__u32		res;
res               123 drivers/w1/w1_netlink.h 	__u8				res;
res               159 drivers/watchdog/armada_37xx_wdt.c 	u64 res;
res               161 drivers/watchdog/armada_37xx_wdt.c 	res = get_counter_value(dev, CNTR_ID_WDOG) * CNTR_CTRL_PRESCALE_MIN;
res               162 drivers/watchdog/armada_37xx_wdt.c 	do_div(res, dev->clk_rate);
res               164 drivers/watchdog/armada_37xx_wdt.c 	return res;
res               255 drivers/watchdog/armada_37xx_wdt.c 	struct resource *res;
res               273 drivers/watchdog/armada_37xx_wdt.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               274 drivers/watchdog/armada_37xx_wdt.c 	if (!res)
res               276 drivers/watchdog/armada_37xx_wdt.c 	dev->reg = devm_ioremap(&pdev->dev, res->start, resource_size(res));
res               231 drivers/watchdog/at91rm9200_wdt.c 	int res;
res               247 drivers/watchdog/at91rm9200_wdt.c 	res = misc_register(&at91wdt_miscdev);
res               248 drivers/watchdog/at91rm9200_wdt.c 	if (res)
res               249 drivers/watchdog/at91rm9200_wdt.c 		return res;
res               251 drivers/watchdog/at91rm9200_wdt.c 	res = register_restart_handler(&at91rm9200_restart_nb);
res               252 drivers/watchdog/at91rm9200_wdt.c 	if (res)
res               263 drivers/watchdog/at91rm9200_wdt.c 	int res;
res               265 drivers/watchdog/at91rm9200_wdt.c 	res = unregister_restart_handler(&at91rm9200_restart_nb);
res               266 drivers/watchdog/at91rm9200_wdt.c 	if (res)
res               272 drivers/watchdog/at91rm9200_wdt.c 	return res;
res               112 drivers/watchdog/bcm_kona_wdt.c 		int ctl, cur, ctl_sec, cur_sec, res;
res               115 drivers/watchdog/bcm_kona_wdt.c 		res = (ctl_val & SECWDOG_RES_MASK) >> SECWDOG_CLKS_SHIFT;
res               124 drivers/watchdog/bcm_kona_wdt.c 			   res, wdt->resolution,
res               278 drivers/watchdog/ib700wdt.c 	int res;
res               283 drivers/watchdog/ib700wdt.c 		res = -EIO;
res               290 drivers/watchdog/ib700wdt.c 		res = -EIO;
res               301 drivers/watchdog/ib700wdt.c 	res = misc_register(&ibwdt_miscdev);
res               302 drivers/watchdog/ib700wdt.c 	if (res) {
res               315 drivers/watchdog/ib700wdt.c 	return res;
res               226 drivers/watchdog/ie6xx_wdt.c 	struct resource *res;
res               230 drivers/watchdog/ie6xx_wdt.c 	res = platform_get_resource(pdev, IORESOURCE_IO, 0);
res               231 drivers/watchdog/ie6xx_wdt.c 	if (!res)
res               234 drivers/watchdog/ie6xx_wdt.c 	if (!request_region(res->start, resource_size(res), pdev->name)) {
res               236 drivers/watchdog/ie6xx_wdt.c 			(u64)res->start);
res               240 drivers/watchdog/ie6xx_wdt.c 	ie6xx_wdt_data.sch_wdtba = res->start;
res               264 drivers/watchdog/ie6xx_wdt.c 	release_region(res->start, resource_size(res));
res               271 drivers/watchdog/ie6xx_wdt.c 	struct resource *res;
res               273 drivers/watchdog/ie6xx_wdt.c 	res = platform_get_resource(pdev, IORESOURCE_IO, 0);
res               277 drivers/watchdog/ie6xx_wdt.c 	release_region(res->start, resource_size(res));
res                52 drivers/watchdog/imx_sc_wdt.c 	struct arm_smccc_res res;
res                55 drivers/watchdog/imx_sc_wdt.c 		      0, 0, 0, 0, 0, 0, &res);
res                62 drivers/watchdog/imx_sc_wdt.c 	struct arm_smccc_res res;
res                65 drivers/watchdog/imx_sc_wdt.c 		      0, 0, 0, 0, 0, 0, &res);
res                66 drivers/watchdog/imx_sc_wdt.c 	if (res.a0)
res                71 drivers/watchdog/imx_sc_wdt.c 		      0, 0, 0, 0, 0, &res);
res                72 drivers/watchdog/imx_sc_wdt.c 	return res.a0 ? -EACCES : 0;
res                77 drivers/watchdog/imx_sc_wdt.c 	struct arm_smccc_res res;
res                80 drivers/watchdog/imx_sc_wdt.c 		      0, 0, 0, 0, 0, 0, &res);
res                82 drivers/watchdog/imx_sc_wdt.c 	return res.a0 ? -EACCES : 0;
res                88 drivers/watchdog/imx_sc_wdt.c 	struct arm_smccc_res res;
res                92 drivers/watchdog/imx_sc_wdt.c 		      timeout * 1000, 0, 0, 0, 0, 0, &res);
res                94 drivers/watchdog/imx_sc_wdt.c 	return res.a0 ? -EACCES : 0;
res               100 drivers/watchdog/imx_sc_wdt.c 	struct arm_smccc_res res;
res               109 drivers/watchdog/imx_sc_wdt.c 		      0, 0, &res);
res               110 drivers/watchdog/imx_sc_wdt.c 	if (res.a0)
res               412 drivers/watchdog/mei_wdt.c 	struct mei_wdt_start_response res;
res               413 drivers/watchdog/mei_wdt.c 	const size_t res_len = sizeof(res);
res               416 drivers/watchdog/mei_wdt.c 	ret = mei_cldev_recv(wdt->cldev, (u8 *)&res, res_len);
res               431 drivers/watchdog/mei_wdt.c 	if (res.hdr.command != MEI_MANAGEMENT_CONTROL ||
res               432 drivers/watchdog/mei_wdt.c 	    res.hdr.versionnumber != MEI_MC_VERSION_NUMBER) {
res               437 drivers/watchdog/mei_wdt.c 	if (res.hdr.subcommand != MEI_MC_START_WD_TIMER_RES) {
res               439 drivers/watchdog/mei_wdt.c 			 res.hdr.subcommand,
res               450 drivers/watchdog/mei_wdt.c 		if (res.wdstate & MEI_WDT_WDSTATE_NOT_REQUIRED) {
res               458 drivers/watchdog/mei_wdt.c 		if (res.wdstate & MEI_WDT_WDSTATE_NOT_REQUIRED) {
res               130 drivers/watchdog/mpc8xxx_wdt.c 	struct resource *res;
res               158 drivers/watchdog/mpc8xxx_wdt.c 	res = platform_get_resource(ofdev, IORESOURCE_MEM, 1);
res               159 drivers/watchdog/mpc8xxx_wdt.c 	if (res) {
res               161 drivers/watchdog/mpc8xxx_wdt.c 		u32 __iomem *rsr = ioremap(res->start, resource_size(res));
res               131 drivers/watchdog/ni903x_wdt.c static acpi_status ni903x_resources(struct acpi_resource *res, void *data)
res               136 drivers/watchdog/ni903x_wdt.c 	switch (res->type) {
res               143 drivers/watchdog/ni903x_wdt.c 		wdt->io_base = res->data.io.minimum;
res               144 drivers/watchdog/ni903x_wdt.c 		io_size = res->data.io.address_length;
res               407 drivers/watchdog/orion_wdt.c 	struct resource *res;
res               410 drivers/watchdog/orion_wdt.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
res               411 drivers/watchdog/orion_wdt.c 	if (res)
res               412 drivers/watchdog/orion_wdt.c 		return devm_ioremap(&pdev->dev, res->start,
res               413 drivers/watchdog/orion_wdt.c 				    resource_size(res));
res               502 drivers/watchdog/orion_wdt.c 	struct resource *res;
res               504 drivers/watchdog/orion_wdt.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               505 drivers/watchdog/orion_wdt.c 	if (!res)
res               507 drivers/watchdog/orion_wdt.c 	dev->reg = devm_ioremap(&pdev->dev, res->start,
res               508 drivers/watchdog/orion_wdt.c 				resource_size(res));
res               515 drivers/watchdog/orion_wdt.c 		dev->rstout = orion_wdt_ioremap_rstout(pdev, res->start &
res               536 drivers/watchdog/orion_wdt.c 		res = platform_get_resource(pdev, IORESOURCE_MEM, 2);
res               537 drivers/watchdog/orion_wdt.c 		if (!res)
res               539 drivers/watchdog/orion_wdt.c 		dev->rstout_mask = devm_ioremap(&pdev->dev, res->start,
res               540 drivers/watchdog/orion_wdt.c 						resource_size(res));
res               186 drivers/watchdog/qcom-wdt.c 	struct resource *res;
res               203 drivers/watchdog/qcom-wdt.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               204 drivers/watchdog/qcom-wdt.c 	if (!res)
res               211 drivers/watchdog/qcom-wdt.c 	res->start += percpu_offset;
res               212 drivers/watchdog/qcom-wdt.c 	res->end += percpu_offset;
res               214 drivers/watchdog/qcom-wdt.c 	wdt->base = devm_ioremap_resource(dev, res);
res               327 drivers/watchdog/sbc8360.c 	int res;
res               332 drivers/watchdog/sbc8360.c 		res = -EINVAL;
res               339 drivers/watchdog/sbc8360.c 		res = -EIO;
res               345 drivers/watchdog/sbc8360.c 		res = -EIO;
res               349 drivers/watchdog/sbc8360.c 	res = register_reboot_notifier(&sbc8360_notifier);
res               350 drivers/watchdog/sbc8360.c 	if (res) {
res               355 drivers/watchdog/sbc8360.c 	res = misc_register(&sbc8360_miscdev);
res               356 drivers/watchdog/sbc8360.c 	if (res) {
res               385 drivers/watchdog/sbc8360.c 	return res;
res               242 drivers/watchdog/sp805_wdt.c 	wdt->base = devm_ioremap_resource(&adev->dev, &adev->res);
res                75 drivers/watchdog/tqmx86_wdt.c 	struct resource *res;
res                82 drivers/watchdog/tqmx86_wdt.c 	res = platform_get_resource(pdev, IORESOURCE_IO, 0);
res                83 drivers/watchdog/tqmx86_wdt.c 	if (!res)
res                86 drivers/watchdog/tqmx86_wdt.c 	priv->io_base = devm_ioport_map(dev, res->start, resource_size(res));
res               351 drivers/watchdog/watchdog_core.c static void devm_watchdog_unregister_device(struct device *dev, void *res)
res               353 drivers/watchdog/watchdog_core.c 	watchdog_unregister_device(*(struct watchdog_device **)res);
res               319 drivers/watchdog/wdat_wdt.c 	struct resource *res;
res               356 drivers/watchdog/wdat_wdt.c 		res = &pdev->resource[i];
res               357 drivers/watchdog/wdat_wdt.c 		if (resource_type(res) == IORESOURCE_MEM) {
res               358 drivers/watchdog/wdat_wdt.c 			reg = devm_ioremap_resource(dev, res);
res               361 drivers/watchdog/wdat_wdt.c 		} else if (resource_type(res) == IORESOURCE_IO) {
res               362 drivers/watchdog/wdat_wdt.c 			reg = devm_ioport_map(dev, res->start, 1);
res               412 drivers/watchdog/wdat_wdt.c 			res = &pdev->resource[j];
res               413 drivers/watchdog/wdat_wdt.c 			if (resource_contains(res, &r)) {
res               414 drivers/watchdog/wdat_wdt.c 				instr->reg = regs[j] + r.start - res->start;
res               157 drivers/xen/arm-device.c 		r = xen_map_device_mmio(&adev->res, 1);
res               160 drivers/xen/arm-device.c 		r = xen_unmap_device_mmio(&adev->res, 1);
res               251 drivers/xen/balloon.c 	struct resource *res;
res               254 drivers/xen/balloon.c 	res = kzalloc(sizeof(*res), GFP_KERNEL);
res               255 drivers/xen/balloon.c 	if (!res)
res               258 drivers/xen/balloon.c 	res->name = "System RAM";
res               259 drivers/xen/balloon.c 	res->flags = IORESOURCE_SYSTEM_RAM | IORESOURCE_BUSY;
res               261 drivers/xen/balloon.c 	ret = allocate_resource(&iomem_resource, res,
res               266 drivers/xen/balloon.c 		kfree(res);
res               273 drivers/xen/balloon.c 		unsigned long pfn = res->start >> PAGE_SHIFT;
res               278 drivers/xen/balloon.c 			release_memory_resource(res);
res               284 drivers/xen/balloon.c 	return res;
res                55 drivers/xen/time.c 			      struct vcpu_runstate_info *res, unsigned int cpu)
res                67 drivers/xen/time.c 		*res = READ_ONCE(*state);
res                73 drivers/xen/time.c static void xen_get_runstate_snapshot_cpu(struct vcpu_runstate_info *res,
res                78 drivers/xen/time.c 	xen_get_runstate_snapshot_cpu_delta(res, cpu);
res                81 drivers/xen/time.c 		res->time[i] += per_cpu(old_runstate_time, cpu)[i];
res               141 drivers/xen/time.c void xen_get_runstate_snapshot(struct vcpu_runstate_info *res)
res               143 drivers/xen/time.c 	xen_get_runstate_snapshot_cpu(res, smp_processor_id());
res               174 drivers/xen/xen-pciback/conf_space_header.c 	const struct resource *res = dev->resource;
res               186 drivers/xen/xen-pciback/conf_space_header.c 	if (res[pos].flags & IORESOURCE_IO)
res               188 drivers/xen/xen-pciback/conf_space_header.c 	else if (pos && (res[pos - 1].flags & IORESOURCE_MEM_64))
res               225 drivers/xen/xen-pciback/conf_space_header.c 	const struct resource *res = dev->resource;
res               235 drivers/xen/xen-pciback/conf_space_header.c 		if (pos && (res[pos - 1].flags & IORESOURCE_MEM_64)) {
res               236 drivers/xen/xen-pciback/conf_space_header.c 			bar->val = res[pos - 1].start >> 32;
res               237 drivers/xen/xen-pciback/conf_space_header.c 			bar->len_val = -resource_size(&res[pos - 1]) >> 32;
res               242 drivers/xen/xen-pciback/conf_space_header.c 	if (!res[pos].flags ||
res               243 drivers/xen/xen-pciback/conf_space_header.c 	    (res[pos].flags & (IORESOURCE_DISABLED | IORESOURCE_UNSET |
res               247 drivers/xen/xen-pciback/conf_space_header.c 	bar->val = res[pos].start |
res               248 drivers/xen/xen-pciback/conf_space_header.c 		   (res[pos].flags & PCI_REGION_FLAG_MASK);
res               249 drivers/xen/xen-pciback/conf_space_header.c 	bar->len_val = -resource_size(&res[pos]) |
res               250 drivers/xen/xen-pciback/conf_space_header.c 		       (res[pos].flags & PCI_REGION_FLAG_MASK);
res               697 drivers/xen/xen-pciback/pci_stub.c 	pci_ers_result_t res = result;
res               748 drivers/xen/xen-pciback/pci_stub.c 			return res;
res               760 drivers/xen/xen-pciback/pci_stub.c 	res = (pci_ers_result_t)aer_op->err;
res               761 drivers/xen/xen-pciback/pci_stub.c 	return res;
res               118 fs/9p/vfs_file.c 	int res = 0;
res               132 fs/9p/vfs_file.c 	return res;
res               140 fs/9p/vfs_file.c 	int res = 0;
res               150 fs/9p/vfs_file.c 	res = locks_lock_file_wait(filp, fl);
res               151 fs/9p/vfs_file.c 	if (res < 0)
res               185 fs/9p/vfs_file.c 		res = p9_client_lock_dotl(fid, &flock, &status);
res               186 fs/9p/vfs_file.c 		if (res < 0)
res               209 fs/9p/vfs_file.c 		res = 0;
res               212 fs/9p/vfs_file.c 		res = -EAGAIN;
res               219 fs/9p/vfs_file.c 		res = -ENOLCK;
res               228 fs/9p/vfs_file.c 	if (res < 0 && fl->fl_type != F_UNLCK) {
res               238 fs/9p/vfs_file.c 	return res;
res               245 fs/9p/vfs_file.c 	int res = 0;
res               256 fs/9p/vfs_file.c 		return res;
res               269 fs/9p/vfs_file.c 	res = p9_client_getlock_dotl(fid, &glock);
res               270 fs/9p/vfs_file.c 	if (res < 0)
res               295 fs/9p/vfs_file.c 	return res;
res                51 fs/9p/vfs_inode.c 	int res;
res                52 fs/9p/vfs_inode.c 	res = mode & 0777;
res                54 fs/9p/vfs_inode.c 		res |= P9_DMDIR;
res                58 fs/9p/vfs_inode.c 				res |= P9_DMSOCKET;
res                60 fs/9p/vfs_inode.c 				res |= P9_DMNAMEDPIPE;
res                62 fs/9p/vfs_inode.c 				res |= P9_DMDEVICE;
res                64 fs/9p/vfs_inode.c 				res |= P9_DMDEVICE;
res                68 fs/9p/vfs_inode.c 			res |= P9_DMSETUID;
res                70 fs/9p/vfs_inode.c 			res |= P9_DMSETGID;
res                72 fs/9p/vfs_inode.c 			res |= P9_DMSETVTX;
res                74 fs/9p/vfs_inode.c 	return res;
res                86 fs/9p/vfs_inode.c 	int res;
res                89 fs/9p/vfs_inode.c 	res = mode & S_IALLUGO;
res                92 fs/9p/vfs_inode.c 			res |= S_ISUID;
res                95 fs/9p/vfs_inode.c 			res |= S_ISGID;
res                98 fs/9p/vfs_inode.c 			res |= S_ISVTX;
res               100 fs/9p/vfs_inode.c 	return res;
res               113 fs/9p/vfs_inode.c 	int res;
res               117 fs/9p/vfs_inode.c 	res = p9mode2perm(v9ses, stat);
res               120 fs/9p/vfs_inode.c 		res |= S_IFDIR;
res               122 fs/9p/vfs_inode.c 		res |= S_IFLNK;
res               125 fs/9p/vfs_inode.c 		res |= S_IFSOCK;
res               128 fs/9p/vfs_inode.c 		res |= S_IFIFO;
res               138 fs/9p/vfs_inode.c 			res |= S_IFCHR;
res               141 fs/9p/vfs_inode.c 			res |= S_IFBLK;
res               149 fs/9p/vfs_inode.c 		res |= S_IFREG;
res               151 fs/9p/vfs_inode.c 	return res;
res               787 fs/9p/vfs_inode.c 	struct dentry *res;
res               827 fs/9p/vfs_inode.c 	res = d_splice_alias(inode, dentry);
res               829 fs/9p/vfs_inode.c 		if (!res)
res               831 fs/9p/vfs_inode.c 		else if (!IS_ERR(res))
res               832 fs/9p/vfs_inode.c 			v9fs_fid_add(res, fid);
res               836 fs/9p/vfs_inode.c 	return res;
res               848 fs/9p/vfs_inode.c 	struct dentry *res = NULL;
res               851 fs/9p/vfs_inode.c 		res = v9fs_vfs_lookup(dir, dentry, 0);
res               852 fs/9p/vfs_inode.c 		if (IS_ERR(res))
res               853 fs/9p/vfs_inode.c 			return PTR_ERR(res);
res               855 fs/9p/vfs_inode.c 		if (res)
res               856 fs/9p/vfs_inode.c 			dentry = res;
res               861 fs/9p/vfs_inode.c 		return finish_no_open(file, res);
res               908 fs/9p/vfs_inode.c 	dput(res);
res              1241 fs/9p/vfs_inode.c 	char *res;
res              1265 fs/9p/vfs_inode.c 	res = st->extension;
res              1267 fs/9p/vfs_inode.c 	if (strlen(res) >= PATH_MAX)
res              1268 fs/9p/vfs_inode.c 		res[PATH_MAX - 1] = '\0';
res              1272 fs/9p/vfs_inode.c 	set_delayed_call(done, kfree_link, res);
res              1273 fs/9p/vfs_inode.c 	return res;
res               242 fs/9p/vfs_inode_dotl.c 	struct dentry *res = NULL;
res               245 fs/9p/vfs_inode_dotl.c 		res = v9fs_vfs_lookup(dir, dentry, 0);
res               246 fs/9p/vfs_inode_dotl.c 		if (IS_ERR(res))
res               247 fs/9p/vfs_inode_dotl.c 			return PTR_ERR(res);
res               249 fs/9p/vfs_inode_dotl.c 		if (res)
res               250 fs/9p/vfs_inode_dotl.c 			dentry = res;
res               255 fs/9p/vfs_inode_dotl.c 		return	finish_no_open(file, res);
res               348 fs/9p/vfs_inode_dotl.c 	dput(res);
res               242 fs/9p/vfs_super.c 	int res;
res               246 fs/9p/vfs_super.c 		res = PTR_ERR(fid);
res               252 fs/9p/vfs_super.c 		res = p9_client_statfs(fid, &rs);
res               253 fs/9p/vfs_super.c 		if (res == 0) {
res               265 fs/9p/vfs_super.c 		if (res != -ENOSYS)
res               268 fs/9p/vfs_super.c 	res = simple_statfs(dentry, buf);
res               270 fs/9p/vfs_super.c 	return res;
res               250 fs/affs/bitmap.c 	int i, res = 0;
res               285 fs/affs/bitmap.c 			res = -EIO;
res               307 fs/affs/bitmap.c 			res = -EIO;
res               350 fs/affs/bitmap.c 	return res;
res               859 fs/affs/file.c 		int res;
res               861 fs/affs/file.c 		res = mapping->a_ops->write_begin(NULL, mapping, isize, 0, 0, &page, &fsdata);
res               862 fs/affs/file.c 		if (!res)
res               863 fs/affs/file.c 			res = mapping->a_ops->write_end(NULL, mapping, isize, 0, 0, page, fsdata);
res               204 fs/affs/namei.c 	struct dentry *res;
res               228 fs/affs/namei.c 	res = d_splice_alias(inode, dentry);
res               229 fs/affs/namei.c 	if (!IS_ERR_OR_NULL(res))
res               230 fs/affs/namei.c 		res->d_fsdata = dentry->d_fsdata;
res               232 fs/affs/namei.c 	return res;
res               563 fs/affs/super.c 	int			 res = 0;
res               601 fs/affs/super.c 		res = affs_init_bitmap(sb, flags);
res               603 fs/affs/super.c 	return res;
res               333 fs/aio.c       	int i, res = -EINVAL;
res               345 fs/aio.c       				res = 0;
res               353 fs/aio.c       	return res;
res              1120 fs/aio.c       		 iocb->ki_res.data, iocb->ki_res.res, iocb->ki_res.res2);
res              1422 fs/aio.c       static void aio_complete_rw(struct kiocb *kiocb, long res, long res2)
res              1441 fs/aio.c       	iocb->ki_res.res = res;
res              1595 fs/aio.c       	iocb->ki_res.res = vfs_fsync(iocb->fsync.file, iocb->fsync.datasync);
res              1654 fs/aio.c       	iocb->ki_res.res = mangle_poll(mask);
res              1702 fs/aio.c       		iocb->ki_res.res = mangle_poll(mask);
res              1793 fs/aio.c       		aiocb->ki_res.res = mangle_poll(mask);
res              1832 fs/aio.c       	req->ki_res.res = 0;
res                82 fs/autofs/dev-ioctl.c 	struct autofs_dev_ioctl tmp, *res;
res                93 fs/autofs/dev-ioctl.c 	res = memdup_user(in, tmp.size);
res                94 fs/autofs/dev-ioctl.c 	if (!IS_ERR(res))
res                95 fs/autofs/dev-ioctl.c 		res->size = tmp.size;
res                97 fs/autofs/dev-ioctl.c 	return res;
res               182 fs/autofs/dev-ioctl.c 			     struct path *res,
res               197 fs/autofs/dev-ioctl.c 				*res = path;
res               251 fs/befs/btree.c 	int res;
res               280 fs/befs/btree.c 		res = befs_find_key(sb, this_node, key, &node_off);
res               282 fs/befs/btree.c 		if (res == BEFS_BT_OVERFLOW)
res               292 fs/befs/btree.c 	res = befs_find_key(sb, this_node, key, value);
res               297 fs/befs/btree.c 	if (res != BEFS_BT_MATCH) {
res               422 fs/befs/btree.c 	int res;
res               445 fs/befs/btree.c 	res = befs_btree_seekleaf(sb, ds, &bt_super, this_node, &node_off);
res               446 fs/befs/btree.c 	if (res == BEFS_BT_EMPTY) {
res               453 fs/befs/btree.c 	} else if (res == BEFS_ERR) {
res               138 fs/befs/linuxvfs.c 	int res;
res               150 fs/befs/linuxvfs.c 	res = befs_fblock2brun(sb, ds, block, &run);
res               151 fs/befs/linuxvfs.c 	if (res != BEFS_OK) {
res              1508 fs/binfmt_elf_fdpic.c 			bool res;
res              1512 fs/binfmt_elf_fdpic.c 				res = dump_emit(cprm, kaddr, PAGE_SIZE);
res              1516 fs/binfmt_elf_fdpic.c 				res = dump_skip(cprm, PAGE_SIZE);
res              1518 fs/binfmt_elf_fdpic.c 			if (!res)
res               887 fs/binfmt_flat.c 	int res;
res               899 fs/binfmt_flat.c 	res = PTR_ERR(bprm.file);
res               901 fs/binfmt_flat.c 		return res;
res               903 fs/binfmt_flat.c 	res = kernel_read(bprm.file, bprm.buf, BINPRM_BUF_SIZE, &pos);
res               905 fs/binfmt_flat.c 	if (res >= 0)
res               906 fs/binfmt_flat.c 		res = load_flat_file(&bprm, libs, id, NULL);
res               911 fs/binfmt_flat.c 	return res;
res               928 fs/binfmt_flat.c 	int res;
res               947 fs/binfmt_flat.c 	res = load_flat_file(bprm, &libinfo, 0, &stack_len);
res               948 fs/binfmt_flat.c 	if (res < 0)
res               949 fs/binfmt_flat.c 		return res;
res               971 fs/binfmt_flat.c 	res = setup_arg_pages(bprm, STACK_TOP, EXSTACK_DEFAULT);
res               972 fs/binfmt_flat.c 	if (!res)
res               973 fs/binfmt_flat.c 		res = create_flat_tables(bprm, bprm->p);
res               981 fs/binfmt_flat.c 	res = transfer_args_to_stack(bprm, &current->mm->start_stack);
res               982 fs/binfmt_flat.c 	if (!res)
res               983 fs/binfmt_flat.c 		res = create_flat_tables(bprm, current->mm->start_stack);
res               985 fs/binfmt_flat.c 	if (res)
res               986 fs/binfmt_flat.c 		return res;
res               635 fs/binfmt_misc.c 	ssize_t res;
res               644 fs/binfmt_misc.c 	res = simple_read_from_buffer(buf, nbytes, ppos, page, strlen(page));
res               647 fs/binfmt_misc.c 	return res;
res               655 fs/binfmt_misc.c 	int res = parse_command(buffer, count);
res               657 fs/binfmt_misc.c 	switch (res) {
res               677 fs/binfmt_misc.c 		return res;
res               783 fs/binfmt_misc.c 	int res = parse_command(buffer, count);
res               786 fs/binfmt_misc.c 	switch (res) {
res               806 fs/binfmt_misc.c 		return res;
res               514 fs/block_dev.c 		int res = sync_filesystem(sb);
res               516 fs/block_dev.c 		return res;
res              1699 fs/block_dev.c 	int res;
res              1711 fs/block_dev.c 	res = __blkdev_get(bdev, mode, 0);
res              1718 fs/block_dev.c 		if (!res)
res              1729 fs/block_dev.c 		if (!res && (mode & FMODE_WRITE) && !bdev->bd_write_holder &&
res              1739 fs/block_dev.c 	return res;
res              2141 fs/block_dev.c 	int res;
res              2144 fs/block_dev.c 	res = blkdev_ioctl(bdev, 0, cmd, arg);
res              2146 fs/block_dev.c 	return res;
res              2196 fs/block_dev.c 	int res = 0;
res              2206 fs/block_dev.c 		res = invalidate_inodes(sb, kill_dirty);
res              2210 fs/block_dev.c 	return res;
res              1374 fs/btrfs/ctree.h 	u##bits res = le##bits##_to_cpu(p->member);			\
res              1375 fs/btrfs/ctree.h 	return res;							\
res                53 fs/btrfs/struct-funcs.c 	u##bits res;							\
res                62 fs/btrfs/struct-funcs.c 		res = get_unaligned_le##bits(p + off);			\
res                63 fs/btrfs/struct-funcs.c 		return res;						\
res                74 fs/btrfs/struct-funcs.c 	res = get_unaligned_le##bits(p + off);				\
res                77 fs/btrfs/struct-funcs.c 	return res;							\
res                90 fs/btrfs/struct-funcs.c 	u##bits res;							\
res               101 fs/btrfs/struct-funcs.c 	res = get_unaligned_le##bits(p + off);				\
res               102 fs/btrfs/struct-funcs.c 	return res;							\
res              1099 fs/ceph/super.c 	struct dentry *res;
res              1112 fs/ceph/super.c 		res = ERR_PTR(err);
res              1119 fs/ceph/super.c 		res = ERR_CAST(fsc);
res              1125 fs/ceph/super.c 		res = ERR_PTR(err);
res              1133 fs/ceph/super.c 		res = ERR_CAST(sb);
res              1145 fs/ceph/super.c 			res = ERR_PTR(err);
res              1150 fs/ceph/super.c 	res = ceph_real_mount(fsc);
res              1151 fs/ceph/super.c 	if (IS_ERR(res))
res              1153 fs/ceph/super.c 	dout("root %p inode %p ino %llx.%llx\n", res,
res              1154 fs/ceph/super.c 	     d_inode(res), ceph_vinop(d_inode(res)));
res              1155 fs/ceph/super.c 	return res;
res              1170 fs/ceph/super.c 	dout("ceph_mount fail %ld\n", PTR_ERR(res));
res              1171 fs/ceph/super.c 	return res;
res               491 fs/cifs/dir.c  		struct dentry *res;
res               500 fs/cifs/dir.c  		res = cifs_lookup(inode, direntry, 0);
res               501 fs/cifs/dir.c  		if (IS_ERR(res))
res               502 fs/cifs/dir.c  			return PTR_ERR(res);
res               504 fs/cifs/dir.c  		return finish_no_open(file, res);
res               247 fs/configfs/file.c 	int res = -ENOENT;
res               251 fs/configfs/file.c 		res = buffer->attr->store(buffer->item, buffer->page, count);
res               253 fs/configfs/file.c 	return res;
res               163 fs/crypto/crypto.c 	int res = 0;
res               186 fs/crypto/crypto.c 		res = crypto_wait_req(crypto_skcipher_decrypt(req), &wait);
res               188 fs/crypto/crypto.c 		res = crypto_wait_req(crypto_skcipher_encrypt(req), &wait);
res               190 fs/crypto/crypto.c 	if (res) {
res               192 fs/crypto/crypto.c 			    (rw == FS_DECRYPT ? "De" : "En"), lblk_num, res);
res               193 fs/crypto/crypto.c 		return res;
res               421 fs/crypto/crypto.c 	int i, res = -ENOMEM;
res               451 fs/crypto/crypto.c 	return res;
res                46 fs/crypto/fname.c 	int res;
res                71 fs/crypto/fname.c 	res = crypto_wait_req(crypto_skcipher_encrypt(req), &wait);
res                73 fs/crypto/fname.c 	if (res < 0) {
res                74 fs/crypto/fname.c 		fscrypt_err(inode, "Filename encryption failed: %d", res);
res                75 fs/crypto/fname.c 		return res;
res                98 fs/crypto/fname.c 	int res;
res               115 fs/crypto/fname.c 	res = crypto_wait_req(crypto_skcipher_decrypt(req), &wait);
res               117 fs/crypto/fname.c 	if (res < 0) {
res               118 fs/crypto/fname.c 		fscrypt_err(inode, "Filename decryption failed: %d", res);
res               119 fs/crypto/fname.c 		return res;
res               427 fs/crypto/keysetup.c 	int res;
res               432 fs/crypto/keysetup.c 	res = fscrypt_initialize(inode->i_sb->s_cop->flags);
res               433 fs/crypto/keysetup.c 	if (res)
res               434 fs/crypto/keysetup.c 		return res;
res               436 fs/crypto/keysetup.c 	res = inode->i_sb->s_cop->get_context(inode, &ctx, sizeof(ctx));
res               437 fs/crypto/keysetup.c 	if (res < 0) {
res               442 fs/crypto/keysetup.c 				     res);
res               443 fs/crypto/keysetup.c 			return res;
res               452 fs/crypto/keysetup.c 		res = sizeof(ctx.v1);
res               461 fs/crypto/keysetup.c 	res = fscrypt_policy_from_context(&crypt_info->ci_policy, &ctx, res);
res               462 fs/crypto/keysetup.c 	if (res) {
res               479 fs/crypto/keysetup.c 		res = -EINVAL;
res               484 fs/crypto/keysetup.c 		res = -EINVAL;
res               490 fs/crypto/keysetup.c 		res = PTR_ERR(mode);
res               496 fs/crypto/keysetup.c 	res = setup_file_encryption_key(crypt_info, &master_key);
res               497 fs/crypto/keysetup.c 	if (res)
res               514 fs/crypto/keysetup.c 	res = 0;
res               522 fs/crypto/keysetup.c 	if (res == -ENOKEY)
res               523 fs/crypto/keysetup.c 		res = 0;
res               525 fs/crypto/keysetup.c 	return res;
res                51 fs/crypto/keysetup_v1.c 	int res = 0;
res                58 fs/crypto/keysetup_v1.c 		res = PTR_ERR(tfm);
res                65 fs/crypto/keysetup_v1.c 		res = -ENOMEM;
res                71 fs/crypto/keysetup_v1.c 	res = crypto_skcipher_setkey(tfm, nonce, FS_KEY_DERIVATION_NONCE_SIZE);
res                72 fs/crypto/keysetup_v1.c 	if (res < 0)
res                79 fs/crypto/keysetup_v1.c 	res = crypto_wait_req(crypto_skcipher_encrypt(req), &wait);
res                83 fs/crypto/keysetup_v1.c 	return res;
res               475 fs/crypto/policy.c 	int res;
res               477 fs/crypto/policy.c 	res = fscrypt_get_encryption_info(parent);
res               478 fs/crypto/policy.c 	if (res < 0)
res               479 fs/crypto/policy.c 		return res;
res               488 fs/crypto/policy.c 	res = parent->i_sb->s_cop->set_context(child, &ctx, ctxsize, fs_data);
res               489 fs/crypto/policy.c 	if (res)
res               490 fs/crypto/policy.c 		return res;
res               180 fs/d_path.c    	char *res = buf + buflen;
res               183 fs/d_path.c    	prepend(&res, &buflen, "\0", 1);
res               184 fs/d_path.c    	error = prepend_path(path, root, &res, &buflen);
res               190 fs/d_path.c    	return res;
res               197 fs/d_path.c    	char *res = buf + buflen;
res               200 fs/d_path.c    	prepend(&res, &buflen, "\0", 1);
res               201 fs/d_path.c    	error = prepend_path(path, &root, &res, &buflen);
res               207 fs/d_path.c    	return res;
res               260 fs/d_path.c    	char *res = buf + buflen;
res               281 fs/d_path.c    	error = path_with_deleted(path, &root, &res, &buflen);
res               285 fs/d_path.c    		res = ERR_PTR(error);
res               286 fs/d_path.c    	return res;
res              1984 fs/dcache.c    	struct dentry *res = NULL;
res              1987 fs/dcache.c    		res = d_alloc_anon(root_inode->i_sb);
res              1988 fs/dcache.c    		if (res)
res              1989 fs/dcache.c    			d_instantiate(res, root_inode);
res              1993 fs/dcache.c    	return res;
res              2001 fs/dcache.c    	struct dentry *res;
res              2006 fs/dcache.c    	res = __d_find_any_alias(inode);
res              2007 fs/dcache.c    	if (res) {
res              2034 fs/dcache.c    	return res;
res              2046 fs/dcache.c    	struct dentry *res;
res              2053 fs/dcache.c    	res = d_find_any_alias(inode);
res              2054 fs/dcache.c    	if (res)
res              2059 fs/dcache.c    		res = ERR_PTR(-ENOMEM);
res              2067 fs/dcache.c    	return res;
res              2134 fs/dcache.c    	struct dentry *found, *res;
res              2159 fs/dcache.c    	res = d_splice_alias(inode, found);
res              2160 fs/dcache.c    	if (res) {
res              2162 fs/dcache.c    		return res;
res                50 fs/dlm/debug_fs.c 			       struct dlm_rsb *res)
res                59 fs/dlm/debug_fs.c 		if (lkb->lkb_nodeid != res->res_nodeid)
res                72 fs/dlm/debug_fs.c static void print_format1(struct dlm_rsb *res, struct seq_file *s)
res                75 fs/dlm/debug_fs.c 	int i, lvblen = res->res_ls->ls_lvblen, recover_list, root_list;
res                77 fs/dlm/debug_fs.c 	lock_rsb(res);
res                79 fs/dlm/debug_fs.c 	seq_printf(s, "\nResource %p Name (len=%d) \"", res, res->res_length);
res                81 fs/dlm/debug_fs.c 	for (i = 0; i < res->res_length; i++) {
res                82 fs/dlm/debug_fs.c 		if (isprint(res->res_name[i]))
res                83 fs/dlm/debug_fs.c 			seq_printf(s, "%c", res->res_name[i]);
res                88 fs/dlm/debug_fs.c 	if (res->res_nodeid > 0)
res                90 fs/dlm/debug_fs.c 			   res->res_nodeid);
res                91 fs/dlm/debug_fs.c 	else if (res->res_nodeid == 0)
res                93 fs/dlm/debug_fs.c 	else if (res->res_nodeid == -1)
res                95 fs/dlm/debug_fs.c 			   res->res_first_lkid);
res                97 fs/dlm/debug_fs.c 		seq_printf(s, "\"\nInvalid master %d\n", res->res_nodeid);
res               102 fs/dlm/debug_fs.c 	if (res->res_lvbptr) {
res               108 fs/dlm/debug_fs.c 				   (unsigned char) res->res_lvbptr[i]);
res               110 fs/dlm/debug_fs.c 		if (rsb_flag(res, RSB_VALNOTVALID))
res               117 fs/dlm/debug_fs.c 	root_list = !list_empty(&res->res_root_list);
res               118 fs/dlm/debug_fs.c 	recover_list = !list_empty(&res->res_recover_list);
res               123 fs/dlm/debug_fs.c 			   res->res_flags, res->res_recover_locks_count);
res               128 fs/dlm/debug_fs.c 	list_for_each_entry(lkb, &res->res_grantqueue, lkb_statequeue) {
res               129 fs/dlm/debug_fs.c 		print_format1_lock(s, lkb, res);
res               135 fs/dlm/debug_fs.c 	list_for_each_entry(lkb, &res->res_convertqueue, lkb_statequeue) {
res               136 fs/dlm/debug_fs.c 		print_format1_lock(s, lkb, res);
res               142 fs/dlm/debug_fs.c 	list_for_each_entry(lkb, &res->res_waitqueue, lkb_statequeue) {
res               143 fs/dlm/debug_fs.c 		print_format1_lock(s, lkb, res);
res               148 fs/dlm/debug_fs.c 	if (list_empty(&res->res_lookup))
res               152 fs/dlm/debug_fs.c 	list_for_each_entry(lkb, &res->res_lookup, lkb_rsb_lookup) {
res               162 fs/dlm/debug_fs.c 	unlock_rsb(res);
res               121 fs/dlm/user.c  static void compat_output(struct dlm_lock_result *res,
res               126 fs/dlm/user.c  	res32->version[0] = res->version[0];
res               127 fs/dlm/user.c  	res32->version[1] = res->version[1];
res               128 fs/dlm/user.c  	res32->version[2] = res->version[2];
res               130 fs/dlm/user.c  	res32->user_astaddr = (__u32)(long)res->user_astaddr;
res               131 fs/dlm/user.c  	res32->user_astparam = (__u32)(long)res->user_astparam;
res               132 fs/dlm/user.c  	res32->user_lksb = (__u32)(long)res->user_lksb;
res               133 fs/dlm/user.c  	res32->bast_mode = res->bast_mode;
res               135 fs/dlm/user.c  	res32->lvb_offset = res->lvb_offset;
res               136 fs/dlm/user.c  	res32->length = res->length;
res               138 fs/dlm/user.c  	res32->lksb.sb_status = res->lksb.sb_status;
res               139 fs/dlm/user.c  	res32->lksb.sb_flags = res->lksb.sb_flags;
res               140 fs/dlm/user.c  	res32->lksb.sb_lkid = res->lksb.sb_lkid;
res               141 fs/dlm/user.c  	res32->lksb.sb_lvbptr = (__u32)(long)res->lksb.sb_lvbptr;
res               391 fs/ecryptfs/inode.c 	struct dentry *res;
res               416 fs/ecryptfs/inode.c 		res = ERR_CAST(lower_dentry);
res               418 fs/ecryptfs/inode.c 		res = ecryptfs_lookup_interpose(ecryptfs_dentry, lower_dentry);
res               421 fs/ecryptfs/inode.c 	return res;
res               223 fs/eventfd.c   	ssize_t res;
res               231 fs/eventfd.c   	res = -EAGAIN;
res               233 fs/eventfd.c   		res = sizeof(ucnt);
res               239 fs/eventfd.c   				res = sizeof(ucnt);
res               243 fs/eventfd.c   				res = -ERESTARTSYS;
res               253 fs/eventfd.c   	if (likely(res > 0)) {
res               260 fs/eventfd.c   	if (res > 0 && put_user(ucnt, (__u64 __user *)buf))
res               263 fs/eventfd.c   	return res;
res               270 fs/eventfd.c   	ssize_t res;
res               281 fs/eventfd.c   	res = -EAGAIN;
res               283 fs/eventfd.c   		res = sizeof(ucnt);
res               286 fs/eventfd.c   		for (res = 0;;) {
res               289 fs/eventfd.c   				res = sizeof(ucnt);
res               293 fs/eventfd.c   				res = -ERESTARTSYS;
res               303 fs/eventfd.c   	if (likely(res > 0)) {
res               310 fs/eventfd.c   	return res;
res               258 fs/eventpoll.c 	int res;
res               673 fs/eventpoll.c 	__poll_t res;
res               704 fs/eventpoll.c 	res = (*sproc)(ep, &txlist, priv);
res               761 fs/eventpoll.c 	return res;
res              1712 fs/eventpoll.c 	esed->res = 0;
res              1722 fs/eventpoll.c 		if (esed->res >= esed->maxevents)
res              1757 fs/eventpoll.c 			if (!esed->res)
res              1758 fs/eventpoll.c 				esed->res = -EFAULT;
res              1761 fs/eventpoll.c 		esed->res++;
res              1794 fs/eventpoll.c 	return esed.res;
res              1828 fs/eventpoll.c 	int res = 0, eavail, timed_out = 0;
res              1904 fs/eventpoll.c 			res = -EINTR;
res              1912 fs/eventpoll.c 			res = -EINTR;
res              1940 fs/eventpoll.c 	if (!res && eavail &&
res              1941 fs/eventpoll.c 	    !(res = ep_send_events(ep, events, maxevents)) && !timed_out)
res              1944 fs/eventpoll.c 	return res;
res              1003 fs/exec.c      	ssize_t res = vfs_read(file, (void __user *)addr, len, &pos);
res              1004 fs/exec.c      	if (res > 0)
res              1006 fs/exec.c      	return res;
res               419 fs/ext2/dir.c  	ino_t res = 0;
res               425 fs/ext2/dir.c  		res = le32_to_cpu(de->inode);
res               428 fs/ext2/dir.c  	return res;
res               648 fs/ext2/super.c 	int res = 0;
res               655 fs/ext2/super.c 		res = SB_RDONLY;
res               658 fs/ext2/super.c 		return res;
res               692 fs/ext2/super.c 	return res;
res               752 fs/ext2/super.c 	loff_t res = EXT2_NDIR_BLOCKS;
res               770 fs/ext2/super.c 	res += 1LL << (bits-2);
res               771 fs/ext2/super.c 	res += 1LL << (2*(bits-2));
res               772 fs/ext2/super.c 	res += 1LL << (3*(bits-2));
res               774 fs/ext2/super.c 	if (res < upper_limit)
res               777 fs/ext2/super.c 	res = upper_limit;
res               786 fs/ext2/super.c 		res -= meta_blocks;
res               794 fs/ext2/super.c 	res -= meta_blocks;
res               796 fs/ext2/super.c 	res <<= bits;
res               797 fs/ext2/super.c 	if (res > MAX_LFS_FILESIZE)
res               798 fs/ext2/super.c 		res = MAX_LFS_FILESIZE;
res               800 fs/ext2/super.c 	return res;
res               635 fs/ext4/namei.c 				int res = 0;
res               640 fs/ext4/namei.c 					res = fscrypt_get_encryption_info(dir);
res               641 fs/ext4/namei.c 				if (res) {
res               643 fs/ext4/namei.c 					       " fname crypto: %d\n", res);
res               658 fs/ext4/namei.c 					res = fscrypt_fname_alloc_buffer(
res               661 fs/ext4/namei.c 					if (res)
res               666 fs/ext4/namei.c 					res = fscrypt_fname_disk_to_usr(dir,
res               669 fs/ext4/namei.c 					if (res) {
res              1007 fs/ext4/resize.c 	int res, i;
res              1028 fs/ext4/resize.c 	for (res = 0; res < reserved_gdb; res++, blk++) {
res              1037 fs/ext4/resize.c 		primary[res] = ext4_sb_bread(sb, blk, 0);
res              1038 fs/ext4/resize.c 		if (IS_ERR(primary[res])) {
res              1039 fs/ext4/resize.c 			err = PTR_ERR(primary[res]);
res              1040 fs/ext4/resize.c 			primary[res] = NULL;
res              1043 fs/ext4/resize.c 		gdbackups = verify_reserved_gdb(sb, group, primary[res]);
res              1045 fs/ext4/resize.c 			brelse(primary[res]);
res              1083 fs/ext4/resize.c 	while (--res >= 0)
res              1084 fs/ext4/resize.c 		brelse(primary[res]);
res              1274 fs/ext4/super.c 	int res, res2, credits, retries = 0;
res              1288 fs/ext4/super.c 	res = ext4_convert_inline_data(inode);
res              1289 fs/ext4/super.c 	if (res)
res              1290 fs/ext4/super.c 		return res;
res              1301 fs/ext4/super.c 		res = ext4_xattr_set_handle(handle, inode,
res              1305 fs/ext4/super.c 		if (!res) {
res              1315 fs/ext4/super.c 		return res;
res              1318 fs/ext4/super.c 	res = dquot_initialize(inode);
res              1319 fs/ext4/super.c 	if (res)
res              1320 fs/ext4/super.c 		return res;
res              1322 fs/ext4/super.c 	res = ext4_xattr_set_credits(inode, len, false /* is_create */,
res              1324 fs/ext4/super.c 	if (res)
res              1325 fs/ext4/super.c 		return res;
res              1331 fs/ext4/super.c 	res = ext4_xattr_set_handle(handle, inode, EXT4_XATTR_INDEX_ENCRYPTION,
res              1334 fs/ext4/super.c 	if (!res) {
res              1341 fs/ext4/super.c 		res = ext4_mark_inode_dirty(handle, inode);
res              1342 fs/ext4/super.c 		if (res)
res              1347 fs/ext4/super.c 	if (res == -ENOSPC && ext4_should_retry_alloc(inode->i_sb, &retries))
res              1349 fs/ext4/super.c 	if (!res)
res              1350 fs/ext4/super.c 		res = res2;
res              1351 fs/ext4/super.c 	return res;
res              2784 fs/ext4/super.c 	loff_t res;
res              2802 fs/ext4/super.c 	res = (1LL << 32) - 1;
res              2803 fs/ext4/super.c 	res <<= blkbits;
res              2806 fs/ext4/super.c 	if (res > upper_limit)
res              2807 fs/ext4/super.c 		res = upper_limit;
res              2809 fs/ext4/super.c 	return res;
res              2819 fs/ext4/super.c 	loff_t res = EXT4_NDIR_BLOCKS;
res              2862 fs/ext4/super.c 	res += 1LL << (bits-2);
res              2863 fs/ext4/super.c 	res += 1LL << (2*(bits-2));
res              2864 fs/ext4/super.c 	res += 1LL << (3*(bits-2));
res              2865 fs/ext4/super.c 	res <<= bits;
res              2866 fs/ext4/super.c 	if (res > upper_limit)
res              2867 fs/ext4/super.c 		res = upper_limit;
res              2869 fs/ext4/super.c 	if (res > MAX_LFS_FILESIZE)
res              2870 fs/ext4/super.c 		res = MAX_LFS_FILESIZE;
res              2872 fs/ext4/super.c 	return res;
res                84 fs/ext4/verity.c 		int res;
res                86 fs/ext4/verity.c 		res = pagecache_write_begin(NULL, inode->i_mapping, pos, n, 0,
res                88 fs/ext4/verity.c 		if (res)
res                89 fs/ext4/verity.c 			return res;
res                95 fs/ext4/verity.c 		res = pagecache_write_end(NULL, inode->i_mapping, pos, n, n,
res                97 fs/ext4/verity.c 		if (res < 0)
res                98 fs/ext4/verity.c 			return res;
res                99 fs/ext4/verity.c 		if (res != n)
res               392 fs/f2fs/dir.c  	ino_t res = 0;
res               397 fs/f2fs/dir.c  		res = le32_to_cpu(de->ino);
res               401 fs/f2fs/dir.c  	return res;
res                50 fs/f2fs/node.c 	bool res = false;
res                63 fs/f2fs/node.c 		res = mem_size < ((avail_ram * nm_i->ram_thresh / 100) >> 2);
res                67 fs/f2fs/node.c 		res = mem_size < ((avail_ram * nm_i->ram_thresh / 100) >> 2);
res                69 fs/f2fs/node.c 			res = false;
res                74 fs/f2fs/node.c 		res = mem_size < ((avail_ram * nm_i->ram_thresh / 100) >> 1);
res                82 fs/f2fs/node.c 		res = mem_size < ((avail_ram * nm_i->ram_thresh / 100) >> 1);
res                88 fs/f2fs/node.c 		res = mem_size < ((avail_ram * nm_i->ram_thresh / 100) >> 1);
res                92 fs/f2fs/node.c 		res = mem_size < (val.totalram / 5);
res                97 fs/f2fs/node.c 	return res;
res              2481 fs/f2fs/super.c 		char *res;
res              2489 fs/f2fs/super.c 			res = "internally";
res              2492 fs/f2fs/super.c 			res = err ? "failed" : "done";
res              2495 fs/f2fs/super.c 			  res, main_blkaddr,
res                84 fs/f2fs/verity.c 		int res;
res                86 fs/f2fs/verity.c 		res = pagecache_write_begin(NULL, inode->i_mapping, pos, n, 0,
res                88 fs/f2fs/verity.c 		if (res)
res                89 fs/f2fs/verity.c 			return res;
res                95 fs/f2fs/verity.c 		res = pagecache_write_end(NULL, inode->i_mapping, pos, n, n,
res                97 fs/f2fs/verity.c 		if (res < 0)
res                98 fs/f2fs/verity.c 			return res;
res                99 fs/f2fs/verity.c 		if (res != n)
res               193 fs/f2fs/verity.c 	int res;
res               198 fs/f2fs/verity.c 	res = f2fs_getxattr(inode, F2FS_XATTR_INDEX_VERITY,
res               200 fs/f2fs/verity.c 	if (res < 0 && res != -ERANGE)
res               201 fs/f2fs/verity.c 		return res;
res               202 fs/f2fs/verity.c 	if (res != sizeof(dloc) || dloc.version != cpu_to_le32(1)) {
res               218 fs/f2fs/verity.c 		res = pagecache_read(inode, buf, size, pos);
res               219 fs/f2fs/verity.c 		if (res)
res               220 fs/f2fs/verity.c 			return res;
res                20 fs/fat/namei_msdos.c 			     unsigned char *res, struct fat_mount_options *opts)
res                45 fs/fat/namei_msdos.c 	for (walk = res; len && walk - res < 8; walk++) {
res                64 fs/fat/namei_msdos.c 		if ((res == walk) && (c == 0xE5))
res                82 fs/fat/namei_msdos.c 		while (walk - res < 8)
res                84 fs/fat/namei_msdos.c 		while (len > 0 && walk - res < MSDOS_NAME) {
res               112 fs/fat/namei_msdos.c 	while (walk - res < MSDOS_NAME)
res               647 fs/file.c      int __close_fd_get_file(unsigned int fd, struct file **res)
res               664 fs/file.c      	*res = file;
res               669 fs/file.c      	*res = NULL;
res               835 fs/file.c      	bool res;
res               838 fs/file.c      	res = close_on_exec(fd, fdt);
res               840 fs/file.c      	return res;
res              1001 fs/file.c      	int res = 0;
res              1010 fs/file.c      		res = f(p, file, n);
res              1011 fs/file.c      		if (res)
res              1015 fs/file.c      	return res;
res                74 fs/filesystems.c 	int res = 0;
res                86 fs/filesystems.c 		res = -EBUSY;
res                90 fs/filesystems.c 	return res;
res               158 fs/filesystems.c 	int len, res;
res               170 fs/filesystems.c 	res = copy_to_user(buf, tmp->name, len) ? -EFAULT : 0;
res               172 fs/filesystems.c 	return res;
res               530 fs/fuse/dir.c  	struct dentry *res = NULL;
res               533 fs/fuse/dir.c  		res = fuse_lookup(dir, entry, 0);
res               534 fs/fuse/dir.c  		if (IS_ERR(res))
res               535 fs/fuse/dir.c  			return PTR_ERR(res);
res               537 fs/fuse/dir.c  		if (res)
res               538 fs/fuse/dir.c  			entry = res;
res               556 fs/fuse/dir.c  	dput(res);
res               564 fs/fuse/dir.c  	return finish_no_open(file, res);
res              1220 fs/fuse/dir.c  	ssize_t res;
res              1229 fs/fuse/dir.c  	res = fuse_simple_request(fc, &ap.args);
res              1233 fs/fuse/dir.c  	if (res < 0)
res              1234 fs/fuse/dir.c  		return res;
res              1236 fs/fuse/dir.c  	if (WARN_ON(res >= PAGE_SIZE))
res              1240 fs/fuse/dir.c  	link[res] = '\0';
res               631 fs/fuse/file.c 		ssize_t res = fuse_get_res_by_io(io);
res               633 fs/fuse/file.c 		if (res >= 0) {
res               643 fs/fuse/file.c 		io->iocb->ki_complete(io->iocb, res, 0);
res               794 fs/fuse/file.c 	ssize_t res;
res               811 fs/fuse/file.c 	res = fuse_simple_request(fc, &ia.ap.args);
res               812 fs/fuse/file.c 	if (res < 0)
res               813 fs/fuse/file.c 		return res;
res               817 fs/fuse/file.c 	if (res < desc.length)
res               818 fs/fuse/file.c 		fuse_short_read(inode, attr_ver, res, &ia.ap);
res               889 fs/fuse/file.c 	ssize_t res;
res               912 fs/fuse/file.c 		res = fuse_simple_request(fc, &ap->args);
res               913 fs/fuse/file.c 		err = res < 0 ? res : 0;
res              1221 fs/fuse/file.c 	ssize_t res = 0;
res              1248 fs/fuse/file.c 				res += num_written;
res              1259 fs/fuse/file.c 	if (res > 0)
res              1265 fs/fuse/file.c 	return res > 0 ? res : err;
res              1435 fs/fuse/file.c 	ssize_t res = 0;
res              1487 fs/fuse/file.c 		res += nres;
res              1502 fs/fuse/file.c 	if (res > 0)
res              1505 fs/fuse/file.c 	return res > 0 ? res : err;
res              1513 fs/fuse/file.c 	ssize_t res;
res              1516 fs/fuse/file.c 	res = fuse_direct_io(io, iter, ppos, 0);
res              1520 fs/fuse/file.c 	return res;
res              1527 fs/fuse/file.c 	ssize_t res;
res              1530 fs/fuse/file.c 		res = fuse_direct_IO(iocb, to);
res              1534 fs/fuse/file.c 		res = __fuse_direct_read(&io, to, &iocb->ki_pos);
res              1537 fs/fuse/file.c 	return res;
res              1544 fs/fuse/file.c 	ssize_t res;
res              1548 fs/fuse/file.c 	res = generic_write_checks(iocb, from);
res              1549 fs/fuse/file.c 	if (res > 0) {
res              1551 fs/fuse/file.c 			res = fuse_direct_IO(iocb, from);
res              1553 fs/fuse/file.c 			res = fuse_direct_io(&io, from, &iocb->ki_pos,
res              1558 fs/fuse/file.c 	if (res > 0)
res              1562 fs/fuse/file.c 	return res;
res              1474 fs/fuse/inode.c 	int res;
res              1480 fs/fuse/inode.c 	res = fuse_fs_init();
res              1481 fs/fuse/inode.c 	if (res)
res              1484 fs/fuse/inode.c 	res = fuse_dev_init();
res              1485 fs/fuse/inode.c 	if (res)
res              1488 fs/fuse/inode.c 	res = fuse_sysfs_init();
res              1489 fs/fuse/inode.c 	if (res)
res              1492 fs/fuse/inode.c 	res = fuse_ctl_init();
res              1493 fs/fuse/inode.c 	if (res)
res              1508 fs/fuse/inode.c 	return res;
res               320 fs/fuse/readdir.c 	ssize_t res;
res               348 fs/fuse/readdir.c 	res = fuse_simple_request(fc, &ap->args);
res               350 fs/fuse/readdir.c 	if (res >= 0) {
res               351 fs/fuse/readdir.c 		if (!res) {
res               357 fs/fuse/readdir.c 			res = parse_dirplusfile(page_address(page), res,
res               360 fs/fuse/readdir.c 			res = parse_dirfile(page_address(page), res, file,
res               367 fs/fuse/readdir.c 	return res;
res               382 fs/fuse/readdir.c 	enum fuse_parse_result res = FOUND_NONE;
res               404 fs/fuse/readdir.c 			res = FOUND_SOME;
res               416 fs/fuse/readdir.c 	return res;
res               437 fs/fuse/readdir.c 	enum fuse_parse_result res;
res               540 fs/fuse/readdir.c 	res = fuse_parse_cache(ff, addr, size, ctx);
res               545 fs/fuse/readdir.c 	if (res == FOUND_ERR)
res               548 fs/fuse/readdir.c 	if (res == FOUND_ALL)
res               562 fs/fuse/readdir.c 	return res == FOUND_SOME ? 0 : UNCACHED;
res               327 fs/gfs2/rgrp.c 	u8 res;
res               330 fs/gfs2/rgrp.c 		res = gfs2_testbit(rbm, true);
res               331 fs/gfs2/rgrp.c 		if (res != GFS2_BLKST_FREE)
res                28 fs/hfs/attr.c  	int res;
res                33 fs/hfs/attr.c  	res = hfs_find_init(HFS_SB(inode->i_sb)->cat_tree, &fd);
res                34 fs/hfs/attr.c  	if (res)
res                35 fs/hfs/attr.c  		return res;
res                37 fs/hfs/attr.c  	res = hfs_brec_find(&fd);
res                38 fs/hfs/attr.c  	if (res)
res                49 fs/hfs/attr.c  			res = -ERANGE;
res                56 fs/hfs/attr.c  			res = -ERANGE;
res                60 fs/hfs/attr.c  	if (!res)
res                65 fs/hfs/attr.c  	return res;
res                74 fs/hfs/attr.c  	ssize_t res = 0;
res                80 fs/hfs/attr.c  		res = hfs_find_init(HFS_SB(inode->i_sb)->cat_tree, &fd);
res                81 fs/hfs/attr.c  		if (res)
res                82 fs/hfs/attr.c  			return res;
res                84 fs/hfs/attr.c  		res = hfs_brec_find(&fd);
res                85 fs/hfs/attr.c  		if (res)
res                96 fs/hfs/attr.c  			res = 4;
res                98 fs/hfs/attr.c  			res = size ? -ERANGE : 4;
res               104 fs/hfs/attr.c  			res = 4;
res               106 fs/hfs/attr.c  			res = size ? -ERANGE : 4;
res               113 fs/hfs/attr.c  	return res;
res                49 fs/hfs/bfind.c 	int res;
res                53 fs/hfs/bfind.c 	res = -ENOENT;
res                59 fs/hfs/bfind.c 			res = -EINVAL;
res                66 fs/hfs/bfind.c 			res = 0;
res                78 fs/hfs/bfind.c 			res = -EINVAL;
res                90 fs/hfs/bfind.c 	return res;
res               101 fs/hfs/bfind.c 	int height, res;
res               111 fs/hfs/bfind.c 	res = 0;
res               116 fs/hfs/bfind.c 			res = PTR_ERR(bnode);
res               126 fs/hfs/bfind.c 		res = __hfs_brec_find(bnode, fd);
res               138 fs/hfs/bfind.c 	return res;
res               143 fs/hfs/bfind.c 	res = -EIO;
res               146 fs/hfs/bfind.c 	return res;
res               151 fs/hfs/bfind.c 	int res;
res               153 fs/hfs/bfind.c 	res = hfs_brec_find(fd);
res               154 fs/hfs/bfind.c 	if (res)
res               155 fs/hfs/bfind.c 		return res;
res               166 fs/hfs/bfind.c 	int idx, res = 0;
res               179 fs/hfs/bfind.c 				res = -ENOENT;
res               185 fs/hfs/bfind.c 				res = PTR_ERR(bnode);
res               197 fs/hfs/bfind.c 				res = -ENOENT;
res               203 fs/hfs/bfind.c 				res = PTR_ERR(bnode);
res               214 fs/hfs/bfind.c 		res = -EINVAL;
res               224 fs/hfs/bfind.c 	return res;
res               228 fs/hfs/btree.c 	int res;
res               231 fs/hfs/btree.c 		res = hfs_extend_file(inode);
res               232 fs/hfs/btree.c 		if (res)
res               233 fs/hfs/btree.c 			return res;
res               256 fs/hfs/btree.c 	int i, res;
res               258 fs/hfs/btree.c 	res = hfs_bmap_reserve(tree, 1);
res               259 fs/hfs/btree.c 	if (res)
res               260 fs/hfs/btree.c 		return ERR_PTR(res);
res               191 fs/hfs/catalog.c 	int res, len, type;
res               194 fs/hfs/catalog.c 	res = hfs_brec_read(fd, &rec, sizeof(rec));
res               195 fs/hfs/catalog.c 	if (res)
res               196 fs/hfs/catalog.c 		return res;
res               226 fs/hfs/catalog.c 	int res, type;
res               230 fs/hfs/catalog.c 	res = hfs_find_init(HFS_SB(sb)->cat_tree, &fd);
res               231 fs/hfs/catalog.c 	if (res)
res               232 fs/hfs/catalog.c 		return res;
res               235 fs/hfs/catalog.c 	res = hfs_brec_find(&fd);
res               236 fs/hfs/catalog.c 	if (res)
res               259 fs/hfs/catalog.c 	res = hfs_brec_remove(&fd);
res               260 fs/hfs/catalog.c 	if (res)
res               264 fs/hfs/catalog.c 	res = hfs_brec_find(&fd);
res               265 fs/hfs/catalog.c 	if (!res) {
res               266 fs/hfs/catalog.c 		res = hfs_brec_remove(&fd);
res               267 fs/hfs/catalog.c 		if (res)
res               274 fs/hfs/catalog.c 	res = 0;
res               278 fs/hfs/catalog.c 	return res;
res                26 fs/hfs/dir.c   	int res;
res                28 fs/hfs/dir.c   	res = hfs_find_init(HFS_SB(dir->i_sb)->cat_tree, &fd);
res                29 fs/hfs/dir.c   	if (res)
res                30 fs/hfs/dir.c   		return ERR_PTR(res);
res                32 fs/hfs/dir.c   	res = hfs_brec_read(&fd, &rec, sizeof(rec));
res                33 fs/hfs/dir.c   	if (res) {
res                34 fs/hfs/dir.c   		if (res != -ENOENT)
res                35 fs/hfs/dir.c   			inode = ERR_PTR(res);
res               196 fs/hfs/dir.c   	int res;
res               202 fs/hfs/dir.c   	res = hfs_cat_create(inode->i_ino, dir, &dentry->d_name, inode);
res               203 fs/hfs/dir.c   	if (res) {
res               207 fs/hfs/dir.c   		return res;
res               225 fs/hfs/dir.c   	int res;
res               231 fs/hfs/dir.c   	res = hfs_cat_create(inode->i_ino, dir, &dentry->d_name, inode);
res               232 fs/hfs/dir.c   	if (res) {
res               236 fs/hfs/dir.c   		return res;
res               257 fs/hfs/dir.c   	int res;
res               261 fs/hfs/dir.c   	res = hfs_cat_delete(inode->i_ino, dir, &dentry->d_name);
res               262 fs/hfs/dir.c   	if (res)
res               263 fs/hfs/dir.c   		return res;
res               286 fs/hfs/dir.c   	int res;
res               293 fs/hfs/dir.c   		res = hfs_remove(new_dir, new_dentry);
res               294 fs/hfs/dir.c   		if (res)
res               295 fs/hfs/dir.c   			return res;
res               298 fs/hfs/dir.c   	res = hfs_cat_move(d_inode(old_dentry)->i_ino,
res               301 fs/hfs/dir.c   	if (!res)
res               305 fs/hfs/dir.c   	return res;
res               112 fs/hfs/extent.c 	int res;
res               116 fs/hfs/extent.c 	res = hfs_brec_find(fd);
res               118 fs/hfs/extent.c 		if (res != -ENOENT)
res               119 fs/hfs/extent.c 			return res;
res               121 fs/hfs/extent.c 		res = hfs_bmap_reserve(fd->tree, fd->tree->depth + 1);
res               122 fs/hfs/extent.c 		if (res)
res               123 fs/hfs/extent.c 			return res;
res               127 fs/hfs/extent.c 		if (res)
res               128 fs/hfs/extent.c 			return res;
res               138 fs/hfs/extent.c 	int res = 0;
res               141 fs/hfs/extent.c 		res = hfs_find_init(HFS_SB(inode->i_sb)->ext_tree, &fd);
res               142 fs/hfs/extent.c 		if (res)
res               143 fs/hfs/extent.c 			return res;
res               144 fs/hfs/extent.c 		res = __hfs_ext_write_extent(inode, &fd);
res               147 fs/hfs/extent.c 	return res;
res               153 fs/hfs/extent.c 	int res;
res               157 fs/hfs/extent.c 	res = hfs_brec_find(fd);
res               158 fs/hfs/extent.c 	if (res && res != -ENOENT)
res               159 fs/hfs/extent.c 		return res;
res               171 fs/hfs/extent.c 	int res;
res               174 fs/hfs/extent.c 		res = __hfs_ext_write_extent(inode, fd);
res               175 fs/hfs/extent.c 		if (res)
res               176 fs/hfs/extent.c 			return res;
res               179 fs/hfs/extent.c 	res = __hfs_ext_read_extent(fd, HFS_I(inode)->cached_extents, inode->i_ino,
res               181 fs/hfs/extent.c 	if (!res) {
res               188 fs/hfs/extent.c 	return res;
res               194 fs/hfs/extent.c 	int res;
res               200 fs/hfs/extent.c 	res = hfs_find_init(HFS_SB(inode->i_sb)->ext_tree, &fd);
res               201 fs/hfs/extent.c 	if (!res) {
res               202 fs/hfs/extent.c 		res = __hfs_ext_cache_extent(&fd, inode, block);
res               205 fs/hfs/extent.c 	return res;
res               293 fs/hfs/extent.c 	int res, i;
res               310 fs/hfs/extent.c 	res = hfs_free_extents(sb, extent, blocks, blocks);
res               311 fs/hfs/extent.c 	if (res)
res               312 fs/hfs/extent.c 		return res;
res               316 fs/hfs/extent.c 	res = hfs_find_init(HFS_SB(sb)->ext_tree, &fd);
res               317 fs/hfs/extent.c 	if (res)
res               318 fs/hfs/extent.c 		return res;
res               320 fs/hfs/extent.c 		res = __hfs_ext_read_extent(&fd, extent, cnid, total_blocks, type);
res               321 fs/hfs/extent.c 		if (res)
res               330 fs/hfs/extent.c 	return res;
res               341 fs/hfs/extent.c 	int res;
res               353 fs/hfs/extent.c 			res = hfs_extend_file(inode);
res               354 fs/hfs/extent.c 			if (res)
res               355 fs/hfs/extent.c 				return res;
res               366 fs/hfs/extent.c 	res = hfs_ext_read_extent(inode, ablock);
res               367 fs/hfs/extent.c 	if (!res)
res               395 fs/hfs/extent.c 	int res;
res               401 fs/hfs/extent.c 		res = hfs_ext_read_extent(inode, HFS_I(inode)->alloc_blocks);
res               402 fs/hfs/extent.c 		if (res)
res               410 fs/hfs/extent.c 		res = -ENOSPC;
res               421 fs/hfs/extent.c 			res = 0;
res               424 fs/hfs/extent.c 			res = hfs_add_extent(HFS_I(inode)->first_extents,
res               427 fs/hfs/extent.c 			if (res == -ENOSPC)
res               430 fs/hfs/extent.c 		if (!res) {
res               435 fs/hfs/extent.c 		res = hfs_add_extent(HFS_I(inode)->cached_extents,
res               439 fs/hfs/extent.c 		if (!res) {
res               443 fs/hfs/extent.c 		} else if (res == -ENOSPC)
res               448 fs/hfs/extent.c 	if (!res) {
res               456 fs/hfs/extent.c 	return res;
res               460 fs/hfs/extent.c 	res = hfs_ext_write_extent(inode);
res               461 fs/hfs/extent.c 	if (res)
res               472 fs/hfs/extent.c 	res = 0;
res               482 fs/hfs/extent.c 	int res;
res               494 fs/hfs/extent.c 		res = pagecache_write_begin(NULL, mapping, size+1, 0, 0,
res               496 fs/hfs/extent.c 		if (!res) {
res               497 fs/hfs/extent.c 			res = pagecache_write_end(NULL, mapping, size+1, 0, 0,
res               500 fs/hfs/extent.c 		if (res)
res               512 fs/hfs/extent.c 	res = hfs_find_init(HFS_SB(sb)->ext_tree, &fd);
res               513 fs/hfs/extent.c 	if (res) {
res               526 fs/hfs/extent.c 		res = __hfs_ext_cache_extent(&fd, inode, alloc_cnt);
res               527 fs/hfs/extent.c 		if (res)
res                79 fs/hfs/inode.c 	int i, res = 1;
res               103 fs/hfs/inode.c 			res = 0;
res               104 fs/hfs/inode.c 		if (res && node) {
res               118 fs/hfs/inode.c 				res = 0;
res               126 fs/hfs/inode.c 	return res ? try_to_free_buffers(page) : 0;
res               423 fs/hfs/inode.c 	int res;
res               426 fs/hfs/inode.c 	res = hfs_ext_write_extent(inode);
res               427 fs/hfs/inode.c 	if (res)
res               428 fs/hfs/inode.c 		return res;
res               512 fs/hfs/inode.c 	int res;
res               525 fs/hfs/inode.c 	res = hfs_find_init(HFS_SB(dir->i_sb)->cat_tree, &fd);
res               526 fs/hfs/inode.c 	if (res) {
res               528 fs/hfs/inode.c 		return ERR_PTR(res);
res               531 fs/hfs/inode.c 	res = hfs_brec_read(&fd, &rec, sizeof(rec));
res               532 fs/hfs/inode.c 	if (!res) {
res               537 fs/hfs/inode.c 	if (res) {
res               539 fs/hfs/inode.c 		return ERR_PTR(res);
res                37 fs/hfs/mdb.c   	int res;
res                46 fs/hfs/mdb.c   		res = ioctl_by_bdev(sb->s_bdev, CDROMREADTOCENTRY, (unsigned long)&te);
res                47 fs/hfs/mdb.c   		if (!res && (te.cdte_ctrl & CDROM_DATA_TRACK) == 4) {
res                55 fs/hfs/mdb.c   	res = ioctl_by_bdev(sb->s_bdev, CDROMMULTISESSION, (unsigned long)&ms_info);
res                56 fs/hfs/mdb.c   	if (!res && ms_info.xa_flag)
res                63 fs/hfs/part_tbl.c 	int i, size, res;
res                65 fs/hfs/part_tbl.c 	res = -ENOENT;
res                85 fs/hfs/part_tbl.c 				res = 0;
res               101 fs/hfs/part_tbl.c 				res = 0;
res               116 fs/hfs/part_tbl.c 	return res;
res               385 fs/hfs/super.c 	int res;
res               396 fs/hfs/super.c 	res = -EINVAL;
res               407 fs/hfs/super.c 	res = hfs_mdb_get(sb);
res               408 fs/hfs/super.c 	if (res) {
res               412 fs/hfs/super.c 		res = -EINVAL;
res               417 fs/hfs/super.c 	res = hfs_find_init(HFS_SB(sb)->cat_tree, &fd);
res               418 fs/hfs/super.c 	if (res)
res               420 fs/hfs/super.c 	res = hfs_cat_find_brec(sb, HFS_ROOT_CNID, &fd);
res               421 fs/hfs/super.c 	if (!res) {
res               423 fs/hfs/super.c 			res =  -EIO;
res               428 fs/hfs/super.c 	if (res) {
res               432 fs/hfs/super.c 	res = -EINVAL;
res               439 fs/hfs/super.c 	res = -ENOMEM;
res               451 fs/hfs/super.c 	return res;
res                58 fs/hfsplus/attributes.c 		int res = hfsplus_asc2uni(sb,
res                61 fs/hfsplus/attributes.c 		if (res)
res                62 fs/hfsplus/attributes.c 			return res;
res               120 fs/hfsplus/bfind.c 	int res;
res               125 fs/hfsplus/bfind.c 	res = -ENOENT;
res               131 fs/hfsplus/bfind.c 			res = -EINVAL;
res               136 fs/hfsplus/bfind.c 			res = 0;
res               145 fs/hfsplus/bfind.c 			res = -EINVAL;
res               159 fs/hfsplus/bfind.c 	return res;
res               170 fs/hfsplus/bfind.c 	int height, res;
res               180 fs/hfsplus/bfind.c 	res = 0;
res               185 fs/hfsplus/bfind.c 			res = PTR_ERR(bnode);
res               195 fs/hfsplus/bfind.c 		res = __hfs_brec_find(bnode, fd, do_key_compare);
res               207 fs/hfsplus/bfind.c 	return res;
res               212 fs/hfsplus/bfind.c 	res = -EIO;
res               215 fs/hfsplus/bfind.c 	return res;
res               220 fs/hfsplus/bfind.c 	int res;
res               222 fs/hfsplus/bfind.c 	res = hfs_brec_find(fd, hfs_find_rec_by_key);
res               223 fs/hfsplus/bfind.c 	if (res)
res               224 fs/hfsplus/bfind.c 		return res;
res               235 fs/hfsplus/bfind.c 	int idx, res = 0;
res               248 fs/hfsplus/bfind.c 				res = -ENOENT;
res               254 fs/hfsplus/bfind.c 				res = PTR_ERR(bnode);
res               266 fs/hfsplus/bfind.c 				res = -ENOENT;
res               272 fs/hfsplus/bfind.c 				res = PTR_ERR(bnode);
res               283 fs/hfsplus/bfind.c 		res = -EINVAL;
res               293 fs/hfsplus/bfind.c 	return res;
res               351 fs/hfsplus/btree.c 	int res;
res               357 fs/hfsplus/btree.c 		res = hfsplus_file_extend(inode, hfs_bnode_need_zeroout(tree));
res               358 fs/hfsplus/btree.c 		if (res)
res               359 fs/hfsplus/btree.c 			return res;
res               382 fs/hfsplus/btree.c 	int i, res;
res               384 fs/hfsplus/btree.c 	res = hfs_bmap_reserve(tree, 1);
res               385 fs/hfsplus/btree.c 	if (res)
res               386 fs/hfsplus/btree.c 		return ERR_PTR(res);
res               309 fs/hfsplus/dir.c 	int res;
res               323 fs/hfsplus/dir.c 			res = hfsplus_rename_cat(inode->i_ino,
res               326 fs/hfsplus/dir.c 			if (!res)
res               328 fs/hfsplus/dir.c 			if (res != -EEXIST)
res               334 fs/hfsplus/dir.c 		res = hfsplus_create_cat(cnid, src_dir,
res               336 fs/hfsplus/dir.c 		if (res)
res               342 fs/hfsplus/dir.c 	res = hfsplus_create_cat(cnid, dst_dir, &dst_dentry->d_name, inode);
res               343 fs/hfsplus/dir.c 	if (res)
res               355 fs/hfsplus/dir.c 	return res;
res               365 fs/hfsplus/dir.c 	int res;
res               376 fs/hfsplus/dir.c 		res = hfsplus_rename_cat(inode->i_ino,
res               379 fs/hfsplus/dir.c 		if (!res) {
res               385 fs/hfsplus/dir.c 	res = hfsplus_delete_cat(cnid, dir, &dentry->d_name);
res               386 fs/hfsplus/dir.c 	if (res)
res               397 fs/hfsplus/dir.c 				res = hfsplus_delete_cat(inode->i_ino,
res               400 fs/hfsplus/dir.c 				if (!res)
res               412 fs/hfsplus/dir.c 	return res;
res               419 fs/hfsplus/dir.c 	int res;
res               425 fs/hfsplus/dir.c 	res = hfsplus_delete_cat(inode->i_ino, dir, &dentry->d_name);
res               426 fs/hfsplus/dir.c 	if (res)
res               434 fs/hfsplus/dir.c 	return res;
res               442 fs/hfsplus/dir.c 	int res = -ENOMEM;
res               449 fs/hfsplus/dir.c 	res = page_symlink(inode, symname, strlen(symname) + 1);
res               450 fs/hfsplus/dir.c 	if (res)
res               453 fs/hfsplus/dir.c 	res = hfsplus_create_cat(inode->i_ino, dir, &dentry->d_name, inode);
res               454 fs/hfsplus/dir.c 	if (res)
res               457 fs/hfsplus/dir.c 	res = hfsplus_init_security(inode, dir, &dentry->d_name);
res               458 fs/hfsplus/dir.c 	if (res == -EOPNOTSUPP)
res               459 fs/hfsplus/dir.c 		res = 0; /* Operation is not supported. */
res               460 fs/hfsplus/dir.c 	else if (res) {
res               476 fs/hfsplus/dir.c 	return res;
res               484 fs/hfsplus/dir.c 	int res = -ENOMEM;
res               494 fs/hfsplus/dir.c 	res = hfsplus_create_cat(inode->i_ino, dir, &dentry->d_name, inode);
res               495 fs/hfsplus/dir.c 	if (res)
res               498 fs/hfsplus/dir.c 	res = hfsplus_init_security(inode, dir, &dentry->d_name);
res               499 fs/hfsplus/dir.c 	if (res == -EOPNOTSUPP)
res               500 fs/hfsplus/dir.c 		res = 0; /* Operation is not supported. */
res               501 fs/hfsplus/dir.c 	else if (res) {
res               517 fs/hfsplus/dir.c 	return res;
res               535 fs/hfsplus/dir.c 	int res;
res               543 fs/hfsplus/dir.c 			res = hfsplus_rmdir(new_dir, new_dentry);
res               545 fs/hfsplus/dir.c 			res = hfsplus_unlink(new_dir, new_dentry);
res               546 fs/hfsplus/dir.c 		if (res)
res               547 fs/hfsplus/dir.c 			return res;
res               550 fs/hfsplus/dir.c 	res = hfsplus_rename_cat((u32)(unsigned long)old_dentry->d_fsdata,
res               553 fs/hfsplus/dir.c 	if (!res)
res               555 fs/hfsplus/dir.c 	return res;
res                91 fs/hfsplus/extents.c 	int res;
res                99 fs/hfsplus/extents.c 	res = hfs_brec_find(fd, hfs_find_rec_by_key);
res               101 fs/hfsplus/extents.c 		if (res != -ENOENT)
res               102 fs/hfsplus/extents.c 			return res;
res               104 fs/hfsplus/extents.c 		res = hfs_bmap_reserve(fd->tree, fd->tree->depth + 1);
res               105 fs/hfsplus/extents.c 		if (res)
res               106 fs/hfsplus/extents.c 			return res;
res               111 fs/hfsplus/extents.c 		if (res)
res               112 fs/hfsplus/extents.c 			return res;
res               131 fs/hfsplus/extents.c 	int res = 0;
res               136 fs/hfsplus/extents.c 		res = hfs_find_init(HFSPLUS_SB(inode->i_sb)->ext_tree, &fd);
res               137 fs/hfsplus/extents.c 		if (res)
res               138 fs/hfsplus/extents.c 			return res;
res               139 fs/hfsplus/extents.c 		res = __hfsplus_ext_write_extent(inode, &fd);
res               142 fs/hfsplus/extents.c 	return res;
res               147 fs/hfsplus/extents.c 	int res;
res               150 fs/hfsplus/extents.c 	res = hfsplus_ext_write_extent_locked(inode);
res               153 fs/hfsplus/extents.c 	return res;
res               160 fs/hfsplus/extents.c 	int res;
res               164 fs/hfsplus/extents.c 	res = hfs_brec_find(fd, hfs_find_rec_by_key);
res               165 fs/hfsplus/extents.c 	if (res && res != -ENOENT)
res               166 fs/hfsplus/extents.c 		return res;
res               181 fs/hfsplus/extents.c 	int res;
res               186 fs/hfsplus/extents.c 		res = __hfsplus_ext_write_extent(inode, fd);
res               187 fs/hfsplus/extents.c 		if (res)
res               188 fs/hfsplus/extents.c 			return res;
res               191 fs/hfsplus/extents.c 	res = __hfsplus_ext_read_extent(fd, hip->cached_extents, inode->i_ino,
res               195 fs/hfsplus/extents.c 	if (!res) {
res               203 fs/hfsplus/extents.c 	return res;
res               210 fs/hfsplus/extents.c 	int res;
res               216 fs/hfsplus/extents.c 	res = hfs_find_init(HFSPLUS_SB(inode->i_sb)->ext_tree, &fd);
res               217 fs/hfsplus/extents.c 	if (!res) {
res               218 fs/hfsplus/extents.c 		res = __hfsplus_ext_cache_extent(&fd, inode, block);
res               221 fs/hfsplus/extents.c 	return res;
res               231 fs/hfsplus/extents.c 	int res = -EIO;
res               245 fs/hfsplus/extents.c 			res = hfsplus_file_extend(inode, false);
res               246 fs/hfsplus/extents.c 			if (res)
res               247 fs/hfsplus/extents.c 				return res;
res               268 fs/hfsplus/extents.c 	res = hfsplus_ext_read_extent(inode, ablock);
res               269 fs/hfsplus/extents.c 	if (res) {
res               402 fs/hfsplus/extents.c 	int res, i;
res               412 fs/hfsplus/extents.c 	res = hfsplus_free_extents(sb, fork->extents, blocks, blocks);
res               413 fs/hfsplus/extents.c 	if (res)
res               414 fs/hfsplus/extents.c 		return res;
res               418 fs/hfsplus/extents.c 	res = hfs_find_init(HFSPLUS_SB(sb)->ext_tree, &fd);
res               419 fs/hfsplus/extents.c 	if (res)
res               420 fs/hfsplus/extents.c 		return res;
res               422 fs/hfsplus/extents.c 		res = __hfsplus_ext_read_extent(&fd, ext_entry, cnid,
res               424 fs/hfsplus/extents.c 		if (res)
res               437 fs/hfsplus/extents.c 	return res;
res               446 fs/hfsplus/extents.c 	int res;
res               461 fs/hfsplus/extents.c 		res = hfsplus_ext_read_extent(inode, hip->alloc_blocks);
res               462 fs/hfsplus/extents.c 		if (res)
res               472 fs/hfsplus/extents.c 			res = -ENOSPC;
res               478 fs/hfsplus/extents.c 		res = sb_issue_zeroout(sb, start, len, GFP_NOFS);
res               479 fs/hfsplus/extents.c 		if (res)
res               491 fs/hfsplus/extents.c 			res = 0;
res               494 fs/hfsplus/extents.c 			res = hfsplus_add_extent(hip->first_extents,
res               497 fs/hfsplus/extents.c 			if (res == -ENOSPC)
res               500 fs/hfsplus/extents.c 		if (!res) {
res               505 fs/hfsplus/extents.c 		res = hfsplus_add_extent(hip->cached_extents,
res               508 fs/hfsplus/extents.c 		if (!res) {
res               512 fs/hfsplus/extents.c 		} else if (res == -ENOSPC)
res               516 fs/hfsplus/extents.c 	if (!res) {
res               523 fs/hfsplus/extents.c 	return res;
res               527 fs/hfsplus/extents.c 	res = hfsplus_ext_write_extent_locked(inode);
res               528 fs/hfsplus/extents.c 	if (res)
res               539 fs/hfsplus/extents.c 	res = 0;
res               549 fs/hfsplus/extents.c 	int res;
res               560 fs/hfsplus/extents.c 		res = pagecache_write_begin(NULL, mapping, size, 0, 0,
res               562 fs/hfsplus/extents.c 		if (res)
res               564 fs/hfsplus/extents.c 		res = pagecache_write_end(NULL, mapping, size,
res               566 fs/hfsplus/extents.c 		if (res < 0)
res               582 fs/hfsplus/extents.c 	res = hfs_find_init(HFSPLUS_SB(sb)->ext_tree, &fd);
res               583 fs/hfsplus/extents.c 	if (res) {
res               598 fs/hfsplus/extents.c 		res = __hfsplus_ext_cache_extent(&fd, inode, alloc_cnt);
res               599 fs/hfsplus/extents.c 		if (res)
res                73 fs/hfsplus/inode.c 	int i, res = 1;
res                99 fs/hfsplus/inode.c 			res = 0;
res               100 fs/hfsplus/inode.c 		if (res && node) {
res               115 fs/hfsplus/inode.c 				res = 0;
res               123 fs/hfsplus/inode.c 	return res ? try_to_free_buffers(page) : 0;
res               491 fs/hfsplus/inode.c 	int res = 0;
res               551 fs/hfsplus/inode.c 		res = -EIO;
res               553 fs/hfsplus/inode.c 	return res;
res                97 fs/hfsplus/part_tbl.c 	int res;
res               113 fs/hfsplus/part_tbl.c 			res = hfsplus_submit_bio(sb,
res               117 fs/hfsplus/part_tbl.c 			if (res)
res               118 fs/hfsplus/part_tbl.c 				return res;
res               133 fs/hfsplus/part_tbl.c 	int res;
res               139 fs/hfsplus/part_tbl.c 	res = hfsplus_submit_bio(sb, *part_start + HFS_PMAP_BLK,
res               141 fs/hfsplus/part_tbl.c 	if (res)
res               146 fs/hfsplus/part_tbl.c 		res = hfs_parse_old_pmap(sb, data, part_start, part_size);
res               149 fs/hfsplus/part_tbl.c 		res = hfs_parse_new_pmap(sb, buf, data, part_start, part_size);
res               152 fs/hfsplus/part_tbl.c 		res = -ENOENT;
res               157 fs/hfsplus/part_tbl.c 	return res;
res               131 fs/hfsplus/unicode.c 	int i, len, ustrlen, res, compose;
res               193 fs/hfsplus/unicode.c 			res = nls->uni2char(c0, op, len);
res               194 fs/hfsplus/unicode.c 			if (res < 0) {
res               195 fs/hfsplus/unicode.c 				if (res == -ENAMETOOLONG)
res               198 fs/hfsplus/unicode.c 				res = 1;
res               200 fs/hfsplus/unicode.c 			op += res;
res               201 fs/hfsplus/unicode.c 			len -= res;
res               236 fs/hfsplus/unicode.c 		res = nls->uni2char(cc, op, len);
res               237 fs/hfsplus/unicode.c 		if (res < 0) {
res               238 fs/hfsplus/unicode.c 			if (res == -ENAMETOOLONG)
res               241 fs/hfsplus/unicode.c 			res = 1;
res               243 fs/hfsplus/unicode.c 		op += res;
res               244 fs/hfsplus/unicode.c 		len -= res;
res               246 fs/hfsplus/unicode.c 	res = 0;
res               249 fs/hfsplus/unicode.c 	return res;
res               132 fs/hfsplus/wrapper.c 	int res;
res               141 fs/hfsplus/wrapper.c 		res = ioctl_by_bdev(sb->s_bdev,
res               143 fs/hfsplus/wrapper.c 		if (!res && (te.cdte_ctrl & CDROM_DATA_TRACK) == 4) {
res               151 fs/hfsplus/wrapper.c 	res = ioctl_by_bdev(sb->s_bdev, CDROMMULTISESSION,
res               153 fs/hfsplus/wrapper.c 	if (!res && ms_info.xa_flag)
res               427 fs/hfsplus/xattr.c 	int res;
res               435 fs/hfsplus/xattr.c 	res = __hfsplus_setxattr(inode, xattr_name, value, size, flags);
res               437 fs/hfsplus/xattr.c 	return res;
res               443 fs/hfsplus/xattr.c 	ssize_t res = 0;
res               453 fs/hfsplus/xattr.c 		res = hfs_find_init(HFSPLUS_SB(inode->i_sb)->cat_tree, &fd);
res               454 fs/hfsplus/xattr.c 		if (res) {
res               456 fs/hfsplus/xattr.c 			return res;
res               458 fs/hfsplus/xattr.c 		res = hfsplus_find_cat(inode->i_sb, inode->i_ino, &fd);
res               459 fs/hfsplus/xattr.c 		if (res)
res               469 fs/hfsplus/xattr.c 			res = folder_rec_len;
res               476 fs/hfsplus/xattr.c 			res = file_rec_len;
res               478 fs/hfsplus/xattr.c 			res = -EOPNOTSUPP;
res               482 fs/hfsplus/xattr.c 		res = size ? -ERANGE : record_len;
res               487 fs/hfsplus/xattr.c 	return res;
res               498 fs/hfsplus/xattr.c 	ssize_t res = 0;
res               517 fs/hfsplus/xattr.c 	res = hfs_find_init(HFSPLUS_SB(inode->i_sb)->attr_tree, &fd);
res               518 fs/hfsplus/xattr.c 	if (res) {
res               523 fs/hfsplus/xattr.c 	res = hfsplus_find_attr(inode->i_sb, inode->i_ino, name, &fd);
res               524 fs/hfsplus/xattr.c 	if (res) {
res               525 fs/hfsplus/xattr.c 		if (res == -ENOENT)
res               526 fs/hfsplus/xattr.c 			res = -ENODATA;
res               542 fs/hfsplus/xattr.c 			res = -EIO;
res               548 fs/hfsplus/xattr.c 		res = -EOPNOTSUPP;
res               552 fs/hfsplus/xattr.c 		res = -EIO;
res               564 fs/hfsplus/xattr.c 		res = record_length;
res               566 fs/hfsplus/xattr.c 		res = size ? -ERANGE : record_length;
res               573 fs/hfsplus/xattr.c 	return res;
res               580 fs/hfsplus/xattr.c 	int res;
res               591 fs/hfsplus/xattr.c 	res = __hfsplus_getxattr(inode, xattr_name, value, size);
res               593 fs/hfsplus/xattr.c 	return res;
res               610 fs/hfsplus/xattr.c 	ssize_t res = 0;
res               619 fs/hfsplus/xattr.c 	res = hfs_find_init(HFSPLUS_SB(inode->i_sb)->cat_tree, &fd);
res               620 fs/hfsplus/xattr.c 	if (res) {
res               622 fs/hfsplus/xattr.c 		return res;
res               625 fs/hfsplus/xattr.c 	res = hfsplus_find_cat(inode->i_sb, inode->i_ino, &fd);
res               626 fs/hfsplus/xattr.c 	if (res)
res               645 fs/hfsplus/xattr.c 		res = -EOPNOTSUPP;
res               650 fs/hfsplus/xattr.c 		res = 0;
res               657 fs/hfsplus/xattr.c 				res = xattr_name_len;
res               660 fs/hfsplus/xattr.c 				res = -ERANGE;
res               662 fs/hfsplus/xattr.c 				res = copy_name(buffer,
res               672 fs/hfsplus/xattr.c 	return res;
res               678 fs/hfsplus/xattr.c 	ssize_t res = 0;
res               691 fs/hfsplus/xattr.c 	res = hfsplus_listxattr_finder_info(dentry, buffer, size);
res               692 fs/hfsplus/xattr.c 	if (res < 0)
res               693 fs/hfsplus/xattr.c 		return res;
res               695 fs/hfsplus/xattr.c 		return (res == 0) ? -EOPNOTSUPP : res;
res               706 fs/hfsplus/xattr.c 		res = -ENOMEM;
res               713 fs/hfsplus/xattr.c 			if (res == 0)
res               714 fs/hfsplus/xattr.c 				res = -ENODATA;
res               717 fs/hfsplus/xattr.c 			res = err;
res               726 fs/hfsplus/xattr.c 			res = -EIO;
res               741 fs/hfsplus/xattr.c 			res = -EIO;
res               747 fs/hfsplus/xattr.c 				res += name_len(strbuf, xattr_name_len);
res               749 fs/hfsplus/xattr.c 			if (size < (res + name_len(strbuf, xattr_name_len))) {
res               750 fs/hfsplus/xattr.c 				res = -ERANGE;
res               753 fs/hfsplus/xattr.c 				res += copy_name(buffer + res,
res               765 fs/hfsplus/xattr.c 	return res;
res               894 fs/inode.c     	unsigned int res = *p;
res               897 fs/inode.c     	if (unlikely((res & (LAST_INO_BATCH-1)) == 0)) {
res               901 fs/inode.c     		res = next - LAST_INO_BATCH;
res               905 fs/inode.c     	res++;
res               907 fs/inode.c     	if (unlikely(!res))
res               908 fs/inode.c     		res++;
res               909 fs/inode.c     	*p = res;
res               911 fs/inode.c     	return res;
res              1281 fs/inode.c     	ino_t res;
res              1287 fs/inode.c     		res = counter++;
res              1288 fs/inode.c     	} while (!test_inode_iunique(sb, res));
res              1291 fs/inode.c     	return res;
res              1615 fs/inode.c     	sector_t res = 0;
res              1617 fs/inode.c     		res = inode->i_mapping->a_ops->bmap(inode->i_mapping, block);
res              1618 fs/inode.c     	return res;
res               369 fs/io_uring.c  				 long res);
res               571 fs/io_uring.c  				 long res)
res               583 fs/io_uring.c  		WRITE_ONCE(cqe->res, res);
res               602 fs/io_uring.c  				long res)
res               607 fs/io_uring.c  	io_cqring_fill_event(ctx, user_data, res);
res               955 fs/io_uring.c  static void io_complete_rw(struct kiocb *kiocb, long res, long res2)
res               962 fs/io_uring.c  	if ((req->flags & REQ_F_LINK) && res != req->result)
res               964 fs/io_uring.c  	io_cqring_add_event(req->ctx, req->user_data, res);
res               968 fs/io_uring.c  static void io_complete_rw_iopoll(struct kiocb *kiocb, long res, long res2)
res               975 fs/io_uring.c  	if ((req->flags & REQ_F_LINK) && res != req->result)
res               977 fs/io_uring.c  	req->result = res;
res               978 fs/io_uring.c  	if (res != -EAGAIN)
res                58 fs/ioctl.c     	int res, block;
res                65 fs/ioctl.c     	res = get_user(block, p);
res                66 fs/ioctl.c     	if (res)
res                67 fs/ioctl.c     		return res;
res                68 fs/ioctl.c     	res = mapping->a_ops->bmap(mapping, block);
res                69 fs/ioctl.c     	return put_user(res, p);
res               662 fs/ioctl.c     			loff_t res = inode_get_bytes(inode);
res               663 fs/ioctl.c     			error = copy_to_user(argp, &res, sizeof(res)) ?
res               906 fs/jffs2/wbuf.c 		int res = jffs2_sum_add_kvec(c, invecs, count, (uint32_t) to);
res               907 fs/jffs2/wbuf.c 		if (res)
res               908 fs/jffs2/wbuf.c 			return res;
res                21 fs/jffs2/writev.c 			int res;
res                22 fs/jffs2/writev.c 			res = jffs2_sum_add_kvec(c, vecs, count, (uint32_t) to);
res                23 fs/jffs2/writev.c 			if (res) {
res                24 fs/jffs2/writev.c 				return res;
res                40 fs/jffs2/writev.c 		int res;
res                45 fs/jffs2/writev.c 		res = jffs2_sum_add_kvec(c, vecs, 1, (uint32_t) ofs);
res                46 fs/jffs2/writev.c 		if (res) {
res                47 fs/jffs2/writev.c 			return res;
res               684 fs/libfs.c     	size_t res;
res               692 fs/libfs.c     	res = copy_from_user(to + pos, from, count);
res               693 fs/libfs.c     	if (res == count)
res               695 fs/libfs.c     	count -= res;
res                54 fs/lockd/clnt4xdr.c 	s64 res;
res                57 fs/lockd/clnt4xdr.c 		res = NLM4_OFFSET_MAX;
res                59 fs/lockd/clnt4xdr.c 		res = -NLM4_OFFSET_MAX;
res                61 fs/lockd/clnt4xdr.c 		res = offset;
res                62 fs/lockd/clnt4xdr.c 	return res;
res               566 fs/lockd/clnt4xdr.c 	PROC(LOCK,		lockargs,	res),
res               567 fs/lockd/clnt4xdr.c 	PROC(CANCEL,		cancargs,	res),
res               568 fs/lockd/clnt4xdr.c 	PROC(UNLOCK,		unlockargs,	res),
res               569 fs/lockd/clnt4xdr.c 	PROC(GRANTED,		testargs,	res),
res               576 fs/lockd/clnt4xdr.c 	PROC(LOCK_RES,		res,		norep),
res               577 fs/lockd/clnt4xdr.c 	PROC(CANCEL_RES,	res,		norep),
res               578 fs/lockd/clnt4xdr.c 	PROC(UNLOCK_RES,	res,		norep),
res               579 fs/lockd/clnt4xdr.c 	PROC(GRANTED_RES,	res,		norep),
res               169 fs/lockd/clntlock.c 	__be32 res = nlm_lck_denied;
res               198 fs/lockd/clntlock.c 		res = nlm_granted;
res               201 fs/lockd/clntlock.c 	return res;
res                79 fs/lockd/clntproc.c 	uint32_t res;
res                81 fs/lockd/clntproc.c 		res = host->h_pidcount++;
res                82 fs/lockd/clntproc.c 	} while (nlm_pidbusy(host, res) < 0);
res                83 fs/lockd/clntproc.c 	return res;
res                99 fs/lockd/clntproc.c 	struct nlm_lockowner *res, *new = NULL;
res               102 fs/lockd/clntproc.c 	res = __nlmclnt_find_lockowner(host, owner);
res               103 fs/lockd/clntproc.c 	if (res == NULL) {
res               107 fs/lockd/clntproc.c 		res = __nlmclnt_find_lockowner(host, owner);
res               108 fs/lockd/clntproc.c 		if (res == NULL && new != NULL) {
res               109 fs/lockd/clntproc.c 			res = new;
res               120 fs/lockd/clntproc.c 	return res;
res                50 fs/lockd/clntxdr.c 	s32 res;
res                53 fs/lockd/clntxdr.c 		res = NLM_OFFSET_MAX;
res                55 fs/lockd/clntxdr.c 		res = -NLM_OFFSET_MAX;
res                57 fs/lockd/clntxdr.c 		res = offset;
res                58 fs/lockd/clntxdr.c 	return res;
res               564 fs/lockd/clntxdr.c 	PROC(LOCK,		lockargs,	res),
res               565 fs/lockd/clntxdr.c 	PROC(CANCEL,		cancargs,	res),
res               566 fs/lockd/clntxdr.c 	PROC(UNLOCK,		unlockargs,	res),
res               567 fs/lockd/clntxdr.c 	PROC(GRANTED,		testargs,	res),
res               574 fs/lockd/clntxdr.c 	PROC(LOCK_RES,		res,		norep),
res               575 fs/lockd/clntxdr.c 	PROC(CANCEL_RES,	res,		norep),
res               576 fs/lockd/clntxdr.c 	PROC(UNLOCK_RES,	res,		norep),
res               577 fs/lockd/clntxdr.c 	PROC(GRANTED_RES,	res,		norep),
res                91 fs/lockd/mon.c static int nsm_mon_unmon(struct nsm_handle *nsm, u32 proc, struct nsm_res *res,
res               106 fs/lockd/mon.c 		.rpc_resp	= res,
res               109 fs/lockd/mon.c 	memset(res, 0, sizeof(*res));
res               151 fs/lockd/mon.c 	struct nsm_res	res;
res               165 fs/lockd/mon.c 	status = nsm_mon_unmon(nsm, NSMPROC_MON, &res, host);
res               166 fs/lockd/mon.c 	if (unlikely(res.status != 0))
res               174 fs/lockd/mon.c 	if (unlikely(nsm_local_state != res.state)) {
res               175 fs/lockd/mon.c 		nsm_local_state = res.state;
res               192 fs/lockd/mon.c 	struct nsm_res	res;
res               199 fs/lockd/mon.c 		status = nsm_mon_unmon(nsm, NSMPROC_UNMON, &res, host);
res               200 fs/lockd/mon.c 		if (res.status != 0)
res               525 fs/lockd/svc4proc.c   PROC(test,		testargs,	testres,	args,	res, Ck+St+2+No+Rg),
res               526 fs/lockd/svc4proc.c   PROC(lock,		lockargs,	res,		args,	res, Ck+St),
res               527 fs/lockd/svc4proc.c   PROC(cancel,		cancargs,	res,		args,	res, Ck+St),
res               528 fs/lockd/svc4proc.c   PROC(unlock,		unlockargs,	res,		args,	res, Ck+St),
res               529 fs/lockd/svc4proc.c   PROC(granted,		testargs,	res,		args,	res, Ck+St),
res               535 fs/lockd/svc4proc.c   PROC(test_res,	testres,	norep,		res,	void, 1),
res               536 fs/lockd/svc4proc.c   PROC(lock_res,	lockres,	norep,		res,	void, 1),
res               537 fs/lockd/svc4proc.c   PROC(cancel_res,	cancelres,	norep,		res,	void, 1),
res               538 fs/lockd/svc4proc.c   PROC(unlock_res,	unlockres,	norep,		res,	void, 1),
res               539 fs/lockd/svc4proc.c   PROC(granted_res,	res,		norep,		res,	void, 1),
res               545 fs/lockd/svc4proc.c   PROC(share,		shareargs,	shareres,	args,	res, Ck+St+1),
res               546 fs/lockd/svc4proc.c   PROC(unshare,		shareargs,	shareres,	args,	res, Ck+St+1),
res               547 fs/lockd/svc4proc.c   PROC(nm_lock,		lockargs,	res,		args,	res, Ck+St),
res               365 fs/lockd/svclock.c 	struct nlm_lockowner *res, *new = NULL;
res               368 fs/lockd/svclock.c 	res = __nlmsvc_find_lockowner(host, pid);
res               370 fs/lockd/svclock.c 	if (res == NULL) {
res               372 fs/lockd/svclock.c 		new = kmalloc(sizeof(*res), GFP_KERNEL);
res               374 fs/lockd/svclock.c 		res = __nlmsvc_find_lockowner(host, pid);
res               375 fs/lockd/svclock.c 		if (res == NULL && new != NULL) {
res               376 fs/lockd/svclock.c 			res = new;
res               388 fs/lockd/svclock.c 	return res;
res               569 fs/lockd/svcproc.c   PROC(test,		testargs,	testres,	args,	res, Ck+St+2+No+Rg),
res               570 fs/lockd/svcproc.c   PROC(lock,		lockargs,	res,		args,	res, Ck+St),
res               571 fs/lockd/svcproc.c   PROC(cancel,		cancargs,	res,		args,	res, Ck+St),
res               572 fs/lockd/svcproc.c   PROC(unlock,		unlockargs,	res,		args,	res, Ck+St),
res               573 fs/lockd/svcproc.c   PROC(granted,		testargs,	res,		args,	res, Ck+St),
res               579 fs/lockd/svcproc.c   PROC(test_res,	testres,	norep,		res,	void, 1),
res               580 fs/lockd/svcproc.c   PROC(lock_res,	lockres,	norep,		res,	void, 1),
res               581 fs/lockd/svcproc.c   PROC(cancel_res,	cancelres,	norep,		res,	void, 1),
res               582 fs/lockd/svcproc.c   PROC(unlock_res,	unlockres,	norep,		res,	void, 1),
res               583 fs/lockd/svcproc.c   PROC(granted_res,	res,		norep,		res,	void, 1),
res               589 fs/lockd/svcproc.c   PROC(share,		shareargs,	shareres,	args,	res, Ck+St+1),
res               590 fs/lockd/svcproc.c   PROC(unshare,		shareargs,	shareres,	args,	res, Ck+St+1),
res               591 fs/lockd/svcproc.c   PROC(nm_lock,		lockargs,	res,		args,	res, Ck+St),
res                34 fs/lockd/xdr.c 	__s32 res;
res                36 fs/lockd/xdr.c 		res = NLM_OFFSET_MAX;
res                38 fs/lockd/xdr.c 		res = -NLM_OFFSET_MAX;
res                40 fs/lockd/xdr.c 		res = offset;
res                41 fs/lockd/xdr.c 	return res;
res                33 fs/lockd/xdr4.c 	s64 res;
res                35 fs/lockd/xdr4.c 		res = NLM4_OFFSET_MAX;
res                37 fs/lockd/xdr4.c 		res = -NLM4_OFFSET_MAX;
res                39 fs/lockd/xdr4.c 		res = offset;
res                40 fs/lockd/xdr4.c 	return res;
res              2183 fs/locks.c     	int res = 0;
res              2186 fs/locks.c     			res = posix_lock_inode_wait(inode, fl);
res              2189 fs/locks.c     			res = flock_lock_inode_wait(inode, fl);
res              2194 fs/locks.c     	return res;
res               455 fs/minix/dir.c 	ino_t res = 0;
res               463 fs/minix/dir.c 			res = ((minix3_dirent *) de)->inode;
res               465 fs/minix/dir.c 			res = de->inode;
res               468 fs/minix/dir.c 	return res;
res               354 fs/minix/itree_common.c 	unsigned blocks, res, direct = DIRECT, i = DEPTH;
res               356 fs/minix/itree_common.c 	res = blocks;
res               361 fs/minix/itree_common.c 		res += blocks;
res               364 fs/minix/itree_common.c 	return res;
res               614 fs/namei.c     	int res = __legitimize_mnt(path->mnt, nd->m_seq);
res               615 fs/namei.c     	if (unlikely(res)) {
res               616 fs/namei.c     		if (res > 0)
res              1047 fs/namei.c     	const char *res;
res              1064 fs/namei.c     	res = READ_ONCE(inode->i_link);
res              1065 fs/namei.c     	if (!res) {
res              1070 fs/namei.c     			res = get(NULL, inode, &last->done);
res              1071 fs/namei.c     			if (res == ERR_PTR(-ECHILD)) {
res              1074 fs/namei.c     				res = get(dentry, inode, &last->done);
res              1077 fs/namei.c     			res = get(dentry, inode, &last->done);
res              1079 fs/namei.c     		if (IS_ERR_OR_NULL(res))
res              1080 fs/namei.c     			return res;
res              1082 fs/namei.c     	if (*res == '/') {
res              1087 fs/namei.c     		while (unlikely(*++res == '/'))
res              1090 fs/namei.c     	if (!*res)
res              1091 fs/namei.c     		res = NULL;
res              1092 fs/namei.c     	return res;
res              1679 fs/namei.c     	struct dentry *res;
res              1681 fs/namei.c     	res = __lookup_slow(name, dir, flags);
res              1683 fs/namei.c     	return res;
res              3204 fs/namei.c     		struct dentry *res = dir_inode->i_op->lookup(dir_inode, dentry,
res              3207 fs/namei.c     		if (unlikely(res)) {
res              3208 fs/namei.c     			if (IS_ERR(res)) {
res              3209 fs/namei.c     				error = PTR_ERR(res);
res              3213 fs/namei.c     			dentry = res;
res              4715 fs/namei.c     	int res;
res              4735 fs/namei.c     	res = readlink_copy(buffer, buflen, link);
res              4737 fs/namei.c     	return res;
res              4754 fs/namei.c     	const char *res = ERR_PTR(-EINVAL);
res              4758 fs/namei.c     		res = ERR_PTR(security_inode_readlink(dentry));
res              4759 fs/namei.c     		if (!res)
res              4760 fs/namei.c     			res = inode->i_op->get_link(dentry, inode, done);
res              4762 fs/namei.c     	return res;
res              4805 fs/namei.c     	int res = readlink_copy(buffer, buflen,
res              4809 fs/namei.c     	return res;
res               107 fs/namespace.c 	int res = ida_alloc(&mnt_id_ida, GFP_KERNEL);
res               109 fs/namespace.c 	if (res < 0)
res               110 fs/namespace.c 		return res;
res               111 fs/namespace.c 	mnt->mnt_id = res;
res               125 fs/namespace.c 	int res = ida_alloc_min(&mnt_group_ida, 1, GFP_KERNEL);
res               127 fs/namespace.c 	if (res < 0)
res               128 fs/namespace.c 		return res;
res               129 fs/namespace.c 	mnt->mnt_group_id = res;
res               593 fs/namespace.c 	int res = __legitimize_mnt(bastard, seq);
res               594 fs/namespace.c 	if (likely(!res))
res               596 fs/namespace.c 	if (unlikely(res < 0)) {
res              1221 fs/namespace.c 	bool res;
res              1229 fs/namespace.c 		res = __path_is_mountpoint(path);
res              1233 fs/namespace.c 	return res;
res              1752 fs/namespace.c 	struct mount *res, *p, *q, *r, *parent;
res              1760 fs/namespace.c 	res = q = clone_mnt(mnt, dentry, flag);
res              1799 fs/namespace.c 			list_add_tail(&q->mnt_list, &res->mnt_list);
res              1804 fs/namespace.c 	return res;
res              1806 fs/namespace.c 	if (res) {
res              1808 fs/namespace.c 		umount_tree(res, UMOUNT_SYNC);
res              1890 fs/namespace.c 	int res = f(root, arg);
res              1891 fs/namespace.c 	if (res)
res              1892 fs/namespace.c 		return res;
res              1894 fs/namespace.c 		res = f(&mnt->mnt, arg);
res              1895 fs/namespace.c 		if (res)
res              1896 fs/namespace.c 			return res;
res              3583 fs/namespace.c 	bool res;
res              3585 fs/namespace.c 	res = is_path_reachable(real_mount(path1->mnt), path1->dentry, path2);
res              3587 fs/namespace.c 	return res;
res               334 fs/nfs/blocklayout/blocklayout.c 		header->res.eof = 1;
res               335 fs/nfs/blocklayout/blocklayout.c 		header->res.count = header->inode->i_size - header->args.offset;
res               337 fs/nfs/blocklayout/blocklayout.c 		header->res.count = (isect << SECTOR_SHIFT) - header->args.offset;
res               461 fs/nfs/blocklayout/blocklayout.c 	header->res.count = header->args.count;
res               802 fs/nfs/blocklayout/blocklayout.c 	ext_tree_mark_committed(&lcdata->args, lcdata->res.status);
res                27 fs/nfs/callback_proc.c 	struct cb_getattrres *res = resp;
res                32 fs/nfs/callback_proc.c 	res->status = htonl(NFS4ERR_OP_NOT_IN_SESSION);
res                36 fs/nfs/callback_proc.c 	res->bitmap[0] = res->bitmap[1] = 0;
res                37 fs/nfs/callback_proc.c 	res->status = htonl(NFS4ERR_BADHANDLE);
res                45 fs/nfs/callback_proc.c 			res->status = htonl(NFS4ERR_DELAY);
res                47 fs/nfs/callback_proc.c 				-ntohl(res->status));
res                55 fs/nfs/callback_proc.c 	res->size = i_size_read(inode);
res                56 fs/nfs/callback_proc.c 	res->change_attr = delegation->change_attr;
res                58 fs/nfs/callback_proc.c 		res->change_attr++;
res                59 fs/nfs/callback_proc.c 	res->ctime = timespec64_to_timespec(inode->i_ctime);
res                60 fs/nfs/callback_proc.c 	res->mtime = timespec64_to_timespec(inode->i_mtime);
res                61 fs/nfs/callback_proc.c 	res->bitmap[0] = (FATTR4_WORD0_CHANGE|FATTR4_WORD0_SIZE) &
res                63 fs/nfs/callback_proc.c 	res->bitmap[1] = (FATTR4_WORD1_TIME_METADATA|FATTR4_WORD1_TIME_MODIFY) &
res                65 fs/nfs/callback_proc.c 	res->status = 0;
res                68 fs/nfs/callback_proc.c 	trace_nfs4_cb_getattr(cps->clp, &args->fh, inode, -ntohl(res->status));
res                71 fs/nfs/callback_proc.c 	dprintk("%s: exit with status = %d\n", __func__, ntohl(res->status));
res                72 fs/nfs/callback_proc.c 	return res->status;
res                80 fs/nfs/callback_proc.c 	__be32 res;
res                82 fs/nfs/callback_proc.c 	res = htonl(NFS4ERR_OP_NOT_IN_SESSION);
res                89 fs/nfs/callback_proc.c 	res = htonl(NFS4ERR_BADHANDLE);
res                93 fs/nfs/callback_proc.c 			res = htonl(NFS4ERR_DELAY);
res                95 fs/nfs/callback_proc.c 				&args->stateid, -ntohl(res));
res               101 fs/nfs/callback_proc.c 		res = 0;
res               104 fs/nfs/callback_proc.c 		res = htonl(NFS4ERR_BAD_STATEID);
res               107 fs/nfs/callback_proc.c 		res = htonl(NFS4ERR_RESOURCE);
res               110 fs/nfs/callback_proc.c 			&args->stateid, -ntohl(res));
res               113 fs/nfs/callback_proc.c 	dprintk("%s: exit with status = %d\n", __func__, ntohl(res));
res               114 fs/nfs/callback_proc.c 	return res;
res               345 fs/nfs/callback_proc.c 	u32 res = NFS4ERR_OP_NOT_IN_SESSION;
res               348 fs/nfs/callback_proc.c 		res = do_callback_layoutrecall(cps->clp, args);
res               349 fs/nfs/callback_proc.c 	return cpu_to_be32(res);
res               368 fs/nfs/callback_proc.c 	__be32 res = 0;
res               373 fs/nfs/callback_proc.c 		res = cpu_to_be32(NFS4ERR_OP_NOT_IN_SESSION);
res               399 fs/nfs/callback_proc.c 	return res;
res               506 fs/nfs/callback_proc.c 	struct cb_sequenceres *res = resp;
res               524 fs/nfs/callback_proc.c 	memcpy(&res->csr_sessionid, &args->csa_sessionid,
res               525 fs/nfs/callback_proc.c 	       sizeof(res->csr_sessionid));
res               526 fs/nfs/callback_proc.c 	res->csr_sequenceid = args->csa_sequenceid;
res               527 fs/nfs/callback_proc.c 	res->csr_slotid = args->csa_slotid;
res               546 fs/nfs/callback_proc.c 	res->csr_highestslotid = tbl->server_highest_slotid;
res               547 fs/nfs/callback_proc.c 	res->csr_target_highestslotid = tbl->target_highest_slotid;
res               594 fs/nfs/callback_proc.c 		res->csr_status = status;
res               596 fs/nfs/callback_proc.c 	trace_nfs4_cb_sequence(args, res, status);
res               672 fs/nfs/callback_xdr.c static __be32 encode_op_hdr(struct xdr_stream *xdr, uint32_t op, __be32 res)
res               680 fs/nfs/callback_xdr.c 	*p = res;
res               687 fs/nfs/callback_xdr.c 	const struct cb_getattrres *res = resp;
res               689 fs/nfs/callback_xdr.c 	__be32 status = res->status;
res               693 fs/nfs/callback_xdr.c 	status = encode_attr_bitmap(xdr, res->bitmap, ARRAY_SIZE(res->bitmap));
res               700 fs/nfs/callback_xdr.c 	status = encode_attr_change(xdr, res->bitmap, res->change_attr);
res               703 fs/nfs/callback_xdr.c 	status = encode_attr_size(xdr, res->bitmap, res->size);
res               706 fs/nfs/callback_xdr.c 	status = encode_attr_ctime(xdr, res->bitmap, &res->ctime);
res               709 fs/nfs/callback_xdr.c 	status = encode_attr_mtime(xdr, res->bitmap, &res->mtime);
res               734 fs/nfs/callback_xdr.c 	const struct cb_sequenceres *res = resp;
res               736 fs/nfs/callback_xdr.c 	__be32 status = res->csr_status;
res               741 fs/nfs/callback_xdr.c 	status = encode_sessionid(xdr, &res->csr_sessionid);
res               749 fs/nfs/callback_xdr.c 	*p++ = htonl(res->csr_sequenceid);
res               750 fs/nfs/callback_xdr.c 	*p++ = htonl(res->csr_slotid);
res               751 fs/nfs/callback_xdr.c 	*p++ = htonl(res->csr_highestslotid);
res               752 fs/nfs/callback_xdr.c 	*p++ = htonl(res->csr_target_highestslotid);
res               874 fs/nfs/callback_xdr.c 	__be32 res;
res               913 fs/nfs/callback_xdr.c 	res = encode_op_hdr(xdr_out, op_nr, status);
res               914 fs/nfs/callback_xdr.c 	if (unlikely(res))
res               915 fs/nfs/callback_xdr.c 		return res;
res               225 fs/nfs/delegation.c 	int res = 0;
res               228 fs/nfs/delegation.c 		res = nfs4_proc_delegreturn(inode,
res               233 fs/nfs/delegation.c 	return res;
res               864 fs/nfs/delegation.c 	struct inode *freeme, *res = NULL;
res               872 fs/nfs/delegation.c 				res = freeme;
res               874 fs/nfs/delegation.c 			if (res != NULL)
res               875 fs/nfs/delegation.c 				return res;
res               900 fs/nfs/delegation.c 	struct inode *res;
res               904 fs/nfs/delegation.c 		res = nfs_delegation_find_inode_server(server, fhandle);
res               905 fs/nfs/delegation.c 		if (res != ERR_PTR(-ENOENT)) {
res               907 fs/nfs/delegation.c 			return res;
res               109 fs/nfs/dir.c   	int res = 0;
res               118 fs/nfs/dir.c   		res = PTR_ERR(ctx);
res               123 fs/nfs/dir.c   	return res;
res               723 fs/nfs/dir.c   	int res;
res               728 fs/nfs/dir.c   	res = lock_page_killable(desc->page);
res               729 fs/nfs/dir.c   	if (res != 0)
res               731 fs/nfs/dir.c   	res = -EAGAIN;
res               733 fs/nfs/dir.c   		res = nfs_readdir_search_array(desc);
res               734 fs/nfs/dir.c   		if (res == 0)
res               740 fs/nfs/dir.c   	return res;
res               747 fs/nfs/dir.c   	int res;
res               754 fs/nfs/dir.c   		res = find_and_lock_cache_page(desc);
res               755 fs/nfs/dir.c   	} while (res == -EAGAIN);
res               756 fs/nfs/dir.c   	return res;
res               767 fs/nfs/dir.c   	int res = 0;
res               794 fs/nfs/dir.c   			(unsigned long long)*desc->dir_cookie, res);
res               795 fs/nfs/dir.c   	return res;
res               858 fs/nfs/dir.c   	int res = 0;
res               879 fs/nfs/dir.c   		res = nfs_revalidate_mapping(inode, file->f_mapping);
res               880 fs/nfs/dir.c   	if (res < 0)
res               884 fs/nfs/dir.c   		res = readdir_search_pagecache(desc);
res               886 fs/nfs/dir.c   		if (res == -EBADCOOKIE) {
res               887 fs/nfs/dir.c   			res = 0;
res               891 fs/nfs/dir.c   				res = uncached_readdir(desc);
res               892 fs/nfs/dir.c   				if (res == 0)
res               897 fs/nfs/dir.c   		if (res == -ETOOSMALL && desc->plus) {
res               905 fs/nfs/dir.c   		if (res < 0)
res               908 fs/nfs/dir.c   		res = nfs_do_filldir(desc);
res               911 fs/nfs/dir.c   		if (res < 0)
res               915 fs/nfs/dir.c   	if (res > 0)
res               916 fs/nfs/dir.c   		res = 0;
res               917 fs/nfs/dir.c   	dfprintk(FILE, "NFS: readdir(%pD2) returns %d\n", file, res);
res               918 fs/nfs/dir.c   	return res;
res              1401 fs/nfs/dir.c   	struct dentry *res;
res              1421 fs/nfs/dir.c   	res = ERR_PTR(-ENOMEM);
res              1436 fs/nfs/dir.c   		res = ERR_PTR(error);
res              1440 fs/nfs/dir.c   	res = ERR_CAST(inode);
res              1441 fs/nfs/dir.c   	if (IS_ERR(res))
res              1448 fs/nfs/dir.c   	res = d_splice_alias(inode, dentry);
res              1449 fs/nfs/dir.c   	if (res != NULL) {
res              1450 fs/nfs/dir.c   		if (IS_ERR(res))
res              1452 fs/nfs/dir.c   		dentry = res;
res              1461 fs/nfs/dir.c   	return res;
res              1480 fs/nfs/dir.c   	fmode_t res = (__force fmode_t)flags & FMODE_EXEC;
res              1482 fs/nfs/dir.c   		res |= FMODE_READ;
res              1484 fs/nfs/dir.c   		res |= FMODE_WRITE;
res              1485 fs/nfs/dir.c   	return res;
res              1522 fs/nfs/dir.c   	struct dentry *res;
res              1626 fs/nfs/dir.c   	res = nfs_lookup(dir, dentry, lookup_flags);
res              1629 fs/nfs/dir.c   		if (!res)
res              1630 fs/nfs/dir.c   			res = dentry;
res              1634 fs/nfs/dir.c   	if (IS_ERR(res))
res              1635 fs/nfs/dir.c   		return PTR_ERR(res);
res              1636 fs/nfs/dir.c   	return finish_no_open(file, res);
res              2318 fs/nfs/dir.c   static int nfs_access_get_cached(struct inode *inode, const struct cred *cred, struct nfs_access_entry *res, bool may_block)
res              2348 fs/nfs/dir.c   	res->cred = cache->cred;
res              2349 fs/nfs/dir.c   	res->mask = cache->mask;
res              2361 fs/nfs/dir.c   static int nfs_access_get_cached_rcu(struct inode *inode, const struct cred *cred, struct nfs_access_entry *res)
res              2383 fs/nfs/dir.c   	res->cred = cache->cred;
res              2384 fs/nfs/dir.c   	res->mask = cache->mask;
res              2586 fs/nfs/dir.c   	int res = 0;
res              2619 fs/nfs/dir.c   	res = nfs_do_access(inode, cred, mask|MAY_NOT_BLOCK);
res              2621 fs/nfs/dir.c   	if (res == -ECHILD && !(mask & MAY_NOT_BLOCK)) {
res              2623 fs/nfs/dir.c   		res = nfs_do_access(inode, cred, mask);
res              2626 fs/nfs/dir.c   	if (!res && (mask & MAY_EXEC))
res              2627 fs/nfs/dir.c   		res = nfs_execute_ok(inode, mask);
res              2630 fs/nfs/dir.c   		inode->i_sb->s_id, inode->i_ino, mask, res);
res              2631 fs/nfs/dir.c   	return res;
res              2636 fs/nfs/dir.c   	res = nfs_revalidate_inode(NFS_SERVER(inode), inode);
res              2637 fs/nfs/dir.c   	if (res == 0)
res              2638 fs/nfs/dir.c   		res = generic_permission(inode, mask);
res               248 fs/nfs/direct.c 	if (verfp->committed < 0 || data->res.verf->committed <= NFS_UNSTABLE)
res               251 fs/nfs/direct.c 	return nfs_direct_cmp_verf(verfp, data->res.verf);
res               373 fs/nfs/direct.c 		long res = (long) dreq->error;
res               375 fs/nfs/direct.c 			res = (long) dreq->count;
res               378 fs/nfs/direct.c 		dreq->iocb->ki_complete(dreq->iocb, res, 0);
res               721 fs/nfs/direct.c 	int res;
res               727 fs/nfs/direct.c 	res = nfs_generic_commit_list(dreq->inode, &mds_list, 0, &cinfo);
res               728 fs/nfs/direct.c 	if (res < 0) /* res == -ENOMEM */
res                67 fs/nfs/file.c  	int res;
res                72 fs/nfs/file.c  	res = nfs_check_flags(filp->f_flags);
res                73 fs/nfs/file.c  	if (res)
res                74 fs/nfs/file.c  		return res;
res                76 fs/nfs/file.c  	res = nfs_open(inode, filp);
res                77 fs/nfs/file.c  	return res;
res               234 fs/nfs/filelayout/filelayout.c 	    hdr->res.verf->committed == NFS_FILE_SYNC)
res               236 fs/nfs/filelayout/filelayout.c 	if (hdr->res.verf->committed == NFS_DATA_SYNC)
res               237 fs/nfs/filelayout/filelayout.c 		end_offs = hdr->mds_offset + (loff_t)hdr->res.count;
res               283 fs/nfs/filelayout/filelayout.c 			&hdr->res.seq_res,
res               299 fs/nfs/filelayout/filelayout.c 		nfs41_sequence_done(task, &hdr->res.seq_res);
res               381 fs/nfs/filelayout/filelayout.c 			&hdr->res.seq_res,
res               395 fs/nfs/filelayout/filelayout.c 		nfs41_sequence_done(task, &hdr->res.seq_res);
res               416 fs/nfs/filelayout/filelayout.c 			&wdata->res.seq_res,
res              1328 fs/nfs/flexfilelayout/flexfilelayout.c 					    hdr->res.op_status, OP_READ,
res              1408 fs/nfs/flexfilelayout/flexfilelayout.c 			hdr->res.count);
res              1445 fs/nfs/flexfilelayout/flexfilelayout.c 				&hdr->res.seq_res,
res              1460 fs/nfs/flexfilelayout/flexfilelayout.c 		nfs4_sequence_done(task, &hdr->res.seq_res);
res              1501 fs/nfs/flexfilelayout/flexfilelayout.c 					    hdr->res.op_status, OP_WRITE,
res              1520 fs/nfs/flexfilelayout/flexfilelayout.c 	if (hdr->res.verf->committed == NFS_FILE_SYNC ||
res              1521 fs/nfs/flexfilelayout/flexfilelayout.c 	    hdr->res.verf->committed == NFS_DATA_SYNC)
res              1522 fs/nfs/flexfilelayout/flexfilelayout.c 		end_offs = hdr->mds_offset + (loff_t)hdr->res.count;
res              1544 fs/nfs/flexfilelayout/flexfilelayout.c 					    data->res.op_status, OP_COMMIT,
res              1584 fs/nfs/flexfilelayout/flexfilelayout.c 			hdr->args.count, hdr->res.count,
res              1585 fs/nfs/flexfilelayout/flexfilelayout.c 			hdr->res.verf->committed);
res              1617 fs/nfs/flexfilelayout/flexfilelayout.c 				&hdr->res.seq_res,
res              1630 fs/nfs/flexfilelayout/flexfilelayout.c 		nfs4_sequence_done(task, &hdr->res.seq_res);
res              1707 fs/nfs/flexfilelayout/flexfilelayout.c 				&wdata->res.seq_res,
res               877 fs/nfs/inode.c 	struct nfs_lock_context *res, *new = NULL;
res               881 fs/nfs/inode.c 	res = __nfs_find_lock_context(ctx);
res               883 fs/nfs/inode.c 	if (res == NULL) {
res               889 fs/nfs/inode.c 		res = __nfs_find_lock_context(ctx);
res               890 fs/nfs/inode.c 		if (res == NULL) {
res               895 fs/nfs/inode.c 				res = new;
res               898 fs/nfs/inode.c 				res = ERR_PTR(-EBADF);
res               903 fs/nfs/inode.c 	return res;
res               325 fs/nfs/mount_clnt.c static int decode_status(struct xdr_stream *xdr, struct mountres *res)
res               338 fs/nfs/mount_clnt.c 			res->errno = mnt_errtbl[i].errno;
res               344 fs/nfs/mount_clnt.c 	res->errno = -EACCES;
res               348 fs/nfs/mount_clnt.c static int decode_fhandle(struct xdr_stream *xdr, struct mountres *res)
res               350 fs/nfs/mount_clnt.c 	struct nfs_fh *fh = res->fh;
res               366 fs/nfs/mount_clnt.c 	struct mountres *res = data;
res               369 fs/nfs/mount_clnt.c 	status = decode_status(xdr, res);
res               370 fs/nfs/mount_clnt.c 	if (unlikely(status != 0 || res->errno != 0))
res               372 fs/nfs/mount_clnt.c 	return decode_fhandle(xdr, res);
res               375 fs/nfs/mount_clnt.c static int decode_fhs_status(struct xdr_stream *xdr, struct mountres *res)
res               388 fs/nfs/mount_clnt.c 			res->errno = mnt3_errtbl[i].errno;
res               394 fs/nfs/mount_clnt.c 	res->errno = -EACCES;
res               398 fs/nfs/mount_clnt.c static int decode_fhandle3(struct xdr_stream *xdr, struct mountres *res)
res               400 fs/nfs/mount_clnt.c 	struct nfs_fh *fh = res->fh;
res               421 fs/nfs/mount_clnt.c static int decode_auth_flavors(struct xdr_stream *xdr, struct mountres *res)
res               423 fs/nfs/mount_clnt.c 	rpc_authflavor_t *flavors = res->auth_flavors;
res               424 fs/nfs/mount_clnt.c 	unsigned int *count = res->auth_count;
res               459 fs/nfs/mount_clnt.c 	struct mountres *res = data;
res               462 fs/nfs/mount_clnt.c 	status = decode_fhs_status(xdr, res);
res               463 fs/nfs/mount_clnt.c 	if (unlikely(status != 0 || res->errno != 0))
res               465 fs/nfs/mount_clnt.c 	status = decode_fhandle3(xdr, res);
res               467 fs/nfs/mount_clnt.c 		res->errno = -EBADHANDLE;
res               470 fs/nfs/mount_clnt.c 	return decode_auth_flavors(xdr, res);
res                56 fs/nfs/nfs3acl.c 	struct nfs3_getaclres res = {
res                61 fs/nfs/nfs3acl.c 		.rpc_resp	= &res,
res                87 fs/nfs/nfs3acl.c 	res.fattr = nfs_alloc_fattr();
res                88 fs/nfs/nfs3acl.c 	if (res.fattr == NULL)
res               105 fs/nfs/nfs3acl.c 			status = nfs_refresh_inode(inode, res.fattr);
res               117 fs/nfs/nfs3acl.c 	if ((args.mask & res.mask) != args.mask) {
res               122 fs/nfs/nfs3acl.c 	if (res.acl_access != NULL) {
res               123 fs/nfs/nfs3acl.c 		if ((posix_acl_equiv_mode(res.acl_access, NULL) == 0) ||
res               124 fs/nfs/nfs3acl.c 		    res.acl_access->a_count == 0) {
res               125 fs/nfs/nfs3acl.c 			posix_acl_release(res.acl_access);
res               126 fs/nfs/nfs3acl.c 			res.acl_access = NULL;
res               130 fs/nfs/nfs3acl.c 	if (res.mask & NFS_ACL)
res               131 fs/nfs/nfs3acl.c 		nfs3_complete_get_acl(&inode->i_acl, res.acl_access);
res               135 fs/nfs/nfs3acl.c 	if (res.mask & NFS_DFACL)
res               136 fs/nfs/nfs3acl.c 		nfs3_complete_get_acl(&inode->i_default_acl, res.acl_default);
res               140 fs/nfs/nfs3acl.c 	nfs_free_fattr(res.fattr);
res               142 fs/nfs/nfs3acl.c 		posix_acl_release(res.acl_default);
res               143 fs/nfs/nfs3acl.c 		return res.acl_access;
res               145 fs/nfs/nfs3acl.c 		posix_acl_release(res.acl_access);
res               146 fs/nfs/nfs3acl.c 		return res.acl_default;
res               152 fs/nfs/nfs3acl.c 	posix_acl_release(res.acl_access);
res               153 fs/nfs/nfs3acl.c 	posix_acl_release(res.acl_default);
res               154 fs/nfs/nfs3acl.c 	nfs_free_fattr(res.fattr);
res                34 fs/nfs/nfs3proc.c 	int res;
res                36 fs/nfs/nfs3proc.c 		res = rpc_call_sync(clnt, msg, flags);
res                37 fs/nfs/nfs3proc.c 		if (res != -EJUKEBOX)
res                40 fs/nfs/nfs3proc.c 		res = -ERESTARTSYS;
res                42 fs/nfs/nfs3proc.c 	return res;
res               161 fs/nfs/nfs3proc.c 	struct nfs3_diropres	res = {
res               168 fs/nfs/nfs3proc.c 		.rpc_resp	= &res,
res               173 fs/nfs/nfs3proc.c 	res.dir_attr = nfs_alloc_fattr();
res               174 fs/nfs/nfs3proc.c 	if (res.dir_attr == NULL)
res               179 fs/nfs/nfs3proc.c 	nfs_refresh_inode(dir, res.dir_attr);
res               186 fs/nfs/nfs3proc.c 	nfs_free_fattr(res.dir_attr);
res               197 fs/nfs/nfs3proc.c 	struct nfs3_accessres	res;
res               201 fs/nfs/nfs3proc.c 		.rpc_resp	= &res,
res               207 fs/nfs/nfs3proc.c 	res.fattr = nfs_alloc_fattr();
res               208 fs/nfs/nfs3proc.c 	if (res.fattr == NULL)
res               212 fs/nfs/nfs3proc.c 	nfs_refresh_inode(inode, res.fattr);
res               214 fs/nfs/nfs3proc.c 		nfs_access_set_mask(entry, res.access);
res               215 fs/nfs/nfs3proc.c 	nfs_free_fattr(res.fattr);
res               259 fs/nfs/nfs3proc.c 	struct nfs3_diropres res;
res               272 fs/nfs/nfs3proc.c 		data->msg.rpc_resp = &data->res;
res               273 fs/nfs/nfs3proc.c 		data->res.fh = &data->fh;
res               274 fs/nfs/nfs3proc.c 		data->res.fattr = &data->fattr;
res               275 fs/nfs/nfs3proc.c 		data->res.dir_attr = &data->dir_attr;
res               276 fs/nfs/nfs3proc.c 		nfs_fattr_init(data->res.fattr);
res               277 fs/nfs/nfs3proc.c 		nfs_fattr_init(data->res.dir_attr);
res               288 fs/nfs/nfs3proc.c 	nfs_post_op_update_inode(dir, data->res.dir_attr);
res               292 fs/nfs/nfs3proc.c 	return nfs_add_or_obtain(dentry, data->res.fh, data->res.fattr, NULL);
res               355 fs/nfs/nfs3proc.c 		nfs_fattr_init(data->res.dir_attr);
res               356 fs/nfs/nfs3proc.c 		nfs_fattr_init(data->res.fattr);
res               378 fs/nfs/nfs3proc.c 		status = nfs3_proc_setattr(dentry, data->res.fattr, sattr);
res               379 fs/nfs/nfs3proc.c 		nfs_post_op_update_inode(d_inode(dentry), data->res.fattr);
res               405 fs/nfs/nfs3proc.c 	struct nfs_removeres res;
res               409 fs/nfs/nfs3proc.c 		.rpc_resp = &res,
res               414 fs/nfs/nfs3proc.c 	res.dir_attr = nfs_alloc_fattr();
res               415 fs/nfs/nfs3proc.c 	if (res.dir_attr == NULL)
res               419 fs/nfs/nfs3proc.c 	nfs_post_op_update_inode(dir, res.dir_attr);
res               420 fs/nfs/nfs3proc.c 	nfs_free_fattr(res.dir_attr);
res               442 fs/nfs/nfs3proc.c 	struct nfs_removeres *res;
res               445 fs/nfs/nfs3proc.c 	res = task->tk_msg.rpc_resp;
res               446 fs/nfs/nfs3proc.c 	nfs_post_op_update_inode(dir, res->dir_attr);
res               467 fs/nfs/nfs3proc.c 	struct nfs_renameres *res;
res               471 fs/nfs/nfs3proc.c 	res = task->tk_msg.rpc_resp;
res               473 fs/nfs/nfs3proc.c 	nfs_post_op_update_inode(old_dir, res->old_fattr);
res               474 fs/nfs/nfs3proc.c 	nfs_post_op_update_inode(new_dir, res->new_fattr);
res               487 fs/nfs/nfs3proc.c 	struct nfs3_linkres	res;
res               491 fs/nfs/nfs3proc.c 		.rpc_resp	= &res,
res               496 fs/nfs/nfs3proc.c 	res.fattr = nfs_alloc_fattr();
res               497 fs/nfs/nfs3proc.c 	res.dir_attr = nfs_alloc_fattr();
res               498 fs/nfs/nfs3proc.c 	if (res.fattr == NULL || res.dir_attr == NULL)
res               502 fs/nfs/nfs3proc.c 	nfs_post_op_update_inode(dir, res.dir_attr);
res               503 fs/nfs/nfs3proc.c 	nfs_post_op_update_inode(inode, res.fattr);
res               505 fs/nfs/nfs3proc.c 	nfs_free_fattr(res.dir_attr);
res               506 fs/nfs/nfs3proc.c 	nfs_free_fattr(res.fattr);
res               644 fs/nfs/nfs3proc.c 	struct nfs3_readdirres	res = {
res               651 fs/nfs/nfs3proc.c 		.rpc_resp	= &res,
res               662 fs/nfs/nfs3proc.c 	res.dir_attr = nfs_alloc_fattr();
res               663 fs/nfs/nfs3proc.c 	if (res.dir_attr == NULL)
res               669 fs/nfs/nfs3proc.c 	nfs_refresh_inode(dir, res.dir_attr);
res               671 fs/nfs/nfs3proc.c 	nfs_free_fattr(res.dir_attr);
res               825 fs/nfs/nfs3proc.c 		cmpxchg(&server->read_hdrsize, 0, hdr->res.replen);
res               879 fs/nfs/nfs3proc.c 	nfs_refresh_inode(data->inode, data->res.fattr);
res                33 fs/nfs/nfs42proc.c 	struct nfs42_falloc_res res = {
res                39 fs/nfs/nfs42proc.c 	msg->rpc_resp = &res;
res                46 fs/nfs/nfs42proc.c 	res.falloc_fattr = nfs_alloc_fattr();
res                47 fs/nfs/nfs42proc.c 	if (!res.falloc_fattr)
res                51 fs/nfs/nfs42proc.c 				&args.seq_args, &res.seq_res, 0);
res                53 fs/nfs/nfs42proc.c 		status = nfs_post_op_update_inode(inode, res.falloc_fattr);
res                55 fs/nfs/nfs42proc.c 	kfree(res.falloc_fattr);
res               134 fs/nfs/nfs42proc.c static int handle_async_copy(struct nfs42_copy_res *res,
res               152 fs/nfs/nfs42proc.c 		if (memcmp(&res->write_res.stateid, &tmp_copy->stateid,
res               166 fs/nfs/nfs42proc.c 	memcpy(&copy->stateid, &res->write_res.stateid, NFS4_STATEID_SIZE);
res               184 fs/nfs/nfs42proc.c 	res->write_res.count = copy->count;
res               185 fs/nfs/nfs42proc.c 	memcpy(&res->write_res.verifier, &copy->verf, sizeof(copy->verf));
res               197 fs/nfs/nfs42proc.c 			       struct nfs42_copy_res *res)
res               206 fs/nfs/nfs42proc.c 	status = nfs4_proc_commit(dst, pos_dst, res->write_res.count, &cres);
res               209 fs/nfs/nfs42proc.c 	if (nfs_write_verifier_cmp(&res->write_res.verifier.verifier,
res               225 fs/nfs/nfs42proc.c 				struct nfs42_copy_res *res)
res               230 fs/nfs/nfs42proc.c 		.rpc_resp = res,
res               258 fs/nfs/nfs42proc.c 	res->commit_res.verf = NULL;
res               260 fs/nfs/nfs42proc.c 		res->commit_res.verf =
res               262 fs/nfs/nfs42proc.c 		if (!res->commit_res.verf)
res               269 fs/nfs/nfs42proc.c 				&args->seq_args, &res->seq_res, 0);
res               276 fs/nfs/nfs42proc.c 		nfs_write_verifier_cmp(&res->write_res.verifier.verifier,
res               277 fs/nfs/nfs42proc.c 				    &res->commit_res.verf->verifier)) {
res               282 fs/nfs/nfs42proc.c 	if (!res->synchronous) {
res               283 fs/nfs/nfs42proc.c 		status = handle_async_copy(res, server, src, dst,
res               289 fs/nfs/nfs42proc.c 	if ((!res->synchronous || !args->sync) &&
res               290 fs/nfs/nfs42proc.c 			res->write_res.verifier.committed != NFS_FILE_SYNC) {
res               291 fs/nfs/nfs42proc.c 		status = process_copy_commit(dst, pos_dst, res);
res               297 fs/nfs/nfs42proc.c 				 pos_dst + res->write_res.count);
res               299 fs/nfs/nfs42proc.c 	status = res->write_res.count;
res               302 fs/nfs/nfs42proc.c 		kfree(res->commit_res.verf);
res               321 fs/nfs/nfs42proc.c 	struct nfs42_copy_res res;
res               350 fs/nfs/nfs42proc.c 				&args, &res);
res               382 fs/nfs/nfs42proc.c 	struct nfs42_offload_status_res res;
res               391 fs/nfs/nfs42proc.c 				&data->res.osr_seq_res, task);
res               398 fs/nfs/nfs42proc.c 	nfs41_sequence_done(task, &data->res.osr_seq_res);
res               448 fs/nfs/nfs42proc.c 	msg.rpc_resp = &data->res;
res               450 fs/nfs/nfs42proc.c 	nfs4_init_sequence(&data->args.osa_seq_args, &data->res.osr_seq_res,
res               472 fs/nfs/nfs42proc.c 	struct nfs42_seek_res res;
res               476 fs/nfs/nfs42proc.c 		.rpc_resp = &res,
res               495 fs/nfs/nfs42proc.c 				&args.seq_args, &res.seq_res, 0);
res               501 fs/nfs/nfs42proc.c 	return vfs_setpos(filep, res.sr_offset, inode->i_sb->s_maxbytes);
res               552 fs/nfs/nfs42proc.c 			    &data->res.seq_res, task);
res               562 fs/nfs/nfs42proc.c 	if (!nfs4_sequence_done(task, &data->res.seq_res))
res               648 fs/nfs/nfs42proc.c 		.rpc_resp = &data->res,
res               664 fs/nfs/nfs42proc.c 	nfs4_init_sequence(&data->args.seq_args, &data->res.seq_res, 0, 0);
res               720 fs/nfs/nfs42proc.c 			    &data->res.seq_res, task);
res               730 fs/nfs/nfs42proc.c 	if (!nfs4_sequence_done(task, &data->res.seq_res))
res               821 fs/nfs/nfs42proc.c 		data->res.num_errors++;
res               824 fs/nfs/nfs42proc.c 	msg.rpc_resp = &data->res;
res               827 fs/nfs/nfs42proc.c 	nfs4_init_sequence(&data->args.seq_args, &data->res.seq_res, 0, 0);
res               852 fs/nfs/nfs42proc.c 	struct nfs42_clone_res res = {
res               858 fs/nfs/nfs42proc.c 	msg->rpc_resp = &res;
res               870 fs/nfs/nfs42proc.c 	res.dst_fattr = nfs_alloc_fattr();
res               871 fs/nfs/nfs42proc.c 	if (!res.dst_fattr)
res               875 fs/nfs/nfs42proc.c 				&args.seq_args, &res.seq_res, 0);
res               877 fs/nfs/nfs42proc.c 		status = nfs_post_op_update_inode(dst_inode, res.dst_fattr);
res               879 fs/nfs/nfs42proc.c 	kfree(res.dst_fattr);
res               462 fs/nfs/nfs42xdr.c static int decode_allocate(struct xdr_stream *xdr, struct nfs42_falloc_res *res)
res               468 fs/nfs/nfs42xdr.c 				 struct nfs42_write_res *res)
res               480 fs/nfs/nfs42xdr.c 		status = decode_opaque_fixed(xdr, &res->stateid,
res               488 fs/nfs/nfs42xdr.c 	p = xdr_decode_hyper(p, &res->count);
res               489 fs/nfs/nfs42xdr.c 	res->verifier.committed = be32_to_cpup(p);
res               490 fs/nfs/nfs42xdr.c 	return decode_verifier(xdr, &res->verifier.verifier);
res               494 fs/nfs/nfs42xdr.c 				    struct nfs42_copy_res *res) {
res               501 fs/nfs/nfs42xdr.c 	res->consecutive = be32_to_cpup(p++);
res               502 fs/nfs/nfs42xdr.c 	res->synchronous = be32_to_cpup(p++);
res               506 fs/nfs/nfs42xdr.c static int decode_copy(struct xdr_stream *xdr, struct nfs42_copy_res *res)
res               512 fs/nfs/nfs42xdr.c 		status = decode_copy_requirements(xdr, res);
res               519 fs/nfs/nfs42xdr.c 	status = decode_write_response(xdr, &res->write_res);
res               523 fs/nfs/nfs42xdr.c 	return decode_copy_requirements(xdr, res);
res               527 fs/nfs/nfs42xdr.c 				 struct nfs42_offload_status_res *res)
res               532 fs/nfs/nfs42xdr.c static int decode_deallocate(struct xdr_stream *xdr, struct nfs42_falloc_res *res)
res               537 fs/nfs/nfs42xdr.c static int decode_seek(struct xdr_stream *xdr, struct nfs42_seek_res *res)
res               550 fs/nfs/nfs42xdr.c 	res->sr_eof = be32_to_cpup(p++);
res               551 fs/nfs/nfs42xdr.c 	p = xdr_decode_hyper(p, &res->sr_offset);
res               577 fs/nfs/nfs42xdr.c 	struct nfs42_falloc_res *res = data;
res               584 fs/nfs/nfs42xdr.c 	status = decode_sequence(xdr, &res->seq_res, rqstp);
res               590 fs/nfs/nfs42xdr.c 	status = decode_allocate(xdr, res);
res               593 fs/nfs/nfs42xdr.c 	decode_getfattr(xdr, res->falloc_fattr, res->falloc_server);
res               605 fs/nfs/nfs42xdr.c 	struct nfs42_copy_res *res = data;
res               612 fs/nfs/nfs42xdr.c 	status = decode_sequence(xdr, &res->seq_res, rqstp);
res               624 fs/nfs/nfs42xdr.c 	status = decode_copy(xdr, res);
res               627 fs/nfs/nfs42xdr.c 	if (res->commit_res.verf)
res               628 fs/nfs/nfs42xdr.c 		status = decode_commit(xdr, &res->commit_res);
res               640 fs/nfs/nfs42xdr.c 	struct nfs42_offload_status_res *res = data;
res               647 fs/nfs/nfs42xdr.c 	status = decode_sequence(xdr, &res->osr_seq_res, rqstp);
res               653 fs/nfs/nfs42xdr.c 	status = decode_offload_cancel(xdr, res);
res               666 fs/nfs/nfs42xdr.c 	struct nfs42_falloc_res *res = data;
res               673 fs/nfs/nfs42xdr.c 	status = decode_sequence(xdr, &res->seq_res, rqstp);
res               679 fs/nfs/nfs42xdr.c 	status = decode_deallocate(xdr, res);
res               682 fs/nfs/nfs42xdr.c 	decode_getfattr(xdr, res->falloc_fattr, res->falloc_server);
res               694 fs/nfs/nfs42xdr.c 	struct nfs42_seek_res *res = data;
res               701 fs/nfs/nfs42xdr.c 	status = decode_sequence(xdr, &res->seq_res, rqstp);
res               707 fs/nfs/nfs42xdr.c 	status = decode_seek(xdr, res);
res               719 fs/nfs/nfs42xdr.c 	struct nfs42_layoutstat_res *res = data;
res               726 fs/nfs/nfs42xdr.c 	status = decode_sequence(xdr, &res->seq_res, rqstp);
res               732 fs/nfs/nfs42xdr.c 	WARN_ON(res->num_dev > PNFS_LAYOUTSTATS_MAXDEV);
res               733 fs/nfs/nfs42xdr.c 	for (i = 0; i < res->num_dev; i++) {
res               739 fs/nfs/nfs42xdr.c 	res->rpc_status = status;
res               750 fs/nfs/nfs42xdr.c 	struct nfs42_clone_res *res = data;
res               757 fs/nfs/nfs42xdr.c 	status = decode_sequence(xdr, &res->seq_res, rqstp);
res               772 fs/nfs/nfs42xdr.c 	status = decode_getfattr(xdr, res->dst_fattr, res->server);
res               775 fs/nfs/nfs42xdr.c 	res->rpc_status = status;
res               786 fs/nfs/nfs42xdr.c 	struct nfs42_layouterror_res *res = data;
res               793 fs/nfs/nfs42xdr.c 	status = decode_sequence(xdr, &res->seq_res, rqstp);
res               798 fs/nfs/nfs42xdr.c 	for (i = 0; i < res->num_errors && status == 0; i++)
res               801 fs/nfs/nfs42xdr.c 	res->rpc_status = status;
res               324 fs/nfs/nfs4_fs.h 		struct nfs41_exchange_id_res *res, struct rpc_xprt *xprt);
res               503 fs/nfs/nfs4_fs.h 				struct nfs4_sequence_res *res,
res               506 fs/nfs/nfs4_fs.h 			      struct nfs4_sequence_res *res);
res               509 fs/nfs/nfs4_fs.h extern int nfs4_proc_commit(struct file *dst, __u64 offset, __u32 count, struct nfs_commitres *res);
res               670 fs/nfs/nfs4client.c 				 struct nfs41_exchange_id_res *res,
res               674 fs/nfs/nfs4client.c 	if (clp->cl_clientid != res->clientid)
res               679 fs/nfs/nfs4client.c 					     res->server_owner))
res               683 fs/nfs/nfs4client.c 	if (clp->cl_serverowner->minor_id != res->server_owner->minor_id)
res               687 fs/nfs/nfs4client.c 	if (!nfs4_check_server_scope(clp->cl_serverscope, res->server_scope))
res               164 fs/nfs/nfs4idmap.c int nfs_map_string_to_numeric(const char *name, size_t namelen, __u32 *res)
res               175 fs/nfs/nfs4idmap.c 	*res = val;
res                65 fs/nfs/nfs4idmap.h int nfs_map_string_to_numeric(const char *name, size_t namelen, __u32 *res);
res               685 fs/nfs/nfs4proc.c 			struct nfs4_sequence_res *res, int cache_reply,
res               692 fs/nfs/nfs4proc.c 	res->sr_slot = NULL;
res               695 fs/nfs/nfs4proc.c static void nfs40_sequence_free_slot(struct nfs4_sequence_res *res)
res               697 fs/nfs/nfs4proc.c 	struct nfs4_slot *slot = res->sr_slot;
res               706 fs/nfs/nfs4proc.c 	res->sr_slot = NULL;
res               710 fs/nfs/nfs4proc.c 			       struct nfs4_sequence_res *res)
res               712 fs/nfs/nfs4proc.c 	if (res->sr_slot != NULL)
res               713 fs/nfs/nfs4proc.c 		nfs40_sequence_free_slot(res);
res               758 fs/nfs/nfs4proc.c static void nfs41_sequence_free_slot(struct nfs4_sequence_res *res)
res               760 fs/nfs/nfs4proc.c 	nfs41_release_slot(res->sr_slot);
res               761 fs/nfs/nfs4proc.c 	res->sr_slot = NULL;
res               778 fs/nfs/nfs4proc.c 		struct nfs4_sequence_res *res)
res               781 fs/nfs/nfs4proc.c 	struct nfs4_slot *slot = res->sr_slot;
res               794 fs/nfs/nfs4proc.c 	trace_nfs4_sequence_done(session, res);
res               796 fs/nfs/nfs4proc.c 	status = res->sr_status;
res               808 fs/nfs/nfs4proc.c 		do_renew_lease(clp, res->sr_timestamp);
res               810 fs/nfs/nfs4proc.c 		nfs41_handle_sequence_flag_errors(clp, res->sr_status_flags,
res               812 fs/nfs/nfs4proc.c 		nfs41_update_target_slotid(slot->table, slot, res);
res               883 fs/nfs/nfs4proc.c 	dprintk("%s: Error %d free the slot \n", __func__, res->sr_status);
res               889 fs/nfs/nfs4proc.c 	nfs41_sequence_free_slot(res);
res               895 fs/nfs/nfs4proc.c 		nfs41_sequence_free_slot(res);
res               907 fs/nfs/nfs4proc.c int nfs41_sequence_done(struct rpc_task *task, struct nfs4_sequence_res *res)
res               909 fs/nfs/nfs4proc.c 	if (!nfs41_sequence_process(task, res))
res               911 fs/nfs/nfs4proc.c 	if (res->sr_slot != NULL)
res               912 fs/nfs/nfs4proc.c 		nfs41_sequence_free_slot(res);
res               918 fs/nfs/nfs4proc.c static int nfs4_sequence_process(struct rpc_task *task, struct nfs4_sequence_res *res)
res               920 fs/nfs/nfs4proc.c 	if (res->sr_slot == NULL)
res               922 fs/nfs/nfs4proc.c 	if (res->sr_slot->table->session != NULL)
res               923 fs/nfs/nfs4proc.c 		return nfs41_sequence_process(task, res);
res               924 fs/nfs/nfs4proc.c 	return nfs40_sequence_done(task, res);
res               927 fs/nfs/nfs4proc.c static void nfs4_sequence_free_slot(struct nfs4_sequence_res *res)
res               929 fs/nfs/nfs4proc.c 	if (res->sr_slot != NULL) {
res               930 fs/nfs/nfs4proc.c 		if (res->sr_slot->table->session != NULL)
res               931 fs/nfs/nfs4proc.c 			nfs41_sequence_free_slot(res);
res               933 fs/nfs/nfs4proc.c 			nfs40_sequence_free_slot(res);
res               937 fs/nfs/nfs4proc.c int nfs4_sequence_done(struct rpc_task *task, struct nfs4_sequence_res *res)
res               939 fs/nfs/nfs4proc.c 	if (res->sr_slot == NULL)
res               941 fs/nfs/nfs4proc.c 	if (!res->sr_slot->table->session)
res               942 fs/nfs/nfs4proc.c 		return nfs40_sequence_done(task, res);
res               943 fs/nfs/nfs4proc.c 	return nfs41_sequence_done(task, res);
res               971 fs/nfs/nfs4proc.c static int nfs4_sequence_process(struct rpc_task *task, struct nfs4_sequence_res *res)
res               973 fs/nfs/nfs4proc.c 	return nfs40_sequence_done(task, res);
res               976 fs/nfs/nfs4proc.c static void nfs4_sequence_free_slot(struct nfs4_sequence_res *res)
res               978 fs/nfs/nfs4proc.c 	if (res->sr_slot != NULL)
res               979 fs/nfs/nfs4proc.c 		nfs40_sequence_free_slot(res);
res               983 fs/nfs/nfs4proc.c 		       struct nfs4_sequence_res *res)
res               985 fs/nfs/nfs4proc.c 	return nfs40_sequence_done(task, res);
res               991 fs/nfs/nfs4proc.c static void nfs41_sequence_res_init(struct nfs4_sequence_res *res)
res               993 fs/nfs/nfs4proc.c 	res->sr_timestamp = jiffies;
res               994 fs/nfs/nfs4proc.c 	res->sr_status_flags = 0;
res               995 fs/nfs/nfs4proc.c 	res->sr_status = 1;
res              1000 fs/nfs/nfs4proc.c 		struct nfs4_sequence_res *res,
res              1008 fs/nfs/nfs4proc.c 	res->sr_slot = slot;
res              1013 fs/nfs/nfs4proc.c 			struct nfs4_sequence_res *res,
res              1021 fs/nfs/nfs4proc.c 	if (res->sr_slot != NULL)
res              1040 fs/nfs/nfs4proc.c 	nfs4_sequence_attach_slot(args, res, slot);
res              1044 fs/nfs/nfs4proc.c 	nfs41_sequence_res_init(res);
res              1104 fs/nfs/nfs4proc.c 				   struct nfs4_sequence_res *res)
res              1110 fs/nfs/nfs4proc.c 		.seq_res = res,
res              1126 fs/nfs/nfs4proc.c 		   struct nfs4_sequence_res *res,
res              1129 fs/nfs/nfs4proc.c 	nfs4_init_sequence(args, res, cache_reply, 0);
res              1130 fs/nfs/nfs4proc.c 	return nfs4_call_sync_sequence(clnt, server, msg, args, res);
res              1216 fs/nfs/nfs4proc.c 	u32 res = 0;
res              1220 fs/nfs/nfs4proc.c 		res = NFS4_SHARE_ACCESS_READ;
res              1223 fs/nfs/nfs4proc.c 		res = NFS4_SHARE_ACCESS_WRITE;
res              1226 fs/nfs/nfs4proc.c 		res = NFS4_SHARE_ACCESS_BOTH;
res              1232 fs/nfs/nfs4proc.c 		res |= NFS4_SHARE_WANT_NO_DELEG;
res              1234 fs/nfs/nfs4proc.c 	return res;
res              3159 fs/nfs/nfs4proc.c 	struct nfs4_state *res;
res              3172 fs/nfs/nfs4proc.c 		res = ctx->state;
res              3216 fs/nfs/nfs4proc.c 		res = ERR_PTR(nfs4_handle_exception(server,
res              3219 fs/nfs/nfs4proc.c 	return res;
res              3224 fs/nfs/nfs4proc.c 			    struct nfs_setattrres *res,
res              3232 fs/nfs/nfs4proc.c 		.rpc_resp	= res,
res              3240 fs/nfs/nfs4proc.c 	nfs_fattr_init(res->fattr);
res              3268 fs/nfs/nfs4proc.c 	status = nfs4_call_sync(server->client, server, &msg, &arg->seq_args, &res->seq_res, 1);
res              3292 fs/nfs/nfs4proc.c 	struct nfs_setattrres  res = {
res              3309 fs/nfs/nfs4proc.c 		err = _nfs4_do_setattr(inode, &arg, &res, cred, ctx);
res              3414 fs/nfs/nfs4proc.c 	struct nfs_closeres res;
res              3417 fs/nfs/nfs4proc.c 		struct nfs4_layoutreturn_res res;
res              3433 fs/nfs/nfs4proc.c 		pnfs_roc_release(&calldata->lr.arg, &calldata->lr.res,
res              3434 fs/nfs/nfs4proc.c 				calldata->res.lr_ret);
res              3455 fs/nfs/nfs4proc.c 	if (!nfs4_sequence_done(task, &calldata->res.seq_res))
res              3457 fs/nfs/nfs4proc.c 	trace_nfs4_close(state, &calldata->arg, &calldata->res, task->tk_status);
res              3462 fs/nfs/nfs4proc.c 				&calldata->res.lr_res,
res              3463 fs/nfs/nfs4proc.c 				&calldata->res.lr_ret) == -EAGAIN)
res              3471 fs/nfs/nfs4proc.c 			res_stateid = &calldata->res.stateid;
res              3477 fs/nfs/nfs4proc.c 				calldata->res.fattr = NULL;
res              3571 fs/nfs/nfs4proc.c 		calldata->res.lr_res = NULL;
res              3589 fs/nfs/nfs4proc.c 	if (calldata->res.fattr == NULL)
res              3592 fs/nfs/nfs4proc.c 		calldata->res.fattr = NULL;
res              3596 fs/nfs/nfs4proc.c 				&calldata->res.seq_res,
res              3604 fs/nfs/nfs4proc.c 	nfs4_sequence_done(task, &calldata->res.seq_res);
res              3650 fs/nfs/nfs4proc.c 	nfs4_init_sequence(&calldata->arg.seq_args, &calldata->res.seq_res, 1, 0);
res              3664 fs/nfs/nfs4proc.c 	calldata->res.fattr = &calldata->fattr;
res              3665 fs/nfs/nfs4proc.c 	calldata->res.seqid = calldata->arg.seqid;
res              3666 fs/nfs/nfs4proc.c 	calldata->res.server = server;
res              3667 fs/nfs/nfs4proc.c 	calldata->res.lr_ret = -NFS4ERR_NOMATCHING_LAYOUT;
res              3669 fs/nfs/nfs4proc.c 			&calldata->lr.arg, &calldata->lr.res, msg.rpc_cred);
res              3672 fs/nfs/nfs4proc.c 		calldata->res.lr_res = &calldata->lr.res;
res              3677 fs/nfs/nfs4proc.c 	msg.rpc_resp = &calldata->res;
res              3735 fs/nfs/nfs4proc.c 	struct nfs4_server_caps_res res = {};
res              3739 fs/nfs/nfs4proc.c 		.rpc_resp = &res,
res              3752 fs/nfs/nfs4proc.c 	status = nfs4_call_sync(server->client, server, &msg, &args.seq_args, &res.seq_res, 0);
res              3757 fs/nfs/nfs4proc.c 			res.attr_bitmask[1] &= FATTR4_WORD1_NFS40_MASK;
res              3758 fs/nfs/nfs4proc.c 			res.attr_bitmask[2] = 0;
res              3761 fs/nfs/nfs4proc.c 			res.attr_bitmask[2] &= FATTR4_WORD2_NFS41_MASK;
res              3764 fs/nfs/nfs4proc.c 			res.attr_bitmask[2] &= FATTR4_WORD2_NFS42_MASK;
res              3766 fs/nfs/nfs4proc.c 		memcpy(server->attr_bitmask, res.attr_bitmask, sizeof(server->attr_bitmask));
res              3773 fs/nfs/nfs4proc.c 		if (res.attr_bitmask[0] & FATTR4_WORD0_ACL &&
res              3774 fs/nfs/nfs4proc.c 				res.acl_bitmask & ACL4_SUPPORT_ALLOW_ACL)
res              3776 fs/nfs/nfs4proc.c 		if (res.has_links != 0)
res              3778 fs/nfs/nfs4proc.c 		if (res.has_symlinks != 0)
res              3780 fs/nfs/nfs4proc.c 		if (res.attr_bitmask[0] & FATTR4_WORD0_FILEID)
res              3782 fs/nfs/nfs4proc.c 		if (res.attr_bitmask[1] & FATTR4_WORD1_MODE)
res              3784 fs/nfs/nfs4proc.c 		if (res.attr_bitmask[1] & FATTR4_WORD1_NUMLINKS)
res              3786 fs/nfs/nfs4proc.c 		if (res.attr_bitmask[1] & FATTR4_WORD1_OWNER)
res              3788 fs/nfs/nfs4proc.c 		if (res.attr_bitmask[1] & FATTR4_WORD1_OWNER_GROUP)
res              3790 fs/nfs/nfs4proc.c 		if (res.attr_bitmask[1] & FATTR4_WORD1_TIME_ACCESS)
res              3792 fs/nfs/nfs4proc.c 		if (res.attr_bitmask[1] & FATTR4_WORD1_TIME_METADATA)
res              3794 fs/nfs/nfs4proc.c 		if (res.attr_bitmask[1] & FATTR4_WORD1_TIME_MODIFY)
res              3797 fs/nfs/nfs4proc.c 		if (res.attr_bitmask[2] & FATTR4_WORD2_SECURITY_LABEL)
res              3800 fs/nfs/nfs4proc.c 		memcpy(server->attr_bitmask_nl, res.attr_bitmask,
res              3804 fs/nfs/nfs4proc.c 		memcpy(server->cache_consistency_bitmask, res.attr_bitmask, sizeof(server->cache_consistency_bitmask));
res              3810 fs/nfs/nfs4proc.c 		for (i = 0; i < ARRAY_SIZE(res.exclcreat_bitmask); i++)
res              3811 fs/nfs/nfs4proc.c 			res.exclcreat_bitmask[i] &= res.attr_bitmask[i];
res              3812 fs/nfs/nfs4proc.c 		memcpy(server->exclcreat_bitmask, res.exclcreat_bitmask,
res              3815 fs/nfs/nfs4proc.c 		server->acl_bitmask = res.acl_bitmask;
res              3816 fs/nfs/nfs4proc.c 		server->fh_expire_type = res.fh_expire_type;
res              3843 fs/nfs/nfs4proc.c 	struct nfs4_lookup_res res = {
res              3851 fs/nfs/nfs4proc.c 		.rpc_resp = &res,
res              3862 fs/nfs/nfs4proc.c 	return nfs4_call_sync(server->client, server, &msg, &args.seq_args, &res.seq_res, 0);
res              4076 fs/nfs/nfs4proc.c 	struct nfs4_getattr_res res = {
res              4084 fs/nfs/nfs4proc.c 		.rpc_resp = &res,
res              4090 fs/nfs/nfs4proc.c 	return nfs4_call_sync(server->client, server, &msg, &args.seq_args, &res.seq_res, 0);
res              4188 fs/nfs/nfs4proc.c 	struct nfs4_lookup_res res = {
res              4197 fs/nfs/nfs4proc.c 		.rpc_resp = &res,
res              4205 fs/nfs/nfs4proc.c 	status = nfs4_call_sync(clnt, server, &msg, &args.seq_args, &res.seq_res, 0);
res              4302 fs/nfs/nfs4proc.c 	struct nfs4_lookupp_res res = {
res              4311 fs/nfs/nfs4proc.c 		.rpc_resp = &res,
res              4320 fs/nfs/nfs4proc.c 				&res.seq_res, 0);
res              4348 fs/nfs/nfs4proc.c 	struct nfs4_accessres res = {
res              4354 fs/nfs/nfs4proc.c 		.rpc_resp = &res,
res              4360 fs/nfs/nfs4proc.c 		res.fattr = nfs_alloc_fattr();
res              4361 fs/nfs/nfs4proc.c 		if (res.fattr == NULL)
res              4365 fs/nfs/nfs4proc.c 	status = nfs4_call_sync(server->client, server, &msg, &args.seq_args, &res.seq_res, 0);
res              4367 fs/nfs/nfs4proc.c 		nfs_access_set_mask(entry, res.access);
res              4368 fs/nfs/nfs4proc.c 		if (res.fattr)
res              4369 fs/nfs/nfs4proc.c 			nfs_refresh_inode(inode, res.fattr);
res              4371 fs/nfs/nfs4proc.c 	nfs_free_fattr(res.fattr);
res              4421 fs/nfs/nfs4proc.c 	struct nfs4_readlink_res res;
res              4425 fs/nfs/nfs4proc.c 		.rpc_resp = &res,
res              4428 fs/nfs/nfs4proc.c 	return nfs4_call_sync(NFS_SERVER(inode)->client, NFS_SERVER(inode), &msg, &args.seq_args, &res.seq_res, 0);
res              4487 fs/nfs/nfs4proc.c 	struct nfs_removeres res = {
res              4493 fs/nfs/nfs4proc.c 		.rpc_resp = &res,
res              4498 fs/nfs/nfs4proc.c 	status = nfs4_call_sync(server->client, server, &msg, &args.seq_args, &res.seq_res, 1);
res              4501 fs/nfs/nfs4proc.c 		update_changeattr_locked(dir, &res.cinfo, timestamp, 0);
res              4554 fs/nfs/nfs4proc.c 	struct nfs_removeres *res = msg->rpc_resp;
res              4556 fs/nfs/nfs4proc.c 	res->server = NFS_SB(dentry->d_sb);
res              4558 fs/nfs/nfs4proc.c 	nfs4_init_sequence(&args->seq_args, &res->seq_res, 1, 0);
res              4560 fs/nfs/nfs4proc.c 	nfs_fattr_init(res->dir_attr);
res              4570 fs/nfs/nfs4proc.c 			&data->res.seq_res,
res              4577 fs/nfs/nfs4proc.c 	struct nfs_removeres *res = &data->res;
res              4579 fs/nfs/nfs4proc.c 	if (!nfs4_sequence_done(task, &res->seq_res))
res              4581 fs/nfs/nfs4proc.c 	if (nfs4_async_handle_error(task, res->server, NULL,
res              4585 fs/nfs/nfs4proc.c 		update_changeattr(dir, &res->cinfo,
res              4586 fs/nfs/nfs4proc.c 				res->dir_attr->time_start, 0);
res              4595 fs/nfs/nfs4proc.c 	struct nfs_renameres *res = msg->rpc_resp;
res              4604 fs/nfs/nfs4proc.c 	res->server = NFS_SB(old_dentry->d_sb);
res              4605 fs/nfs/nfs4proc.c 	nfs4_init_sequence(&arg->seq_args, &res->seq_res, 1, 0);
res              4612 fs/nfs/nfs4proc.c 			&data->res.seq_res,
res              4620 fs/nfs/nfs4proc.c 	struct nfs_renameres *res = &data->res;
res              4622 fs/nfs/nfs4proc.c 	if (!nfs4_sequence_done(task, &res->seq_res))
res              4624 fs/nfs/nfs4proc.c 	if (nfs4_async_handle_error(task, res->server, NULL, &data->timeout) == -EAGAIN)
res              4630 fs/nfs/nfs4proc.c 			update_changeattr(old_dir, &res->old_cinfo,
res              4631 fs/nfs/nfs4proc.c 					res->old_fattr->time_start,
res              4633 fs/nfs/nfs4proc.c 			update_changeattr(new_dir, &res->new_cinfo,
res              4634 fs/nfs/nfs4proc.c 					res->new_fattr->time_start,
res              4637 fs/nfs/nfs4proc.c 			update_changeattr(old_dir, &res->old_cinfo,
res              4638 fs/nfs/nfs4proc.c 					res->old_fattr->time_start,
res              4654 fs/nfs/nfs4proc.c 	struct nfs4_link_res res = {
res              4661 fs/nfs/nfs4proc.c 		.rpc_resp = &res,
res              4665 fs/nfs/nfs4proc.c 	res.fattr = nfs_alloc_fattr();
res              4666 fs/nfs/nfs4proc.c 	if (res.fattr == NULL)
res              4669 fs/nfs/nfs4proc.c 	res.label = nfs4_label_alloc(server, GFP_KERNEL);
res              4670 fs/nfs/nfs4proc.c 	if (IS_ERR(res.label)) {
res              4671 fs/nfs/nfs4proc.c 		status = PTR_ERR(res.label);
res              4676 fs/nfs/nfs4proc.c 	nfs4_bitmap_copy_adjust_setattr(bitmask, nfs4_bitmask(server, res.label), inode);
res              4678 fs/nfs/nfs4proc.c 	status = nfs4_call_sync(server->client, server, &msg, &arg.seq_args, &res.seq_res, 1);
res              4680 fs/nfs/nfs4proc.c 		update_changeattr(dir, &res.cinfo, res.fattr->time_start, 0);
res              4681 fs/nfs/nfs4proc.c 		status = nfs_post_op_update_inode(inode, res.fattr);
res              4683 fs/nfs/nfs4proc.c 			nfs_setsecurity(inode, res.fattr, res.label);
res              4687 fs/nfs/nfs4proc.c 	nfs4_label_free(res.label);
res              4690 fs/nfs/nfs4proc.c 	nfs_free_fattr(res.fattr);
res              4711 fs/nfs/nfs4proc.c 	struct nfs4_create_res res;
res              4732 fs/nfs/nfs4proc.c 		data->msg.rpc_resp = &data->res;
res              4740 fs/nfs/nfs4proc.c 		data->res.server = server;
res              4741 fs/nfs/nfs4proc.c 		data->res.fh = &data->fh;
res              4742 fs/nfs/nfs4proc.c 		data->res.fattr = &data->fattr;
res              4743 fs/nfs/nfs4proc.c 		data->res.label = data->label;
res              4744 fs/nfs/nfs4proc.c 		nfs_fattr_init(data->res.fattr);
res              4755 fs/nfs/nfs4proc.c 				    &data->arg.seq_args, &data->res.seq_res, 1);
res              4758 fs/nfs/nfs4proc.c 		update_changeattr_locked(dir, &data->res.dir_cinfo,
res              4759 fs/nfs/nfs4proc.c 				data->res.fattr->time_start, 0);
res              4764 fs/nfs/nfs4proc.c 		status = nfs_instantiate(dentry, data->res.fh, data->res.fattr, data->res.label);
res              4879 fs/nfs/nfs4proc.c 	struct nfs4_readdir_res res;
res              4883 fs/nfs/nfs4proc.c 		.rpc_resp = &res,
res              4892 fs/nfs/nfs4proc.c 	res.pgbase = args.pgbase;
res              4893 fs/nfs/nfs4proc.c 	status = nfs4_call_sync(NFS_SERVER(dir)->client, NFS_SERVER(dir), &msg, &args.seq_args, &res.seq_res, 0);
res              4895 fs/nfs/nfs4proc.c 		memcpy(NFS_I(dir)->cookieverf, res.verifier.data, NFS4_VERIFIER_SIZE);
res              4990 fs/nfs/nfs4proc.c 	struct nfs4_statfs_res res = {
res              4996 fs/nfs/nfs4proc.c 		.rpc_resp = &res,
res              5000 fs/nfs/nfs4proc.c 	return  nfs4_call_sync(server->client, server, &msg, &args.seq_args, &res.seq_res, 0);
res              5024 fs/nfs/nfs4proc.c 	struct nfs4_fsinfo_res res = {
res              5030 fs/nfs/nfs4proc.c 		.rpc_resp = &res,
res              5033 fs/nfs/nfs4proc.c 	return nfs4_call_sync(server->client, server, &msg, &args.seq_args, &res.seq_res, 0);
res              5077 fs/nfs/nfs4proc.c 	struct nfs4_pathconf_res res = {
res              5083 fs/nfs/nfs4proc.c 		.rpc_resp = &res,
res              5093 fs/nfs/nfs4proc.c 	return nfs4_call_sync(server->client, server, &msg, &args.seq_args, &res.seq_res, 0);
res              5192 fs/nfs/nfs4proc.c 	if (!nfs4_sequence_done(task, &hdr->res.seq_res))
res              5209 fs/nfs/nfs4proc.c 	nfs4_init_sequence(&hdr->args.seq_args, &hdr->res.seq_res, 0, 0);
res              5217 fs/nfs/nfs4proc.c 			&hdr->res.seq_res,
res              5272 fs/nfs/nfs4proc.c 	if (!nfs4_sequence_done(task, &hdr->res.seq_res))
res              5300 fs/nfs/nfs4proc.c 		hdr->res.fattr = NULL;
res              5306 fs/nfs/nfs4proc.c 	hdr->res.server = server;
res              5310 fs/nfs/nfs4proc.c 	nfs4_init_sequence(&hdr->args.seq_args, &hdr->res.seq_res, 0, 0);
res              5318 fs/nfs/nfs4proc.c 			&data->res.seq_res,
res              5337 fs/nfs/nfs4proc.c 	if (!nfs4_sequence_done(task, &data->res.seq_res))
res              5349 fs/nfs/nfs4proc.c 	data->res.server = server;
res              5351 fs/nfs/nfs4proc.c 	nfs4_init_sequence(&data->args.seq_args, &data->res.seq_res, 1, 0);
res              5356 fs/nfs/nfs4proc.c 				struct nfs_commitres *res)
res              5363 fs/nfs/nfs4proc.c 		.rpc_resp = res,
res              5368 fs/nfs/nfs4proc.c 			&args->seq_args, &res->seq_res, 1);
res              5371 fs/nfs/nfs4proc.c int nfs4_proc_commit(struct file *dst, __u64 offset, __u32 count, struct nfs_commitres *res)
res              5382 fs/nfs/nfs4proc.c 		status = _nfs4_proc_commit(dst, &args, res);
res              5607 fs/nfs/nfs4proc.c 	struct nfs_getaclres res = {
res              5613 fs/nfs/nfs4proc.c 		.rpc_resp = &res,
res              5628 fs/nfs/nfs4proc.c 	res.acl_scratch = alloc_page(GFP_KERNEL);
res              5629 fs/nfs/nfs4proc.c 	if (!res.acl_scratch)
res              5637 fs/nfs/nfs4proc.c 			     &msg, &args.seq_args, &res.seq_res, 0);
res              5642 fs/nfs/nfs4proc.c 	if (res.acl_flags & NFS4_ACL_TRUNC) {
res              5649 fs/nfs/nfs4proc.c 	nfs4_write_cached_acl(inode, pages, res.acl_data_offset, res.acl_len);
res              5651 fs/nfs/nfs4proc.c 		if (res.acl_len > buflen) {
res              5655 fs/nfs/nfs4proc.c 		_copy_from_pages(buf, pages, res.acl_data_offset, res.acl_len);
res              5658 fs/nfs/nfs4proc.c 	ret = res.acl_len;
res              5663 fs/nfs/nfs4proc.c 	if (res.acl_scratch)
res              5664 fs/nfs/nfs4proc.c 		__free_page(res.acl_scratch);
res              5713 fs/nfs/nfs4proc.c 	struct nfs_setaclres res;
res              5717 fs/nfs/nfs4proc.c 		.rpc_resp	= &res,
res              5730 fs/nfs/nfs4proc.c 	ret = nfs4_call_sync(server->client, server, &msg, &arg.seq_args, &res.seq_res, 1);
res              5779 fs/nfs/nfs4proc.c 	struct nfs4_getattr_res res = {
res              5787 fs/nfs/nfs4proc.c 		.rpc_resp	= &res,
res              5793 fs/nfs/nfs4proc.c 	ret = nfs4_call_sync(server->client, server, &msg, &arg.seq_args, &res.seq_res, 0);
res              5839 fs/nfs/nfs4proc.c 	struct nfs_setattrres res = {
res              5847 fs/nfs/nfs4proc.c 		.rpc_resp	= &res,
res              5853 fs/nfs/nfs4proc.c 	status = nfs4_call_sync(server->client, server, &msg, &arg.seq_args, &res.seq_res, 1);
res              6082 fs/nfs/nfs4proc.c 		struct nfs4_setclientid_res *res)
res              6093 fs/nfs/nfs4proc.c 		.rpc_resp = res,
res              6176 fs/nfs/nfs4proc.c 	struct nfs4_delegreturnres res;
res              6182 fs/nfs/nfs4proc.c 		struct nfs4_layoutreturn_res res;
res              6200 fs/nfs/nfs4proc.c 	if (!nfs4_sequence_done(task, &data->res.seq_res))
res              6203 fs/nfs/nfs4proc.c 	trace_nfs4_delegreturn_exit(&data->args, &data->res, task->tk_status);
res              6208 fs/nfs/nfs4proc.c 				&data->res.lr_res,
res              6209 fs/nfs/nfs4proc.c 				&data->res.lr_ret) == -EAGAIN)
res              6214 fs/nfs/nfs4proc.c 		renew_lease(data->res.server, data->timestamp);
res              6219 fs/nfs/nfs4proc.c 		nfs4_free_revoked_stateid(data->res.server,
res              6235 fs/nfs/nfs4proc.c 			data->res.fattr = NULL;
res              6241 fs/nfs/nfs4proc.c 				data->res.server, task->tk_status,
res              6260 fs/nfs/nfs4proc.c 			pnfs_roc_release(&data->lr.arg, &data->lr.res,
res              6261 fs/nfs/nfs4proc.c 					data->res.lr_ret);
res              6276 fs/nfs/nfs4proc.c 		nfs4_sequence_done(task, &d_data->res.seq_res);
res              6283 fs/nfs/nfs4proc.c 		d_data->res.lr_res = NULL;
res              6286 fs/nfs/nfs4proc.c 	nfs4_setup_sequence(d_data->res.server->nfs_client,
res              6288 fs/nfs/nfs4proc.c 			&d_data->res.seq_res,
res              6318 fs/nfs/nfs4proc.c 	nfs4_init_sequence(&data->args.seq_args, &data->res.seq_res, 1, 0);
res              6329 fs/nfs/nfs4proc.c 	data->res.fattr = &data->fattr;
res              6330 fs/nfs/nfs4proc.c 	data->res.server = server;
res              6331 fs/nfs/nfs4proc.c 	data->res.lr_ret = -NFS4ERR_NOMATCHING_LAYOUT;
res              6333 fs/nfs/nfs4proc.c 	nfs_fattr_init(data->res.fattr);
res              6336 fs/nfs/nfs4proc.c 	data->lr.roc = pnfs_roc(inode, &data->lr.arg, &data->lr.res, cred);
res              6341 fs/nfs/nfs4proc.c 			data->res.lr_res = &data->lr.res;
res              6344 fs/nfs/nfs4proc.c 		pnfs_roc_release(&data->lr.arg, &data->lr.res, 0);
res              6350 fs/nfs/nfs4proc.c 	msg.rpc_resp = &data->res;
res              6393 fs/nfs/nfs4proc.c 	struct nfs_lockt_res res = {
res              6399 fs/nfs/nfs4proc.c 		.rpc_resp	= &res,
res              6412 fs/nfs/nfs4proc.c 	status = nfs4_call_sync(server->client, server, &msg, &arg.seq_args, &res.seq_res, 1);
res              6480 fs/nfs/nfs4proc.c 	struct nfs_locku_res res;
res              6504 fs/nfs/nfs4proc.c 	p->res.seqid = seqid;
res              6536 fs/nfs/nfs4proc.c 	if (!nfs4_sequence_done(task, &calldata->res.seq_res))
res              6543 fs/nfs/nfs4proc.c 					&calldata->res.stateid))
res              6590 fs/nfs/nfs4proc.c 				&calldata->res.seq_res,
res              6597 fs/nfs/nfs4proc.c 	nfs4_sequence_done(task, &calldata->res.seq_res);
res              6640 fs/nfs/nfs4proc.c 	nfs4_init_sequence(&data->arg.seq_args, &data->res.seq_res, 1, 0);
res              6642 fs/nfs/nfs4proc.c 	msg.rpc_resp = &data->res;
res              6698 fs/nfs/nfs4proc.c 	struct nfs_lock_res res;
res              6733 fs/nfs/nfs4proc.c 	p->res.lock_seqid = p->arg.lock_seqid;
res              6763 fs/nfs/nfs4proc.c 		data->res.open_seqid = data->arg.open_seqid;
res              6777 fs/nfs/nfs4proc.c 				&data->res.seq_res,
res              6785 fs/nfs/nfs4proc.c 	nfs4_sequence_done(task, &data->res.seq_res);
res              6796 fs/nfs/nfs4proc.c 	if (!nfs4_sequence_done(task, &data->res.seq_res))
res              6811 fs/nfs/nfs4proc.c 			nfs4_stateid_copy(&lsp->ls_stateid, &data->res.stateid);
res              6813 fs/nfs/nfs4proc.c 		} else if (!nfs4_update_lock_stateid(lsp, &data->res.stateid))
res              6906 fs/nfs/nfs4proc.c 	nfs4_init_sequence(&data->arg.seq_args, &data->res.seq_res, 1,
res              6909 fs/nfs/nfs4proc.c 	msg.rpc_resp = &data->res;
res              6929 fs/nfs/nfs4proc.c 	trace_nfs4_set_lock(fl, state, &data->res.stateid, cmd, ret);
res              7229 fs/nfs/nfs4proc.c 	struct nfs_release_lockowner_res res;
res              7238 fs/nfs/nfs4proc.c 			   &data->res.seq_res, task);
res              7248 fs/nfs/nfs4proc.c 	nfs40_sequence_done(task, &data->res.seq_res);
res              7300 fs/nfs/nfs4proc.c 	msg.rpc_resp = &data->res;
res              7301 fs/nfs/nfs4proc.c 	nfs4_init_sequence(&data->args.seq_args, &data->res.seq_res, 0, 0);
res              7408 fs/nfs/nfs4proc.c 	struct nfs4_fs_locations_res res = {
res              7414 fs/nfs/nfs4proc.c 		.rpc_resp = &res,
res              7433 fs/nfs/nfs4proc.c 	status = nfs4_call_sync(client, server, &msg, &args.seq_args, &res.seq_res, 0);
res              7481 fs/nfs/nfs4proc.c 	struct nfs4_fs_locations_res res = {
res              7489 fs/nfs/nfs4proc.c 		.rpc_resp	= &res,
res              7499 fs/nfs/nfs4proc.c 	nfs4_init_sequence(&args.seq_args, &res.seq_res, 0, 1);
res              7501 fs/nfs/nfs4proc.c 					&args.seq_args, &res.seq_res);
res              7536 fs/nfs/nfs4proc.c 	struct nfs4_fs_locations_res res = {
res              7543 fs/nfs/nfs4proc.c 		.rpc_resp	= &res,
res              7552 fs/nfs/nfs4proc.c 	nfs4_init_sequence(&args.seq_args, &res.seq_res, 0, 1);
res              7554 fs/nfs/nfs4proc.c 					&args.seq_args, &res.seq_res);
res              7556 fs/nfs/nfs4proc.c 	    res.seq_res.sr_status_flags & SEQ4_STATUS_LEASE_MOVED)
res              7625 fs/nfs/nfs4proc.c 	struct nfs4_fsid_present_res res = {
res              7631 fs/nfs/nfs4proc.c 		.rpc_resp	= &res,
res              7637 fs/nfs/nfs4proc.c 	res.fh = nfs_alloc_fhandle();
res              7638 fs/nfs/nfs4proc.c 	if (res.fh == NULL)
res              7641 fs/nfs/nfs4proc.c 	nfs4_init_sequence(&args.seq_args, &res.seq_res, 0, 1);
res              7643 fs/nfs/nfs4proc.c 						&args.seq_args, &res.seq_res);
res              7644 fs/nfs/nfs4proc.c 	nfs_free_fhandle(res.fh);
res              7668 fs/nfs/nfs4proc.c 	struct nfs4_fsid_present_res res = {
res              7673 fs/nfs/nfs4proc.c 		.rpc_resp	= &res,
res              7678 fs/nfs/nfs4proc.c 	res.fh = nfs_alloc_fhandle();
res              7679 fs/nfs/nfs4proc.c 	if (res.fh == NULL)
res              7682 fs/nfs/nfs4proc.c 	nfs4_init_sequence(&args.seq_args, &res.seq_res, 0, 1);
res              7684 fs/nfs/nfs4proc.c 						&args.seq_args, &res.seq_res);
res              7685 fs/nfs/nfs4proc.c 	nfs_free_fhandle(res.fh);
res              7687 fs/nfs/nfs4proc.c 	    res.seq_res.sr_status_flags & SEQ4_STATUS_LEASE_MOVED)
res              7750 fs/nfs/nfs4proc.c 	struct nfs4_secinfo_res res = {
res              7756 fs/nfs/nfs4proc.c 		.rpc_resp = &res,
res              7761 fs/nfs/nfs4proc.c 		.seq_res = &res.seq_res,
res              7783 fs/nfs/nfs4proc.c 	nfs4_init_sequence(&args.seq_args, &res.seq_res, 0, 0);
res              7855 fs/nfs/nfs4proc.c 	struct nfs41_bind_conn_to_session_res *res = task->tk_msg.rpc_resp;
res              7865 fs/nfs/nfs4proc.c 			res->dir != NFS4_CDFS4_BOTH) {
res              7894 fs/nfs/nfs4proc.c 	struct nfs41_bind_conn_to_session_res res;
res              7899 fs/nfs/nfs4proc.c 		.rpc_resp = &res,
res              7927 fs/nfs/nfs4proc.c 		if (memcmp(res.sessionid.data,
res              7932 fs/nfs/nfs4proc.c 		if ((res.dir & args.dir) != res.dir || res.dir == 0) {
res              7937 fs/nfs/nfs4proc.c 		if (res.use_conn_in_rdma_mode != args.use_conn_in_rdma_mode) {
res              8102 fs/nfs/nfs4proc.c 	struct nfs41_exchange_id_res res;
res              8112 fs/nfs/nfs4proc.c 	kfree(cdata->res.impl_id);
res              8113 fs/nfs/nfs4proc.c 	kfree(cdata->res.server_scope);
res              8114 fs/nfs/nfs4proc.c 	kfree(cdata->res.server_owner);
res              8158 fs/nfs/nfs4proc.c 	calldata->res.server_owner = kzalloc(sizeof(struct nfs41_server_owner),
res              8161 fs/nfs/nfs4proc.c 	if (unlikely(calldata->res.server_owner == NULL))
res              8164 fs/nfs/nfs4proc.c 	calldata->res.server_scope = kzalloc(sizeof(struct nfs41_server_scope),
res              8166 fs/nfs/nfs4proc.c 	if (unlikely(calldata->res.server_scope == NULL))
res              8169 fs/nfs/nfs4proc.c 	calldata->res.impl_id = kzalloc(sizeof(struct nfs41_impl_id), GFP_NOFS);
res              8170 fs/nfs/nfs4proc.c 	if (unlikely(calldata->res.impl_id == NULL))
res              8201 fs/nfs/nfs4proc.c 	msg.rpc_resp = &calldata->res;
res              8207 fs/nfs/nfs4proc.c 	kfree(calldata->res.impl_id);
res              8209 fs/nfs/nfs4proc.c 	kfree(calldata->res.server_scope);
res              8211 fs/nfs/nfs4proc.c 	kfree(calldata->res.server_owner);
res              8423 fs/nfs/nfs4proc.c 	struct nfs4_get_lease_time_res *res;
res              8438 fs/nfs/nfs4proc.c 			&data->res->lr_seq_res,
res              8453 fs/nfs/nfs4proc.c 	if (!nfs4_sequence_done(task, &data->res->lr_seq_res))
res              8477 fs/nfs/nfs4proc.c 	struct nfs4_get_lease_time_res res = {
res              8482 fs/nfs/nfs4proc.c 		.res = &res,
res              8488 fs/nfs/nfs4proc.c 		.rpc_resp = &res,
res              8498 fs/nfs/nfs4proc.c 	nfs4_init_sequence(&args.la_seq_args, &res.lr_seq_res, 0, 1);
res              8553 fs/nfs/nfs4proc.c 		struct nfs41_create_session_res *res)
res              8556 fs/nfs/nfs4proc.c 	struct nfs4_channel_attrs *rcvd = &res->fc_attrs;
res              8576 fs/nfs/nfs4proc.c 		struct nfs41_create_session_res *res)
res              8579 fs/nfs/nfs4proc.c 	struct nfs4_channel_attrs *rcvd = &res->bc_attrs;
res              8581 fs/nfs/nfs4proc.c 	if (!(res->flags & SESSION4_BACK_CHAN))
res              8598 fs/nfs/nfs4proc.c 				     struct nfs41_create_session_res *res)
res              8602 fs/nfs/nfs4proc.c 	ret = nfs4_verify_fore_channel_attrs(args, res);
res              8605 fs/nfs/nfs4proc.c 	return nfs4_verify_back_channel_attrs(args, res);
res              8609 fs/nfs/nfs4proc.c 		struct nfs41_create_session_res *res)
res              8611 fs/nfs/nfs4proc.c 	nfs4_copy_sessionid(&session->sess_id, &res->sessionid);
res              8615 fs/nfs/nfs4proc.c 	session->flags = res->flags;
res              8616 fs/nfs/nfs4proc.c 	memcpy(&session->fc_attrs, &res->fc_attrs, sizeof(session->fc_attrs));
res              8617 fs/nfs/nfs4proc.c 	if (res->flags & SESSION4_BACK_CHAN)
res              8618 fs/nfs/nfs4proc.c 		memcpy(&session->bc_attrs, &res->bc_attrs,
res              8632 fs/nfs/nfs4proc.c 	struct nfs41_create_session_res res;
res              8637 fs/nfs/nfs4proc.c 		.rpc_resp = &res,
res              8661 fs/nfs/nfs4proc.c 		status = nfs4_verify_channel_attrs(&args, &res);
res              8665 fs/nfs/nfs4proc.c 		nfs4_update_session(session, &res);
res              8740 fs/nfs/nfs4proc.c 	struct nfs4_sequence_res res;
res              8795 fs/nfs/nfs4proc.c 	struct nfs4_sequence_res *res;
res              8798 fs/nfs/nfs4proc.c 	res = task->tk_msg.rpc_resp;
res              8800 fs/nfs/nfs4proc.c 	nfs4_setup_sequence(clp, args, res, task);
res              8835 fs/nfs/nfs4proc.c 	nfs4_init_sequence(&calldata->args, &calldata->res, 0, is_privileged);
res              8836 fs/nfs/nfs4proc.c 	nfs4_sequence_attach_slot(&calldata->args, &calldata->res, slot);
res              8838 fs/nfs/nfs4proc.c 	msg.rpc_resp = &calldata->res;
res              8891 fs/nfs/nfs4proc.c 	struct nfs41_reclaim_complete_res res;
res              8900 fs/nfs/nfs4proc.c 			&calldata->res.seq_res,
res              8932 fs/nfs/nfs4proc.c 	struct nfs4_sequence_res *res = &calldata->res.seq_res;
res              8935 fs/nfs/nfs4proc.c 	if (!nfs41_sequence_done(task, res))
res              8985 fs/nfs/nfs4proc.c 	nfs4_init_sequence(&calldata->arg.seq_args, &calldata->res.seq_res, 0, 1);
res              8987 fs/nfs/nfs4proc.c 	msg.rpc_resp = &calldata->res;
res              9003 fs/nfs/nfs4proc.c 				&lgp->res.seq_res, task);
res              9012 fs/nfs/nfs4proc.c 	nfs41_sequence_process(task, &lgp->res.seq_res);
res              9029 fs/nfs/nfs4proc.c 	nfs4_sequence_free_slot(&lgp->res.seq_res);
res              9118 fs/nfs/nfs4proc.c 	nfs4_sequence_free_slot(&lgp->res.seq_res);
res              9138 fs/nfs/nfs4proc.c 		.rpc_resp = &lgp->res,
res              9160 fs/nfs/nfs4proc.c 	nfs4_init_sequence(&lgp->args.seq_args, &lgp->res.seq_res, 0, 0);
res              9172 fs/nfs/nfs4proc.c 	} else if (lgp->res.layoutp->len == 0) {
res              9180 fs/nfs/nfs4proc.c 			&lgp->res.range,
res              9181 fs/nfs/nfs4proc.c 			&lgp->res.stateid,
res              9199 fs/nfs/nfs4proc.c 			&lrp->res.seq_res,
res              9212 fs/nfs/nfs4proc.c 	if (!nfs41_sequence_process(task, &lrp->res.seq_res))
res              9220 fs/nfs/nfs4proc.c 		lrp->res.lrs_present = 0;
res              9246 fs/nfs/nfs4proc.c 	nfs4_sequence_free_slot(&lrp->res.seq_res);
res              9257 fs/nfs/nfs4proc.c 			lrp->res.lrs_present ? &lrp->res.stateid : NULL);
res              9258 fs/nfs/nfs4proc.c 	nfs4_sequence_free_slot(&lrp->res.seq_res);
res              9279 fs/nfs/nfs4proc.c 		.rpc_resp = &lrp->res,
res              9303 fs/nfs/nfs4proc.c 	nfs4_init_sequence(&lrp->args.seq_args, &lrp->res.seq_res, 1, 0);
res              9325 fs/nfs/nfs4proc.c 	struct nfs4_getdeviceinfo_res res = {
res              9331 fs/nfs/nfs4proc.c 		.rpc_resp = &res,
res              9337 fs/nfs/nfs4proc.c 	status = nfs4_call_sync(server->client, server, &msg, &args.seq_args, &res.seq_res, 0);
res              9338 fs/nfs/nfs4proc.c 	if (res.notification & ~args.notify_types)
res              9340 fs/nfs/nfs4proc.c 	if (res.notification != args.notify_types)
res              9371 fs/nfs/nfs4proc.c 			&data->res.seq_res,
res              9381 fs/nfs/nfs4proc.c 	if (!nfs41_sequence_done(task, &data->res.seq_res))
res              9406 fs/nfs/nfs4proc.c 					   data->res.fattr);
res              9424 fs/nfs/nfs4proc.c 		.rpc_resp = &data->res,
res              9450 fs/nfs/nfs4proc.c 	nfs4_init_sequence(&data->args.seq_args, &data->res.seq_res, 1, 0);
res              9474 fs/nfs/nfs4proc.c 	struct nfs4_secinfo_res res = {
res              9480 fs/nfs/nfs4proc.c 		.rpc_resp = &res,
res              9486 fs/nfs/nfs4proc.c 		.seq_res = &res.seq_res,
res              9507 fs/nfs/nfs4proc.c 	nfs4_init_sequence(&args.seq_args, &res.seq_res, 0, 0);
res              9632 fs/nfs/nfs4proc.c 	struct nfs41_test_stateid_res res;
res              9636 fs/nfs/nfs4proc.c 		.rpc_resp = &res,
res              9645 fs/nfs/nfs4proc.c 	nfs4_init_sequence(&args.seq_args, &res.seq_res, 0, 1);
res              9647 fs/nfs/nfs4proc.c 			&args.seq_args, &res.seq_res);
res              9652 fs/nfs/nfs4proc.c 	dprintk("NFS reply test_stateid: succeeded, %d\n", -res.status);
res              9653 fs/nfs/nfs4proc.c 	return -res.status;
res              9703 fs/nfs/nfs4proc.c 	struct nfs41_free_stateid_res res;
res              9711 fs/nfs/nfs4proc.c 			&data->res.seq_res,
res              9719 fs/nfs/nfs4proc.c 	nfs41_sequence_done(task, &data->res.seq_res);
res              9780 fs/nfs/nfs4proc.c 	msg.rpc_resp = &data->res;
res              9781 fs/nfs/nfs4proc.c 	nfs4_init_sequence(&data->args.seq_args, &data->res.seq_res, 1, privileged);
res               360 fs/nfs/nfs4session.c 	struct nfs4_sequence_res *res = task->tk_msg.rpc_resp;
res               368 fs/nfs/nfs4session.c 	res->sr_timestamp = jiffies;
res               369 fs/nfs/nfs4session.c 	res->sr_slot = slot;
res               370 fs/nfs/nfs4session.c 	res->sr_status_flags = 0;
res               371 fs/nfs/nfs4session.c 	res->sr_status = 1;
res               512 fs/nfs/nfs4session.c 		struct nfs4_sequence_res *res)
res               515 fs/nfs/nfs4session.c 	if (!nfs41_is_outlier_target_slotid(tbl, res->sr_target_highest_slotid))
res               516 fs/nfs/nfs4session.c 		nfs41_set_target_slotid_locked(tbl, res->sr_target_highest_slotid);
res               518 fs/nfs/nfs4session.c 		nfs41_set_server_slotid_locked(tbl, res->sr_highest_slotid);
res               519 fs/nfs/nfs4session.c 	nfs41_set_max_slotid_locked(tbl, res->sr_target_highest_slotid);
res               118 fs/nfs/nfs4session.h 		struct nfs4_sequence_res *res);
res              1301 fs/nfs/nfs4state.c 	int res;
res              1306 fs/nfs/nfs4state.c 	res = wait_on_bit_action(&clp->cl_state, NFS4CLNT_MANAGER_RUNNING,
res              1308 fs/nfs/nfs4state.c 	if (res)
res              1311 fs/nfs/nfs4state.c 		res = clp->cl_cons_state;
res              1314 fs/nfs/nfs4state.c 	return res;
res               244 fs/nfs/nfs4super.c 	struct dentry *res;
res               255 fs/nfs/nfs4super.c 	res = nfs_follow_remote_path(root_mnt, export_path);
res               258 fs/nfs/nfs4super.c 		 PTR_ERR_OR_ZERO(res),
res               259 fs/nfs/nfs4super.c 		 IS_ERR(res) ? " [error]" : "");
res               260 fs/nfs/nfs4super.c 	return res;
res               303 fs/nfs/nfs4super.c 	struct dentry *res;
res               314 fs/nfs/nfs4super.c 	res = nfs_follow_remote_path(root_mnt, export_path);
res               316 fs/nfs/nfs4super.c 		PTR_ERR_OR_ZERO(res),
res               317 fs/nfs/nfs4super.c 		IS_ERR(res) ? " [error]" : "");
res               318 fs/nfs/nfs4super.c 	return res;
res               412 fs/nfs/nfs4trace.h 			const struct nfs4_sequence_res *res
res               414 fs/nfs/nfs4trace.h 		TP_ARGS(session, res),
res               427 fs/nfs/nfs4trace.h 			const struct nfs4_slot *sr_slot = res->sr_slot;
res               431 fs/nfs/nfs4trace.h 			__entry->highest_slotid = res->sr_highest_slotid;
res               433 fs/nfs/nfs4trace.h 					res->sr_target_highest_slotid;
res               434 fs/nfs/nfs4trace.h 			__entry->status_flags = res->sr_status_flags;
res               435 fs/nfs/nfs4trace.h 			__entry->error = res->sr_status < 0 ?
res               436 fs/nfs/nfs4trace.h 					-res->sr_status : 0;
res               460 fs/nfs/nfs4trace.h 			const struct cb_sequenceres *res,
res               463 fs/nfs/nfs4trace.h 		TP_ARGS(args, res, status),
res               737 fs/nfs/nfs4trace.h 			const struct nfs_closeres *res,
res               741 fs/nfs/nfs4trace.h 		TP_ARGS(state, args, res, error),
res               976 fs/nfs/nfs4trace.h 			const struct nfs4_delegreturnres *res,
res               980 fs/nfs/nfs4trace.h 		TP_ARGS(args, res, error),
res               991 fs/nfs/nfs4trace.h 			__entry->dev = res->server->s_dev;
res              1695 fs/nfs/nfs4trace.h 			const struct pnfs_layout_range *res,
res              1700 fs/nfs/nfs4trace.h 		TP_ARGS(ctx, args, res, layout_stateid, error),
res                75 fs/nfs/nfs4xdr.c 			     struct nfs4_layoutget_res *res);
res               994 fs/nfs/nfs4xdr.c 		__u32 *res, size_t len)
res              1003 fs/nfs/nfs4xdr.c 		res[i] = tmp;
res              3362 fs/nfs/nfs4xdr.c static int decode_attr_link_support(struct xdr_stream *xdr, uint32_t *bitmap, uint32_t *res)
res              3366 fs/nfs/nfs4xdr.c 	*res = 0;
res              3373 fs/nfs/nfs4xdr.c 		*res = be32_to_cpup(p);
res              3376 fs/nfs/nfs4xdr.c 	dprintk("%s: link support=%s\n", __func__, *res == 0 ? "false" : "true");
res              3380 fs/nfs/nfs4xdr.c static int decode_attr_symlink_support(struct xdr_stream *xdr, uint32_t *bitmap, uint32_t *res)
res              3384 fs/nfs/nfs4xdr.c 	*res = 0;
res              3391 fs/nfs/nfs4xdr.c 		*res = be32_to_cpup(p);
res              3394 fs/nfs/nfs4xdr.c 	dprintk("%s: symlink support=%s\n", __func__, *res == 0 ? "false" : "true");
res              3422 fs/nfs/nfs4xdr.c static int decode_attr_lease_time(struct xdr_stream *xdr, uint32_t *bitmap, uint32_t *res)
res              3426 fs/nfs/nfs4xdr.c 	*res = 60;
res              3433 fs/nfs/nfs4xdr.c 		*res = be32_to_cpup(p);
res              3436 fs/nfs/nfs4xdr.c 	dprintk("%s: lease time=%u\n", __func__, (unsigned int)*res);
res              3440 fs/nfs/nfs4xdr.c static int decode_attr_error(struct xdr_stream *xdr, uint32_t *bitmap, int32_t *res)
res              3451 fs/nfs/nfs4xdr.c 		*res = -be32_to_cpup(p);
res              3501 fs/nfs/nfs4xdr.c static int decode_attr_aclsupport(struct xdr_stream *xdr, uint32_t *bitmap, uint32_t *res)
res              3505 fs/nfs/nfs4xdr.c 	*res = 0;
res              3512 fs/nfs/nfs4xdr.c 		*res = be32_to_cpup(p);
res              3515 fs/nfs/nfs4xdr.c 	dprintk("%s: ACLs supported=%u\n", __func__, (unsigned int)*res);
res              3559 fs/nfs/nfs4xdr.c static int decode_attr_files_avail(struct xdr_stream *xdr, uint32_t *bitmap, uint64_t *res)
res              3564 fs/nfs/nfs4xdr.c 	*res = 0;
res              3571 fs/nfs/nfs4xdr.c 		xdr_decode_hyper(p, res);
res              3574 fs/nfs/nfs4xdr.c 	dprintk("%s: files avail=%Lu\n", __func__, (unsigned long long)*res);
res              3578 fs/nfs/nfs4xdr.c static int decode_attr_files_free(struct xdr_stream *xdr, uint32_t *bitmap, uint64_t *res)
res              3583 fs/nfs/nfs4xdr.c 	*res = 0;
res              3590 fs/nfs/nfs4xdr.c 		xdr_decode_hyper(p, res);
res              3593 fs/nfs/nfs4xdr.c 	dprintk("%s: files free=%Lu\n", __func__, (unsigned long long)*res);
res              3597 fs/nfs/nfs4xdr.c static int decode_attr_files_total(struct xdr_stream *xdr, uint32_t *bitmap, uint64_t *res)
res              3602 fs/nfs/nfs4xdr.c 	*res = 0;
res              3609 fs/nfs/nfs4xdr.c 		xdr_decode_hyper(p, res);
res              3612 fs/nfs/nfs4xdr.c 	dprintk("%s: files total=%Lu\n", __func__, (unsigned long long)*res);
res              3658 fs/nfs/nfs4xdr.c static int decode_attr_fs_locations(struct xdr_stream *xdr, uint32_t *bitmap, struct nfs4_fs_locations *res)
res              3672 fs/nfs/nfs4xdr.c 	if (unlikely(res == NULL))
res              3675 fs/nfs/nfs4xdr.c 	status = decode_pathname(xdr, &res->fs_path);
res              3684 fs/nfs/nfs4xdr.c 	for (res->nlocations = 0; res->nlocations < n; res->nlocations++) {
res              3688 fs/nfs/nfs4xdr.c 		if (res->nlocations == NFS4_FS_LOCATIONS_MAXENTRIES)
res              3690 fs/nfs/nfs4xdr.c 		loc = &res->locations[res->nlocations];
res              3706 fs/nfs/nfs4xdr.c 						m, res->nlocations);
res              3726 fs/nfs/nfs4xdr.c 	if (res->nlocations != 0)
res              3736 fs/nfs/nfs4xdr.c static int decode_attr_maxfilesize(struct xdr_stream *xdr, uint32_t *bitmap, uint64_t *res)
res              3741 fs/nfs/nfs4xdr.c 	*res = 0;
res              3748 fs/nfs/nfs4xdr.c 		xdr_decode_hyper(p, res);
res              3751 fs/nfs/nfs4xdr.c 	dprintk("%s: maxfilesize=%Lu\n", __func__, (unsigned long long)*res);
res              3793 fs/nfs/nfs4xdr.c static int decode_attr_maxread(struct xdr_stream *xdr, uint32_t *bitmap, uint32_t *res)
res              3798 fs/nfs/nfs4xdr.c 	*res = 1024;
res              3809 fs/nfs/nfs4xdr.c 		*res = (uint32_t)maxread;
res              3812 fs/nfs/nfs4xdr.c 	dprintk("%s: maxread=%lu\n", __func__, (unsigned long)*res);
res              3816 fs/nfs/nfs4xdr.c static int decode_attr_maxwrite(struct xdr_stream *xdr, uint32_t *bitmap, uint32_t *res)
res              3821 fs/nfs/nfs4xdr.c 	*res = 1024;
res              3832 fs/nfs/nfs4xdr.c 		*res = (uint32_t)maxwrite;
res              3835 fs/nfs/nfs4xdr.c 	dprintk("%s: maxwrite=%lu\n", __func__, (unsigned long)*res);
res              3989 fs/nfs/nfs4xdr.c static int decode_attr_space_avail(struct xdr_stream *xdr, uint32_t *bitmap, uint64_t *res)
res              3994 fs/nfs/nfs4xdr.c 	*res = 0;
res              4001 fs/nfs/nfs4xdr.c 		xdr_decode_hyper(p, res);
res              4004 fs/nfs/nfs4xdr.c 	dprintk("%s: space avail=%Lu\n", __func__, (unsigned long long)*res);
res              4008 fs/nfs/nfs4xdr.c static int decode_attr_space_free(struct xdr_stream *xdr, uint32_t *bitmap, uint64_t *res)
res              4013 fs/nfs/nfs4xdr.c 	*res = 0;
res              4020 fs/nfs/nfs4xdr.c 		xdr_decode_hyper(p, res);
res              4023 fs/nfs/nfs4xdr.c 	dprintk("%s: space free=%Lu\n", __func__, (unsigned long long)*res);
res              4027 fs/nfs/nfs4xdr.c static int decode_attr_space_total(struct xdr_stream *xdr, uint32_t *bitmap, uint64_t *res)
res              4032 fs/nfs/nfs4xdr.c 	*res = 0;
res              4039 fs/nfs/nfs4xdr.c 		xdr_decode_hyper(p, res);
res              4042 fs/nfs/nfs4xdr.c 	dprintk("%s: space total=%Lu\n", __func__, (unsigned long long)*res);
res              4295 fs/nfs/nfs4xdr.c static int decode_close(struct xdr_stream *xdr, struct nfs_closeres *res)
res              4301 fs/nfs/nfs4xdr.c 		nfs_increment_open_seqid(status, res->seqid);
res              4303 fs/nfs/nfs4xdr.c 		status = decode_invalid_stateid(xdr, &res->stateid);
res              4317 fs/nfs/nfs4xdr.c static int decode_commit(struct xdr_stream *xdr, struct nfs_commitres *res)
res              4319 fs/nfs/nfs4xdr.c 	struct nfs_writeverf *verf = res->verf;
res              4351 fs/nfs/nfs4xdr.c static int decode_server_caps(struct xdr_stream *xdr, struct nfs4_server_caps_res *res)
res              4363 fs/nfs/nfs4xdr.c 	if ((status = decode_attr_supported(xdr, bitmap, res->attr_bitmask)) != 0)
res              4366 fs/nfs/nfs4xdr.c 						 &res->fh_expire_type)) != 0)
res              4368 fs/nfs/nfs4xdr.c 	if ((status = decode_attr_link_support(xdr, bitmap, &res->has_links)) != 0)
res              4370 fs/nfs/nfs4xdr.c 	if ((status = decode_attr_symlink_support(xdr, bitmap, &res->has_symlinks)) != 0)
res              4372 fs/nfs/nfs4xdr.c 	if ((status = decode_attr_aclsupport(xdr, bitmap, &res->acl_bitmask)) != 0)
res              4375 fs/nfs/nfs4xdr.c 				res->exclcreat_bitmask)) != 0)
res              4446 fs/nfs/nfs4xdr.c 				  uint64_t *res,
res              4451 fs/nfs/nfs4xdr.c 	*res = 0;
res              4456 fs/nfs/nfs4xdr.c 		xdr_decode_hyper(p, res);
res              4462 fs/nfs/nfs4xdr.c 					struct nfs4_threshold *res)
res              4473 fs/nfs/nfs4xdr.c 	res->l_type = be32_to_cpup(p);
res              4485 fs/nfs/nfs4xdr.c 	status = decode_threshold_hint(xdr, bitmap, &res->rd_sz, THRESHOLD_RD);
res              4488 fs/nfs/nfs4xdr.c 	status = decode_threshold_hint(xdr, bitmap, &res->wr_sz, THRESHOLD_WR);
res              4491 fs/nfs/nfs4xdr.c 	status = decode_threshold_hint(xdr, bitmap, &res->rd_io_sz,
res              4495 fs/nfs/nfs4xdr.c 	status = decode_threshold_hint(xdr, bitmap, &res->wr_io_sz,
res              4501 fs/nfs/nfs4xdr.c 	res->bm = bitmap[0];
res              4504 fs/nfs/nfs4xdr.c 		 __func__, res->bm, res->rd_sz, res->wr_sz, res->rd_io_sz,
res              4505 fs/nfs/nfs4xdr.c 		res->wr_io_sz);
res              4516 fs/nfs/nfs4xdr.c 				    struct nfs4_threshold *res)
res              4526 fs/nfs/nfs4xdr.c 		if (unlikely(res == NULL))
res              4539 fs/nfs/nfs4xdr.c 		status = decode_first_threshold_item4(xdr, res);
res              4777 fs/nfs/nfs4xdr.c 				      uint32_t *res)
res              4782 fs/nfs/nfs4xdr.c 	*res = 0;
res              4787 fs/nfs/nfs4xdr.c 		*res = be32_to_cpup(p);
res              4797 fs/nfs/nfs4xdr.c 				     uint32_t *res)
res              4802 fs/nfs/nfs4xdr.c 	*res = 0;
res              4807 fs/nfs/nfs4xdr.c 		*res = be32_to_cpup(p);
res              4937 fs/nfs/nfs4xdr.c static int decode_lock(struct xdr_stream *xdr, struct nfs_lock_res *res)
res              4945 fs/nfs/nfs4xdr.c 		status = decode_lock_stateid(xdr, &res->stateid);
res              4950 fs/nfs/nfs4xdr.c 	if (res->open_seqid != NULL)
res              4951 fs/nfs/nfs4xdr.c 		nfs_increment_open_seqid(status, res->open_seqid);
res              4952 fs/nfs/nfs4xdr.c 	nfs_increment_lock_seqid(status, res->lock_seqid);
res              4957 fs/nfs/nfs4xdr.c static int decode_lockt(struct xdr_stream *xdr, struct nfs_lockt_res *res)
res              4962 fs/nfs/nfs4xdr.c 		return decode_lock_denied(xdr, res->denied);
res              4966 fs/nfs/nfs4xdr.c static int decode_locku(struct xdr_stream *xdr, struct nfs_locku_res *res)
res              4972 fs/nfs/nfs4xdr.c 		nfs_increment_lock_seqid(status, res->seqid);
res              4974 fs/nfs/nfs4xdr.c 		status = decode_lock_stateid(xdr, &res->stateid);
res              5021 fs/nfs/nfs4xdr.c 		struct nfs_openres *res)
res              5026 fs/nfs/nfs4xdr.c 	status = decode_delegation_stateid(xdr, &res->delegation);
res              5032 fs/nfs/nfs4xdr.c 	res->do_recall = be32_to_cpup(p);
res              5036 fs/nfs/nfs4xdr.c 		res->delegation_type = FMODE_READ;
res              5039 fs/nfs/nfs4xdr.c 		res->delegation_type = FMODE_WRITE|FMODE_READ;
res              5040 fs/nfs/nfs4xdr.c 		if (decode_space_limit(xdr, &res->pagemod_limit) < 0)
res              5046 fs/nfs/nfs4xdr.c static int decode_no_delegation(struct xdr_stream *xdr, struct nfs_openres *res)
res              5064 fs/nfs/nfs4xdr.c static int decode_delegation(struct xdr_stream *xdr, struct nfs_openres *res)
res              5073 fs/nfs/nfs4xdr.c 	res->delegation_type = 0;
res              5079 fs/nfs/nfs4xdr.c 		return decode_rw_delegation(xdr, delegation_type, res);
res              5081 fs/nfs/nfs4xdr.c 		return decode_no_delegation(xdr, res);
res              5086 fs/nfs/nfs4xdr.c static int decode_open(struct xdr_stream *xdr, struct nfs_openres *res)
res              5094 fs/nfs/nfs4xdr.c 	nfs_increment_open_seqid(status, res->seqid);
res              5097 fs/nfs/nfs4xdr.c 	status = decode_open_stateid(xdr, &res->stateid);
res              5101 fs/nfs/nfs4xdr.c 	decode_change_info(xdr, &res->cinfo);
res              5106 fs/nfs/nfs4xdr.c 	res->rflags = be32_to_cpup(p++);
res              5116 fs/nfs/nfs4xdr.c 		res->attrset[i] = be32_to_cpup(p++);
res              5118 fs/nfs/nfs4xdr.c 		res->attrset[i] = 0;
res              5120 fs/nfs/nfs4xdr.c 	return decode_delegation(xdr, res);
res              5126 fs/nfs/nfs4xdr.c static int decode_open_confirm(struct xdr_stream *xdr, struct nfs_open_confirmres *res)
res              5132 fs/nfs/nfs4xdr.c 		nfs_increment_open_seqid(status, res->seqid);
res              5134 fs/nfs/nfs4xdr.c 		status = decode_open_stateid(xdr, &res->stateid);
res              5138 fs/nfs/nfs4xdr.c static int decode_open_downgrade(struct xdr_stream *xdr, struct nfs_closeres *res)
res              5144 fs/nfs/nfs4xdr.c 		nfs_increment_open_seqid(status, res->seqid);
res              5146 fs/nfs/nfs4xdr.c 		status = decode_open_stateid(xdr, &res->stateid);
res              5161 fs/nfs/nfs4xdr.c 		       struct nfs_pgio_res *res)
res              5182 fs/nfs/nfs4xdr.c 	res->eof = eof;
res              5183 fs/nfs/nfs4xdr.c 	res->count = count;
res              5279 fs/nfs/nfs4xdr.c 			 struct nfs_getaclres *res)
res              5287 fs/nfs/nfs4xdr.c 	res->acl_len = 0;
res              5308 fs/nfs/nfs4xdr.c 		res->acl_data_offset = xdr_stream_pos(xdr) - pg_offset;
res              5309 fs/nfs/nfs4xdr.c 		res->acl_len = attrlen;
res              5312 fs/nfs/nfs4xdr.c 		if (res->acl_len > (xdr->nwords << 2) ||
res              5313 fs/nfs/nfs4xdr.c 		    res->acl_len + res->acl_data_offset > xdr->buf->page_len) {
res              5314 fs/nfs/nfs4xdr.c 			res->acl_flags |= NFS4_ACL_TRUNC;
res              5343 fs/nfs/nfs4xdr.c static int decode_setclientid(struct xdr_stream *xdr, struct nfs4_setclientid_res *res)
res              5363 fs/nfs/nfs4xdr.c 		p = xdr_decode_hyper(p, &res->clientid);
res              5364 fs/nfs/nfs4xdr.c 		memcpy(res->confirm.data, p, NFS4_VERIFIER_SIZE);
res              5397 fs/nfs/nfs4xdr.c static int decode_write(struct xdr_stream *xdr, struct nfs_pgio_res *res)
res              5409 fs/nfs/nfs4xdr.c 	res->count = be32_to_cpup(p++);
res              5410 fs/nfs/nfs4xdr.c 	res->verf->committed = be32_to_cpup(p++);
res              5411 fs/nfs/nfs4xdr.c 	return decode_write_verifier(xdr, &res->verf->verifier);
res              5447 fs/nfs/nfs4xdr.c static int decode_secinfo_common(struct xdr_stream *xdr, struct nfs4_secinfo_res *res)
res              5458 fs/nfs/nfs4xdr.c 	res->flavors->num_flavors = 0;
res              5462 fs/nfs/nfs4xdr.c 		sec_flavor = &res->flavors->flavors[i];
res              5463 fs/nfs/nfs4xdr.c 		if ((char *)&sec_flavor[1] - (char *)res->flavors > PAGE_SIZE)
res              5476 fs/nfs/nfs4xdr.c 		res->flavors->num_flavors++;
res              5484 fs/nfs/nfs4xdr.c static int decode_secinfo(struct xdr_stream *xdr, struct nfs4_secinfo_res *res)
res              5489 fs/nfs/nfs4xdr.c 	return decode_secinfo_common(xdr, res);
res              5493 fs/nfs/nfs4xdr.c static int decode_secinfo_no_name(struct xdr_stream *xdr, struct nfs4_secinfo_res *res)
res              5498 fs/nfs/nfs4xdr.c 	return decode_secinfo_common(xdr, res);
res              5521 fs/nfs/nfs4xdr.c 			      struct nfs41_exchange_id_res *res)
res              5536 fs/nfs/nfs4xdr.c 	xdr_decode_hyper(p, &res->clientid);
res              5540 fs/nfs/nfs4xdr.c 	res->seqid = be32_to_cpup(p++);
res              5541 fs/nfs/nfs4xdr.c 	res->flags = be32_to_cpup(p++);
res              5543 fs/nfs/nfs4xdr.c 	res->state_protect.how = be32_to_cpup(p);
res              5544 fs/nfs/nfs4xdr.c 	switch (res->state_protect.how) {
res              5548 fs/nfs/nfs4xdr.c 		status = decode_op_map(xdr, &res->state_protect.enforce);
res              5551 fs/nfs/nfs4xdr.c 		status = decode_op_map(xdr, &res->state_protect.allow);
res              5564 fs/nfs/nfs4xdr.c 	p = xdr_decode_hyper(p, &res->server_owner->minor_id);
res              5570 fs/nfs/nfs4xdr.c 	memcpy(res->server_owner->major_id, dummy_str, dummy);
res              5571 fs/nfs/nfs4xdr.c 	res->server_owner->major_id_sz = dummy;
res              5577 fs/nfs/nfs4xdr.c 	memcpy(res->server_scope->server_scope, dummy_str, dummy);
res              5578 fs/nfs/nfs4xdr.c 	res->server_scope->server_scope_sz = dummy;
res              5591 fs/nfs/nfs4xdr.c 		memcpy(res->impl_id->domain, dummy_str, dummy);
res              5597 fs/nfs/nfs4xdr.c 		memcpy(res->impl_id->name, dummy_str, dummy);
res              5603 fs/nfs/nfs4xdr.c 		p = xdr_decode_hyper(p, &res->impl_id->date.seconds);
res              5604 fs/nfs/nfs4xdr.c 		res->impl_id->date.nseconds = be32_to_cpup(p);
res              5648 fs/nfs/nfs4xdr.c 				struct nfs41_bind_conn_to_session_res *res)
res              5655 fs/nfs/nfs4xdr.c 		status = decode_sessionid(xdr, &res->sessionid);
res              5664 fs/nfs/nfs4xdr.c 	res->dir = be32_to_cpup(p++);
res              5665 fs/nfs/nfs4xdr.c 	if (res->dir == 0 || res->dir > NFS4_CDFS4_BOTH)
res              5668 fs/nfs/nfs4xdr.c 		res->use_conn_in_rdma_mode = false;
res              5670 fs/nfs/nfs4xdr.c 		res->use_conn_in_rdma_mode = true;
res              5676 fs/nfs/nfs4xdr.c 				 struct nfs41_create_session_res *res)
res              5683 fs/nfs/nfs4xdr.c 		status = decode_sessionid(xdr, &res->sessionid);
res              5691 fs/nfs/nfs4xdr.c 	res->seqid = be32_to_cpup(p++);
res              5692 fs/nfs/nfs4xdr.c 	res->flags = be32_to_cpup(p);
res              5695 fs/nfs/nfs4xdr.c 	status = decode_chan_attrs(xdr, &res->fc_attrs);
res              5697 fs/nfs/nfs4xdr.c 		status = decode_chan_attrs(xdr, &res->bc_attrs);
res              5718 fs/nfs/nfs4xdr.c 			   struct nfs4_sequence_res *res,
res              5728 fs/nfs/nfs4xdr.c 	if (res->sr_slot == NULL)
res              5730 fs/nfs/nfs4xdr.c 	if (!res->sr_slot->table->session)
res              5744 fs/nfs/nfs4xdr.c 	session = res->sr_slot->table->session;
res              5758 fs/nfs/nfs4xdr.c 	if (dummy != res->sr_slot->seq_nr) {
res              5764 fs/nfs/nfs4xdr.c 	if (dummy != res->sr_slot->slot_nr) {
res              5769 fs/nfs/nfs4xdr.c 	res->sr_highest_slotid = be32_to_cpup(p++);
res              5771 fs/nfs/nfs4xdr.c 	res->sr_target_highest_slotid = be32_to_cpup(p++);
res              5773 fs/nfs/nfs4xdr.c 	res->sr_status_flags = be32_to_cpup(p);
res              5776 fs/nfs/nfs4xdr.c 	res->sr_status = status;
res              5794 fs/nfs/nfs4xdr.c 				struct nfs4_getdeviceinfo_res *res)
res              5796 fs/nfs/nfs4xdr.c 	struct pnfs_device *pdev = res->pdev;
res              5844 fs/nfs/nfs4xdr.c 		res->notification = be32_to_cpup(p++);
res              5857 fs/nfs/nfs4xdr.c 			    struct nfs4_layoutget_res *res)
res              5870 fs/nfs/nfs4xdr.c 	res->return_on_close = be32_to_cpup(p);
res              5871 fs/nfs/nfs4xdr.c 	decode_layout_stateid(xdr, &res->stateid);
res              5886 fs/nfs/nfs4xdr.c 	p = xdr_decode_hyper(p, &res->range.offset);
res              5887 fs/nfs/nfs4xdr.c 	p = xdr_decode_hyper(p, &res->range.length);
res              5888 fs/nfs/nfs4xdr.c 	res->range.iomode = be32_to_cpup(p++);
res              5889 fs/nfs/nfs4xdr.c 	res->type = be32_to_cpup(p++);
res              5890 fs/nfs/nfs4xdr.c 	res->layoutp->len = be32_to_cpup(p);
res              5894 fs/nfs/nfs4xdr.c 		(unsigned long)res->range.offset,
res              5895 fs/nfs/nfs4xdr.c 		(unsigned long)res->range.length,
res              5896 fs/nfs/nfs4xdr.c 		res->range.iomode,
res              5897 fs/nfs/nfs4xdr.c 		res->type,
res              5898 fs/nfs/nfs4xdr.c 		res->layoutp->len);
res              5900 fs/nfs/nfs4xdr.c 	recvd = xdr_read_pages(xdr, res->layoutp->len);
res              5901 fs/nfs/nfs4xdr.c 	if (res->layoutp->len > recvd) {
res              5904 fs/nfs/nfs4xdr.c 				res->layoutp->len, recvd);
res              5920 fs/nfs/nfs4xdr.c 	res->status = status;
res              5928 fs/nfs/nfs4xdr.c 			       struct nfs4_layoutreturn_res *res)
res              5939 fs/nfs/nfs4xdr.c 	res->lrs_present = be32_to_cpup(p);
res              5940 fs/nfs/nfs4xdr.c 	if (res->lrs_present)
res              5941 fs/nfs/nfs4xdr.c 		status = decode_layout_stateid(xdr, &res->stateid);
res              5943 fs/nfs/nfs4xdr.c 		nfs4_stateid_copy(&res->stateid, &invalid_stateid);
res              5949 fs/nfs/nfs4xdr.c 			       struct nfs4_layoutcommit_res *res)
res              5956 fs/nfs/nfs4xdr.c 	res->status = status;
res              5975 fs/nfs/nfs4xdr.c 			       struct nfs41_test_stateid_res *res)
res              5995 fs/nfs/nfs4xdr.c 	res->status = be32_to_cpup(p++);
res              6001 fs/nfs/nfs4xdr.c 			       struct nfs41_free_stateid_res *res)
res              6003 fs/nfs/nfs4xdr.c 	res->status = decode_op_hdr(xdr, OP_FREE_STATEID);
res              6004 fs/nfs/nfs4xdr.c 	return res->status;
res              6009 fs/nfs/nfs4xdr.c 			       struct nfs4_layoutreturn_res *res)
res              6015 fs/nfs/nfs4xdr.c 			    struct nfs4_layoutget_res *res)
res              6033 fs/nfs/nfs4xdr.c 	struct nfs_closeres *res = data;
res              6040 fs/nfs/nfs4xdr.c 	status = decode_sequence(xdr, &res->seq_res, rqstp);
res              6046 fs/nfs/nfs4xdr.c 	if (res->lr_res) {
res              6047 fs/nfs/nfs4xdr.c 		status = decode_layoutreturn(xdr, res->lr_res);
res              6048 fs/nfs/nfs4xdr.c 		res->lr_ret = status;
res              6052 fs/nfs/nfs4xdr.c 	status = decode_open_downgrade(xdr, res);
res              6063 fs/nfs/nfs4xdr.c 	struct nfs4_accessres *res = data;
res              6070 fs/nfs/nfs4xdr.c 	status = decode_sequence(xdr, &res->seq_res, rqstp);
res              6076 fs/nfs/nfs4xdr.c 	status = decode_access(xdr, &res->supported, &res->access);
res              6079 fs/nfs/nfs4xdr.c 	if (res->fattr)
res              6080 fs/nfs/nfs4xdr.c 		decode_getfattr(xdr, res->fattr, res->server);
res              6091 fs/nfs/nfs4xdr.c 	struct nfs4_lookup_res *res = data;
res              6098 fs/nfs/nfs4xdr.c 	status = decode_sequence(xdr, &res->seq_res, rqstp);
res              6107 fs/nfs/nfs4xdr.c 	status = decode_getfh(xdr, res->fh);
res              6110 fs/nfs/nfs4xdr.c 	status = decode_getfattr_label(xdr, res->fattr, res->label, res->server);
res              6121 fs/nfs/nfs4xdr.c 	struct nfs4_lookupp_res *res = data;
res              6128 fs/nfs/nfs4xdr.c 	status = decode_sequence(xdr, &res->seq_res, rqstp);
res              6137 fs/nfs/nfs4xdr.c 	status = decode_getfh(xdr, res->fh);
res              6140 fs/nfs/nfs4xdr.c 	status = decode_getfattr_label(xdr, res->fattr, res->label, res->server);
res              6152 fs/nfs/nfs4xdr.c 	struct nfs4_lookup_res *res = data;
res              6159 fs/nfs/nfs4xdr.c 	status = decode_sequence(xdr, &res->seq_res, rqstp);
res              6165 fs/nfs/nfs4xdr.c 	status = decode_getfh(xdr, res->fh);
res              6167 fs/nfs/nfs4xdr.c 		status = decode_getfattr_label(xdr, res->fattr,
res              6168 fs/nfs/nfs4xdr.c 						res->label, res->server);
res              6179 fs/nfs/nfs4xdr.c 	struct nfs_removeres *res = data;
res              6186 fs/nfs/nfs4xdr.c 	status = decode_sequence(xdr, &res->seq_res, rqstp);
res              6192 fs/nfs/nfs4xdr.c 	status = decode_remove(xdr, &res->cinfo);
res              6203 fs/nfs/nfs4xdr.c 	struct nfs_renameres *res = data;
res              6210 fs/nfs/nfs4xdr.c 	status = decode_sequence(xdr, &res->seq_res, rqstp);
res              6222 fs/nfs/nfs4xdr.c 	status = decode_rename(xdr, &res->old_cinfo, &res->new_cinfo);
res              6233 fs/nfs/nfs4xdr.c 	struct nfs4_link_res *res = data;
res              6240 fs/nfs/nfs4xdr.c 	status = decode_sequence(xdr, &res->seq_res, rqstp);
res              6252 fs/nfs/nfs4xdr.c 	status = decode_link(xdr, &res->cinfo);
res              6262 fs/nfs/nfs4xdr.c 	decode_getfattr_label(xdr, res->fattr, res->label, res->server);
res              6273 fs/nfs/nfs4xdr.c 	struct nfs4_create_res *res = data;
res              6280 fs/nfs/nfs4xdr.c 	status = decode_sequence(xdr, &res->seq_res, rqstp);
res              6286 fs/nfs/nfs4xdr.c 	status = decode_create(xdr, &res->dir_cinfo);
res              6289 fs/nfs/nfs4xdr.c 	status = decode_getfh(xdr, res->fh);
res              6292 fs/nfs/nfs4xdr.c 	decode_getfattr_label(xdr, res->fattr, res->label, res->server);
res              6301 fs/nfs/nfs4xdr.c 				void *res)
res              6303 fs/nfs/nfs4xdr.c 	return nfs4_xdr_dec_create(rqstp, xdr, res);
res              6312 fs/nfs/nfs4xdr.c 	struct nfs4_getattr_res *res = data;
res              6319 fs/nfs/nfs4xdr.c 	status = decode_sequence(xdr, &res->seq_res, rqstp);
res              6325 fs/nfs/nfs4xdr.c 	status = decode_getfattr_label(xdr, res->fattr, res->label, res->server);
res              6355 fs/nfs/nfs4xdr.c 	struct nfs_setaclres *res = data;
res              6362 fs/nfs/nfs4xdr.c 	status = decode_sequence(xdr, &res->seq_res, rqstp);
res              6380 fs/nfs/nfs4xdr.c 	struct nfs_getaclres *res = data;
res              6384 fs/nfs/nfs4xdr.c 	if (res->acl_scratch != NULL) {
res              6385 fs/nfs/nfs4xdr.c 		void *p = page_address(res->acl_scratch);
res              6391 fs/nfs/nfs4xdr.c 	status = decode_sequence(xdr, &res->seq_res, rqstp);
res              6397 fs/nfs/nfs4xdr.c 	status = decode_getacl(xdr, rqstp, res);
res              6409 fs/nfs/nfs4xdr.c 	struct nfs_closeres *res = data;
res              6416 fs/nfs/nfs4xdr.c 	status = decode_sequence(xdr, &res->seq_res, rqstp);
res              6422 fs/nfs/nfs4xdr.c 	if (res->lr_res) {
res              6423 fs/nfs/nfs4xdr.c 		status = decode_layoutreturn(xdr, res->lr_res);
res              6424 fs/nfs/nfs4xdr.c 		res->lr_ret = status;
res              6428 fs/nfs/nfs4xdr.c 	if (res->fattr != NULL) {
res              6429 fs/nfs/nfs4xdr.c 		status = decode_getfattr(xdr, res->fattr, res->server);
res              6433 fs/nfs/nfs4xdr.c 	status = decode_close(xdr, res);
res              6444 fs/nfs/nfs4xdr.c 	struct nfs_openres *res = data;
res              6451 fs/nfs/nfs4xdr.c 	status = decode_sequence(xdr, &res->seq_res, rqstp);
res              6457 fs/nfs/nfs4xdr.c 	status = decode_open(xdr, res);
res              6460 fs/nfs/nfs4xdr.c 	status = decode_getfh(xdr, &res->fh);
res              6463 fs/nfs/nfs4xdr.c 	if (res->access_request)
res              6464 fs/nfs/nfs4xdr.c 		decode_access(xdr, &res->access_supported, &res->access_result);
res              6465 fs/nfs/nfs4xdr.c 	decode_getfattr_label(xdr, res->f_attr, res->f_label, res->server);
res              6466 fs/nfs/nfs4xdr.c 	if (res->lg_res)
res              6467 fs/nfs/nfs4xdr.c 		decode_layoutget(xdr, rqstp, res->lg_res);
res              6479 fs/nfs/nfs4xdr.c 	struct nfs_open_confirmres *res = data;
res              6489 fs/nfs/nfs4xdr.c 	status = decode_open_confirm(xdr, res);
res              6501 fs/nfs/nfs4xdr.c 	struct nfs_openres *res = data;
res              6508 fs/nfs/nfs4xdr.c 	status = decode_sequence(xdr, &res->seq_res, rqstp);
res              6514 fs/nfs/nfs4xdr.c 	status = decode_open(xdr, res);
res              6517 fs/nfs/nfs4xdr.c 	if (res->access_request)
res              6518 fs/nfs/nfs4xdr.c 		decode_access(xdr, &res->access_supported, &res->access_result);
res              6519 fs/nfs/nfs4xdr.c 	decode_getfattr(xdr, res->f_attr, res->server);
res              6520 fs/nfs/nfs4xdr.c 	if (res->lg_res)
res              6521 fs/nfs/nfs4xdr.c 		decode_layoutget(xdr, rqstp, res->lg_res);
res              6533 fs/nfs/nfs4xdr.c 	struct nfs_setattrres *res = data;
res              6540 fs/nfs/nfs4xdr.c 	status = decode_sequence(xdr, &res->seq_res, rqstp);
res              6549 fs/nfs/nfs4xdr.c 	decode_getfattr_label(xdr, res->fattr, res->label, res->server);
res              6560 fs/nfs/nfs4xdr.c 	struct nfs_lock_res *res = data;
res              6567 fs/nfs/nfs4xdr.c 	status = decode_sequence(xdr, &res->seq_res, rqstp);
res              6573 fs/nfs/nfs4xdr.c 	status = decode_lock(xdr, res);
res              6584 fs/nfs/nfs4xdr.c 	struct nfs_lockt_res *res = data;
res              6591 fs/nfs/nfs4xdr.c 	status = decode_sequence(xdr, &res->seq_res, rqstp);
res              6597 fs/nfs/nfs4xdr.c 	status = decode_lockt(xdr, res);
res              6608 fs/nfs/nfs4xdr.c 	struct nfs_locku_res *res = data;
res              6615 fs/nfs/nfs4xdr.c 	status = decode_sequence(xdr, &res->seq_res, rqstp);
res              6621 fs/nfs/nfs4xdr.c 	status = decode_locku(xdr, res);
res              6645 fs/nfs/nfs4xdr.c 	struct nfs4_readlink_res *res = data;
res              6652 fs/nfs/nfs4xdr.c 	status = decode_sequence(xdr, &res->seq_res, rqstp);
res              6669 fs/nfs/nfs4xdr.c 	struct nfs4_readdir_res *res = data;
res              6676 fs/nfs/nfs4xdr.c 	status = decode_sequence(xdr, &res->seq_res, rqstp);
res              6682 fs/nfs/nfs4xdr.c 	status = decode_readdir(xdr, rqstp, res);
res              6693 fs/nfs/nfs4xdr.c 	struct nfs_pgio_res *res = data;
res              6698 fs/nfs/nfs4xdr.c 	res->op_status = hdr.status;
res              6701 fs/nfs/nfs4xdr.c 	status = decode_sequence(xdr, &res->seq_res, rqstp);
res              6707 fs/nfs/nfs4xdr.c 	status = decode_read(xdr, rqstp, res);
res              6709 fs/nfs/nfs4xdr.c 		status = res->count;
res              6720 fs/nfs/nfs4xdr.c 	struct nfs_pgio_res *res = data;
res              6725 fs/nfs/nfs4xdr.c 	res->op_status = hdr.status;
res              6728 fs/nfs/nfs4xdr.c 	status = decode_sequence(xdr, &res->seq_res, rqstp);
res              6734 fs/nfs/nfs4xdr.c 	status = decode_write(xdr, res);
res              6737 fs/nfs/nfs4xdr.c 	if (res->fattr)
res              6738 fs/nfs/nfs4xdr.c 		decode_getfattr(xdr, res->fattr, res->server);
res              6740 fs/nfs/nfs4xdr.c 		status = res->count;
res              6751 fs/nfs/nfs4xdr.c 	struct nfs_commitres *res = data;
res              6756 fs/nfs/nfs4xdr.c 	res->op_status = hdr.status;
res              6759 fs/nfs/nfs4xdr.c 	status = decode_sequence(xdr, &res->seq_res, rqstp);
res              6765 fs/nfs/nfs4xdr.c 	status = decode_commit(xdr, res);
res              6776 fs/nfs/nfs4xdr.c 	struct nfs4_fsinfo_res *res = data;
res              6782 fs/nfs/nfs4xdr.c 		status = decode_sequence(xdr, &res->seq_res, req);
res              6786 fs/nfs/nfs4xdr.c 		status = decode_fsinfo(xdr, res->fsinfo);
res              6796 fs/nfs/nfs4xdr.c 	struct nfs4_pathconf_res *res = data;
res              6802 fs/nfs/nfs4xdr.c 		status = decode_sequence(xdr, &res->seq_res, req);
res              6806 fs/nfs/nfs4xdr.c 		status = decode_pathconf(xdr, res->pathconf);
res              6816 fs/nfs/nfs4xdr.c 	struct nfs4_statfs_res *res = data;
res              6822 fs/nfs/nfs4xdr.c 		status = decode_sequence(xdr, &res->seq_res, req);
res              6826 fs/nfs/nfs4xdr.c 		status = decode_statfs(xdr, res->fsstat);
res              6837 fs/nfs/nfs4xdr.c 	struct nfs4_server_caps_res *res = data;
res              6844 fs/nfs/nfs4xdr.c 	status = decode_sequence(xdr, &res->seq_res, req);
res              6850 fs/nfs/nfs4xdr.c 	status = decode_server_caps(xdr, res);
res              6877 fs/nfs/nfs4xdr.c 	struct nfs4_setclientid_res *res = data;
res              6883 fs/nfs/nfs4xdr.c 		status = decode_setclientid(xdr, res);
res              6910 fs/nfs/nfs4xdr.c 	struct nfs4_delegreturnres *res = data;
res              6917 fs/nfs/nfs4xdr.c 	status = decode_sequence(xdr, &res->seq_res, rqstp);
res              6923 fs/nfs/nfs4xdr.c 	if (res->lr_res) {
res              6924 fs/nfs/nfs4xdr.c 		status = decode_layoutreturn(xdr, res->lr_res);
res              6925 fs/nfs/nfs4xdr.c 		res->lr_ret = status;
res              6929 fs/nfs/nfs4xdr.c 	if (res->fattr) {
res              6930 fs/nfs/nfs4xdr.c 		status = decode_getfattr(xdr, res->fattr, res->server);
res              6946 fs/nfs/nfs4xdr.c 	struct nfs4_fs_locations_res *res = data;
res              6953 fs/nfs/nfs4xdr.c 	status = decode_sequence(xdr, &res->seq_res, req);
res              6959 fs/nfs/nfs4xdr.c 	if (res->migration) {
res              6962 fs/nfs/nfs4xdr.c 					&res->fs_locations->fattr,
res              6963 fs/nfs/nfs4xdr.c 					 NULL, res->fs_locations,
res              6964 fs/nfs/nfs4xdr.c 					 NULL, res->fs_locations->server);
res              6967 fs/nfs/nfs4xdr.c 		if (res->renew)
res              6975 fs/nfs/nfs4xdr.c 					&res->fs_locations->fattr,
res              6976 fs/nfs/nfs4xdr.c 					 NULL, res->fs_locations,
res              6977 fs/nfs/nfs4xdr.c 					 NULL, res->fs_locations->server);
res              6990 fs/nfs/nfs4xdr.c 	struct nfs4_secinfo_res *res = data;
res              6997 fs/nfs/nfs4xdr.c 	status = decode_sequence(xdr, &res->seq_res, rqstp);
res              7003 fs/nfs/nfs4xdr.c 	status = decode_secinfo(xdr, res);
res              7015 fs/nfs/nfs4xdr.c 	struct nfs4_fsid_present_res *res = data;
res              7022 fs/nfs/nfs4xdr.c 	status = decode_sequence(xdr, &res->seq_res, rqstp);
res              7028 fs/nfs/nfs4xdr.c 	status = decode_getfh(xdr, res->fh);
res              7031 fs/nfs/nfs4xdr.c 	if (res->renew)
res              7043 fs/nfs/nfs4xdr.c 					void *res)
res              7050 fs/nfs/nfs4xdr.c 		status = decode_bind_conn_to_session(xdr, res);
res              7059 fs/nfs/nfs4xdr.c 				    void *res)
res              7066 fs/nfs/nfs4xdr.c 		status = decode_exchange_id(xdr, res);
res              7075 fs/nfs/nfs4xdr.c 				       void *res)
res              7082 fs/nfs/nfs4xdr.c 		status = decode_create_session(xdr, res);
res              7091 fs/nfs/nfs4xdr.c 					void *res)
res              7098 fs/nfs/nfs4xdr.c 		status = decode_destroy_session(xdr, res);
res              7107 fs/nfs/nfs4xdr.c 					void *res)
res              7114 fs/nfs/nfs4xdr.c 		status = decode_destroy_clientid(xdr, res);
res              7123 fs/nfs/nfs4xdr.c 				 void *res)
res              7130 fs/nfs/nfs4xdr.c 		status = decode_sequence(xdr, res, rqstp);
res              7143 fs/nfs/nfs4xdr.c 	struct nfs4_get_lease_time_res *res = data;
res              7149 fs/nfs/nfs4xdr.c 		status = decode_sequence(xdr, &res->lr_seq_res, rqstp);
res              7153 fs/nfs/nfs4xdr.c 		status = decode_fsinfo(xdr, res->lr_fsinfo);
res              7166 fs/nfs/nfs4xdr.c 	struct nfs41_reclaim_complete_res *res = data;
res              7172 fs/nfs/nfs4xdr.c 		status = decode_sequence(xdr, &res->seq_res, rqstp);
res              7185 fs/nfs/nfs4xdr.c 	struct nfs4_getdeviceinfo_res *res = data;
res              7192 fs/nfs/nfs4xdr.c 	status = decode_sequence(xdr, &res->seq_res, rqstp);
res              7195 fs/nfs/nfs4xdr.c 	status = decode_getdeviceinfo(xdr, res);
res              7207 fs/nfs/nfs4xdr.c 	struct nfs4_layoutget_res *res = data;
res              7214 fs/nfs/nfs4xdr.c 	status = decode_sequence(xdr, &res->seq_res, rqstp);
res              7220 fs/nfs/nfs4xdr.c 	status = decode_layoutget(xdr, rqstp, res);
res              7232 fs/nfs/nfs4xdr.c 	struct nfs4_layoutreturn_res *res = data;
res              7239 fs/nfs/nfs4xdr.c 	status = decode_sequence(xdr, &res->seq_res, rqstp);
res              7245 fs/nfs/nfs4xdr.c 	status = decode_layoutreturn(xdr, res);
res              7257 fs/nfs/nfs4xdr.c 	struct nfs4_layoutcommit_res *res = data;
res              7264 fs/nfs/nfs4xdr.c 	status = decode_sequence(xdr, &res->seq_res, rqstp);
res              7270 fs/nfs/nfs4xdr.c 	status = decode_layoutcommit(xdr, rqstp, res);
res              7273 fs/nfs/nfs4xdr.c 	decode_getfattr(xdr, res->fattr, res->server);
res              7285 fs/nfs/nfs4xdr.c 	struct nfs4_secinfo_res *res = data;
res              7292 fs/nfs/nfs4xdr.c 	status = decode_sequence(xdr, &res->seq_res, rqstp);
res              7298 fs/nfs/nfs4xdr.c 	status = decode_secinfo_no_name(xdr, res);
res              7310 fs/nfs/nfs4xdr.c 	struct nfs41_test_stateid_res *res = data;
res              7317 fs/nfs/nfs4xdr.c 	status = decode_sequence(xdr, &res->seq_res, rqstp);
res              7320 fs/nfs/nfs4xdr.c 	status = decode_test_stateid(xdr, res);
res              7332 fs/nfs/nfs4xdr.c 	struct nfs41_free_stateid_res *res = data;
res              7339 fs/nfs/nfs4xdr.c 	status = decode_sequence(xdr, &res->seq_res, rqstp);
res              7342 fs/nfs/nfs4xdr.c 	status = decode_free_stateid(xdr, res);
res              1048 fs/nfs/nfstrace.h 			__entry->status = data->res.op_status;
res               592 fs/nfs/pagelist.c 	hdr->res.fattr   = &hdr->fattr;
res               593 fs/nfs/pagelist.c 	hdr->res.count   = 0;
res               594 fs/nfs/pagelist.c 	hdr->res.eof     = 0;
res               595 fs/nfs/pagelist.c 	hdr->res.verf    = &hdr->verf;
res               620 fs/nfs/pagelist.c 		.rpc_resp = &hdr->res,
res              1039 fs/nfs/pnfs.c  	lgp->res.layoutp = &lgp->args.layout;
res              1042 fs/nfs/pnfs.c  	lgp->res.status = -NFS4ERR_DELAY;
res              1349 fs/nfs/pnfs.c  		struct nfs4_layoutreturn_res *res,
res              1433 fs/nfs/pnfs.c  	res->lrs_present = 0;
res              1500 fs/nfs/pnfs.c  		struct nfs4_layoutreturn_res *res,
res              1512 fs/nfs/pnfs.c  		if (res->lrs_present)
res              1513 fs/nfs/pnfs.c  			res_stateid = &res->stateid;
res              2195 fs/nfs/pnfs.c  	data->o_res.lg_res = &lgp->res;
res              2215 fs/nfs/pnfs.c  	data->o_res.lg_res = &lgp->res;
res              2245 fs/nfs/pnfs.c  	dprintk("%s: entered with status %i\n", __func__, lgp->res.status);
res              2246 fs/nfs/pnfs.c  	if (lgp->res.status) {
res              2247 fs/nfs/pnfs.c  		switch (lgp->res.status) {
res              2301 fs/nfs/pnfs.c  	struct nfs4_layoutget_res *res = &lgp->res;
res              2306 fs/nfs/pnfs.c  	if (!pnfs_sanity_check_layout_range(&res->range))
res              2310 fs/nfs/pnfs.c  	lseg = NFS_SERVER(ino)->pnfs_curr_ld->alloc_lseg(lo, res, lgp->gfp_flags);
res              2320 fs/nfs/pnfs.c  	pnfs_init_lseg(lo, lseg, &res->range, &res->stateid);
res              2330 fs/nfs/pnfs.c  		pnfs_set_layout_stateid(lo, &res->stateid, true);
res              2331 fs/nfs/pnfs.c  	} else if (nfs4_stateid_match_other(&lo->plh_stateid, &res->stateid)) {
res              2333 fs/nfs/pnfs.c  		if (pnfs_layout_stateid_blocked(lo, &res->stateid)) {
res              2337 fs/nfs/pnfs.c  		pnfs_set_layout_stateid(lo, &res->stateid, false);
res              2351 fs/nfs/pnfs.c  	if (res->return_on_close)
res              2637 fs/nfs/pnfs.c  				hdr->mds_offset + hdr->res.count);
res              3013 fs/nfs/pnfs.c  	data->res.fattr = &data->fattr;
res              3018 fs/nfs/pnfs.c  	data->res.server = NFS_SERVER(inode);
res               283 fs/nfs/pnfs.h  		struct nfs4_layoutreturn_res *res,
res               290 fs/nfs/pnfs.h  		struct nfs4_layoutreturn_res *res,
res               702 fs/nfs/pnfs.h  		struct nfs4_layoutreturn_res *res,
res               719 fs/nfs/pnfs.h  		struct nfs4_layoutreturn_res *res,
res                34 fs/nfs/pnfs_nfs.c 	struct nfs_writeverf *verf = data->res.verf;
res               159 fs/nfs/proc.c  	struct nfs_diropok	res = {
res               166 fs/nfs/proc.c  		.rpc_resp	= &res,
res               200 fs/nfs/proc.c  	struct nfs_diropok res;
res               219 fs/nfs/proc.c  		data->res.fh = &data->fhandle;
res               220 fs/nfs/proc.c  		data->res.fattr = &data->fattr;
res               245 fs/nfs/proc.c  	msg.rpc_resp = &data->res;
res               249 fs/nfs/proc.c  		status = nfs_instantiate(dentry, data->res.fh, data->res.fattr, NULL);
res               285 fs/nfs/proc.c  	msg.rpc_resp = &data->res;
res               292 fs/nfs/proc.c  		nfs_fattr_init(data->res.fattr);
res               296 fs/nfs/proc.c  		status = nfs_instantiate(dentry, data->res.fh, data->res.fattr, NULL);
res               452 fs/nfs/proc.c  	msg.rpc_resp = &data->res;
res               457 fs/nfs/proc.c  		status = nfs_instantiate(dentry, data->res.fh, data->res.fattr, NULL);
res               593 fs/nfs/proc.c  		nfs_refresh_inode(inode, hdr->res.fattr);
res               597 fs/nfs/proc.c  		if ((hdr->res.count == 0 && hdr->args.count > 0) ||
res               598 fs/nfs/proc.c  		    hdr->args.offset + hdr->res.count >= hdr->res.fattr->size)
res               599 fs/nfs/proc.c  			hdr->res.eof = 1;
res               620 fs/nfs/proc.c  		hdr->res.count = hdr->args.count;
res               249 fs/nfs/read.c  	nfs_add_stats(inode, NFSIOS_SERVERREADBYTES, hdr->res.count);
res               251 fs/nfs/read.c  				hdr->args.offset, hdr->res.eof);
res               264 fs/nfs/read.c  	struct nfs_pgio_res  *resp = &hdr->res;
res               291 fs/nfs/read.c  	if (hdr->res.eof) {
res               292 fs/nfs/read.c  		loff_t pos = hdr->args.offset + hdr->res.count;
res               300 fs/nfs/read.c  	} else if (hdr->res.count < hdr->args.count)
res               448 fs/nfs/super.c 	struct nfs_fsstat res;
res               451 fs/nfs/super.c 	res.fattr = nfs_alloc_fattr();
res               452 fs/nfs/super.c 	if (res.fattr == NULL)
res               455 fs/nfs/super.c 	error = server->nfs_client->rpc_ops->statfs(server, fh, &res);
res               463 fs/nfs/super.c 	nfs_free_fattr(res.fattr);
res               486 fs/nfs/super.c 	buf->f_blocks = (res.tbytes + blockres) >> blockbits;
res               487 fs/nfs/super.c 	buf->f_bfree = (res.fbytes + blockres) >> blockbits;
res               488 fs/nfs/super.c 	buf->f_bavail = (res.abytes + blockres) >> blockbits;
res               490 fs/nfs/super.c 	buf->f_files = res.tfiles;
res               491 fs/nfs/super.c 	buf->f_ffree = res.afiles;
res                93 fs/nfs/unlink.c 		.rpc_resp = &data->res,
res               107 fs/nfs/unlink.c 	nfs_fattr_init(data->res.dir_attr);
res               182 fs/nfs/unlink.c 	data->res.dir_attr = &data->dir_attr;
res               355 fs/nfs/unlink.c 	msg.rpc_resp = &data->res;
res               376 fs/nfs/unlink.c 	data->res.old_fattr = &data->old_fattr;
res               377 fs/nfs/unlink.c 	data->res.new_fattr = &data->new_fattr;
res              1530 fs/nfs/write.c 	struct nfs_pgio_res *resp = &hdr->res;
res              1579 fs/nfs/write.c 	nfs_add_stats(inode, NFSIOS_SERVERWRITTENBYTES, hdr->res.count);
res              1581 fs/nfs/write.c 				 hdr->args.offset, hdr->res.verf);
res              1583 fs/nfs/write.c 	if (hdr->res.verf->committed < hdr->args.stable &&
res              1600 fs/nfs/write.c 				hdr->res.verf->committed, hdr->args.stable);
res              1621 fs/nfs/write.c 	struct nfs_pgio_res	*resp = &hdr->res;
res              1698 fs/nfs/write.c 		.rpc_resp = &data->res,
res              1771 fs/nfs/write.c 	data->res.fattr   = &data->fattr;
res              1772 fs/nfs/write.c 	data->res.verf    = &data->verf;
res              1841 fs/nfs/write.c 	const struct nfs_writeverf *verf = data->res.verf;
res               361 fs/nfsd/nfs2acl.c 	.pc_encode	= nfsaclsvc_encode_##rest##res,			\
res               364 fs/nfsd/nfs2acl.c 	.pc_ressize	= sizeof(struct nfsd3_##rest##res),		\
res               248 fs/nfsd/nfs3acl.c 	.pc_encode	= nfs3svc_encode_##rest##res,			\
res               251 fs/nfsd/nfs3acl.c 	.pc_ressize	= sizeof(struct nfsd3_##rest##res),		\
res               200 fs/nfsd/nfs4idmap.c 	struct ent ent, *res;
res               240 fs/nfsd/nfs4idmap.c 	res = idtoname_lookup(cd, &ent);
res               241 fs/nfsd/nfs4idmap.c 	if (!res)
res               254 fs/nfsd/nfs4idmap.c 	res = idtoname_update(cd, &ent, res);
res               255 fs/nfsd/nfs4idmap.c 	if (res == NULL)
res               258 fs/nfsd/nfs4idmap.c 	cache_put(&res->h, cd);
res               363 fs/nfsd/nfs4idmap.c 	struct ent ent, *res;
res               408 fs/nfsd/nfs4idmap.c 	res = nametoid_lookup(cd, &ent);
res               409 fs/nfsd/nfs4idmap.c 	if (res == NULL)
res               411 fs/nfsd/nfs4idmap.c 	res = nametoid_update(cd, &ent, res);
res               412 fs/nfsd/nfs4idmap.c 	if (res == NULL)
res               415 fs/nfsd/nfs4idmap.c 	cache_put(&res->h, cd);
res              2218 fs/nfsd/nfs4xdr.c 	__be32 res;
res              2223 fs/nfsd/nfs4xdr.c 	res = nfsd4_encode_path(xdr, &exp_ps->ex_path, path);
res              2225 fs/nfsd/nfs4xdr.c 	return res;
res                63 fs/nfsd/vfs.h  				int type, dev_t rdev, struct svc_fh *res);
res                66 fs/nfsd/vfs.h  				int type, dev_t rdev, struct svc_fh *res);
res                71 fs/nfsd/vfs.h  				struct svc_fh *res, int createmode,
res               103 fs/nfsd/vfs.h  				struct svc_fh *res);
res               403 fs/nilfs2/dir.c 	ino_t res = 0;
res               409 fs/nilfs2/dir.c 		res = le64_to_cpu(de->inode);
res               413 fs/nilfs2/dir.c 	return res;
res               457 fs/nilfs2/segbuf.c 	int res = 0;
res               463 fs/nilfs2/segbuf.c 		res = nilfs_segbuf_submit_bh(segbuf, &wi, bh, REQ_OP_WRITE);
res               464 fs/nilfs2/segbuf.c 		if (unlikely(res))
res               469 fs/nilfs2/segbuf.c 		res = nilfs_segbuf_submit_bh(segbuf, &wi, bh, REQ_OP_WRITE);
res               470 fs/nilfs2/segbuf.c 		if (unlikely(res))
res               479 fs/nilfs2/segbuf.c 		res = nilfs_segbuf_submit_bio(segbuf, &wi, REQ_OP_WRITE,
res               484 fs/nilfs2/segbuf.c 	return res;
res                23 fs/nilfs2/sysfs.c 		struct tm res; \
res                25 fs/nilfs2/sysfs.c 		time64_to_tm(time_t_val, 0, &res); \
res                26 fs/nilfs2/sysfs.c 		res.tm_year += 1900; \
res                27 fs/nilfs2/sysfs.c 		res.tm_mon += 1; \
res                30 fs/nilfs2/sysfs.c 				    res.tm_year, res.tm_mon, res.tm_mday, \
res                31 fs/nilfs2/sysfs.c 				    res.tm_hour, res.tm_min, res.tm_sec);\
res               351 fs/nilfs2/the_nilfs.c 	unsigned long long res = MAX_LFS_FILESIZE; /* page cache limit */
res               355 fs/nilfs2/the_nilfs.c 		res = min_t(unsigned long long, res, (1ULL << max_bits) - 1);
res               356 fs/nilfs2/the_nilfs.c 	return res;
res               219 fs/nsfs.c      	int res = -ENOENT;
res               224 fs/nsfs.c      		res = snprintf(buf, size, "%s:[%u]", name, ns->inum);
res               227 fs/nsfs.c      	return res;
res                67 fs/ntfs/dir.c  		const int uname_len, ntfs_name **res)
res               170 fs/ntfs/dir.c  				*res = name;
res               173 fs/ntfs/dir.c  				*res = NULL;
res               227 fs/ntfs/dir.c  			*res = name;
res               430 fs/ntfs/dir.c  				*res = name;
res               433 fs/ntfs/dir.c  				*res = NULL;
res               489 fs/ntfs/dir.c  			*res = name;
res               584 fs/ntfs/dir.c  		*res = NULL;
res                32 fs/ntfs/dir.h  		const ntfschar *uname, const int uname_len, ntfs_name **res);
res               179 fs/ocfs2/dir.c static int ocfs2_free_list_at_root(struct ocfs2_dir_lookup_result *res)
res               181 fs/ocfs2/dir.c 	return res->dl_prev_leaf_bh == NULL;
res               184 fs/ocfs2/dir.c void ocfs2_free_dir_lookup_result(struct ocfs2_dir_lookup_result *res)
res               186 fs/ocfs2/dir.c 	brelse(res->dl_dx_root_bh);
res               187 fs/ocfs2/dir.c 	brelse(res->dl_leaf_bh);
res               188 fs/ocfs2/dir.c 	brelse(res->dl_dx_leaf_bh);
res               189 fs/ocfs2/dir.c 	brelse(res->dl_prev_leaf_bh);
res               894 fs/ocfs2/dir.c 			       struct ocfs2_dir_lookup_result *res)
res               903 fs/ocfs2/dir.c 	struct ocfs2_dx_hinfo *hinfo = &res->dl_hinfo;
res               907 fs/ocfs2/dir.c 	ocfs2_dx_dir_name_hash(dir, name, namelen, &res->dl_hinfo);
res               991 fs/ocfs2/dir.c 	res->dl_leaf_bh = dir_ent_bh;
res               992 fs/ocfs2/dir.c 	res->dl_entry = dir_ent;
res               993 fs/ocfs2/dir.c 	res->dl_dx_leaf_bh = dx_leaf_bh;
res               994 fs/ocfs2/dir.c 	res->dl_dx_entry = dx_entry;
res              1090 fs/ocfs2/dir.c 		       struct ocfs2_dir_lookup_result *res,
res              1095 fs/ocfs2/dir.c 	struct ocfs2_dir_entry *de = res->dl_entry;
res              1096 fs/ocfs2/dir.c 	struct buffer_head *de_bh = res->dl_leaf_bh;
res              1389 fs/ocfs2/dir.c 		       struct ocfs2_dir_lookup_result *res)
res              1392 fs/ocfs2/dir.c 		return ocfs2_delete_entry_dx(handle, dir, res);
res              1395 fs/ocfs2/dir.c 		return ocfs2_delete_entry_id(handle, dir, res->dl_entry,
res              1396 fs/ocfs2/dir.c 					     res->dl_leaf_bh);
res              1398 fs/ocfs2/dir.c 	return ocfs2_delete_entry_el(handle, dir, res->dl_entry,
res              1399 fs/ocfs2/dir.c 				     res->dl_leaf_bh);
res                41 fs/ocfs2/dir.h void ocfs2_free_dir_lookup_result(struct ocfs2_dir_lookup_result *res);
res                48 fs/ocfs2/dir.h 		       struct ocfs2_dir_lookup_result *res);
res                66 fs/ocfs2/dir.h 		       struct ocfs2_dir_lookup_result *res,
res                78 fs/ocfs2/dir.h 			     struct ocfs2_dir_lookup_result *res);
res                36 fs/ocfs2/dlm/dlmast.c static void dlm_update_lvb(struct dlm_ctxt *dlm, struct dlm_lock_resource *res,
res                78 fs/ocfs2/dlm/dlmast.c 	struct dlm_lock_resource *res;
res                83 fs/ocfs2/dlm/dlmast.c 	res = lock->lockres;
res                90 fs/ocfs2/dlm/dlmast.c 		     dlm->name, res->lockname.len, res->lockname.name,
res                98 fs/ocfs2/dlm/dlmast.c 		     dlm->name, res->lockname.len, res->lockname.name,
res               109 fs/ocfs2/dlm/dlmast.c 		     dlm->name, res->lockname.len, res->lockname.name,
res               124 fs/ocfs2/dlm/dlmast.c 		dlm_lockres_release_ast(dlm, res);
res               144 fs/ocfs2/dlm/dlmast.c 	struct dlm_lock_resource *res;
res               151 fs/ocfs2/dlm/dlmast.c 	res = lock->lockres;
res               156 fs/ocfs2/dlm/dlmast.c 		     dlm->name, res->lockname.len, res->lockname.name,
res               178 fs/ocfs2/dlm/dlmast.c static void dlm_update_lvb(struct dlm_ctxt *dlm, struct dlm_lock_resource *res,
res               185 fs/ocfs2/dlm/dlmast.c 	spin_lock(&res->spinlock);
res               186 fs/ocfs2/dlm/dlmast.c 	if (res->owner == dlm->node_num) {
res               192 fs/ocfs2/dlm/dlmast.c 			memcpy(lksb->lvb, res->lvb, DLM_LVB_LEN);
res               202 fs/ocfs2/dlm/dlmast.c 	spin_unlock(&res->spinlock);
res               208 fs/ocfs2/dlm/dlmast.c void dlm_do_local_ast(struct dlm_ctxt *dlm, struct dlm_lock_resource *res,
res               214 fs/ocfs2/dlm/dlmast.c 	     res->lockname.len, res->lockname.name,
res               221 fs/ocfs2/dlm/dlmast.c 	dlm_update_lvb(dlm, res, lock);
res               226 fs/ocfs2/dlm/dlmast.c int dlm_do_remote_ast(struct dlm_ctxt *dlm, struct dlm_lock_resource *res,
res               234 fs/ocfs2/dlm/dlmast.c 	     res->lockname.len, res->lockname.name,
res               242 fs/ocfs2/dlm/dlmast.c 	dlm_update_lvb(dlm, res, lock);
res               246 fs/ocfs2/dlm/dlmast.c 	ret = dlm_send_proxy_ast(dlm, res, lock, lksbflags);
res               250 fs/ocfs2/dlm/dlmast.c void dlm_do_local_bast(struct dlm_ctxt *dlm, struct dlm_lock_resource *res,
res               258 fs/ocfs2/dlm/dlmast.c 	     dlm->name, res->lockname.len, res->lockname.name,
res               274 fs/ocfs2/dlm/dlmast.c 	struct dlm_lock_resource *res = NULL;
res               328 fs/ocfs2/dlm/dlmast.c 	res = dlm_lookup_lockres(dlm, name, locklen);
res               329 fs/ocfs2/dlm/dlmast.c 	if (!res) {
res               340 fs/ocfs2/dlm/dlmast.c 	BUG_ON(res->owner == dlm->node_num);
res               342 fs/ocfs2/dlm/dlmast.c 	mlog(0, "%s: res %.*s\n", dlm->name, res->lockname.len,
res               343 fs/ocfs2/dlm/dlmast.c 	     res->lockname.name);
res               345 fs/ocfs2/dlm/dlmast.c 	spin_lock(&res->spinlock);
res               346 fs/ocfs2/dlm/dlmast.c 	if (res->state & DLM_LOCK_RES_RECOVERING) {
res               351 fs/ocfs2/dlm/dlmast.c 	if (res->state & DLM_LOCK_RES_MIGRATING) {
res               357 fs/ocfs2/dlm/dlmast.c 	head = &res->converting;
res               366 fs/ocfs2/dlm/dlmast.c 		head = &res->blocked;
res               368 fs/ocfs2/dlm/dlmast.c 		head = &res->granted;
res               387 fs/ocfs2/dlm/dlmast.c 	spin_unlock(&res->spinlock);
res               394 fs/ocfs2/dlm/dlmast.c 		list_move_tail(&lock->list, &res->granted);
res               396 fs/ocfs2/dlm/dlmast.c 		     dlm->name, res->lockname.len, res->lockname.name,
res               416 fs/ocfs2/dlm/dlmast.c 	spin_unlock(&res->spinlock);
res               419 fs/ocfs2/dlm/dlmast.c 		dlm_do_local_ast(dlm, res, lock);
res               421 fs/ocfs2/dlm/dlmast.c 		dlm_do_local_bast(dlm, res, lock, past->blocked_type);
res               424 fs/ocfs2/dlm/dlmast.c 	if (res)
res               425 fs/ocfs2/dlm/dlmast.c 		dlm_lockres_put(res);
res               433 fs/ocfs2/dlm/dlmast.c int dlm_send_proxy_ast_msg(struct dlm_ctxt *dlm, struct dlm_lock_resource *res,
res               444 fs/ocfs2/dlm/dlmast.c 	     res->lockname.len, res->lockname.name, lock->ml.node, msg_type,
res               451 fs/ocfs2/dlm/dlmast.c 	past.namelen = res->lockname.len;
res               452 fs/ocfs2/dlm/dlmast.c 	memcpy(past.name, res->lockname.name, past.namelen);
res               468 fs/ocfs2/dlm/dlmast.c 		     dlm->name, res->lockname.len, res->lockname.name, ret,
res               393 fs/ocfs2/dlm/dlmcommon.h dlm_list_idx_to_ptr(struct dlm_lock_resource *res, enum dlm_lockres_list idx)
res               397 fs/ocfs2/dlm/dlmcommon.h 		ret = &res->granted;
res               399 fs/ocfs2/dlm/dlmcommon.h 		ret = &res->converting;
res               401 fs/ocfs2/dlm/dlmcommon.h 		ret = &res->blocked;
res               787 fs/ocfs2/dlm/dlmcommon.h __dlm_lockres_state_to_status(struct dlm_lock_resource *res)
res               791 fs/ocfs2/dlm/dlmcommon.h 	assert_spin_locked(&res->spinlock);
res               793 fs/ocfs2/dlm/dlmcommon.h 	if (res->state & (DLM_LOCK_RES_RECOVERING|
res               796 fs/ocfs2/dlm/dlmcommon.h 	else if (res->state & DLM_LOCK_RES_MIGRATING)
res               798 fs/ocfs2/dlm/dlmcommon.h 	else if (res->state & DLM_LOCK_RES_IN_PROGRESS)
res               825 fs/ocfs2/dlm/dlmcommon.h 			     struct dlm_lock_resource *res);
res               834 fs/ocfs2/dlm/dlmcommon.h void dlm_revert_pending_convert(struct dlm_lock_resource *res,
res               836 fs/ocfs2/dlm/dlmcommon.h void dlm_revert_pending_lock(struct dlm_lock_resource *res,
res               841 fs/ocfs2/dlm/dlmcommon.h void dlm_commit_pending_cancel(struct dlm_lock_resource *res,
res               843 fs/ocfs2/dlm/dlmcommon.h void dlm_commit_pending_unlock(struct dlm_lock_resource *res,
res               861 fs/ocfs2/dlm/dlmcommon.h 			      struct dlm_lock_resource *res);
res               863 fs/ocfs2/dlm/dlmcommon.h 			    struct dlm_lock_resource *res);
res               864 fs/ocfs2/dlm/dlmcommon.h static inline void dlm_lockres_get(struct dlm_lock_resource *res)
res               868 fs/ocfs2/dlm/dlmcommon.h 	kref_get(&res->refs);
res               870 fs/ocfs2/dlm/dlmcommon.h void dlm_lockres_put(struct dlm_lock_resource *res);
res               871 fs/ocfs2/dlm/dlmcommon.h void __dlm_unhash_lockres(struct dlm_ctxt *dlm, struct dlm_lock_resource *res);
res               872 fs/ocfs2/dlm/dlmcommon.h void __dlm_insert_lockres(struct dlm_ctxt *dlm, struct dlm_lock_resource *res);
res               896 fs/ocfs2/dlm/dlmcommon.h 				struct dlm_lock_resource *res, int bit);
res               898 fs/ocfs2/dlm/dlmcommon.h 				  struct dlm_lock_resource *res, int bit);
res               901 fs/ocfs2/dlm/dlmcommon.h 				   struct dlm_lock_resource *res);
res               903 fs/ocfs2/dlm/dlmcommon.h 				   struct dlm_lock_resource *res);
res               906 fs/ocfs2/dlm/dlmcommon.h 		struct dlm_lock_resource *res);
res               913 fs/ocfs2/dlm/dlmcommon.h 		      struct dlm_lock_resource *res,
res               916 fs/ocfs2/dlm/dlmcommon.h 		      struct dlm_lock_resource *res,
res               919 fs/ocfs2/dlm/dlmcommon.h 		       struct dlm_lock_resource *res,
res               923 fs/ocfs2/dlm/dlmcommon.h 			   struct dlm_lock_resource *res,
res               928 fs/ocfs2/dlm/dlmcommon.h 				      struct dlm_lock_resource *res,
res               932 fs/ocfs2/dlm/dlmcommon.h 	return dlm_send_proxy_ast_msg(dlm, res, lock, DLM_BAST,
res               937 fs/ocfs2/dlm/dlmcommon.h 				     struct dlm_lock_resource *res,
res               941 fs/ocfs2/dlm/dlmcommon.h 	return dlm_send_proxy_ast_msg(dlm, res, lock, DLM_AST,
res               945 fs/ocfs2/dlm/dlmcommon.h void dlm_print_one_lock_resource(struct dlm_lock_resource *res);
res               946 fs/ocfs2/dlm/dlmcommon.h void __dlm_print_one_lock_resource(struct dlm_lock_resource *res);
res               948 fs/ocfs2/dlm/dlmcommon.h void dlm_kick_thread(struct dlm_ctxt *dlm, struct dlm_lock_resource *res);
res               949 fs/ocfs2/dlm/dlmcommon.h void __dlm_dirty_lockres(struct dlm_ctxt *dlm, struct dlm_lock_resource *res);
res               955 fs/ocfs2/dlm/dlmcommon.h int dlm_empty_lockres(struct dlm_ctxt *dlm, struct dlm_lock_resource *res);
res               957 fs/ocfs2/dlm/dlmcommon.h 			 struct dlm_lock_resource *res,
res               960 fs/ocfs2/dlm/dlmcommon.h 			     struct dlm_lock_resource *res);
res               961 fs/ocfs2/dlm/dlmcommon.h void __dlm_lockres_reserve_ast(struct dlm_lock_resource *res);
res               986 fs/ocfs2/dlm/dlmcommon.h int dlm_do_master_requery(struct dlm_ctxt *dlm, struct dlm_lock_resource *res,
res               990 fs/ocfs2/dlm/dlmcommon.h 		struct dlm_lock_resource *res);
res               993 fs/ocfs2/dlm/dlmcommon.h 			       struct dlm_lock_resource *res,
res              1000 fs/ocfs2/dlm/dlmcommon.h 			 struct dlm_lock_resource *res,
res              1005 fs/ocfs2/dlm/dlmcommon.h 				       struct dlm_lock_resource *res);
res              1008 fs/ocfs2/dlm/dlmcommon.h void __dlm_wait_on_lockres_flags(struct dlm_lock_resource *res, int flags);
res              1011 fs/ocfs2/dlm/dlmcommon.h static inline void __dlm_wait_on_lockres(struct dlm_lock_resource *res)
res              1013 fs/ocfs2/dlm/dlmcommon.h 	__dlm_wait_on_lockres_flags(res, (DLM_LOCK_RES_IN_PROGRESS|
res              1034 fs/ocfs2/dlm/dlmcommon.h 			 struct dlm_lock_resource *res);
res              1039 fs/ocfs2/dlm/dlmcommon.h int __dlm_lockres_has_locks(struct dlm_lock_resource *res);
res              1040 fs/ocfs2/dlm/dlmcommon.h int __dlm_lockres_unused(struct dlm_lock_resource *res);
res              1124 fs/ocfs2/dlm/dlmcommon.h 					 struct dlm_lock_resource *res,
res              1127 fs/ocfs2/dlm/dlmcommon.h 	assert_spin_locked(&res->spinlock);
res              1129 fs/ocfs2/dlm/dlmcommon.h 	res->owner = owner;
res              1133 fs/ocfs2/dlm/dlmcommon.h 					    struct dlm_lock_resource *res,
res              1136 fs/ocfs2/dlm/dlmcommon.h 	assert_spin_locked(&res->spinlock);
res              1138 fs/ocfs2/dlm/dlmcommon.h 	if (owner != res->owner)
res              1139 fs/ocfs2/dlm/dlmcommon.h 		dlm_set_lockres_owner(dlm, res, owner);
res                44 fs/ocfs2/dlm/dlmconvert.c 					   struct dlm_lock_resource *res,
res                49 fs/ocfs2/dlm/dlmconvert.c 					   struct dlm_lock_resource *res,
res                62 fs/ocfs2/dlm/dlmconvert.c 				  struct dlm_lock_resource *res,
res                68 fs/ocfs2/dlm/dlmconvert.c 	spin_lock(&res->spinlock);
res                70 fs/ocfs2/dlm/dlmconvert.c 	__dlm_wait_on_lockres(res);
res                71 fs/ocfs2/dlm/dlmconvert.c 	__dlm_lockres_reserve_ast(res);
res                72 fs/ocfs2/dlm/dlmconvert.c 	res->state |= DLM_LOCK_RES_IN_PROGRESS;
res                74 fs/ocfs2/dlm/dlmconvert.c 	status = __dlmconvert_master(dlm, res, lock, flags, type,
res                77 fs/ocfs2/dlm/dlmconvert.c 	res->state &= ~DLM_LOCK_RES_IN_PROGRESS;
res                78 fs/ocfs2/dlm/dlmconvert.c 	spin_unlock(&res->spinlock);
res                79 fs/ocfs2/dlm/dlmconvert.c 	wake_up(&res->wq);
res                87 fs/ocfs2/dlm/dlmconvert.c 		dlm_lockres_release_ast(dlm, res);
res                90 fs/ocfs2/dlm/dlmconvert.c 		dlm_kick_thread(dlm, res);
res               105 fs/ocfs2/dlm/dlmconvert.c 					   struct dlm_lock_resource *res,
res               113 fs/ocfs2/dlm/dlmconvert.c 	assert_spin_locked(&res->spinlock);
res               129 fs/ocfs2/dlm/dlmconvert.c 	if (!dlm_lock_on_list(&res->granted, lock)) {
res               172 fs/ocfs2/dlm/dlmconvert.c 	list_for_each_entry(tmplock, &res->granted, list) {
res               179 fs/ocfs2/dlm/dlmconvert.c 	list_for_each_entry(tmplock, &res->converting, list) {
res               190 fs/ocfs2/dlm/dlmconvert.c 	mlog(0, "res %.*s, granting %s lock\n", res->lockname.len,
res               191 fs/ocfs2/dlm/dlmconvert.c 	     res->lockname.name, dlm_lock_mode_name(type));
res               198 fs/ocfs2/dlm/dlmconvert.c 		memcpy(res->lvb, lock->lksb->lvb, DLM_LVB_LEN);
res               204 fs/ocfs2/dlm/dlmconvert.c 	list_move_tail(&lock->list, &res->granted);
res               213 fs/ocfs2/dlm/dlmconvert.c 		     "%d to %d...\n", res->lockname.len, res->lockname.name,
res               218 fs/ocfs2/dlm/dlmconvert.c 	mlog(0, "res %.*s, queueing...\n", res->lockname.len,
res               219 fs/ocfs2/dlm/dlmconvert.c 	     res->lockname.name);
res               223 fs/ocfs2/dlm/dlmconvert.c 	list_move_tail(&lock->list, &res->converting);
res               228 fs/ocfs2/dlm/dlmconvert.c 		__dlm_print_one_lock_resource(res);
res               235 fs/ocfs2/dlm/dlmconvert.c void dlm_revert_pending_convert(struct dlm_lock_resource *res,
res               239 fs/ocfs2/dlm/dlmconvert.c 	list_move_tail(&lock->list, &res->granted);
res               252 fs/ocfs2/dlm/dlmconvert.c 				  struct dlm_lock_resource *res,
res               258 fs/ocfs2/dlm/dlmconvert.c 	     lock->ml.convert_type, res->state & DLM_LOCK_RES_IN_PROGRESS);
res               260 fs/ocfs2/dlm/dlmconvert.c 	spin_lock(&res->spinlock);
res               261 fs/ocfs2/dlm/dlmconvert.c 	if (res->state & DLM_LOCK_RES_RECOVERING) {
res               269 fs/ocfs2/dlm/dlmconvert.c 	__dlm_wait_on_lockres(res);
res               272 fs/ocfs2/dlm/dlmconvert.c 		__dlm_print_one_lock_resource(res);
res               286 fs/ocfs2/dlm/dlmconvert.c 		     res->lockname.len, res->lockname.name,
res               294 fs/ocfs2/dlm/dlmconvert.c 	res->state |= DLM_LOCK_RES_IN_PROGRESS;
res               297 fs/ocfs2/dlm/dlmconvert.c 	list_move_tail(&lock->list, &res->converting);
res               314 fs/ocfs2/dlm/dlmconvert.c 	spin_unlock(&res->spinlock);
res               318 fs/ocfs2/dlm/dlmconvert.c 	status = dlm_send_remote_convert_request(dlm, res, lock, flags, type);
res               320 fs/ocfs2/dlm/dlmconvert.c 	spin_lock(&res->spinlock);
res               321 fs/ocfs2/dlm/dlmconvert.c 	res->state &= ~DLM_LOCK_RES_IN_PROGRESS;
res               329 fs/ocfs2/dlm/dlmconvert.c 		dlm_revert_pending_convert(res, lock);
res               333 fs/ocfs2/dlm/dlmconvert.c 				dlm->name, res->lockname.len, res->lockname.name);
res               339 fs/ocfs2/dlm/dlmconvert.c 	spin_unlock(&res->spinlock);
res               343 fs/ocfs2/dlm/dlmconvert.c 	wake_up(&res->wq);
res               356 fs/ocfs2/dlm/dlmconvert.c 					   struct dlm_lock_resource *res,
res               366 fs/ocfs2/dlm/dlmconvert.c 	mlog(0, "%.*s\n", res->lockname.len, res->lockname.name);
res               372 fs/ocfs2/dlm/dlmconvert.c 	convert.namelen = res->lockname.len;
res               374 fs/ocfs2/dlm/dlmconvert.c 	memcpy(convert.name, res->lockname.name, convert.namelen);
res               387 fs/ocfs2/dlm/dlmconvert.c 					vec, veclen, res->owner, &status);
res               393 fs/ocfs2/dlm/dlmconvert.c 			     "message!\n", res->owner);
res               396 fs/ocfs2/dlm/dlmconvert.c 			     "message!\n", res->owner);
res               399 fs/ocfs2/dlm/dlmconvert.c 			     "message!\n", res->owner);
res               405 fs/ocfs2/dlm/dlmconvert.c 		     res->owner);
res               410 fs/ocfs2/dlm/dlmconvert.c 			dlm_wait_for_node_death(dlm, res->owner,
res               414 fs/ocfs2/dlm/dlmconvert.c 			     "from convert message!\n", res->owner);
res               436 fs/ocfs2/dlm/dlmconvert.c 	struct dlm_lock_resource *res = NULL;
res               471 fs/ocfs2/dlm/dlmconvert.c 	res = dlm_lookup_lockres(dlm, cnv->name, cnv->namelen);
res               472 fs/ocfs2/dlm/dlmconvert.c 	if (!res) {
res               477 fs/ocfs2/dlm/dlmconvert.c 	spin_lock(&res->spinlock);
res               478 fs/ocfs2/dlm/dlmconvert.c 	status = __dlm_lockres_state_to_status(res);
res               480 fs/ocfs2/dlm/dlmconvert.c 		spin_unlock(&res->spinlock);
res               484 fs/ocfs2/dlm/dlmconvert.c 	list_for_each_entry(tmp_lock, &res->granted, list) {
res               492 fs/ocfs2/dlm/dlmconvert.c 	spin_unlock(&res->spinlock);
res               499 fs/ocfs2/dlm/dlmconvert.c 		dlm_print_one_lock_resource(res);
res               516 fs/ocfs2/dlm/dlmconvert.c 	spin_lock(&res->spinlock);
res               517 fs/ocfs2/dlm/dlmconvert.c 	status = __dlm_lockres_state_to_status(res);
res               519 fs/ocfs2/dlm/dlmconvert.c 		__dlm_lockres_reserve_ast(res);
res               521 fs/ocfs2/dlm/dlmconvert.c 		res->state |= DLM_LOCK_RES_IN_PROGRESS;
res               522 fs/ocfs2/dlm/dlmconvert.c 		status = __dlmconvert_master(dlm, res, lock, flags,
res               525 fs/ocfs2/dlm/dlmconvert.c 		res->state &= ~DLM_LOCK_RES_IN_PROGRESS;
res               528 fs/ocfs2/dlm/dlmconvert.c 	spin_unlock(&res->spinlock);
res               530 fs/ocfs2/dlm/dlmconvert.c 		wake_up(&res->wq);
res               546 fs/ocfs2/dlm/dlmconvert.c 		dlm_lockres_release_ast(dlm, res);
res               549 fs/ocfs2/dlm/dlmconvert.c 		dlm_kick_thread(dlm, res);
res               551 fs/ocfs2/dlm/dlmconvert.c 	if (res)
res               552 fs/ocfs2/dlm/dlmconvert.c 		dlm_lockres_put(res);
res                14 fs/ocfs2/dlm/dlmconvert.h 				  struct dlm_lock_resource *res,
res                17 fs/ocfs2/dlm/dlmconvert.h 				  struct dlm_lock_resource *res,
res                35 fs/ocfs2/dlm/dlmdebug.c void dlm_print_one_lock_resource(struct dlm_lock_resource *res)
res                37 fs/ocfs2/dlm/dlmdebug.c 	spin_lock(&res->spinlock);
res                38 fs/ocfs2/dlm/dlmdebug.c 	__dlm_print_one_lock_resource(res);
res                39 fs/ocfs2/dlm/dlmdebug.c 	spin_unlock(&res->spinlock);
res                42 fs/ocfs2/dlm/dlmdebug.c static void dlm_print_lockres_refmap(struct dlm_lock_resource *res)
res                45 fs/ocfs2/dlm/dlmdebug.c 	assert_spin_locked(&res->spinlock);
res                50 fs/ocfs2/dlm/dlmdebug.c 		bit = find_next_bit(res->refmap, O2NM_MAX_NODES, bit);
res                56 fs/ocfs2/dlm/dlmdebug.c 	printk("], inflight=%u\n", res->inflight_locks);
res                82 fs/ocfs2/dlm/dlmdebug.c void __dlm_print_one_lock_resource(struct dlm_lock_resource *res)
res                87 fs/ocfs2/dlm/dlmdebug.c 	assert_spin_locked(&res->spinlock);
res                89 fs/ocfs2/dlm/dlmdebug.c 	stringify_lockname(res->lockname.name, res->lockname.len,
res                92 fs/ocfs2/dlm/dlmdebug.c 	       buf, res->owner, res->state);
res                94 fs/ocfs2/dlm/dlmdebug.c 	       res->last_used, kref_read(&res->refs),
res                95 fs/ocfs2/dlm/dlmdebug.c 	       list_empty(&res->purge) ? "no" : "yes");
res                98 fs/ocfs2/dlm/dlmdebug.c 	       list_empty(&res->dirty) ? "no" : "yes",
res                99 fs/ocfs2/dlm/dlmdebug.c 	       list_empty(&res->recovering) ? "no" : "yes",
res               100 fs/ocfs2/dlm/dlmdebug.c 	       res->migration_pending ? "yes" : "no");
res               102 fs/ocfs2/dlm/dlmdebug.c 	       res->inflight_locks, atomic_read(&res->asts_reserved));
res               103 fs/ocfs2/dlm/dlmdebug.c 	dlm_print_lockres_refmap(res);
res               105 fs/ocfs2/dlm/dlmdebug.c 	list_for_each_entry(lock, &res->granted, list) {
res               109 fs/ocfs2/dlm/dlmdebug.c 	list_for_each_entry(lock, &res->converting, list) {
res               113 fs/ocfs2/dlm/dlmdebug.c 	list_for_each_entry(lock, &res->blocked, list) {
res               352 fs/ocfs2/dlm/dlmdebug.c 	struct dlm_lock_resource *res;
res               360 fs/ocfs2/dlm/dlmdebug.c 	list_for_each_entry(res, &dlm->purge_list, purge) {
res               364 fs/ocfs2/dlm/dlmdebug.c 		spin_lock(&res->spinlock);
res               365 fs/ocfs2/dlm/dlmdebug.c 		out += stringify_lockname(res->lockname.name,
res               366 fs/ocfs2/dlm/dlmdebug.c 					  res->lockname.len,
res               369 fs/ocfs2/dlm/dlmdebug.c 				(jiffies - res->last_used)/HZ);
res               370 fs/ocfs2/dlm/dlmdebug.c 		spin_unlock(&res->spinlock);
res               488 fs/ocfs2/dlm/dlmdebug.c static int dump_lockres(struct dlm_lock_resource *res, char *buf, int len)
res               495 fs/ocfs2/dlm/dlmdebug.c 	out += stringify_lockname(res->lockname.name, res->lockname.len,
res               503 fs/ocfs2/dlm/dlmdebug.c 			res->owner, res->state, res->last_used,
res               504 fs/ocfs2/dlm/dlmdebug.c 			!list_empty(&res->purge),
res               505 fs/ocfs2/dlm/dlmdebug.c 			!list_empty(&res->dirty),
res               506 fs/ocfs2/dlm/dlmdebug.c 			!list_empty(&res->recovering),
res               507 fs/ocfs2/dlm/dlmdebug.c 			res->inflight_locks, res->migration_pending,
res               508 fs/ocfs2/dlm/dlmdebug.c 			atomic_read(&res->asts_reserved),
res               509 fs/ocfs2/dlm/dlmdebug.c 			kref_read(&res->refs));
res               513 fs/ocfs2/dlm/dlmdebug.c 	out += stringify_nodemap(res->refmap, O2NM_MAX_NODES,
res               521 fs/ocfs2/dlm/dlmdebug.c 					"%02x", (unsigned char)res->lvb[i]);
res               525 fs/ocfs2/dlm/dlmdebug.c 	list_for_each_entry(lock, &res->granted, list)
res               529 fs/ocfs2/dlm/dlmdebug.c 	list_for_each_entry(lock, &res->converting, list)
res               533 fs/ocfs2/dlm/dlmdebug.c 	list_for_each_entry(lock, &res->blocked, list)
res               546 fs/ocfs2/dlm/dlmdebug.c 	struct dlm_lock_resource *res = NULL;
res               561 fs/ocfs2/dlm/dlmdebug.c 	list_for_each_entry(res, track_list, tracking) {
res               562 fs/ocfs2/dlm/dlmdebug.c 		if (&res->tracking == &dlm->tracking_list)
res               563 fs/ocfs2/dlm/dlmdebug.c 			res = NULL;
res               565 fs/ocfs2/dlm/dlmdebug.c 			dlm_lockres_get(res);
res               573 fs/ocfs2/dlm/dlmdebug.c 	dl->dl_res = res;
res               575 fs/ocfs2/dlm/dlmdebug.c 	if (res) {
res               576 fs/ocfs2/dlm/dlmdebug.c 		spin_lock(&res->spinlock);
res               577 fs/ocfs2/dlm/dlmdebug.c 		dump_lockres(res, dl->dl_buf, dl->dl_len - 1);
res               578 fs/ocfs2/dlm/dlmdebug.c 		spin_unlock(&res->spinlock);
res               147 fs/ocfs2/dlm/dlmdomain.c void __dlm_unhash_lockres(struct dlm_ctxt *dlm, struct dlm_lock_resource *res)
res               149 fs/ocfs2/dlm/dlmdomain.c 	if (hlist_unhashed(&res->hash_node))
res               152 fs/ocfs2/dlm/dlmdomain.c 	mlog(0, "%s: Unhash res %.*s\n", dlm->name, res->lockname.len,
res               153 fs/ocfs2/dlm/dlmdomain.c 	     res->lockname.name);
res               154 fs/ocfs2/dlm/dlmdomain.c 	hlist_del_init(&res->hash_node);
res               155 fs/ocfs2/dlm/dlmdomain.c 	dlm_lockres_put(res);
res               158 fs/ocfs2/dlm/dlmdomain.c void __dlm_insert_lockres(struct dlm_ctxt *dlm, struct dlm_lock_resource *res)
res               164 fs/ocfs2/dlm/dlmdomain.c 	bucket = dlm_lockres_hash(dlm, res->lockname.hash);
res               167 fs/ocfs2/dlm/dlmdomain.c 	dlm_lockres_get(res);
res               169 fs/ocfs2/dlm/dlmdomain.c 	hlist_add_head(&res->hash_node, bucket);
res               171 fs/ocfs2/dlm/dlmdomain.c 	mlog(0, "%s: Hash res %.*s\n", dlm->name, res->lockname.len,
res               172 fs/ocfs2/dlm/dlmdomain.c 	     res->lockname.name);
res               181 fs/ocfs2/dlm/dlmdomain.c 	struct dlm_lock_resource *res;
res               189 fs/ocfs2/dlm/dlmdomain.c 	hlist_for_each_entry(res, bucket, hash_node) {
res               190 fs/ocfs2/dlm/dlmdomain.c 		if (res->lockname.name[0] != name[0])
res               192 fs/ocfs2/dlm/dlmdomain.c 		if (unlikely(res->lockname.len != len))
res               194 fs/ocfs2/dlm/dlmdomain.c 		if (memcmp(res->lockname.name + 1, name + 1, len - 1))
res               196 fs/ocfs2/dlm/dlmdomain.c 		dlm_lockres_get(res);
res               197 fs/ocfs2/dlm/dlmdomain.c 		return res;
res               213 fs/ocfs2/dlm/dlmdomain.c 	struct dlm_lock_resource *res = NULL;
res               219 fs/ocfs2/dlm/dlmdomain.c 	res = __dlm_lookup_lockres_full(dlm, name, len, hash);
res               220 fs/ocfs2/dlm/dlmdomain.c 	if (res) {
res               221 fs/ocfs2/dlm/dlmdomain.c 		spin_lock(&res->spinlock);
res               222 fs/ocfs2/dlm/dlmdomain.c 		if (res->state & DLM_LOCK_RES_DROPPING_REF) {
res               223 fs/ocfs2/dlm/dlmdomain.c 			spin_unlock(&res->spinlock);
res               224 fs/ocfs2/dlm/dlmdomain.c 			dlm_lockres_put(res);
res               227 fs/ocfs2/dlm/dlmdomain.c 		spin_unlock(&res->spinlock);
res               230 fs/ocfs2/dlm/dlmdomain.c 	return res;
res               237 fs/ocfs2/dlm/dlmdomain.c 	struct dlm_lock_resource *res;
res               241 fs/ocfs2/dlm/dlmdomain.c 	res = __dlm_lookup_lockres(dlm, name, len, hash);
res               243 fs/ocfs2/dlm/dlmdomain.c 	return res;
res               408 fs/ocfs2/dlm/dlmdomain.c 	struct dlm_lock_resource *res;
res               424 fs/ocfs2/dlm/dlmdomain.c 			res = hlist_entry(iter, struct dlm_lock_resource,
res               426 fs/ocfs2/dlm/dlmdomain.c 			dlm_lockres_get(res);
res               429 fs/ocfs2/dlm/dlmdomain.c 			dropped = dlm_empty_lockres(dlm, res);
res               431 fs/ocfs2/dlm/dlmdomain.c 			spin_lock(&res->spinlock);
res               433 fs/ocfs2/dlm/dlmdomain.c 				__dlm_lockres_calc_usage(dlm, res);
res               435 fs/ocfs2/dlm/dlmdomain.c 				iter = res->hash_node.next;
res               436 fs/ocfs2/dlm/dlmdomain.c 			spin_unlock(&res->spinlock);
res               438 fs/ocfs2/dlm/dlmdomain.c 			dlm_lockres_put(res);
res               678 fs/ocfs2/dlm/dlmdomain.c 	struct dlm_lock_resource *res;
res               714 fs/ocfs2/dlm/dlmdomain.c 			list_for_each_entry(res, &dlm->tracking_list, tracking)
res               715 fs/ocfs2/dlm/dlmdomain.c 				dlm_print_one_lock_resource(res);
res                46 fs/ocfs2/dlm/dlmlock.c 					       struct dlm_lock_resource *res,
res                75 fs/ocfs2/dlm/dlmlock.c static int dlm_can_grant_new_lock(struct dlm_lock_resource *res,
res                80 fs/ocfs2/dlm/dlmlock.c 	list_for_each_entry(tmplock, &res->granted, list) {
res                85 fs/ocfs2/dlm/dlmlock.c 	list_for_each_entry(tmplock, &res->converting, list) {
res               104 fs/ocfs2/dlm/dlmlock.c 				      struct dlm_lock_resource *res,
res               112 fs/ocfs2/dlm/dlmlock.c 	spin_lock(&res->spinlock);
res               115 fs/ocfs2/dlm/dlmlock.c 	status = __dlm_lockres_state_to_status(res);
res               119 fs/ocfs2/dlm/dlmlock.c 		spin_unlock(&res->spinlock);
res               123 fs/ocfs2/dlm/dlmlock.c 	__dlm_wait_on_lockres(res);
res               124 fs/ocfs2/dlm/dlmlock.c 	__dlm_lockres_reserve_ast(res);
res               126 fs/ocfs2/dlm/dlmlock.c 	if (dlm_can_grant_new_lock(res, lock)) {
res               132 fs/ocfs2/dlm/dlmlock.c 		list_add_tail(&lock->list, &res->granted);
res               139 fs/ocfs2/dlm/dlmlock.c 		if (!dlm_is_recovery_lock(res->lockname.name,
res               140 fs/ocfs2/dlm/dlmlock.c 					  res->lockname.len)) {
res               153 fs/ocfs2/dlm/dlmlock.c 			if (dlm_is_recovery_lock(res->lockname.name,
res               154 fs/ocfs2/dlm/dlmlock.c 						 res->lockname.len)) {
res               162 fs/ocfs2/dlm/dlmlock.c 			list_add_tail(&lock->list, &res->blocked);
res               167 fs/ocfs2/dlm/dlmlock.c 	spin_unlock(&res->spinlock);
res               168 fs/ocfs2/dlm/dlmlock.c 	wake_up(&res->wq);
res               174 fs/ocfs2/dlm/dlmlock.c 		dlm_lockres_release_ast(dlm, res);
res               176 fs/ocfs2/dlm/dlmlock.c 	dlm_lockres_calc_usage(dlm, res);
res               178 fs/ocfs2/dlm/dlmlock.c 		dlm_kick_thread(dlm, res);
res               183 fs/ocfs2/dlm/dlmlock.c void dlm_revert_pending_lock(struct dlm_lock_resource *res,
res               200 fs/ocfs2/dlm/dlmlock.c 				      struct dlm_lock_resource *res,
res               207 fs/ocfs2/dlm/dlmlock.c 	     lock->ml.type, res->lockname.len,
res               208 fs/ocfs2/dlm/dlmlock.c 	     res->lockname.name, flags);
res               214 fs/ocfs2/dlm/dlmlock.c 	spin_lock(&res->spinlock);
res               215 fs/ocfs2/dlm/dlmlock.c 	__dlm_wait_on_lockres(res);
res               216 fs/ocfs2/dlm/dlmlock.c 	if (res->owner == dlm->node_num) {
res               217 fs/ocfs2/dlm/dlmlock.c 		spin_unlock(&res->spinlock);
res               220 fs/ocfs2/dlm/dlmlock.c 	res->state |= DLM_LOCK_RES_IN_PROGRESS;
res               224 fs/ocfs2/dlm/dlmlock.c 	list_add_tail(&lock->list, &res->blocked);
res               226 fs/ocfs2/dlm/dlmlock.c 	spin_unlock(&res->spinlock);
res               230 fs/ocfs2/dlm/dlmlock.c 	status = dlm_send_remote_lock_request(dlm, res, lock, flags);
res               232 fs/ocfs2/dlm/dlmlock.c 	spin_lock(&res->spinlock);
res               233 fs/ocfs2/dlm/dlmlock.c 	res->state &= ~DLM_LOCK_RES_IN_PROGRESS;
res               237 fs/ocfs2/dlm/dlmlock.c 		    dlm_is_recovery_lock(res->lockname.name,
res               238 fs/ocfs2/dlm/dlmlock.c 					 res->lockname.len)) {
res               244 fs/ocfs2/dlm/dlmlock.c 			     dlm->name, res->owner);
res               255 fs/ocfs2/dlm/dlmlock.c 		dlm_revert_pending_lock(res, lock);
res               257 fs/ocfs2/dlm/dlmlock.c 	} else if (dlm_is_recovery_lock(res->lockname.name,
res               258 fs/ocfs2/dlm/dlmlock.c 					res->lockname.len)) {
res               265 fs/ocfs2/dlm/dlmlock.c 		     dlm->name, dlm->node_num, res->owner);
res               266 fs/ocfs2/dlm/dlmlock.c 		list_move_tail(&lock->list, &res->granted);
res               268 fs/ocfs2/dlm/dlmlock.c 	spin_unlock(&res->spinlock);
res               271 fs/ocfs2/dlm/dlmlock.c 		dlm_lockres_calc_usage(dlm, res);
res               273 fs/ocfs2/dlm/dlmlock.c 	wake_up(&res->wq);
res               286 fs/ocfs2/dlm/dlmlock.c 					       struct dlm_lock_resource *res,
res               297 fs/ocfs2/dlm/dlmlock.c 	create.namelen = res->lockname.len;
res               299 fs/ocfs2/dlm/dlmlock.c 	memcpy(create.name, res->lockname.name, create.namelen);
res               302 fs/ocfs2/dlm/dlmlock.c 				    sizeof(create), res->owner, &status);
res               309 fs/ocfs2/dlm/dlmlock.c 			     create.name, res->owner);
res               310 fs/ocfs2/dlm/dlmlock.c 			dlm_print_one_lock_resource(res);
res               316 fs/ocfs2/dlm/dlmlock.c 		     tmpret, res->owner);
res               359 fs/ocfs2/dlm/dlmlock.c 			     struct dlm_lock_resource *res)
res               361 fs/ocfs2/dlm/dlmlock.c 	dlm_lockres_get(res);
res               362 fs/ocfs2/dlm/dlmlock.c 	lock->lockres = res;
res               368 fs/ocfs2/dlm/dlmlock.c 	struct dlm_lock_resource *res;
res               370 fs/ocfs2/dlm/dlmlock.c 	res = lock->lockres;
res               371 fs/ocfs2/dlm/dlmlock.c 	if (res) {
res               374 fs/ocfs2/dlm/dlmlock.c 		dlm_lockres_put(res);
res               447 fs/ocfs2/dlm/dlmlock.c 	struct dlm_lock_resource *res = NULL;
res               493 fs/ocfs2/dlm/dlmlock.c 	res = dlm_lookup_lockres(dlm, name, namelen);
res               494 fs/ocfs2/dlm/dlmlock.c 	if (!res) {
res               499 fs/ocfs2/dlm/dlmlock.c 	spin_lock(&res->spinlock);
res               500 fs/ocfs2/dlm/dlmlock.c 	status = __dlm_lockres_state_to_status(res);
res               501 fs/ocfs2/dlm/dlmlock.c 	spin_unlock(&res->spinlock);
res               508 fs/ocfs2/dlm/dlmlock.c 	dlm_lock_attach_lockres(newlock, res);
res               510 fs/ocfs2/dlm/dlmlock.c 	status = dlmlock_master(dlm, res, newlock, be32_to_cpu(create->flags));
res               516 fs/ocfs2/dlm/dlmlock.c 	if (res)
res               517 fs/ocfs2/dlm/dlmlock.c 		dlm_lockres_put(res);
res               548 fs/ocfs2/dlm/dlmlock.c 	struct dlm_lock_resource *res = NULL;
res               595 fs/ocfs2/dlm/dlmlock.c 		res = lock->lockres;
res               596 fs/ocfs2/dlm/dlmlock.c 		if (!res) {
res               601 fs/ocfs2/dlm/dlmlock.c 		dlm_lockres_get(res);
res               621 fs/ocfs2/dlm/dlmlock.c 		if (res->owner == dlm->node_num)
res               622 fs/ocfs2/dlm/dlmlock.c 			status = dlmconvert_master(dlm, res, lock, flags, mode);
res               624 fs/ocfs2/dlm/dlmlock.c 			status = dlmconvert_remote(dlm, res, lock, flags, mode);
res               663 fs/ocfs2/dlm/dlmlock.c 		res = dlm_get_lock_resource(dlm, name, namelen, flags);
res               664 fs/ocfs2/dlm/dlmlock.c 		if (!res) {
res               671 fs/ocfs2/dlm/dlmlock.c 		mlog(0, "creating lock: lock=%p res=%p\n", lock, res);
res               673 fs/ocfs2/dlm/dlmlock.c 		dlm_lock_attach_lockres(lock, res);
res               692 fs/ocfs2/dlm/dlmlock.c 		if (res->owner == dlm->node_num)
res               693 fs/ocfs2/dlm/dlmlock.c 			status = dlmlock_master(dlm, res, lock, flags);
res               695 fs/ocfs2/dlm/dlmlock.c 			status = dlmlock_remote(dlm, res, lock, flags);
res               706 fs/ocfs2/dlm/dlmlock.c 				dlm_wait_for_node_death(dlm, res->owner,
res               715 fs/ocfs2/dlm/dlmlock.c 		spin_lock(&res->spinlock);
res               716 fs/ocfs2/dlm/dlmlock.c 		dlm_lockres_drop_inflight_ref(dlm, res);
res               717 fs/ocfs2/dlm/dlmlock.c 		spin_unlock(&res->spinlock);
res               719 fs/ocfs2/dlm/dlmlock.c 		dlm_lockres_calc_usage(dlm, res);
res               720 fs/ocfs2/dlm/dlmlock.c 		dlm_kick_thread(dlm, res);
res               740 fs/ocfs2/dlm/dlmlock.c 	if (res)
res               741 fs/ocfs2/dlm/dlmlock.c 		dlm_lockres_put(res);
res                51 fs/ocfs2/dlm/dlmmaster.c 				struct dlm_lock_resource *res,
res                78 fs/ocfs2/dlm/dlmmaster.c 			struct dlm_lock_resource *res,
res                87 fs/ocfs2/dlm/dlmmaster.c static int dlm_do_master_request(struct dlm_lock_resource *res,
res                92 fs/ocfs2/dlm/dlmmaster.c 				     struct dlm_lock_resource *res,
res                96 fs/ocfs2/dlm/dlmmaster.c 				    struct dlm_lock_resource *res,
res               100 fs/ocfs2/dlm/dlmmaster.c 				 struct dlm_lock_resource *res,
res               107 fs/ocfs2/dlm/dlmmaster.c 				    struct dlm_lock_resource *res);
res               109 fs/ocfs2/dlm/dlmmaster.c 				      struct dlm_lock_resource *res);
res               111 fs/ocfs2/dlm/dlmmaster.c 				       struct dlm_lock_resource *res,
res               114 fs/ocfs2/dlm/dlmmaster.c 				       struct dlm_lock_resource *res);
res               253 fs/ocfs2/dlm/dlmmaster.c 			struct dlm_lock_resource *res,
res               278 fs/ocfs2/dlm/dlmmaster.c 		BUG_ON(!res);
res               279 fs/ocfs2/dlm/dlmmaster.c 		mle->mleres = res;
res               280 fs/ocfs2/dlm/dlmmaster.c 		memcpy(mle->mname, res->lockname.name, res->lockname.len);
res               281 fs/ocfs2/dlm/dlmmaster.c 		mle->mnamelen = res->lockname.len;
res               282 fs/ocfs2/dlm/dlmmaster.c 		mle->mnamehash = res->lockname.hash;
res               468 fs/ocfs2/dlm/dlmmaster.c 	struct dlm_lock_resource *res;
res               471 fs/ocfs2/dlm/dlmmaster.c 	res = container_of(kref, struct dlm_lock_resource, refs);
res               472 fs/ocfs2/dlm/dlmmaster.c 	dlm = res->dlm;
res               476 fs/ocfs2/dlm/dlmmaster.c 	BUG_ON(!res->lockname.name);
res               478 fs/ocfs2/dlm/dlmmaster.c 	mlog(0, "destroying lockres %.*s\n", res->lockname.len,
res               479 fs/ocfs2/dlm/dlmmaster.c 	     res->lockname.name);
res               483 fs/ocfs2/dlm/dlmmaster.c 	if (!hlist_unhashed(&res->hash_node) ||
res               484 fs/ocfs2/dlm/dlmmaster.c 	    !list_empty(&res->granted) ||
res               485 fs/ocfs2/dlm/dlmmaster.c 	    !list_empty(&res->converting) ||
res               486 fs/ocfs2/dlm/dlmmaster.c 	    !list_empty(&res->blocked) ||
res               487 fs/ocfs2/dlm/dlmmaster.c 	    !list_empty(&res->dirty) ||
res               488 fs/ocfs2/dlm/dlmmaster.c 	    !list_empty(&res->recovering) ||
res               489 fs/ocfs2/dlm/dlmmaster.c 	    !list_empty(&res->purge)) {
res               493 fs/ocfs2/dlm/dlmmaster.c 		     res->lockname.len, res->lockname.name,
res               494 fs/ocfs2/dlm/dlmmaster.c 		     !hlist_unhashed(&res->hash_node) ? 'H' : ' ',
res               495 fs/ocfs2/dlm/dlmmaster.c 		     !list_empty(&res->granted) ? 'G' : ' ',
res               496 fs/ocfs2/dlm/dlmmaster.c 		     !list_empty(&res->converting) ? 'C' : ' ',
res               497 fs/ocfs2/dlm/dlmmaster.c 		     !list_empty(&res->blocked) ? 'B' : ' ',
res               498 fs/ocfs2/dlm/dlmmaster.c 		     !list_empty(&res->dirty) ? 'D' : ' ',
res               499 fs/ocfs2/dlm/dlmmaster.c 		     !list_empty(&res->recovering) ? 'R' : ' ',
res               500 fs/ocfs2/dlm/dlmmaster.c 		     !list_empty(&res->purge) ? 'P' : ' ');
res               502 fs/ocfs2/dlm/dlmmaster.c 		dlm_print_one_lock_resource(res);
res               507 fs/ocfs2/dlm/dlmmaster.c 	BUG_ON(!hlist_unhashed(&res->hash_node));
res               508 fs/ocfs2/dlm/dlmmaster.c 	BUG_ON(!list_empty(&res->granted));
res               509 fs/ocfs2/dlm/dlmmaster.c 	BUG_ON(!list_empty(&res->converting));
res               510 fs/ocfs2/dlm/dlmmaster.c 	BUG_ON(!list_empty(&res->blocked));
res               511 fs/ocfs2/dlm/dlmmaster.c 	BUG_ON(!list_empty(&res->dirty));
res               512 fs/ocfs2/dlm/dlmmaster.c 	BUG_ON(!list_empty(&res->recovering));
res               513 fs/ocfs2/dlm/dlmmaster.c 	BUG_ON(!list_empty(&res->purge));
res               515 fs/ocfs2/dlm/dlmmaster.c 	kmem_cache_free(dlm_lockname_cache, (void *)res->lockname.name);
res               517 fs/ocfs2/dlm/dlmmaster.c 	kmem_cache_free(dlm_lockres_cache, res);
res               520 fs/ocfs2/dlm/dlmmaster.c void dlm_lockres_put(struct dlm_lock_resource *res)
res               522 fs/ocfs2/dlm/dlmmaster.c 	kref_put(&res->refs, dlm_lockres_release);
res               526 fs/ocfs2/dlm/dlmmaster.c 			     struct dlm_lock_resource *res,
res               535 fs/ocfs2/dlm/dlmmaster.c 	qname = (char *) res->lockname.name;
res               538 fs/ocfs2/dlm/dlmmaster.c 	res->lockname.len = namelen;
res               539 fs/ocfs2/dlm/dlmmaster.c 	res->lockname.hash = dlm_lockid_hash(name, namelen);
res               541 fs/ocfs2/dlm/dlmmaster.c 	init_waitqueue_head(&res->wq);
res               542 fs/ocfs2/dlm/dlmmaster.c 	spin_lock_init(&res->spinlock);
res               543 fs/ocfs2/dlm/dlmmaster.c 	INIT_HLIST_NODE(&res->hash_node);
res               544 fs/ocfs2/dlm/dlmmaster.c 	INIT_LIST_HEAD(&res->granted);
res               545 fs/ocfs2/dlm/dlmmaster.c 	INIT_LIST_HEAD(&res->converting);
res               546 fs/ocfs2/dlm/dlmmaster.c 	INIT_LIST_HEAD(&res->blocked);
res               547 fs/ocfs2/dlm/dlmmaster.c 	INIT_LIST_HEAD(&res->dirty);
res               548 fs/ocfs2/dlm/dlmmaster.c 	INIT_LIST_HEAD(&res->recovering);
res               549 fs/ocfs2/dlm/dlmmaster.c 	INIT_LIST_HEAD(&res->purge);
res               550 fs/ocfs2/dlm/dlmmaster.c 	INIT_LIST_HEAD(&res->tracking);
res               551 fs/ocfs2/dlm/dlmmaster.c 	atomic_set(&res->asts_reserved, 0);
res               552 fs/ocfs2/dlm/dlmmaster.c 	res->migration_pending = 0;
res               553 fs/ocfs2/dlm/dlmmaster.c 	res->inflight_locks = 0;
res               554 fs/ocfs2/dlm/dlmmaster.c 	res->inflight_assert_workers = 0;
res               556 fs/ocfs2/dlm/dlmmaster.c 	res->dlm = dlm;
res               558 fs/ocfs2/dlm/dlmmaster.c 	kref_init(&res->refs);
res               564 fs/ocfs2/dlm/dlmmaster.c 	spin_lock(&res->spinlock);
res               565 fs/ocfs2/dlm/dlmmaster.c 	dlm_set_lockres_owner(dlm, res, DLM_LOCK_RES_OWNER_UNKNOWN);
res               566 fs/ocfs2/dlm/dlmmaster.c 	spin_unlock(&res->spinlock);
res               568 fs/ocfs2/dlm/dlmmaster.c 	res->state = DLM_LOCK_RES_IN_PROGRESS;
res               570 fs/ocfs2/dlm/dlmmaster.c 	res->last_used = 0;
res               573 fs/ocfs2/dlm/dlmmaster.c 	list_add_tail(&res->tracking, &dlm->tracking_list);
res               576 fs/ocfs2/dlm/dlmmaster.c 	memset(res->lvb, 0, DLM_LVB_LEN);
res               577 fs/ocfs2/dlm/dlmmaster.c 	memset(res->refmap, 0, sizeof(res->refmap));
res               584 fs/ocfs2/dlm/dlmmaster.c 	struct dlm_lock_resource *res = NULL;
res               586 fs/ocfs2/dlm/dlmmaster.c 	res = kmem_cache_zalloc(dlm_lockres_cache, GFP_NOFS);
res               587 fs/ocfs2/dlm/dlmmaster.c 	if (!res)
res               590 fs/ocfs2/dlm/dlmmaster.c 	res->lockname.name = kmem_cache_zalloc(dlm_lockname_cache, GFP_NOFS);
res               591 fs/ocfs2/dlm/dlmmaster.c 	if (!res->lockname.name)
res               594 fs/ocfs2/dlm/dlmmaster.c 	dlm_init_lockres(dlm, res, name, namelen);
res               595 fs/ocfs2/dlm/dlmmaster.c 	return res;
res               598 fs/ocfs2/dlm/dlmmaster.c 	if (res)
res               599 fs/ocfs2/dlm/dlmmaster.c 		kmem_cache_free(dlm_lockres_cache, res);
res               604 fs/ocfs2/dlm/dlmmaster.c 				struct dlm_lock_resource *res, int bit)
res               606 fs/ocfs2/dlm/dlmmaster.c 	assert_spin_locked(&res->spinlock);
res               608 fs/ocfs2/dlm/dlmmaster.c 	mlog(0, "res %.*s, set node %u, %ps()\n", res->lockname.len,
res               609 fs/ocfs2/dlm/dlmmaster.c 	     res->lockname.name, bit, __builtin_return_address(0));
res               611 fs/ocfs2/dlm/dlmmaster.c 	set_bit(bit, res->refmap);
res               615 fs/ocfs2/dlm/dlmmaster.c 				  struct dlm_lock_resource *res, int bit)
res               617 fs/ocfs2/dlm/dlmmaster.c 	assert_spin_locked(&res->spinlock);
res               619 fs/ocfs2/dlm/dlmmaster.c 	mlog(0, "res %.*s, clr node %u, %ps()\n", res->lockname.len,
res               620 fs/ocfs2/dlm/dlmmaster.c 	     res->lockname.name, bit, __builtin_return_address(0));
res               622 fs/ocfs2/dlm/dlmmaster.c 	clear_bit(bit, res->refmap);
res               626 fs/ocfs2/dlm/dlmmaster.c 				   struct dlm_lock_resource *res)
res               628 fs/ocfs2/dlm/dlmmaster.c 	res->inflight_locks++;
res               631 fs/ocfs2/dlm/dlmmaster.c 	     res->lockname.len, res->lockname.name, res->inflight_locks,
res               636 fs/ocfs2/dlm/dlmmaster.c 				   struct dlm_lock_resource *res)
res               638 fs/ocfs2/dlm/dlmmaster.c 	assert_spin_locked(&res->spinlock);
res               639 fs/ocfs2/dlm/dlmmaster.c 	__dlm_lockres_grab_inflight_ref(dlm, res);
res               643 fs/ocfs2/dlm/dlmmaster.c 				   struct dlm_lock_resource *res)
res               645 fs/ocfs2/dlm/dlmmaster.c 	assert_spin_locked(&res->spinlock);
res               647 fs/ocfs2/dlm/dlmmaster.c 	BUG_ON(res->inflight_locks == 0);
res               649 fs/ocfs2/dlm/dlmmaster.c 	res->inflight_locks--;
res               652 fs/ocfs2/dlm/dlmmaster.c 	     res->lockname.len, res->lockname.name, res->inflight_locks,
res               655 fs/ocfs2/dlm/dlmmaster.c 	wake_up(&res->wq);
res               659 fs/ocfs2/dlm/dlmmaster.c 		struct dlm_lock_resource *res)
res               661 fs/ocfs2/dlm/dlmmaster.c 	assert_spin_locked(&res->spinlock);
res               662 fs/ocfs2/dlm/dlmmaster.c 	res->inflight_assert_workers++;
res               664 fs/ocfs2/dlm/dlmmaster.c 			dlm->name, res->lockname.len, res->lockname.name,
res               665 fs/ocfs2/dlm/dlmmaster.c 			res->inflight_assert_workers);
res               669 fs/ocfs2/dlm/dlmmaster.c 		struct dlm_lock_resource *res)
res               671 fs/ocfs2/dlm/dlmmaster.c 	assert_spin_locked(&res->spinlock);
res               672 fs/ocfs2/dlm/dlmmaster.c 	BUG_ON(res->inflight_assert_workers == 0);
res               673 fs/ocfs2/dlm/dlmmaster.c 	res->inflight_assert_workers--;
res               675 fs/ocfs2/dlm/dlmmaster.c 			dlm->name, res->lockname.len, res->lockname.name,
res               676 fs/ocfs2/dlm/dlmmaster.c 			res->inflight_assert_workers);
res               680 fs/ocfs2/dlm/dlmmaster.c 		struct dlm_lock_resource *res)
res               682 fs/ocfs2/dlm/dlmmaster.c 	spin_lock(&res->spinlock);
res               683 fs/ocfs2/dlm/dlmmaster.c 	__dlm_lockres_drop_inflight_worker(dlm, res);
res               684 fs/ocfs2/dlm/dlmmaster.c 	spin_unlock(&res->spinlock);
res               708 fs/ocfs2/dlm/dlmmaster.c 	struct dlm_lock_resource *tmpres=NULL, *res=NULL;
res               768 fs/ocfs2/dlm/dlmmaster.c 		if (res) {
res               770 fs/ocfs2/dlm/dlmmaster.c 			if (!list_empty(&res->tracking))
res               771 fs/ocfs2/dlm/dlmmaster.c 				list_del_init(&res->tracking);
res               775 fs/ocfs2/dlm/dlmmaster.c 						res->lockname.len,
res               776 fs/ocfs2/dlm/dlmmaster.c 						res->lockname.name);
res               778 fs/ocfs2/dlm/dlmmaster.c 			dlm_lockres_put(res);
res               780 fs/ocfs2/dlm/dlmmaster.c 		res = tmpres;
res               784 fs/ocfs2/dlm/dlmmaster.c 	if (!res) {
res               791 fs/ocfs2/dlm/dlmmaster.c 		res = dlm_new_lockres(dlm, lockid, namelen);
res               792 fs/ocfs2/dlm/dlmmaster.c 		if (!res)
res               797 fs/ocfs2/dlm/dlmmaster.c 	mlog(0, "no lockres found, allocated our own: %p\n", res);
res               802 fs/ocfs2/dlm/dlmmaster.c 		spin_lock(&res->spinlock);
res               803 fs/ocfs2/dlm/dlmmaster.c 		dlm_change_lockres_owner(dlm, res, dlm->node_num);
res               804 fs/ocfs2/dlm/dlmmaster.c 		__dlm_insert_lockres(dlm, res);
res               805 fs/ocfs2/dlm/dlmmaster.c 		dlm_lockres_grab_inflight_ref(dlm, res);
res               806 fs/ocfs2/dlm/dlmmaster.c 		spin_unlock(&res->spinlock);
res               858 fs/ocfs2/dlm/dlmmaster.c 		dlm_init_mle(mle, DLM_MLE_MASTER, dlm, res, NULL, 0);
res               881 fs/ocfs2/dlm/dlmmaster.c 	__dlm_insert_lockres(dlm, res);
res               884 fs/ocfs2/dlm/dlmmaster.c 	__dlm_lockres_grab_inflight_ref(dlm, res);
res               902 fs/ocfs2/dlm/dlmmaster.c 			if (!dlm_pre_master_reco_lockres(dlm, res))
res               938 fs/ocfs2/dlm/dlmmaster.c 		ret = dlm_do_master_request(res, mle, nodenum);
res               957 fs/ocfs2/dlm/dlmmaster.c 	ret = dlm_wait_for_lock_mastery(dlm, res, mle, &blocked);
res               961 fs/ocfs2/dlm/dlmmaster.c 		     "request now, blocked=%d\n", dlm->name, res->lockname.len,
res               962 fs/ocfs2/dlm/dlmmaster.c 		     res->lockname.name, blocked);
res               966 fs/ocfs2/dlm/dlmmaster.c 			     dlm->name, res->lockname.len,
res               967 fs/ocfs2/dlm/dlmmaster.c 			     res->lockname.name, blocked);
res               968 fs/ocfs2/dlm/dlmmaster.c 			dlm_print_one_lock_resource(res);
res               975 fs/ocfs2/dlm/dlmmaster.c 	mlog(0, "%s: res %.*s, Mastered by %u\n", dlm->name, res->lockname.len,
res               976 fs/ocfs2/dlm/dlmmaster.c 	     res->lockname.name, res->owner);
res               978 fs/ocfs2/dlm/dlmmaster.c 	BUG_ON(res->owner == O2NM_MAX_NODES);
res               987 fs/ocfs2/dlm/dlmmaster.c 	spin_lock(&res->spinlock);
res               988 fs/ocfs2/dlm/dlmmaster.c 	res->state &= ~DLM_LOCK_RES_IN_PROGRESS;
res               989 fs/ocfs2/dlm/dlmmaster.c 	spin_unlock(&res->spinlock);
res               990 fs/ocfs2/dlm/dlmmaster.c 	wake_up(&res->wq);
res               997 fs/ocfs2/dlm/dlmmaster.c 	return res;
res              1004 fs/ocfs2/dlm/dlmmaster.c 				     struct dlm_lock_resource *res,
res              1018 fs/ocfs2/dlm/dlmmaster.c 	spin_lock(&res->spinlock);
res              1019 fs/ocfs2/dlm/dlmmaster.c 	if (res->owner != DLM_LOCK_RES_OWNER_UNKNOWN) {
res              1021 fs/ocfs2/dlm/dlmmaster.c 		     res->lockname.len, res->lockname.name, res->owner);
res              1022 fs/ocfs2/dlm/dlmmaster.c 		spin_unlock(&res->spinlock);
res              1025 fs/ocfs2/dlm/dlmmaster.c 		if (res->owner != dlm->node_num) {
res              1026 fs/ocfs2/dlm/dlmmaster.c 			ret = dlm_do_master_request(res, mle, res->owner);
res              1029 fs/ocfs2/dlm/dlmmaster.c 				mlog(ML_ERROR, "link to %u went down?: %d\n", res->owner, ret);
res              1037 fs/ocfs2/dlm/dlmmaster.c 	spin_unlock(&res->spinlock);
res              1050 fs/ocfs2/dlm/dlmmaster.c 		     dlm->name, res->lockname.len, res->lockname.name);
res              1051 fs/ocfs2/dlm/dlmmaster.c 		ret = dlm_restart_lock_mastery(dlm, res, mle, *blocked);
res              1055 fs/ocfs2/dlm/dlmmaster.c 			     dlm->name, res->lockname.len, res->lockname.name,
res              1065 fs/ocfs2/dlm/dlmmaster.c 		     "rechecking now\n", dlm->name, res->lockname.len,
res              1066 fs/ocfs2/dlm/dlmmaster.c 		     res->lockname.name);
res              1071 fs/ocfs2/dlm/dlmmaster.c 			     "for %s:%.*s\n", dlm->name, res->lockname.len,
res              1072 fs/ocfs2/dlm/dlmmaster.c 			     res->lockname.name);
res              1109 fs/ocfs2/dlm/dlmmaster.c 		if (res->owner == O2NM_MAX_NODES) {
res              1111 fs/ocfs2/dlm/dlmmaster.c 			     res->lockname.len, res->lockname.name);
res              1114 fs/ocfs2/dlm/dlmmaster.c 		mlog(0, "done waiting, master is %u\n", res->owner);
res              1123 fs/ocfs2/dlm/dlmmaster.c 		     res->lockname.len, res->lockname.name, m);
res              1124 fs/ocfs2/dlm/dlmmaster.c 		ret = dlm_do_assert_master(dlm, res, mle->vote_map, 0);
res              1139 fs/ocfs2/dlm/dlmmaster.c 	spin_lock(&res->spinlock);
res              1142 fs/ocfs2/dlm/dlmmaster.c 	dlm_change_lockres_owner(dlm, res, m);
res              1143 fs/ocfs2/dlm/dlmmaster.c 	spin_unlock(&res->spinlock);
res              1209 fs/ocfs2/dlm/dlmmaster.c 				    struct dlm_lock_resource *res,
res              1256 fs/ocfs2/dlm/dlmmaster.c 						     res->lockname.len,
res              1257 fs/ocfs2/dlm/dlmmaster.c 						     res->lockname.name,
res              1272 fs/ocfs2/dlm/dlmmaster.c 						     res->lockname.len,
res              1273 fs/ocfs2/dlm/dlmmaster.c 						     res->lockname.name);
res              1275 fs/ocfs2/dlm/dlmmaster.c 						mle->mleres = res;
res              1308 fs/ocfs2/dlm/dlmmaster.c static int dlm_do_master_request(struct dlm_lock_resource *res,
res              1360 fs/ocfs2/dlm/dlmmaster.c 			     "reference\n", dlm->name, res->lockname.len,
res              1361 fs/ocfs2/dlm/dlmmaster.c 			     res->lockname.name, to);
res              1407 fs/ocfs2/dlm/dlmmaster.c 	struct dlm_lock_resource *res = NULL;
res              1436 fs/ocfs2/dlm/dlmmaster.c 	res = __dlm_lookup_lockres(dlm, name, namelen, hash);
res              1437 fs/ocfs2/dlm/dlmmaster.c 	if (res) {
res              1441 fs/ocfs2/dlm/dlmmaster.c 		spin_lock(&res->spinlock);
res              1448 fs/ocfs2/dlm/dlmmaster.c 		if (hlist_unhashed(&res->hash_node)) {
res              1449 fs/ocfs2/dlm/dlmmaster.c 			spin_unlock(&res->spinlock);
res              1450 fs/ocfs2/dlm/dlmmaster.c 			dlm_lockres_put(res);
res              1454 fs/ocfs2/dlm/dlmmaster.c 		if (res->state & (DLM_LOCK_RES_RECOVERING|
res              1456 fs/ocfs2/dlm/dlmmaster.c 			spin_unlock(&res->spinlock);
res              1465 fs/ocfs2/dlm/dlmmaster.c 		if (res->owner == dlm->node_num) {
res              1466 fs/ocfs2/dlm/dlmmaster.c 			dlm_lockres_set_refmap_bit(dlm, res, request->node_idx);
res              1467 fs/ocfs2/dlm/dlmmaster.c 			spin_unlock(&res->spinlock);
res              1480 fs/ocfs2/dlm/dlmmaster.c 		} else if (res->owner != DLM_LOCK_RES_OWNER_UNKNOWN) {
res              1481 fs/ocfs2/dlm/dlmmaster.c 			spin_unlock(&res->spinlock);
res              1492 fs/ocfs2/dlm/dlmmaster.c 		if (!(res->state & DLM_LOCK_RES_IN_PROGRESS)) {
res              1531 fs/ocfs2/dlm/dlmmaster.c 				dlm_lockres_set_refmap_bit(dlm, res,
res              1545 fs/ocfs2/dlm/dlmmaster.c 		spin_unlock(&res->spinlock);
res              1618 fs/ocfs2/dlm/dlmmaster.c 			     dlm->node_num, res->lockname.len, res->lockname.name);
res              1619 fs/ocfs2/dlm/dlmmaster.c 		spin_lock(&res->spinlock);
res              1620 fs/ocfs2/dlm/dlmmaster.c 		ret = dlm_dispatch_assert_master(dlm, res, 0, request->node_idx,
res              1625 fs/ocfs2/dlm/dlmmaster.c 			spin_unlock(&res->spinlock);
res              1626 fs/ocfs2/dlm/dlmmaster.c 			dlm_lockres_put(res);
res              1629 fs/ocfs2/dlm/dlmmaster.c 			__dlm_lockres_grab_inflight_worker(dlm, res);
res              1630 fs/ocfs2/dlm/dlmmaster.c 			spin_unlock(&res->spinlock);
res              1633 fs/ocfs2/dlm/dlmmaster.c 		if (res)
res              1634 fs/ocfs2/dlm/dlmmaster.c 			dlm_lockres_put(res);
res              1653 fs/ocfs2/dlm/dlmmaster.c 				struct dlm_lock_resource *res,
res              1661 fs/ocfs2/dlm/dlmmaster.c 	const char *lockname = res->lockname.name;
res              1662 fs/ocfs2/dlm/dlmmaster.c 	unsigned int namelen = res->lockname.len;
res              1666 fs/ocfs2/dlm/dlmmaster.c 	spin_lock(&res->spinlock);
res              1667 fs/ocfs2/dlm/dlmmaster.c 	res->state |= DLM_LOCK_RES_SETREF_INPROG;
res              1668 fs/ocfs2/dlm/dlmmaster.c 	spin_unlock(&res->spinlock);
res              1735 fs/ocfs2/dlm/dlmmaster.c 			spin_lock(&res->spinlock);
res              1736 fs/ocfs2/dlm/dlmmaster.c 			dlm_lockres_set_refmap_bit(dlm, res, to);
res              1737 fs/ocfs2/dlm/dlmmaster.c 			spin_unlock(&res->spinlock);
res              1744 fs/ocfs2/dlm/dlmmaster.c 	spin_lock(&res->spinlock);
res              1745 fs/ocfs2/dlm/dlmmaster.c 	res->state &= ~DLM_LOCK_RES_SETREF_INPROG;
res              1746 fs/ocfs2/dlm/dlmmaster.c 	spin_unlock(&res->spinlock);
res              1747 fs/ocfs2/dlm/dlmmaster.c 	wake_up(&res->wq);
res              1767 fs/ocfs2/dlm/dlmmaster.c 	struct dlm_lock_resource *res = NULL;
res              1845 fs/ocfs2/dlm/dlmmaster.c 	res = __dlm_lookup_lockres(dlm, name, namelen, hash);
res              1846 fs/ocfs2/dlm/dlmmaster.c 	if (res) {
res              1847 fs/ocfs2/dlm/dlmmaster.c 		spin_lock(&res->spinlock);
res              1848 fs/ocfs2/dlm/dlmmaster.c 		if (res->state & DLM_LOCK_RES_RECOVERING)  {
res              1854 fs/ocfs2/dlm/dlmmaster.c 			if (res->owner != DLM_LOCK_RES_OWNER_UNKNOWN &&
res              1855 fs/ocfs2/dlm/dlmmaster.c 			    res->owner != assert->node_idx) {
res              1858 fs/ocfs2/dlm/dlmmaster.c 				     assert->node_idx, res->owner, namelen,
res              1860 fs/ocfs2/dlm/dlmmaster.c 				__dlm_print_one_lock_resource(res);
res              1864 fs/ocfs2/dlm/dlmmaster.c 			if (res->owner != DLM_LOCK_RES_OWNER_UNKNOWN) {
res              1866 fs/ocfs2/dlm/dlmmaster.c 				if (res->owner == assert->node_idx) {
res              1875 fs/ocfs2/dlm/dlmmaster.c 				     res->owner, namelen, name);
res              1878 fs/ocfs2/dlm/dlmmaster.c 			if (!(res->state & DLM_LOCK_RES_IN_PROGRESS)) {
res              1899 fs/ocfs2/dlm/dlmmaster.c 		spin_unlock(&res->spinlock);
res              1929 fs/ocfs2/dlm/dlmmaster.c 		if (res) {
res              1931 fs/ocfs2/dlm/dlmmaster.c 			spin_lock(&res->spinlock);
res              1935 fs/ocfs2/dlm/dlmmaster.c 			       		res->lockname.len, res->lockname.name,
res              1937 fs/ocfs2/dlm/dlmmaster.c 				res->state &= ~DLM_LOCK_RES_MIGRATING;
res              1939 fs/ocfs2/dlm/dlmmaster.c 				dlm_change_lockres_owner(dlm, res, mle->new_master);
res              1940 fs/ocfs2/dlm/dlmmaster.c 				BUG_ON(res->state & DLM_LOCK_RES_DIRTY);
res              1942 fs/ocfs2/dlm/dlmmaster.c 				dlm_change_lockres_owner(dlm, res, mle->master);
res              1944 fs/ocfs2/dlm/dlmmaster.c 			spin_unlock(&res->spinlock);
res              1947 fs/ocfs2/dlm/dlmmaster.c 				wake_up(&res->wq);
res              1985 fs/ocfs2/dlm/dlmmaster.c 	} else if (res) {
res              1986 fs/ocfs2/dlm/dlmmaster.c 		if (res->owner != assert->node_idx) {
res              1989 fs/ocfs2/dlm/dlmmaster.c 			     res->owner, namelen, name);
res              1996 fs/ocfs2/dlm/dlmmaster.c 	if (res) {
res              1997 fs/ocfs2/dlm/dlmmaster.c 		spin_lock(&res->spinlock);
res              1998 fs/ocfs2/dlm/dlmmaster.c 		res->state |= DLM_LOCK_RES_SETREF_INPROG;
res              1999 fs/ocfs2/dlm/dlmmaster.c 		spin_unlock(&res->spinlock);
res              2000 fs/ocfs2/dlm/dlmmaster.c 		*ret_data = (void *)res;
res              2025 fs/ocfs2/dlm/dlmmaster.c 	__dlm_print_one_lock_resource(res);
res              2026 fs/ocfs2/dlm/dlmmaster.c 	spin_unlock(&res->spinlock);
res              2032 fs/ocfs2/dlm/dlmmaster.c 	*ret_data = (void *)res;
res              2039 fs/ocfs2/dlm/dlmmaster.c 	struct dlm_lock_resource *res = (struct dlm_lock_resource *)ret_data;
res              2042 fs/ocfs2/dlm/dlmmaster.c 		spin_lock(&res->spinlock);
res              2043 fs/ocfs2/dlm/dlmmaster.c 		res->state &= ~DLM_LOCK_RES_SETREF_INPROG;
res              2044 fs/ocfs2/dlm/dlmmaster.c 		spin_unlock(&res->spinlock);
res              2045 fs/ocfs2/dlm/dlmmaster.c 		wake_up(&res->wq);
res              2046 fs/ocfs2/dlm/dlmmaster.c 		dlm_lockres_put(res);
res              2052 fs/ocfs2/dlm/dlmmaster.c 			       struct dlm_lock_resource *res,
res              2063 fs/ocfs2/dlm/dlmmaster.c 	item->u.am.lockres = res; /* already have a ref */
res              2070 fs/ocfs2/dlm/dlmmaster.c 		mlog(0, "IGNORE HIGHER: %.*s\n", res->lockname.len,
res              2071 fs/ocfs2/dlm/dlmmaster.c 		     res->lockname.name);
res              2085 fs/ocfs2/dlm/dlmmaster.c 	struct dlm_lock_resource *res;
res              2093 fs/ocfs2/dlm/dlmmaster.c 	res = item->u.am.lockres;
res              2124 fs/ocfs2/dlm/dlmmaster.c 	spin_lock(&res->spinlock);
res              2125 fs/ocfs2/dlm/dlmmaster.c 	if (res->state & DLM_LOCK_RES_MIGRATING) {
res              2129 fs/ocfs2/dlm/dlmmaster.c 		spin_unlock(&res->spinlock);
res              2132 fs/ocfs2/dlm/dlmmaster.c 		__dlm_lockres_reserve_ast(res);
res              2133 fs/ocfs2/dlm/dlmmaster.c 	spin_unlock(&res->spinlock);
res              2138 fs/ocfs2/dlm/dlmmaster.c 		     res->lockname.len, res->lockname.name, dlm->node_num);
res              2139 fs/ocfs2/dlm/dlmmaster.c 	ret = dlm_do_assert_master(dlm, res, nodemap, flags);
res              2147 fs/ocfs2/dlm/dlmmaster.c 	dlm_lockres_release_ast(dlm, res);
res              2150 fs/ocfs2/dlm/dlmmaster.c 	dlm_lockres_drop_inflight_worker(dlm, res);
res              2152 fs/ocfs2/dlm/dlmmaster.c 	dlm_lockres_put(res);
res              2168 fs/ocfs2/dlm/dlmmaster.c 				       struct dlm_lock_resource *res)
res              2183 fs/ocfs2/dlm/dlmmaster.c 		ret = dlm_do_master_requery(dlm, res, nodenum, &master);
res              2217 fs/ocfs2/dlm/dlmmaster.c int dlm_drop_lockres_ref(struct dlm_ctxt *dlm, struct dlm_lock_resource *res)
res              2224 fs/ocfs2/dlm/dlmmaster.c 	lockname = res->lockname.name;
res              2225 fs/ocfs2/dlm/dlmmaster.c 	namelen = res->lockname.len;
res              2234 fs/ocfs2/dlm/dlmmaster.c 				 &deref, sizeof(deref), res->owner, &r);
res              2237 fs/ocfs2/dlm/dlmmaster.c 		     dlm->name, namelen, lockname, ret, res->owner);
res              2241 fs/ocfs2/dlm/dlmmaster.c 		     dlm->name, namelen, lockname, res->owner, r);
res              2242 fs/ocfs2/dlm/dlmmaster.c 		dlm_print_one_lock_resource(res);
res              2256 fs/ocfs2/dlm/dlmmaster.c 	struct dlm_lock_resource *res = NULL;
res              2285 fs/ocfs2/dlm/dlmmaster.c 	res = __dlm_lookup_lockres_full(dlm, name, namelen, hash);
res              2286 fs/ocfs2/dlm/dlmmaster.c 	if (!res) {
res              2294 fs/ocfs2/dlm/dlmmaster.c 	spin_lock(&res->spinlock);
res              2295 fs/ocfs2/dlm/dlmmaster.c 	if (res->state & DLM_LOCK_RES_SETREF_INPROG)
res              2298 fs/ocfs2/dlm/dlmmaster.c 		BUG_ON(res->state & DLM_LOCK_RES_DROPPING_REF);
res              2299 fs/ocfs2/dlm/dlmmaster.c 		if (test_bit(node, res->refmap)) {
res              2300 fs/ocfs2/dlm/dlmmaster.c 			dlm_lockres_clear_refmap_bit(dlm, res, node);
res              2304 fs/ocfs2/dlm/dlmmaster.c 	spin_unlock(&res->spinlock);
res              2308 fs/ocfs2/dlm/dlmmaster.c 			dlm_lockres_calc_usage(dlm, res);
res              2312 fs/ocfs2/dlm/dlmmaster.c 		     	res->lockname.len, res->lockname.name, node);
res              2313 fs/ocfs2/dlm/dlmmaster.c 			dlm_print_one_lock_resource(res);
res              2327 fs/ocfs2/dlm/dlmmaster.c 	item->u.dl.deref_res = res;
res              2338 fs/ocfs2/dlm/dlmmaster.c 	if (res)
res              2339 fs/ocfs2/dlm/dlmmaster.c 		dlm_lockres_put(res);
res              2351 fs/ocfs2/dlm/dlmmaster.c 	struct dlm_lock_resource *res = NULL;
res              2377 fs/ocfs2/dlm/dlmmaster.c 	res = __dlm_lookup_lockres_full(dlm, name, namelen, hash);
res              2378 fs/ocfs2/dlm/dlmmaster.c 	if (!res) {
res              2385 fs/ocfs2/dlm/dlmmaster.c 	spin_lock(&res->spinlock);
res              2386 fs/ocfs2/dlm/dlmmaster.c 	if (!(res->state & DLM_LOCK_RES_DROPPING_REF)) {
res              2387 fs/ocfs2/dlm/dlmmaster.c 		spin_unlock(&res->spinlock);
res              2391 fs/ocfs2/dlm/dlmmaster.c 			res->lockname.len, res->lockname.name, node);
res              2396 fs/ocfs2/dlm/dlmmaster.c 	__dlm_do_purge_lockres(dlm, res);
res              2397 fs/ocfs2/dlm/dlmmaster.c 	spin_unlock(&res->spinlock);
res              2398 fs/ocfs2/dlm/dlmmaster.c 	wake_up(&res->wq);
res              2404 fs/ocfs2/dlm/dlmmaster.c 	if (res)
res              2405 fs/ocfs2/dlm/dlmmaster.c 		dlm_lockres_put(res);
res              2411 fs/ocfs2/dlm/dlmmaster.c 		struct dlm_lock_resource *res, u8 node)
res              2418 fs/ocfs2/dlm/dlmmaster.c 	lockname = res->lockname.name;
res              2419 fs/ocfs2/dlm/dlmmaster.c 	namelen = res->lockname.len;
res              2437 fs/ocfs2/dlm/dlmmaster.c 		dlm_print_one_lock_resource(res);
res              2444 fs/ocfs2/dlm/dlmmaster.c 	struct dlm_lock_resource *res;
res              2449 fs/ocfs2/dlm/dlmmaster.c 	res = item->u.dl.deref_res;
res              2452 fs/ocfs2/dlm/dlmmaster.c 	spin_lock(&res->spinlock);
res              2453 fs/ocfs2/dlm/dlmmaster.c 	BUG_ON(res->state & DLM_LOCK_RES_DROPPING_REF);
res              2454 fs/ocfs2/dlm/dlmmaster.c 	__dlm_wait_on_lockres_flags(res, DLM_LOCK_RES_SETREF_INPROG);
res              2455 fs/ocfs2/dlm/dlmmaster.c 	if (test_bit(node, res->refmap)) {
res              2456 fs/ocfs2/dlm/dlmmaster.c 		dlm_lockres_clear_refmap_bit(dlm, res, node);
res              2459 fs/ocfs2/dlm/dlmmaster.c 	spin_unlock(&res->spinlock);
res              2461 fs/ocfs2/dlm/dlmmaster.c 	dlm_drop_lockres_ref_done(dlm, res, node);
res              2465 fs/ocfs2/dlm/dlmmaster.c 		     dlm->name, res->lockname.len, res->lockname.name, node);
res              2466 fs/ocfs2/dlm/dlmmaster.c 		dlm_lockres_calc_usage(dlm, res);
res              2470 fs/ocfs2/dlm/dlmmaster.c 		     res->lockname.len, res->lockname.name, node);
res              2471 fs/ocfs2/dlm/dlmmaster.c 		dlm_print_one_lock_resource(res);
res              2474 fs/ocfs2/dlm/dlmmaster.c 	dlm_lockres_put(res);
res              2485 fs/ocfs2/dlm/dlmmaster.c 				      struct dlm_lock_resource *res)
res              2493 fs/ocfs2/dlm/dlmmaster.c 	assert_spin_locked(&res->spinlock);
res              2496 fs/ocfs2/dlm/dlmmaster.c 	if (res->state & DLM_LOCK_RES_MIGRATING)
res              2500 fs/ocfs2/dlm/dlmmaster.c 	if (res->state & (DLM_LOCK_RES_RECOVERING|
res              2504 fs/ocfs2/dlm/dlmmaster.c 	if (res->owner != dlm->node_num)
res              2508 fs/ocfs2/dlm/dlmmaster.c 		queue = dlm_list_idx_to_ptr(res, idx);
res              2516 fs/ocfs2/dlm/dlmmaster.c 			     "%s list\n", dlm->name, res->lockname.len,
res              2517 fs/ocfs2/dlm/dlmmaster.c 			     res->lockname.name,
res              2526 fs/ocfs2/dlm/dlmmaster.c 		node_ref = find_next_bit(res->refmap, O2NM_MAX_NODES, 0);
res              2531 fs/ocfs2/dlm/dlmmaster.c 	mlog(0, "%s: res %.*s, Migratable\n", dlm->name, res->lockname.len,
res              2532 fs/ocfs2/dlm/dlmmaster.c 	     res->lockname.name);
res              2543 fs/ocfs2/dlm/dlmmaster.c 			       struct dlm_lock_resource *res, u8 target)
res              2559 fs/ocfs2/dlm/dlmmaster.c 	name = res->lockname.name;
res              2560 fs/ocfs2/dlm/dlmmaster.c 	namelen = res->lockname.len;
res              2586 fs/ocfs2/dlm/dlmmaster.c 	ret = dlm_add_migration_mle(dlm, res, mle, &oldmle, name,
res              2608 fs/ocfs2/dlm/dlmmaster.c 	if (dlm_mark_lockres_migrating(dlm, res, target) < 0) {
res              2610 fs/ocfs2/dlm/dlmmaster.c 		     "the target went down.\n", res->lockname.len,
res              2611 fs/ocfs2/dlm/dlmmaster.c 		     res->lockname.name, target);
res              2612 fs/ocfs2/dlm/dlmmaster.c 		spin_lock(&res->spinlock);
res              2613 fs/ocfs2/dlm/dlmmaster.c 		res->state &= ~DLM_LOCK_RES_MIGRATING;
res              2615 fs/ocfs2/dlm/dlmmaster.c 		spin_unlock(&res->spinlock);
res              2652 fs/ocfs2/dlm/dlmmaster.c 	ret = dlm_send_one_lockres(dlm, res, mres, target,
res              2662 fs/ocfs2/dlm/dlmmaster.c 		spin_lock(&res->spinlock);
res              2663 fs/ocfs2/dlm/dlmmaster.c 		res->state &= ~DLM_LOCK_RES_MIGRATING;
res              2665 fs/ocfs2/dlm/dlmmaster.c 		spin_unlock(&res->spinlock);
res              2691 fs/ocfs2/dlm/dlmmaster.c 			    res->owner == target)
res              2695 fs/ocfs2/dlm/dlmmaster.c 			     dlm->name, res->lockname.len, res->lockname.name);
res              2701 fs/ocfs2/dlm/dlmmaster.c 				     dlm->name, res->lockname.len,
res              2702 fs/ocfs2/dlm/dlmmaster.c 				     res->lockname.name, target);
res              2708 fs/ocfs2/dlm/dlmmaster.c 				spin_lock(&res->spinlock);
res              2709 fs/ocfs2/dlm/dlmmaster.c 				res->state &= ~DLM_LOCK_RES_MIGRATING;
res              2711 fs/ocfs2/dlm/dlmmaster.c 				spin_unlock(&res->spinlock);
res              2716 fs/ocfs2/dlm/dlmmaster.c 			     dlm->name, res->lockname.len, res->lockname.name);
res              2720 fs/ocfs2/dlm/dlmmaster.c 	spin_lock(&res->spinlock);
res              2721 fs/ocfs2/dlm/dlmmaster.c 	dlm_set_lockres_owner(dlm, res, target);
res              2722 fs/ocfs2/dlm/dlmmaster.c 	res->state &= ~DLM_LOCK_RES_MIGRATING;
res              2723 fs/ocfs2/dlm/dlmmaster.c 	dlm_remove_nonlocal_locks(dlm, res);
res              2724 fs/ocfs2/dlm/dlmmaster.c 	spin_unlock(&res->spinlock);
res              2725 fs/ocfs2/dlm/dlmmaster.c 	wake_up(&res->wq);
res              2732 fs/ocfs2/dlm/dlmmaster.c 	dlm_lockres_calc_usage(dlm, res);
res              2737 fs/ocfs2/dlm/dlmmaster.c 		dlm_kick_thread(dlm, res);
res              2742 fs/ocfs2/dlm/dlmmaster.c 		wake_up(&res->wq);
res              2766 fs/ocfs2/dlm/dlmmaster.c int dlm_empty_lockres(struct dlm_ctxt *dlm, struct dlm_lock_resource *res)
res              2774 fs/ocfs2/dlm/dlmmaster.c 	spin_lock(&res->spinlock);
res              2775 fs/ocfs2/dlm/dlmmaster.c 	if (dlm_is_lockres_migratable(dlm, res))
res              2776 fs/ocfs2/dlm/dlmmaster.c 		target = dlm_pick_migration_target(dlm, res);
res              2777 fs/ocfs2/dlm/dlmmaster.c 	spin_unlock(&res->spinlock);
res              2785 fs/ocfs2/dlm/dlmmaster.c 	ret = dlm_migrate_lockres(dlm, res, target);
res              2788 fs/ocfs2/dlm/dlmmaster.c 		     dlm->name, res->lockname.len, res->lockname.name,
res              2807 fs/ocfs2/dlm/dlmmaster.c 				     struct dlm_lock_resource *res,
res              2811 fs/ocfs2/dlm/dlmmaster.c 	spin_lock(&res->spinlock);
res              2812 fs/ocfs2/dlm/dlmmaster.c 	can_proceed = !!(res->state & DLM_LOCK_RES_MIGRATING);
res              2813 fs/ocfs2/dlm/dlmmaster.c 	spin_unlock(&res->spinlock);
res              2825 fs/ocfs2/dlm/dlmmaster.c 				struct dlm_lock_resource *res)
res              2828 fs/ocfs2/dlm/dlmmaster.c 	spin_lock(&res->spinlock);
res              2829 fs/ocfs2/dlm/dlmmaster.c 	ret = !!(res->state & DLM_LOCK_RES_DIRTY);
res              2830 fs/ocfs2/dlm/dlmmaster.c 	spin_unlock(&res->spinlock);
res              2836 fs/ocfs2/dlm/dlmmaster.c 				       struct dlm_lock_resource *res,
res              2842 fs/ocfs2/dlm/dlmmaster.c 	       res->lockname.len, res->lockname.name, dlm->node_num,
res              2846 fs/ocfs2/dlm/dlmmaster.c 	spin_lock(&res->spinlock);
res              2847 fs/ocfs2/dlm/dlmmaster.c 	BUG_ON(res->migration_pending);
res              2848 fs/ocfs2/dlm/dlmmaster.c 	res->migration_pending = 1;
res              2851 fs/ocfs2/dlm/dlmmaster.c 	__dlm_lockres_reserve_ast(res);
res              2852 fs/ocfs2/dlm/dlmmaster.c 	spin_unlock(&res->spinlock);
res              2855 fs/ocfs2/dlm/dlmmaster.c 	dlm_kick_thread(dlm, res);
res              2858 fs/ocfs2/dlm/dlmmaster.c 	spin_lock(&res->spinlock);
res              2859 fs/ocfs2/dlm/dlmmaster.c 	BUG_ON(res->state & DLM_LOCK_RES_BLOCK_DIRTY);
res              2860 fs/ocfs2/dlm/dlmmaster.c 	res->state |= DLM_LOCK_RES_BLOCK_DIRTY;
res              2861 fs/ocfs2/dlm/dlmmaster.c 	spin_unlock(&res->spinlock);
res              2863 fs/ocfs2/dlm/dlmmaster.c 	wait_event(dlm->ast_wq, !dlm_lockres_is_dirty(dlm, res));
res              2864 fs/ocfs2/dlm/dlmmaster.c 	dlm_lockres_release_ast(dlm, res);
res              2867 fs/ocfs2/dlm/dlmmaster.c 	       res->state & DLM_LOCK_RES_DIRTY ? "yes" : "no");
res              2873 fs/ocfs2/dlm/dlmmaster.c 		   dlm_migration_can_proceed(dlm, res, target),
res              2877 fs/ocfs2/dlm/dlmmaster.c 		       res->state & DLM_LOCK_RES_MIGRATING ? "yes":"no",
res              2881 fs/ocfs2/dlm/dlmmaster.c 		       res->state & DLM_LOCK_RES_MIGRATING ? "yes":"no",
res              2884 fs/ocfs2/dlm/dlmmaster.c 	if (!dlm_migration_can_proceed(dlm, res, target)) {
res              2904 fs/ocfs2/dlm/dlmmaster.c 	spin_lock(&res->spinlock);
res              2905 fs/ocfs2/dlm/dlmmaster.c 	BUG_ON(!(res->state & DLM_LOCK_RES_BLOCK_DIRTY));
res              2906 fs/ocfs2/dlm/dlmmaster.c 	res->state &= ~DLM_LOCK_RES_BLOCK_DIRTY;
res              2908 fs/ocfs2/dlm/dlmmaster.c 		BUG_ON(!(res->state & DLM_LOCK_RES_MIGRATING));
res              2910 fs/ocfs2/dlm/dlmmaster.c 		res->migration_pending = 0;
res              2911 fs/ocfs2/dlm/dlmmaster.c 	spin_unlock(&res->spinlock);
res              2928 fs/ocfs2/dlm/dlmmaster.c 				      struct dlm_lock_resource *res)
res              2930 fs/ocfs2/dlm/dlmmaster.c 	struct list_head *queue = &res->granted;
res              2934 fs/ocfs2/dlm/dlmmaster.c 	assert_spin_locked(&res->spinlock);
res              2936 fs/ocfs2/dlm/dlmmaster.c 	BUG_ON(res->owner == dlm->node_num);
res              2948 fs/ocfs2/dlm/dlmmaster.c 				dlm_lockres_clear_refmap_bit(dlm, res,
res              2961 fs/ocfs2/dlm/dlmmaster.c 		bit = find_next_bit(res->refmap, O2NM_MAX_NODES, bit);
res              2969 fs/ocfs2/dlm/dlmmaster.c 			     res->lockname.len, res->lockname.name, bit);
res              2970 fs/ocfs2/dlm/dlmmaster.c 			dlm_lockres_clear_refmap_bit(dlm, res, bit);
res              2982 fs/ocfs2/dlm/dlmmaster.c 				    struct dlm_lock_resource *res)
res              2985 fs/ocfs2/dlm/dlmmaster.c 	struct list_head *queue = &res->granted;
res              2991 fs/ocfs2/dlm/dlmmaster.c 	assert_spin_locked(&res->spinlock);
res              2995 fs/ocfs2/dlm/dlmmaster.c 		queue = dlm_list_idx_to_ptr(res, idx);
res              3009 fs/ocfs2/dlm/dlmmaster.c 		noderef = find_next_bit(res->refmap, O2NM_MAX_NODES,
res              3028 fs/ocfs2/dlm/dlmmaster.c 				  struct dlm_lock_resource *res,
res              3037 fs/ocfs2/dlm/dlmmaster.c 	migrate.namelen = res->lockname.len;
res              3038 fs/ocfs2/dlm/dlmmaster.c 	memcpy(migrate.name, res->lockname.name, migrate.namelen);
res              3081 fs/ocfs2/dlm/dlmmaster.c 			     dlm->name, res->lockname.len, res->lockname.name,
res              3083 fs/ocfs2/dlm/dlmmaster.c 			spin_lock(&res->spinlock);
res              3084 fs/ocfs2/dlm/dlmmaster.c 			dlm_lockres_set_refmap_bit(dlm, res, nodenum);
res              3085 fs/ocfs2/dlm/dlmmaster.c 			spin_unlock(&res->spinlock);
res              3108 fs/ocfs2/dlm/dlmmaster.c 	struct dlm_lock_resource *res = NULL;
res              3132 fs/ocfs2/dlm/dlmmaster.c 	res = __dlm_lookup_lockres(dlm, name, namelen, hash);
res              3133 fs/ocfs2/dlm/dlmmaster.c 	if (res) {
res              3134 fs/ocfs2/dlm/dlmmaster.c 		spin_lock(&res->spinlock);
res              3135 fs/ocfs2/dlm/dlmmaster.c 		if (res->state & DLM_LOCK_RES_RECOVERING) {
res              3139 fs/ocfs2/dlm/dlmmaster.c 			spin_unlock(&res->spinlock);
res              3146 fs/ocfs2/dlm/dlmmaster.c 		res->state |= DLM_LOCK_RES_MIGRATING;
res              3147 fs/ocfs2/dlm/dlmmaster.c 		spin_unlock(&res->spinlock);
res              3152 fs/ocfs2/dlm/dlmmaster.c 	ret = dlm_add_migration_mle(dlm, res, mle, &oldmle,
res              3170 fs/ocfs2/dlm/dlmmaster.c 	if (res)
res              3171 fs/ocfs2/dlm/dlmmaster.c 		dlm_lockres_put(res);
res              3185 fs/ocfs2/dlm/dlmmaster.c 				 struct dlm_lock_resource *res,
res              3245 fs/ocfs2/dlm/dlmmaster.c 	dlm_init_mle(mle, DLM_MLE_MIGRATION, dlm, res, name, namelen);
res              3263 fs/ocfs2/dlm/dlmmaster.c 	struct dlm_lock_resource *res;
res              3266 fs/ocfs2/dlm/dlmmaster.c 	res = __dlm_lookup_lockres(dlm, mle->mname, mle->mnamelen,
res              3268 fs/ocfs2/dlm/dlmmaster.c 	if (res) {
res              3272 fs/ocfs2/dlm/dlmmaster.c 		spin_lock(&res->spinlock);
res              3273 fs/ocfs2/dlm/dlmmaster.c 		dlm_set_lockres_owner(dlm, res, DLM_LOCK_RES_OWNER_UNKNOWN);
res              3274 fs/ocfs2/dlm/dlmmaster.c 		dlm_move_lockres_to_recovery_list(dlm, res);
res              3275 fs/ocfs2/dlm/dlmmaster.c 		spin_unlock(&res->spinlock);
res              3276 fs/ocfs2/dlm/dlmmaster.c 		dlm_lockres_put(res);
res              3287 fs/ocfs2/dlm/dlmmaster.c 	return res;
res              3335 fs/ocfs2/dlm/dlmmaster.c 	struct dlm_lock_resource *res;
res              3404 fs/ocfs2/dlm/dlmmaster.c 			res = dlm_reset_mleres_owner(dlm, mle);
res              3405 fs/ocfs2/dlm/dlmmaster.c 			if (res)
res              3416 fs/ocfs2/dlm/dlmmaster.c int dlm_finish_migration(struct dlm_ctxt *dlm, struct dlm_lock_resource *res,
res              3431 fs/ocfs2/dlm/dlmmaster.c 	spin_lock(&res->spinlock);
res              3432 fs/ocfs2/dlm/dlmmaster.c 	dlm_lockres_set_refmap_bit(dlm, res, old_master);
res              3433 fs/ocfs2/dlm/dlmmaster.c 	spin_unlock(&res->spinlock);
res              3436 fs/ocfs2/dlm/dlmmaster.c 	ret = dlm_do_migrate_request(dlm, res, old_master,
res              3444 fs/ocfs2/dlm/dlmmaster.c 	     res->lockname.len, res->lockname.name);
res              3447 fs/ocfs2/dlm/dlmmaster.c 	ret = dlm_do_assert_master(dlm, res, iter.node_map,
res              3458 fs/ocfs2/dlm/dlmmaster.c 	     res->lockname.len, res->lockname.name, old_master);
res              3459 fs/ocfs2/dlm/dlmmaster.c 	ret = dlm_do_assert_master(dlm, res, iter.node_map,
res              3470 fs/ocfs2/dlm/dlmmaster.c 	spin_lock(&res->spinlock);
res              3471 fs/ocfs2/dlm/dlmmaster.c 	dlm_set_lockres_owner(dlm, res, dlm->node_num);
res              3472 fs/ocfs2/dlm/dlmmaster.c 	res->state &= ~DLM_LOCK_RES_MIGRATING;
res              3473 fs/ocfs2/dlm/dlmmaster.c 	spin_unlock(&res->spinlock);
res              3475 fs/ocfs2/dlm/dlmmaster.c 	dlm_kick_thread(dlm, res);
res              3476 fs/ocfs2/dlm/dlmmaster.c 	wake_up(&res->wq);
res              3490 fs/ocfs2/dlm/dlmmaster.c void __dlm_lockres_reserve_ast(struct dlm_lock_resource *res)
res              3492 fs/ocfs2/dlm/dlmmaster.c 	assert_spin_locked(&res->spinlock);
res              3493 fs/ocfs2/dlm/dlmmaster.c 	if (res->state & DLM_LOCK_RES_MIGRATING) {
res              3494 fs/ocfs2/dlm/dlmmaster.c 		__dlm_print_one_lock_resource(res);
res              3496 fs/ocfs2/dlm/dlmmaster.c 	BUG_ON(res->state & DLM_LOCK_RES_MIGRATING);
res              3498 fs/ocfs2/dlm/dlmmaster.c 	atomic_inc(&res->asts_reserved);
res              3515 fs/ocfs2/dlm/dlmmaster.c 			     struct dlm_lock_resource *res)
res              3517 fs/ocfs2/dlm/dlmmaster.c 	if (!atomic_dec_and_lock(&res->asts_reserved, &res->spinlock))
res              3520 fs/ocfs2/dlm/dlmmaster.c 	if (!res->migration_pending) {
res              3521 fs/ocfs2/dlm/dlmmaster.c 		spin_unlock(&res->spinlock);
res              3525 fs/ocfs2/dlm/dlmmaster.c 	BUG_ON(res->state & DLM_LOCK_RES_MIGRATING);
res              3526 fs/ocfs2/dlm/dlmmaster.c 	res->migration_pending = 0;
res              3527 fs/ocfs2/dlm/dlmmaster.c 	res->state |= DLM_LOCK_RES_MIGRATING;
res              3528 fs/ocfs2/dlm/dlmmaster.c 	spin_unlock(&res->spinlock);
res              3529 fs/ocfs2/dlm/dlmmaster.c 	wake_up(&res->wq);
res                52 fs/ocfs2/dlm/dlmrecovery.c static inline int dlm_num_locks_in_lockres(struct dlm_lock_resource *res);
res                60 fs/ocfs2/dlm/dlmrecovery.c 				    struct dlm_lock_resource *res,
res                63 fs/ocfs2/dlm/dlmrecovery.c 				     struct dlm_lock_resource *res,
res                80 fs/ocfs2/dlm/dlmrecovery.c 				      struct dlm_lock_resource *res,
res               240 fs/ocfs2/dlm/dlmrecovery.c 	struct dlm_lock_resource *res;
res               278 fs/ocfs2/dlm/dlmrecovery.c 	list_for_each_entry(res, &dlm->reco.resources, recovering) {
res               280 fs/ocfs2/dlm/dlmrecovery.c 		     dlm->name, res->lockname.len, res->lockname.name);
res               875 fs/ocfs2/dlm/dlmrecovery.c 	struct dlm_lock_resource *res;
res               921 fs/ocfs2/dlm/dlmrecovery.c 	list_for_each_entry(res, &resources, recovering) {
res               922 fs/ocfs2/dlm/dlmrecovery.c 		ret = dlm_send_one_lockres(dlm, res, mres, reco_master,
res              1047 fs/ocfs2/dlm/dlmrecovery.c 	struct dlm_lock_resource *res, *next;
res              1051 fs/ocfs2/dlm/dlmrecovery.c 	list_for_each_entry_safe(res, next, &dlm->reco.resources, recovering) {
res              1054 fs/ocfs2/dlm/dlmrecovery.c 		if (dlm_is_recovery_lock(res->lockname.name,
res              1055 fs/ocfs2/dlm/dlmrecovery.c 					 res->lockname.len)) {
res              1056 fs/ocfs2/dlm/dlmrecovery.c 			spin_lock(&res->spinlock);
res              1057 fs/ocfs2/dlm/dlmrecovery.c 			list_for_each_entry(lock, &res->granted, list) {
res              1071 fs/ocfs2/dlm/dlmrecovery.c 			spin_unlock(&res->spinlock);
res              1075 fs/ocfs2/dlm/dlmrecovery.c 		if (res->owner == dead_node) {
res              1079 fs/ocfs2/dlm/dlmrecovery.c 			list_move_tail(&res->recovering, list);
res              1080 fs/ocfs2/dlm/dlmrecovery.c 		} else if (res->owner == DLM_LOCK_RES_OWNER_UNKNOWN) {
res              1083 fs/ocfs2/dlm/dlmrecovery.c 			list_move_tail(&res->recovering, list);
res              1089 fs/ocfs2/dlm/dlmrecovery.c static inline int dlm_num_locks_in_lockres(struct dlm_lock_resource *res)
res              1092 fs/ocfs2/dlm/dlmrecovery.c 	struct list_head *iter, *queue = &res->granted;
res              1107 fs/ocfs2/dlm/dlmrecovery.c 				      struct dlm_lock_resource *res,
res              1127 fs/ocfs2/dlm/dlmrecovery.c 	     dlm->name, res->lockname.len, res->lockname.name,
res              1158 fs/ocfs2/dlm/dlmrecovery.c 	dlm_init_migratable_lockres(mres, res->lockname.name,
res              1159 fs/ocfs2/dlm/dlmrecovery.c 				    res->lockname.len, mres_total_locks,
res              1269 fs/ocfs2/dlm/dlmrecovery.c int dlm_send_one_lockres(struct dlm_ctxt *dlm, struct dlm_lock_resource *res,
res              1283 fs/ocfs2/dlm/dlmrecovery.c 	total_locks = dlm_num_locks_in_lockres(res);
res              1292 fs/ocfs2/dlm/dlmrecovery.c 	dlm_init_migratable_lockres(mres, res->lockname.name,
res              1293 fs/ocfs2/dlm/dlmrecovery.c 				    res->lockname.len, total_locks,
res              1294 fs/ocfs2/dlm/dlmrecovery.c 				    mig_cookie, flags, res->owner);
res              1298 fs/ocfs2/dlm/dlmrecovery.c 		queue = dlm_list_idx_to_ptr(res, i);
res              1308 fs/ocfs2/dlm/dlmrecovery.c 						       res, total_locks);
res              1316 fs/ocfs2/dlm/dlmrecovery.c 		     dlm->name, res->lockname.len, res->lockname.name,
res              1322 fs/ocfs2/dlm/dlmrecovery.c 	ret = dlm_send_mig_lockres_msg(dlm, mres, send_to, res, total_locks);
res              1335 fs/ocfs2/dlm/dlmrecovery.c 	     res->lockname.len, res->lockname.name);
res              1365 fs/ocfs2/dlm/dlmrecovery.c 	struct dlm_lock_resource *res = NULL;
res              1405 fs/ocfs2/dlm/dlmrecovery.c 	res = __dlm_lookup_lockres_full(dlm, mres->lockname, mres->lockname_len,
res              1407 fs/ocfs2/dlm/dlmrecovery.c 	if (res) {
res              1410 fs/ocfs2/dlm/dlmrecovery.c 		spin_lock(&res->spinlock);
res              1411 fs/ocfs2/dlm/dlmrecovery.c 		if (res->state & DLM_LOCK_RES_DROPPING_REF) {
res              1417 fs/ocfs2/dlm/dlmrecovery.c 			spin_unlock(&res->spinlock);
res              1419 fs/ocfs2/dlm/dlmrecovery.c 			dlm_lockres_put(res);
res              1424 fs/ocfs2/dlm/dlmrecovery.c 			res->state |= DLM_LOCK_RES_RECOVERING;
res              1426 fs/ocfs2/dlm/dlmrecovery.c 			if (res->state & DLM_LOCK_RES_MIGRATING) {
res              1432 fs/ocfs2/dlm/dlmrecovery.c 			} else if (res->state & DLM_LOCK_RES_RECOVERING) {
res              1438 fs/ocfs2/dlm/dlmrecovery.c 				spin_unlock(&res->spinlock);
res              1440 fs/ocfs2/dlm/dlmrecovery.c 				dlm_lockres_put(res);
res              1443 fs/ocfs2/dlm/dlmrecovery.c 			res->state |= DLM_LOCK_RES_MIGRATING;
res              1445 fs/ocfs2/dlm/dlmrecovery.c 		spin_unlock(&res->spinlock);
res              1451 fs/ocfs2/dlm/dlmrecovery.c 		res = dlm_new_lockres(dlm, mres->lockname, mres->lockname_len);
res              1452 fs/ocfs2/dlm/dlmrecovery.c 		if (!res)
res              1457 fs/ocfs2/dlm/dlmrecovery.c 		dlm_lockres_get(res);
res              1461 fs/ocfs2/dlm/dlmrecovery.c 			res->state |= DLM_LOCK_RES_RECOVERING;
res              1463 fs/ocfs2/dlm/dlmrecovery.c 			res->state |= DLM_LOCK_RES_MIGRATING;
res              1466 fs/ocfs2/dlm/dlmrecovery.c 		__dlm_insert_lockres(dlm, res);
res              1472 fs/ocfs2/dlm/dlmrecovery.c 		dlm_lockres_get(res);
res              1487 fs/ocfs2/dlm/dlmrecovery.c 		spin_lock(&res->spinlock);
res              1488 fs/ocfs2/dlm/dlmrecovery.c 		res->state &= ~DLM_LOCK_RES_IN_PROGRESS;
res              1489 fs/ocfs2/dlm/dlmrecovery.c 		spin_unlock(&res->spinlock);
res              1490 fs/ocfs2/dlm/dlmrecovery.c 		wake_up(&res->wq);
res              1497 fs/ocfs2/dlm/dlmrecovery.c 	spin_lock(&res->spinlock);
res              1500 fs/ocfs2/dlm/dlmrecovery.c 	dlm_lockres_grab_inflight_ref(dlm, res);
res              1510 fs/ocfs2/dlm/dlmrecovery.c 		dlm_change_lockres_owner(dlm, res, dlm->node_num);
res              1512 fs/ocfs2/dlm/dlmrecovery.c 	spin_unlock(&res->spinlock);
res              1518 fs/ocfs2/dlm/dlmrecovery.c 	item->u.ml.lockres = res; /* already have a ref */
res              1529 fs/ocfs2/dlm/dlmrecovery.c 		dlm_lockres_put(res);
res              1547 fs/ocfs2/dlm/dlmrecovery.c 	struct dlm_lock_resource *res;
res              1554 fs/ocfs2/dlm/dlmrecovery.c 	res = item->u.ml.lockres;
res              1562 fs/ocfs2/dlm/dlmrecovery.c 		ret = dlm_lockres_master_requery(dlm, res, &real_master);
res              1571 fs/ocfs2/dlm/dlmrecovery.c 				   res->lockname.len, res->lockname.name);
res              1573 fs/ocfs2/dlm/dlmrecovery.c 			spin_lock(&res->spinlock);
res              1574 fs/ocfs2/dlm/dlmrecovery.c 			dlm_lockres_drop_inflight_ref(dlm, res);
res              1575 fs/ocfs2/dlm/dlmrecovery.c 			spin_unlock(&res->spinlock);
res              1578 fs/ocfs2/dlm/dlmrecovery.c 				  real_master, res->lockname.len,
res              1579 fs/ocfs2/dlm/dlmrecovery.c 				  res->lockname.name);
res              1585 fs/ocfs2/dlm/dlmrecovery.c 	ret = dlm_process_recovery_data(dlm, res, mres);
res              1593 fs/ocfs2/dlm/dlmrecovery.c 		ret = dlm_finish_migration(dlm, res, mres->master);
res              1600 fs/ocfs2/dlm/dlmrecovery.c 	if (res) {
res              1602 fs/ocfs2/dlm/dlmrecovery.c 			dlm_lockres_put(res);
res              1603 fs/ocfs2/dlm/dlmrecovery.c 		dlm_lockres_put(res);
res              1611 fs/ocfs2/dlm/dlmrecovery.c 				      struct dlm_lock_resource *res,
res              1651 fs/ocfs2/dlm/dlmrecovery.c 		ret = dlm_do_master_requery(dlm, res, nodenum, real_master);
res              1668 fs/ocfs2/dlm/dlmrecovery.c int dlm_do_master_requery(struct dlm_ctxt *dlm, struct dlm_lock_resource *res,
res              1677 fs/ocfs2/dlm/dlmrecovery.c 	req.namelen = res->lockname.len;
res              1678 fs/ocfs2/dlm/dlmrecovery.c 	memcpy(req.name, res->lockname.name, res->lockname.len);
res              1711 fs/ocfs2/dlm/dlmrecovery.c 	struct dlm_lock_resource *res = NULL;
res              1726 fs/ocfs2/dlm/dlmrecovery.c 	res = __dlm_lookup_lockres(dlm, req->name, req->namelen, hash);
res              1727 fs/ocfs2/dlm/dlmrecovery.c 	if (res) {
res              1728 fs/ocfs2/dlm/dlmrecovery.c 		spin_lock(&res->spinlock);
res              1729 fs/ocfs2/dlm/dlmrecovery.c 		master = res->owner;
res              1731 fs/ocfs2/dlm/dlmrecovery.c 			int ret = dlm_dispatch_assert_master(dlm, res,
res              1735 fs/ocfs2/dlm/dlmrecovery.c 				spin_unlock(&res->spinlock);
res              1736 fs/ocfs2/dlm/dlmrecovery.c 				dlm_lockres_put(res);
res              1743 fs/ocfs2/dlm/dlmrecovery.c 				__dlm_lockres_grab_inflight_worker(dlm, res);
res              1744 fs/ocfs2/dlm/dlmrecovery.c 				spin_unlock(&res->spinlock);
res              1748 fs/ocfs2/dlm/dlmrecovery.c 			spin_unlock(&res->spinlock);
res              1749 fs/ocfs2/dlm/dlmrecovery.c 			dlm_lockres_put(res);
res              1760 fs/ocfs2/dlm/dlmrecovery.c dlm_list_num_to_pointer(struct dlm_lock_resource *res, int list_num)
res              1765 fs/ocfs2/dlm/dlmrecovery.c 	ret = &(res->granted);
res              1797 fs/ocfs2/dlm/dlmrecovery.c 				     struct dlm_lock_resource *res,
res              1821 fs/ocfs2/dlm/dlmrecovery.c 			spin_lock(&res->spinlock);
res              1822 fs/ocfs2/dlm/dlmrecovery.c 			dlm_lockres_set_refmap_bit(dlm, res, from);
res              1823 fs/ocfs2/dlm/dlmrecovery.c 			spin_unlock(&res->spinlock);
res              1830 fs/ocfs2/dlm/dlmrecovery.c 		queue = dlm_list_num_to_pointer(res, ml->list);
res              1841 fs/ocfs2/dlm/dlmrecovery.c 			spin_lock(&res->spinlock);
res              1843 fs/ocfs2/dlm/dlmrecovery.c 				tmpq = dlm_list_idx_to_ptr(res, j);
res              1867 fs/ocfs2/dlm/dlmrecovery.c 				__dlm_print_one_lock_resource(res);
res              1877 fs/ocfs2/dlm/dlmrecovery.c 				     res->lockname.len, res->lockname.name,
res              1887 fs/ocfs2/dlm/dlmrecovery.c 				__dlm_print_one_lock_resource(res);
res              1897 fs/ocfs2/dlm/dlmrecovery.c 				     j, ml->list, res->lockname.len,
res              1898 fs/ocfs2/dlm/dlmrecovery.c 				     res->lockname.name);
res              1899 fs/ocfs2/dlm/dlmrecovery.c 				__dlm_print_one_lock_resource(res);
res              1900 fs/ocfs2/dlm/dlmrecovery.c 				spin_unlock(&res->spinlock);
res              1910 fs/ocfs2/dlm/dlmrecovery.c 			spin_unlock(&res->spinlock);
res              1924 fs/ocfs2/dlm/dlmrecovery.c 		dlm_lock_attach_lockres(newlock, res);
res              1927 fs/ocfs2/dlm/dlmrecovery.c 			BUG_ON(queue != &res->converting);
res              1953 fs/ocfs2/dlm/dlmrecovery.c 				memcpy(res->lvb, mres->lvb, DLM_LVB_LEN);
res              1959 fs/ocfs2/dlm/dlmrecovery.c 				if (!dlm_lvb_is_empty(res->lvb) &&
res              1961 fs/ocfs2/dlm/dlmrecovery.c  				     memcmp(res->lvb, mres->lvb, DLM_LVB_LEN))) {
res              1965 fs/ocfs2/dlm/dlmrecovery.c  					     res->lockname.len,
res              1966 fs/ocfs2/dlm/dlmrecovery.c  					     res->lockname.name, ml->type);
res              1969 fs/ocfs2/dlm/dlmrecovery.c  						printk("%02x", res->lvb[i]);
res              1974 fs/ocfs2/dlm/dlmrecovery.c  					dlm_print_one_lock_resource(res);
res              1977 fs/ocfs2/dlm/dlmrecovery.c 				memcpy(res->lvb, mres->lvb, DLM_LVB_LEN);
res              1999 fs/ocfs2/dlm/dlmrecovery.c 		spin_lock(&res->spinlock);
res              2005 fs/ocfs2/dlm/dlmrecovery.c 				     res->lockname.len, res->lockname.name,
res              2016 fs/ocfs2/dlm/dlmrecovery.c 				__dlm_print_one_lock_resource(res);
res              2034 fs/ocfs2/dlm/dlmrecovery.c 			     res->lockname.len, res->lockname.name, ml->node);
res              2035 fs/ocfs2/dlm/dlmrecovery.c 			dlm_lockres_set_refmap_bit(dlm, res, ml->node);
res              2037 fs/ocfs2/dlm/dlmrecovery.c 		spin_unlock(&res->spinlock);
res              2043 fs/ocfs2/dlm/dlmrecovery.c 	spin_lock(&res->spinlock);
res              2044 fs/ocfs2/dlm/dlmrecovery.c 	dlm_lockres_drop_inflight_ref(dlm, res);
res              2045 fs/ocfs2/dlm/dlmrecovery.c 	spin_unlock(&res->spinlock);
res              2054 fs/ocfs2/dlm/dlmrecovery.c 				       struct dlm_lock_resource *res)
res              2061 fs/ocfs2/dlm/dlmrecovery.c 	assert_spin_locked(&res->spinlock);
res              2062 fs/ocfs2/dlm/dlmrecovery.c 	res->state |= DLM_LOCK_RES_RECOVERING;
res              2063 fs/ocfs2/dlm/dlmrecovery.c 	if (!list_empty(&res->recovering)) {
res              2066 fs/ocfs2/dlm/dlmrecovery.c 		     dlm->name, res->lockname.len, res->lockname.name);
res              2067 fs/ocfs2/dlm/dlmrecovery.c 		list_del_init(&res->recovering);
res              2068 fs/ocfs2/dlm/dlmrecovery.c 		dlm_lockres_put(res);
res              2071 fs/ocfs2/dlm/dlmrecovery.c 	dlm_lockres_get(res);
res              2072 fs/ocfs2/dlm/dlmrecovery.c 	list_add_tail(&res->recovering, &dlm->reco.resources);
res              2076 fs/ocfs2/dlm/dlmrecovery.c 		queue = dlm_list_idx_to_ptr(res, i);
res              2083 fs/ocfs2/dlm/dlmrecovery.c 				     res->lockname.len, res->lockname.name);
res              2084 fs/ocfs2/dlm/dlmrecovery.c 				dlm_revert_pending_convert(res, lock);
res              2091 fs/ocfs2/dlm/dlmrecovery.c 				     res->lockname.len, res->lockname.name);
res              2097 fs/ocfs2/dlm/dlmrecovery.c 				dlm_revert_pending_lock(res, lock);
res              2112 fs/ocfs2/dlm/dlmrecovery.c 				     res->lockname.len, res->lockname.name);
res              2113 fs/ocfs2/dlm/dlmrecovery.c 				dlm_commit_pending_unlock(res, lock);
res              2123 fs/ocfs2/dlm/dlmrecovery.c 				     res->lockname.len, res->lockname.name);
res              2124 fs/ocfs2/dlm/dlmrecovery.c 				dlm_commit_pending_cancel(res, lock);
res              2142 fs/ocfs2/dlm/dlmrecovery.c 	struct dlm_lock_resource *res, *next;
res              2146 fs/ocfs2/dlm/dlmrecovery.c 	list_for_each_entry_safe(res, next, &dlm->reco.resources, recovering) {
res              2147 fs/ocfs2/dlm/dlmrecovery.c 		if (res->owner == dead_node) {
res              2149 fs/ocfs2/dlm/dlmrecovery.c 			     dlm->name, res->lockname.len, res->lockname.name,
res              2150 fs/ocfs2/dlm/dlmrecovery.c 			     res->owner, new_master);
res              2151 fs/ocfs2/dlm/dlmrecovery.c 			list_del_init(&res->recovering);
res              2152 fs/ocfs2/dlm/dlmrecovery.c 			spin_lock(&res->spinlock);
res              2155 fs/ocfs2/dlm/dlmrecovery.c 			dlm_change_lockres_owner(dlm, res, new_master);
res              2156 fs/ocfs2/dlm/dlmrecovery.c 			res->state &= ~DLM_LOCK_RES_RECOVERING;
res              2157 fs/ocfs2/dlm/dlmrecovery.c 			if (__dlm_lockres_has_locks(res))
res              2158 fs/ocfs2/dlm/dlmrecovery.c 				__dlm_dirty_lockres(dlm, res);
res              2159 fs/ocfs2/dlm/dlmrecovery.c 			spin_unlock(&res->spinlock);
res              2160 fs/ocfs2/dlm/dlmrecovery.c 			wake_up(&res->wq);
res              2161 fs/ocfs2/dlm/dlmrecovery.c 			dlm_lockres_put(res);
res              2171 fs/ocfs2/dlm/dlmrecovery.c 		hlist_for_each_entry(res, bucket, hash_node) {
res              2172 fs/ocfs2/dlm/dlmrecovery.c 			if (res->state & DLM_LOCK_RES_RECOVERY_WAITING) {
res              2173 fs/ocfs2/dlm/dlmrecovery.c 				spin_lock(&res->spinlock);
res              2174 fs/ocfs2/dlm/dlmrecovery.c 				res->state &= ~DLM_LOCK_RES_RECOVERY_WAITING;
res              2175 fs/ocfs2/dlm/dlmrecovery.c 				spin_unlock(&res->spinlock);
res              2176 fs/ocfs2/dlm/dlmrecovery.c 				wake_up(&res->wq);
res              2179 fs/ocfs2/dlm/dlmrecovery.c 			if (!(res->state & DLM_LOCK_RES_RECOVERING))
res              2182 fs/ocfs2/dlm/dlmrecovery.c 			if (res->owner != dead_node &&
res              2183 fs/ocfs2/dlm/dlmrecovery.c 			    res->owner != dlm->node_num)
res              2186 fs/ocfs2/dlm/dlmrecovery.c 			if (!list_empty(&res->recovering)) {
res              2187 fs/ocfs2/dlm/dlmrecovery.c 				list_del_init(&res->recovering);
res              2188 fs/ocfs2/dlm/dlmrecovery.c 				dlm_lockres_put(res);
res              2194 fs/ocfs2/dlm/dlmrecovery.c 			     dlm->name, res->lockname.len, res->lockname.name,
res              2195 fs/ocfs2/dlm/dlmrecovery.c 			     res->owner, new_master);
res              2196 fs/ocfs2/dlm/dlmrecovery.c 			spin_lock(&res->spinlock);
res              2197 fs/ocfs2/dlm/dlmrecovery.c 			dlm_change_lockres_owner(dlm, res, new_master);
res              2198 fs/ocfs2/dlm/dlmrecovery.c 			res->state &= ~DLM_LOCK_RES_RECOVERING;
res              2199 fs/ocfs2/dlm/dlmrecovery.c 			if (__dlm_lockres_has_locks(res))
res              2200 fs/ocfs2/dlm/dlmrecovery.c 				__dlm_dirty_lockres(dlm, res);
res              2201 fs/ocfs2/dlm/dlmrecovery.c 			spin_unlock(&res->spinlock);
res              2202 fs/ocfs2/dlm/dlmrecovery.c 			wake_up(&res->wq);
res              2219 fs/ocfs2/dlm/dlmrecovery.c 			       struct dlm_lock_resource *res, u8 dead_node)
res              2228 fs/ocfs2/dlm/dlmrecovery.c 	assert_spin_locked(&res->spinlock);
res              2230 fs/ocfs2/dlm/dlmrecovery.c 	if (res->owner == dlm->node_num)
res              2242 fs/ocfs2/dlm/dlmrecovery.c 		queue = dlm_list_idx_to_ptr(res, i);
res              2256 fs/ocfs2/dlm/dlmrecovery.c 		     res->lockname.len, res->lockname.name, dead_node);
res              2257 fs/ocfs2/dlm/dlmrecovery.c 		memset(res->lvb, 0, DLM_LVB_LEN);
res              2262 fs/ocfs2/dlm/dlmrecovery.c 				struct dlm_lock_resource *res, u8 dead_node)
res              2272 fs/ocfs2/dlm/dlmrecovery.c 	assert_spin_locked(&res->spinlock);
res              2278 fs/ocfs2/dlm/dlmrecovery.c 	list_for_each_entry_safe(lock, next, &res->granted, list) {
res              2287 fs/ocfs2/dlm/dlmrecovery.c 	list_for_each_entry_safe(lock, next, &res->converting, list) {
res              2296 fs/ocfs2/dlm/dlmrecovery.c 	list_for_each_entry_safe(lock, next, &res->blocked, list) {
res              2309 fs/ocfs2/dlm/dlmrecovery.c 		     res->lockname.len, res->lockname.name, freed, dead_node);
res              2310 fs/ocfs2/dlm/dlmrecovery.c 		if(!test_bit(dead_node, res->refmap)) {
res              2313 fs/ocfs2/dlm/dlmrecovery.c 			     res->lockname.len, res->lockname.name, freed, dead_node);
res              2314 fs/ocfs2/dlm/dlmrecovery.c 			__dlm_print_one_lock_resource(res);
res              2316 fs/ocfs2/dlm/dlmrecovery.c 		res->state |= DLM_LOCK_RES_RECOVERY_WAITING;
res              2317 fs/ocfs2/dlm/dlmrecovery.c 		dlm_lockres_clear_refmap_bit(dlm, res, dead_node);
res              2318 fs/ocfs2/dlm/dlmrecovery.c 	} else if (test_bit(dead_node, res->refmap)) {
res              2321 fs/ocfs2/dlm/dlmrecovery.c 		     res->lockname.len, res->lockname.name, dead_node);
res              2322 fs/ocfs2/dlm/dlmrecovery.c 		dlm_lockres_clear_refmap_bit(dlm, res, dead_node);
res              2326 fs/ocfs2/dlm/dlmrecovery.c 	__dlm_dirty_lockres(dlm, res);
res              2331 fs/ocfs2/dlm/dlmrecovery.c 	struct dlm_lock_resource *res;
res              2357 fs/ocfs2/dlm/dlmrecovery.c 		hlist_for_each_entry_safe(res, tmp, bucket, hash_node) {
res              2360 fs/ocfs2/dlm/dlmrecovery.c 			if (dlm_is_recovery_lock(res->lockname.name,
res              2361 fs/ocfs2/dlm/dlmrecovery.c 						 res->lockname.len)) {
res              2362 fs/ocfs2/dlm/dlmrecovery.c 				spin_lock(&res->spinlock);
res              2363 fs/ocfs2/dlm/dlmrecovery.c 				list_for_each_entry(lock, &res->granted, list) {
res              2379 fs/ocfs2/dlm/dlmrecovery.c 				if ((res->owner == dead_node) &&
res              2380 fs/ocfs2/dlm/dlmrecovery.c 							(res->state & DLM_LOCK_RES_DROPPING_REF)) {
res              2381 fs/ocfs2/dlm/dlmrecovery.c 					dlm_lockres_get(res);
res              2382 fs/ocfs2/dlm/dlmrecovery.c 					__dlm_do_purge_lockres(dlm, res);
res              2383 fs/ocfs2/dlm/dlmrecovery.c 					spin_unlock(&res->spinlock);
res              2384 fs/ocfs2/dlm/dlmrecovery.c 					wake_up(&res->wq);
res              2385 fs/ocfs2/dlm/dlmrecovery.c 					dlm_lockres_put(res);
res              2387 fs/ocfs2/dlm/dlmrecovery.c 				} else if (res->owner == dlm->node_num)
res              2388 fs/ocfs2/dlm/dlmrecovery.c 					dlm_lockres_clear_refmap_bit(dlm, res, dead_node);
res              2389 fs/ocfs2/dlm/dlmrecovery.c 				spin_unlock(&res->spinlock);
res              2392 fs/ocfs2/dlm/dlmrecovery.c 			spin_lock(&res->spinlock);
res              2394 fs/ocfs2/dlm/dlmrecovery.c 			dlm_revalidate_lvb(dlm, res, dead_node);
res              2395 fs/ocfs2/dlm/dlmrecovery.c 			if (res->owner == dead_node) {
res              2396 fs/ocfs2/dlm/dlmrecovery.c 				if (res->state & DLM_LOCK_RES_DROPPING_REF) {
res              2401 fs/ocfs2/dlm/dlmrecovery.c 						dlm->name, res->lockname.len,
res              2402 fs/ocfs2/dlm/dlmrecovery.c 						res->lockname.name, dead_node);
res              2403 fs/ocfs2/dlm/dlmrecovery.c 					dlm_lockres_get(res);
res              2404 fs/ocfs2/dlm/dlmrecovery.c 					__dlm_do_purge_lockres(dlm, res);
res              2405 fs/ocfs2/dlm/dlmrecovery.c 					spin_unlock(&res->spinlock);
res              2406 fs/ocfs2/dlm/dlmrecovery.c 					wake_up(&res->wq);
res              2407 fs/ocfs2/dlm/dlmrecovery.c 					dlm_lockres_put(res);
res              2410 fs/ocfs2/dlm/dlmrecovery.c 				dlm_move_lockres_to_recovery_list(dlm, res);
res              2411 fs/ocfs2/dlm/dlmrecovery.c 			} else if (res->owner == dlm->node_num) {
res              2412 fs/ocfs2/dlm/dlmrecovery.c 				dlm_free_dead_locks(dlm, res, dead_node);
res              2413 fs/ocfs2/dlm/dlmrecovery.c 				__dlm_lockres_calc_usage(dlm, res);
res              2414 fs/ocfs2/dlm/dlmrecovery.c 			} else if (res->owner == DLM_LOCK_RES_OWNER_UNKNOWN) {
res              2415 fs/ocfs2/dlm/dlmrecovery.c 				if (test_bit(dead_node, res->refmap)) {
res              2418 fs/ocfs2/dlm/dlmrecovery.c 						dlm->name, res->lockname.len,
res              2419 fs/ocfs2/dlm/dlmrecovery.c 						res->lockname.name, dead_node);
res              2420 fs/ocfs2/dlm/dlmrecovery.c 					dlm_lockres_clear_refmap_bit(dlm, res, dead_node);
res              2423 fs/ocfs2/dlm/dlmrecovery.c 			spin_unlock(&res->spinlock);
res              2658 fs/ocfs2/dlm/dlmrecovery.c 		struct dlm_lock_resource *res;
res              2664 fs/ocfs2/dlm/dlmrecovery.c 		res = dlm_lookup_lockres(dlm, DLM_RECOVERY_LOCK_NAME,
res              2666 fs/ocfs2/dlm/dlmrecovery.c 		if (res) {
res              2667 fs/ocfs2/dlm/dlmrecovery.c 			dlm_print_one_lock_resource(res);
res              2668 fs/ocfs2/dlm/dlmrecovery.c 			dlm_lockres_put(res);
res              2740 fs/ocfs2/dlm/dlmrecovery.c 			struct dlm_lock_resource *res;
res              2747 fs/ocfs2/dlm/dlmrecovery.c 			res = dlm_lookup_lockres(dlm, DLM_RECOVERY_LOCK_NAME,
res              2749 fs/ocfs2/dlm/dlmrecovery.c 			if (res) {
res              2750 fs/ocfs2/dlm/dlmrecovery.c 				dlm_print_one_lock_resource(res);
res              2751 fs/ocfs2/dlm/dlmrecovery.c 				dlm_lockres_put(res);
res                46 fs/ocfs2/dlm/dlmthread.c void __dlm_wait_on_lockres_flags(struct dlm_lock_resource *res, int flags)
res                50 fs/ocfs2/dlm/dlmthread.c 	assert_spin_locked(&res->spinlock);
res                52 fs/ocfs2/dlm/dlmthread.c 	add_wait_queue(&res->wq, &wait);
res                55 fs/ocfs2/dlm/dlmthread.c 	if (res->state & flags) {
res                56 fs/ocfs2/dlm/dlmthread.c 		spin_unlock(&res->spinlock);
res                58 fs/ocfs2/dlm/dlmthread.c 		spin_lock(&res->spinlock);
res                61 fs/ocfs2/dlm/dlmthread.c 	remove_wait_queue(&res->wq, &wait);
res                65 fs/ocfs2/dlm/dlmthread.c int __dlm_lockres_has_locks(struct dlm_lock_resource *res)
res                67 fs/ocfs2/dlm/dlmthread.c 	if (list_empty(&res->granted) &&
res                68 fs/ocfs2/dlm/dlmthread.c 	    list_empty(&res->converting) &&
res                69 fs/ocfs2/dlm/dlmthread.c 	    list_empty(&res->blocked))
res                78 fs/ocfs2/dlm/dlmthread.c int __dlm_lockres_unused(struct dlm_lock_resource *res)
res                82 fs/ocfs2/dlm/dlmthread.c 	assert_spin_locked(&res->spinlock);
res                84 fs/ocfs2/dlm/dlmthread.c 	if (__dlm_lockres_has_locks(res))
res                88 fs/ocfs2/dlm/dlmthread.c 	if (res->inflight_locks)
res                91 fs/ocfs2/dlm/dlmthread.c 	if (!list_empty(&res->dirty) || res->state & DLM_LOCK_RES_DIRTY)
res                94 fs/ocfs2/dlm/dlmthread.c 	if (res->state & (DLM_LOCK_RES_RECOVERING|
res                99 fs/ocfs2/dlm/dlmthread.c 	bit = find_next_bit(res->refmap, O2NM_MAX_NODES, 0);
res               111 fs/ocfs2/dlm/dlmthread.c 			      struct dlm_lock_resource *res)
res               114 fs/ocfs2/dlm/dlmthread.c 	assert_spin_locked(&res->spinlock);
res               116 fs/ocfs2/dlm/dlmthread.c 	if (__dlm_lockres_unused(res)){
res               117 fs/ocfs2/dlm/dlmthread.c 		if (list_empty(&res->purge)) {
res               119 fs/ocfs2/dlm/dlmthread.c 			     dlm->name, res->lockname.len, res->lockname.name);
res               121 fs/ocfs2/dlm/dlmthread.c 			res->last_used = jiffies;
res               122 fs/ocfs2/dlm/dlmthread.c 			dlm_lockres_get(res);
res               123 fs/ocfs2/dlm/dlmthread.c 			list_add_tail(&res->purge, &dlm->purge_list);
res               126 fs/ocfs2/dlm/dlmthread.c 	} else if (!list_empty(&res->purge)) {
res               128 fs/ocfs2/dlm/dlmthread.c 		     dlm->name, res->lockname.len, res->lockname.name);
res               130 fs/ocfs2/dlm/dlmthread.c 		list_del_init(&res->purge);
res               131 fs/ocfs2/dlm/dlmthread.c 		dlm_lockres_put(res);
res               137 fs/ocfs2/dlm/dlmthread.c 			    struct dlm_lock_resource *res)
res               140 fs/ocfs2/dlm/dlmthread.c 	spin_lock(&res->spinlock);
res               142 fs/ocfs2/dlm/dlmthread.c 	__dlm_lockres_calc_usage(dlm, res);
res               144 fs/ocfs2/dlm/dlmthread.c 	spin_unlock(&res->spinlock);
res               155 fs/ocfs2/dlm/dlmthread.c 		struct dlm_lock_resource *res)
res               158 fs/ocfs2/dlm/dlmthread.c 	assert_spin_locked(&res->spinlock);
res               160 fs/ocfs2/dlm/dlmthread.c 	if (!list_empty(&res->purge)) {
res               162 fs/ocfs2/dlm/dlmthread.c 		     dlm->name, res->lockname.len, res->lockname.name);
res               163 fs/ocfs2/dlm/dlmthread.c 		list_del_init(&res->purge);
res               164 fs/ocfs2/dlm/dlmthread.c 		dlm_lockres_put(res);
res               168 fs/ocfs2/dlm/dlmthread.c 	if (!__dlm_lockres_unused(res)) {
res               170 fs/ocfs2/dlm/dlmthread.c 		     dlm->name, res->lockname.len, res->lockname.name);
res               171 fs/ocfs2/dlm/dlmthread.c 		__dlm_print_one_lock_resource(res);
res               175 fs/ocfs2/dlm/dlmthread.c 	__dlm_unhash_lockres(dlm, res);
res               178 fs/ocfs2/dlm/dlmthread.c 	if (!list_empty(&res->tracking))
res               179 fs/ocfs2/dlm/dlmthread.c 		list_del_init(&res->tracking);
res               182 fs/ocfs2/dlm/dlmthread.c 		     dlm->name, res->lockname.len, res->lockname.name);
res               183 fs/ocfs2/dlm/dlmthread.c 		__dlm_print_one_lock_resource(res);
res               191 fs/ocfs2/dlm/dlmthread.c 	res->state &= ~DLM_LOCK_RES_DROPPING_REF;
res               195 fs/ocfs2/dlm/dlmthread.c 			     struct dlm_lock_resource *res)
res               201 fs/ocfs2/dlm/dlmthread.c 	assert_spin_locked(&res->spinlock);
res               203 fs/ocfs2/dlm/dlmthread.c 	master = (res->owner == dlm->node_num);
res               206 fs/ocfs2/dlm/dlmthread.c 	     res->lockname.len, res->lockname.name, master);
res               209 fs/ocfs2/dlm/dlmthread.c 		if (res->state & DLM_LOCK_RES_DROPPING_REF) {
res               211 fs/ocfs2/dlm/dlmthread.c 				dlm->name, res->lockname.len, res->lockname.name);
res               212 fs/ocfs2/dlm/dlmthread.c 			spin_unlock(&res->spinlock);
res               216 fs/ocfs2/dlm/dlmthread.c 		res->state |= DLM_LOCK_RES_DROPPING_REF;
res               218 fs/ocfs2/dlm/dlmthread.c 		spin_unlock(&res->spinlock);
res               221 fs/ocfs2/dlm/dlmthread.c 		spin_lock(&res->spinlock);
res               223 fs/ocfs2/dlm/dlmthread.c 		__dlm_wait_on_lockres_flags(res, DLM_LOCK_RES_SETREF_INPROG);
res               224 fs/ocfs2/dlm/dlmthread.c 		spin_unlock(&res->spinlock);
res               227 fs/ocfs2/dlm/dlmthread.c 		ret = dlm_drop_lockres_ref(dlm, res);
res               233 fs/ocfs2/dlm/dlmthread.c 		spin_lock(&res->spinlock);
res               236 fs/ocfs2/dlm/dlmthread.c 	if (!list_empty(&res->purge)) {
res               238 fs/ocfs2/dlm/dlmthread.c 		     dlm->name, res->lockname.len, res->lockname.name, master);
res               239 fs/ocfs2/dlm/dlmthread.c 		list_del_init(&res->purge);
res               240 fs/ocfs2/dlm/dlmthread.c 		dlm_lockres_put(res);
res               246 fs/ocfs2/dlm/dlmthread.c 			dlm->name, res->lockname.len, res->lockname.name);
res               247 fs/ocfs2/dlm/dlmthread.c 		spin_unlock(&res->spinlock);
res               251 fs/ocfs2/dlm/dlmthread.c 	if (!__dlm_lockres_unused(res)) {
res               253 fs/ocfs2/dlm/dlmthread.c 		     dlm->name, res->lockname.len, res->lockname.name);
res               254 fs/ocfs2/dlm/dlmthread.c 		__dlm_print_one_lock_resource(res);
res               258 fs/ocfs2/dlm/dlmthread.c 	__dlm_unhash_lockres(dlm, res);
res               261 fs/ocfs2/dlm/dlmthread.c 	if (!list_empty(&res->tracking))
res               262 fs/ocfs2/dlm/dlmthread.c 		list_del_init(&res->tracking);
res               265 fs/ocfs2/dlm/dlmthread.c 				res->lockname.len, res->lockname.name);
res               266 fs/ocfs2/dlm/dlmthread.c 		__dlm_print_one_lock_resource(res);
res               273 fs/ocfs2/dlm/dlmthread.c 		res->state &= ~DLM_LOCK_RES_DROPPING_REF;
res               274 fs/ocfs2/dlm/dlmthread.c 		spin_unlock(&res->spinlock);
res               275 fs/ocfs2/dlm/dlmthread.c 		wake_up(&res->wq);
res               277 fs/ocfs2/dlm/dlmthread.c 		spin_unlock(&res->spinlock);
res               345 fs/ocfs2/dlm/dlmthread.c 			      struct dlm_lock_resource *res)
res               357 fs/ocfs2/dlm/dlmthread.c 	assert_spin_locked(&res->spinlock);
res               358 fs/ocfs2/dlm/dlmthread.c 	BUG_ON((res->state & (DLM_LOCK_RES_MIGRATING|
res               363 fs/ocfs2/dlm/dlmthread.c 	if (list_empty(&res->converting))
res               366 fs/ocfs2/dlm/dlmthread.c 	     res->lockname.len, res->lockname.name);
res               368 fs/ocfs2/dlm/dlmthread.c 	target = list_entry(res->converting.next, struct dlm_lock, list);
res               371 fs/ocfs2/dlm/dlmthread.c 		     dlm->name, res->lockname.len, res->lockname.name);
res               374 fs/ocfs2/dlm/dlmthread.c 	list_for_each_entry(lock, &res->granted, list) {
res               382 fs/ocfs2/dlm/dlmthread.c 				__dlm_lockres_reserve_ast(res);
res               392 fs/ocfs2/dlm/dlmthread.c 	list_for_each_entry(lock, &res->converting, list) {
res               399 fs/ocfs2/dlm/dlmthread.c 				__dlm_lockres_reserve_ast(res);
res               414 fs/ocfs2/dlm/dlmthread.c 		     "%d => %d, node %u\n", dlm->name, res->lockname.len,
res               415 fs/ocfs2/dlm/dlmthread.c 		     res->lockname.name,
res               423 fs/ocfs2/dlm/dlmthread.c 		list_move_tail(&target->list, &res->granted);
res               430 fs/ocfs2/dlm/dlmthread.c 		__dlm_lockres_reserve_ast(res);
res               437 fs/ocfs2/dlm/dlmthread.c 	if (list_empty(&res->blocked))
res               439 fs/ocfs2/dlm/dlmthread.c 	target = list_entry(res->blocked.next, struct dlm_lock, list);
res               441 fs/ocfs2/dlm/dlmthread.c 	list_for_each_entry(lock, &res->granted, list) {
res               447 fs/ocfs2/dlm/dlmthread.c 				__dlm_lockres_reserve_ast(res);
res               455 fs/ocfs2/dlm/dlmthread.c 	list_for_each_entry(lock, &res->converting, list) {
res               461 fs/ocfs2/dlm/dlmthread.c 				__dlm_lockres_reserve_ast(res);
res               476 fs/ocfs2/dlm/dlmthread.c 		     "node %u\n", dlm->name, res->lockname.len,
res               477 fs/ocfs2/dlm/dlmthread.c 		     res->lockname.name,
res               483 fs/ocfs2/dlm/dlmthread.c 		list_move_tail(&target->list, &res->granted);
res               490 fs/ocfs2/dlm/dlmthread.c 		__dlm_lockres_reserve_ast(res);
res               501 fs/ocfs2/dlm/dlmthread.c void dlm_kick_thread(struct dlm_ctxt *dlm, struct dlm_lock_resource *res)
res               503 fs/ocfs2/dlm/dlmthread.c 	if (res) {
res               505 fs/ocfs2/dlm/dlmthread.c 		spin_lock(&res->spinlock);
res               506 fs/ocfs2/dlm/dlmthread.c 		__dlm_dirty_lockres(dlm, res);
res               507 fs/ocfs2/dlm/dlmthread.c 		spin_unlock(&res->spinlock);
res               513 fs/ocfs2/dlm/dlmthread.c void __dlm_dirty_lockres(struct dlm_ctxt *dlm, struct dlm_lock_resource *res)
res               516 fs/ocfs2/dlm/dlmthread.c 	assert_spin_locked(&res->spinlock);
res               519 fs/ocfs2/dlm/dlmthread.c 	if (res->owner == dlm->node_num) {
res               520 fs/ocfs2/dlm/dlmthread.c 		if (res->state & (DLM_LOCK_RES_MIGRATING |
res               524 fs/ocfs2/dlm/dlmthread.c 		if (list_empty(&res->dirty)) {
res               526 fs/ocfs2/dlm/dlmthread.c 			dlm_lockres_get(res);
res               527 fs/ocfs2/dlm/dlmthread.c 			list_add_tail(&res->dirty, &dlm->dirty_list);
res               528 fs/ocfs2/dlm/dlmthread.c 			res->state |= DLM_LOCK_RES_DIRTY;
res               532 fs/ocfs2/dlm/dlmthread.c 	mlog(0, "%s: res %.*s\n", dlm->name, res->lockname.len,
res               533 fs/ocfs2/dlm/dlmthread.c 	     res->lockname.name);
res               577 fs/ocfs2/dlm/dlmthread.c 	struct dlm_lock_resource *res;
res               586 fs/ocfs2/dlm/dlmthread.c 		res = lock->lockres;
res               588 fs/ocfs2/dlm/dlmthread.c 		     "node %u\n", dlm->name, res->lockname.len,
res               589 fs/ocfs2/dlm/dlmthread.c 		     res->lockname.name,
res               602 fs/ocfs2/dlm/dlmthread.c 			ret = dlm_do_remote_ast(dlm, res, lock);
res               606 fs/ocfs2/dlm/dlmthread.c 			dlm_do_local_ast(dlm, res, lock);
res               614 fs/ocfs2/dlm/dlmthread.c 			     "one\n", dlm->name, res->lockname.len,
res               615 fs/ocfs2/dlm/dlmthread.c 			     res->lockname.name);
res               622 fs/ocfs2/dlm/dlmthread.c 		dlm_lockres_release_ast(dlm, res);
res               630 fs/ocfs2/dlm/dlmthread.c 		res = lock->lockres;
res               648 fs/ocfs2/dlm/dlmthread.c 		     dlm->name, res->lockname.len, res->lockname.name,
res               654 fs/ocfs2/dlm/dlmthread.c 			ret = dlm_send_proxy_bast(dlm, res, lock, hi);
res               658 fs/ocfs2/dlm/dlmthread.c 			dlm_do_local_bast(dlm, res, lock, hi);
res               666 fs/ocfs2/dlm/dlmthread.c 			     "one\n", dlm->name, res->lockname.len,
res               667 fs/ocfs2/dlm/dlmthread.c 			     res->lockname.name);
res               674 fs/ocfs2/dlm/dlmthread.c 		dlm_lockres_release_ast(dlm, res);
res               687 fs/ocfs2/dlm/dlmthread.c 	struct dlm_lock_resource *res;
res               712 fs/ocfs2/dlm/dlmthread.c 			res = list_entry(dlm->dirty_list.next,
res               717 fs/ocfs2/dlm/dlmthread.c 			BUG_ON(!res);
res               718 fs/ocfs2/dlm/dlmthread.c 			dlm_lockres_get(res);
res               720 fs/ocfs2/dlm/dlmthread.c 			spin_lock(&res->spinlock);
res               722 fs/ocfs2/dlm/dlmthread.c 			list_del_init(&res->dirty);
res               723 fs/ocfs2/dlm/dlmthread.c 			spin_unlock(&res->spinlock);
res               726 fs/ocfs2/dlm/dlmthread.c 			dlm_lockres_put(res);
res               732 fs/ocfs2/dlm/dlmthread.c 			spin_lock(&res->spinlock);
res               733 fs/ocfs2/dlm/dlmthread.c 			if (res->owner != dlm->node_num) {
res               734 fs/ocfs2/dlm/dlmthread.c 				__dlm_print_one_lock_resource(res);
res               737 fs/ocfs2/dlm/dlmthread.c 				     !!(res->state & DLM_LOCK_RES_IN_PROGRESS),
res               738 fs/ocfs2/dlm/dlmthread.c 				     !!(res->state & DLM_LOCK_RES_MIGRATING),
res               739 fs/ocfs2/dlm/dlmthread.c 				     !!(res->state & DLM_LOCK_RES_RECOVERING),
res               740 fs/ocfs2/dlm/dlmthread.c 				     !!(res->state & DLM_LOCK_RES_DIRTY));
res               742 fs/ocfs2/dlm/dlmthread.c 			BUG_ON(res->owner != dlm->node_num);
res               747 fs/ocfs2/dlm/dlmthread.c 			BUG_ON(res->state & DLM_LOCK_RES_MIGRATING);
res               748 fs/ocfs2/dlm/dlmthread.c 			if (res->state & (DLM_LOCK_RES_IN_PROGRESS |
res               752 fs/ocfs2/dlm/dlmthread.c 				res->state &= ~DLM_LOCK_RES_DIRTY;
res               753 fs/ocfs2/dlm/dlmthread.c 				spin_unlock(&res->spinlock);
res               757 fs/ocfs2/dlm/dlmthread.c 				     res->lockname.len, res->lockname.name,
res               758 fs/ocfs2/dlm/dlmthread.c 				     res->state);
res               769 fs/ocfs2/dlm/dlmthread.c 			dlm_shuffle_lists(dlm, res);
res               770 fs/ocfs2/dlm/dlmthread.c 			res->state &= ~DLM_LOCK_RES_DIRTY;
res               771 fs/ocfs2/dlm/dlmthread.c 			spin_unlock(&res->spinlock);
res               774 fs/ocfs2/dlm/dlmthread.c 			dlm_lockres_calc_usage(dlm, res);
res               782 fs/ocfs2/dlm/dlmthread.c 				spin_lock(&res->spinlock);
res               783 fs/ocfs2/dlm/dlmthread.c 				__dlm_dirty_lockres(dlm, res);
res               784 fs/ocfs2/dlm/dlmthread.c 				spin_unlock(&res->spinlock);
res               786 fs/ocfs2/dlm/dlmthread.c 			dlm_lockres_put(res);
res                44 fs/ocfs2/dlm/dlmunlock.c 					      struct dlm_lock_resource *res,
res                49 fs/ocfs2/dlm/dlmunlock.c 					      struct dlm_lock_resource *res,
res                55 fs/ocfs2/dlm/dlmunlock.c 						 struct dlm_lock_resource *res,
res                84 fs/ocfs2/dlm/dlmunlock.c 					struct dlm_lock_resource *res,
res               100 fs/ocfs2/dlm/dlmunlock.c 		BUG_ON(res->owner != dlm->node_num);
res               102 fs/ocfs2/dlm/dlmunlock.c 		BUG_ON(res->owner == dlm->node_num);
res               111 fs/ocfs2/dlm/dlmunlock.c 		    "while waiting for an ast!", res->lockname.len,
res               112 fs/ocfs2/dlm/dlmunlock.c 		    res->lockname.name);
res               116 fs/ocfs2/dlm/dlmunlock.c 	spin_lock(&res->spinlock);
res               117 fs/ocfs2/dlm/dlmunlock.c 	if (res->state & DLM_LOCK_RES_IN_PROGRESS) {
res               120 fs/ocfs2/dlm/dlmunlock.c 			spin_unlock(&res->spinlock);
res               124 fs/ocfs2/dlm/dlmunlock.c 		__dlm_wait_on_lockres(res);
res               125 fs/ocfs2/dlm/dlmunlock.c 		res->state |= DLM_LOCK_RES_IN_PROGRESS;
res               129 fs/ocfs2/dlm/dlmunlock.c 	if (res->state & DLM_LOCK_RES_RECOVERING) {
res               134 fs/ocfs2/dlm/dlmunlock.c 	if (res->state & DLM_LOCK_RES_MIGRATING) {
res               142 fs/ocfs2/dlm/dlmunlock.c 		status = dlm_get_cancel_actions(dlm, res, lock, lksb, &actions);
res               144 fs/ocfs2/dlm/dlmunlock.c 		status = dlm_get_unlock_actions(dlm, res, lock, lksb, &actions);
res               153 fs/ocfs2/dlm/dlmunlock.c 			memcpy(res->lvb, lksb->lvb, DLM_LVB_LEN);
res               160 fs/ocfs2/dlm/dlmunlock.c 		owner = res->owner;
res               167 fs/ocfs2/dlm/dlmunlock.c 		spin_unlock(&res->spinlock);
res               168 fs/ocfs2/dlm/dlmunlock.c 		status = dlm_send_remote_unlock_request(dlm, res, lock, lksb,
res               170 fs/ocfs2/dlm/dlmunlock.c 		spin_lock(&res->spinlock);
res               187 fs/ocfs2/dlm/dlmunlock.c 			     dlm->name, res->lockname.len,
res               188 fs/ocfs2/dlm/dlmunlock.c 			     res->lockname.name,
res               215 fs/ocfs2/dlm/dlmunlock.c 		list_add_tail(&lock->list, &res->granted);
res               227 fs/ocfs2/dlm/dlmunlock.c 	res->state &= ~DLM_LOCK_RES_IN_PROGRESS;
res               228 fs/ocfs2/dlm/dlmunlock.c 	if (!dlm_lock_on_list(&res->converting, lock))
res               233 fs/ocfs2/dlm/dlmunlock.c 	spin_unlock(&res->spinlock);
res               234 fs/ocfs2/dlm/dlmunlock.c 	wake_up(&res->wq);
res               237 fs/ocfs2/dlm/dlmunlock.c 		spin_lock(&res->spinlock);
res               243 fs/ocfs2/dlm/dlmunlock.c 		__dlm_wait_on_lockres_flags(res, DLM_LOCK_RES_RECOVERING);
res               244 fs/ocfs2/dlm/dlmunlock.c 		spin_unlock(&res->spinlock);
res               267 fs/ocfs2/dlm/dlmunlock.c void dlm_commit_pending_unlock(struct dlm_lock_resource *res,
res               275 fs/ocfs2/dlm/dlmunlock.c void dlm_commit_pending_cancel(struct dlm_lock_resource *res,
res               278 fs/ocfs2/dlm/dlmunlock.c 	list_move_tail(&lock->list, &res->granted);
res               284 fs/ocfs2/dlm/dlmunlock.c 					  struct dlm_lock_resource *res,
res               290 fs/ocfs2/dlm/dlmunlock.c 	return dlmunlock_common(dlm, res, lock, lksb, flags, call_ast, 1);
res               294 fs/ocfs2/dlm/dlmunlock.c 					  struct dlm_lock_resource *res,
res               299 fs/ocfs2/dlm/dlmunlock.c 	return dlmunlock_common(dlm, res, lock, lksb, flags, call_ast, 0);
res               310 fs/ocfs2/dlm/dlmunlock.c 						 struct dlm_lock_resource *res,
res               323 fs/ocfs2/dlm/dlmunlock.c 	mlog(0, "%.*s\n", res->lockname.len, res->lockname.name);
res               331 fs/ocfs2/dlm/dlmunlock.c 		     res->lockname.len, res->lockname.name);
res               339 fs/ocfs2/dlm/dlmunlock.c 	unlock.namelen = res->lockname.len;
res               340 fs/ocfs2/dlm/dlmunlock.c 	memcpy(unlock.name, res->lockname.name, unlock.namelen);
res               396 fs/ocfs2/dlm/dlmunlock.c 	struct dlm_lock_resource *res = NULL;
res               431 fs/ocfs2/dlm/dlmunlock.c 	res = dlm_lookup_lockres(dlm, unlock->name, unlock->namelen);
res               432 fs/ocfs2/dlm/dlmunlock.c 	if (!res) {
res               441 fs/ocfs2/dlm/dlmunlock.c 	queue=&res->granted;
res               443 fs/ocfs2/dlm/dlmunlock.c 	spin_lock(&res->spinlock);
res               444 fs/ocfs2/dlm/dlmunlock.c 	if (res->state & DLM_LOCK_RES_RECOVERING) {
res               445 fs/ocfs2/dlm/dlmunlock.c 		spin_unlock(&res->spinlock);
res               451 fs/ocfs2/dlm/dlmunlock.c 	if (res->state & DLM_LOCK_RES_MIGRATING) {
res               452 fs/ocfs2/dlm/dlmunlock.c 		spin_unlock(&res->spinlock);
res               458 fs/ocfs2/dlm/dlmunlock.c 	if (res->owner != dlm->node_num) {
res               459 fs/ocfs2/dlm/dlmunlock.c 		spin_unlock(&res->spinlock);
res               479 fs/ocfs2/dlm/dlmunlock.c 	spin_unlock(&res->spinlock);
res               499 fs/ocfs2/dlm/dlmunlock.c 	status = dlmunlock_master(dlm, res, lock, lksb, flags, &ignore);
res               506 fs/ocfs2/dlm/dlmunlock.c 	dlm_lockres_calc_usage(dlm, res);
res               507 fs/ocfs2/dlm/dlmunlock.c 	dlm_kick_thread(dlm, res);
res               519 fs/ocfs2/dlm/dlmunlock.c 	if (res)
res               520 fs/ocfs2/dlm/dlmunlock.c 		dlm_lockres_put(res);
res               529 fs/ocfs2/dlm/dlmunlock.c 					      struct dlm_lock_resource *res,
res               536 fs/ocfs2/dlm/dlmunlock.c 	if (dlm_lock_on_list(&res->blocked, lock)) {
res               541 fs/ocfs2/dlm/dlmunlock.c 	} else if (dlm_lock_on_list(&res->converting, lock)) {
res               548 fs/ocfs2/dlm/dlmunlock.c 	} else if (dlm_lock_on_list(&res->granted, lock)) {
res               561 fs/ocfs2/dlm/dlmunlock.c 					      struct dlm_lock_resource *res,
res               569 fs/ocfs2/dlm/dlmunlock.c 	if (!dlm_lock_on_list(&res->granted, lock)) {
res               591 fs/ocfs2/dlm/dlmunlock.c 	struct dlm_lock_resource *res;
res               619 fs/ocfs2/dlm/dlmunlock.c 	res = lock->lockres;
res               620 fs/ocfs2/dlm/dlmunlock.c 	BUG_ON(!res);
res               621 fs/ocfs2/dlm/dlmunlock.c 	dlm_lockres_get(res);
res               625 fs/ocfs2/dlm/dlmunlock.c 	mlog(0, "lock=%p res=%p\n", lock, res);
res               627 fs/ocfs2/dlm/dlmunlock.c 	spin_lock(&res->spinlock);
res               628 fs/ocfs2/dlm/dlmunlock.c 	is_master = (res->owner == dlm->node_num);
res               631 fs/ocfs2/dlm/dlmunlock.c 	spin_unlock(&res->spinlock);
res               634 fs/ocfs2/dlm/dlmunlock.c 		status = dlmunlock_master(dlm, res, lock, lksb, flags,
res               639 fs/ocfs2/dlm/dlmunlock.c 		status = dlmunlock_remote(dlm, res, lock, lksb, flags,
res               686 fs/ocfs2/dlm/dlmunlock.c 		dlm_kick_thread(dlm, res);
res               690 fs/ocfs2/dlm/dlmunlock.c 	dlm_lockres_calc_usage(dlm, res);
res               691 fs/ocfs2/dlm/dlmunlock.c 	dlm_lockres_put(res);
res               321 fs/ocfs2/dlmglue.c ocfs2_lock_res_refcount_tree(struct ocfs2_lock_res *res)
res               323 fs/ocfs2/dlmglue.c 	return container_of(res, struct ocfs2_refcount_tree, rf_lockres);
res               407 fs/ocfs2/dlmglue.c static void ocfs2_add_lockres_tracking(struct ocfs2_lock_res *res,
res               410 fs/ocfs2/dlmglue.c 	mlog(0, "Add tracking for lockres %s\n", res->l_name);
res               413 fs/ocfs2/dlmglue.c 	list_add(&res->l_debug_list, &dlm_debug->d_lockres_tracking);
res               417 fs/ocfs2/dlmglue.c static void ocfs2_remove_lockres_tracking(struct ocfs2_lock_res *res)
res               420 fs/ocfs2/dlmglue.c 	if (!list_empty(&res->l_debug_list))
res               421 fs/ocfs2/dlmglue.c 		list_del_init(&res->l_debug_list);
res               426 fs/ocfs2/dlmglue.c static void ocfs2_init_lock_stats(struct ocfs2_lock_res *res)
res               428 fs/ocfs2/dlmglue.c 	res->l_lock_refresh = 0;
res               429 fs/ocfs2/dlmglue.c 	res->l_lock_wait = 0;
res               430 fs/ocfs2/dlmglue.c 	memset(&res->l_lock_prmode, 0, sizeof(struct ocfs2_lock_stats));
res               431 fs/ocfs2/dlmglue.c 	memset(&res->l_lock_exmode, 0, sizeof(struct ocfs2_lock_stats));
res               434 fs/ocfs2/dlmglue.c static void ocfs2_update_lock_stats(struct ocfs2_lock_res *res, int level,
res               442 fs/ocfs2/dlmglue.c 		stats = &res->l_lock_prmode;
res               444 fs/ocfs2/dlmglue.c 		stats = &res->l_lock_exmode;
res               493 fs/ocfs2/dlmglue.c static inline void ocfs2_init_lock_stats(struct ocfs2_lock_res *res)
res               496 fs/ocfs2/dlmglue.c static inline void ocfs2_update_lock_stats(struct ocfs2_lock_res *res,
res               512 fs/ocfs2/dlmglue.c 				       struct ocfs2_lock_res *res,
res               517 fs/ocfs2/dlmglue.c 	res->l_type          = type;
res               518 fs/ocfs2/dlmglue.c 	res->l_ops           = ops;
res               519 fs/ocfs2/dlmglue.c 	res->l_priv          = priv;
res               521 fs/ocfs2/dlmglue.c 	res->l_level         = DLM_LOCK_IV;
res               522 fs/ocfs2/dlmglue.c 	res->l_requested     = DLM_LOCK_IV;
res               523 fs/ocfs2/dlmglue.c 	res->l_blocking      = DLM_LOCK_IV;
res               524 fs/ocfs2/dlmglue.c 	res->l_action        = OCFS2_AST_INVALID;
res               525 fs/ocfs2/dlmglue.c 	res->l_unlock_action = OCFS2_UNLOCK_INVALID;
res               527 fs/ocfs2/dlmglue.c 	res->l_flags         = OCFS2_LOCK_INITIALIZED;
res               529 fs/ocfs2/dlmglue.c 	ocfs2_add_lockres_tracking(res, osb->osb_dlm_debug);
res               531 fs/ocfs2/dlmglue.c 	ocfs2_init_lock_stats(res);
res               534 fs/ocfs2/dlmglue.c 		lockdep_init_map(&res->l_lockdep_map, ocfs2_lock_type_strings[type],
res               537 fs/ocfs2/dlmglue.c 		res->l_lockdep_map.key = NULL;
res               541 fs/ocfs2/dlmglue.c void ocfs2_lock_res_init_once(struct ocfs2_lock_res *res)
res               544 fs/ocfs2/dlmglue.c 	memset(res, 0, sizeof(struct ocfs2_lock_res));
res               545 fs/ocfs2/dlmglue.c 	spin_lock_init(&res->l_lock);
res               546 fs/ocfs2/dlmglue.c 	init_waitqueue_head(&res->l_event);
res               547 fs/ocfs2/dlmglue.c 	INIT_LIST_HEAD(&res->l_blocked_list);
res               548 fs/ocfs2/dlmglue.c 	INIT_LIST_HEAD(&res->l_mask_waiters);
res               549 fs/ocfs2/dlmglue.c 	INIT_LIST_HEAD(&res->l_holders);
res               552 fs/ocfs2/dlmglue.c void ocfs2_inode_lock_res_init(struct ocfs2_lock_res *res,
res               576 fs/ocfs2/dlmglue.c 			      generation, res->l_name);
res               577 fs/ocfs2/dlmglue.c 	ocfs2_lock_res_init_common(OCFS2_SB(inode->i_sb), res, type, ops, inode);
res               658 fs/ocfs2/dlmglue.c static void ocfs2_super_lock_res_init(struct ocfs2_lock_res *res,
res               663 fs/ocfs2/dlmglue.c 	ocfs2_lock_res_init_once(res);
res               665 fs/ocfs2/dlmglue.c 			      0, res->l_name);
res               666 fs/ocfs2/dlmglue.c 	ocfs2_lock_res_init_common(osb, res, OCFS2_LOCK_TYPE_SUPER,
res               670 fs/ocfs2/dlmglue.c static void ocfs2_rename_lock_res_init(struct ocfs2_lock_res *res,
res               675 fs/ocfs2/dlmglue.c 	ocfs2_lock_res_init_once(res);
res               676 fs/ocfs2/dlmglue.c 	ocfs2_build_lock_name(OCFS2_LOCK_TYPE_RENAME, 0, 0, res->l_name);
res               677 fs/ocfs2/dlmglue.c 	ocfs2_lock_res_init_common(osb, res, OCFS2_LOCK_TYPE_RENAME,
res               681 fs/ocfs2/dlmglue.c static void ocfs2_nfs_sync_lock_res_init(struct ocfs2_lock_res *res,
res               686 fs/ocfs2/dlmglue.c 	ocfs2_lock_res_init_once(res);
res               687 fs/ocfs2/dlmglue.c 	ocfs2_build_lock_name(OCFS2_LOCK_TYPE_NFS_SYNC, 0, 0, res->l_name);
res               688 fs/ocfs2/dlmglue.c 	ocfs2_lock_res_init_common(osb, res, OCFS2_LOCK_TYPE_NFS_SYNC,
res               715 fs/ocfs2/dlmglue.c static void ocfs2_orphan_scan_lock_res_init(struct ocfs2_lock_res *res,
res               718 fs/ocfs2/dlmglue.c 	ocfs2_lock_res_init_once(res);
res               719 fs/ocfs2/dlmglue.c 	ocfs2_build_lock_name(OCFS2_LOCK_TYPE_ORPHAN_SCAN, 0, 0, res->l_name);
res               720 fs/ocfs2/dlmglue.c 	ocfs2_lock_res_init_common(osb, res, OCFS2_LOCK_TYPE_ORPHAN_SCAN,
res               761 fs/ocfs2/dlmglue.c void ocfs2_lock_res_free(struct ocfs2_lock_res *res)
res               763 fs/ocfs2/dlmglue.c 	if (!(res->l_flags & OCFS2_LOCK_INITIALIZED))
res               766 fs/ocfs2/dlmglue.c 	ocfs2_remove_lockres_tracking(res);
res               768 fs/ocfs2/dlmglue.c 	mlog_bug_on_msg(!list_empty(&res->l_blocked_list),
res               770 fs/ocfs2/dlmglue.c 			res->l_name);
res               771 fs/ocfs2/dlmglue.c 	mlog_bug_on_msg(!list_empty(&res->l_mask_waiters),
res               773 fs/ocfs2/dlmglue.c 			res->l_name);
res               774 fs/ocfs2/dlmglue.c 	mlog_bug_on_msg(spin_is_locked(&res->l_lock),
res               776 fs/ocfs2/dlmglue.c 			res->l_name);
res               777 fs/ocfs2/dlmglue.c 	mlog_bug_on_msg(res->l_ro_holders,
res               779 fs/ocfs2/dlmglue.c 			res->l_name, res->l_ro_holders);
res               780 fs/ocfs2/dlmglue.c 	mlog_bug_on_msg(res->l_ex_holders,
res               782 fs/ocfs2/dlmglue.c 			res->l_name, res->l_ex_holders);
res               785 fs/ocfs2/dlmglue.c 	memset(&res->l_lksb, 0, sizeof(res->l_lksb));
res               787 fs/ocfs2/dlmglue.c 	res->l_flags = 0UL;
res              2143 fs/ocfs2/dlmglue.c 	u64 res;
res              2147 fs/ocfs2/dlmglue.c 	res = (sec << OCFS2_SEC_SHIFT) | (nsec & OCFS2_NSEC_MASK);
res              2149 fs/ocfs2/dlmglue.c 	return res;
res              3240 fs/ocfs2/dlmglue.c 	struct ocfs2_lock_res *res = &priv->p_iter_res;
res              3242 fs/ocfs2/dlmglue.c 	ocfs2_remove_lockres_tracking(res);
res               109 fs/ocfs2/dlmglue.h void ocfs2_lock_res_init_once(struct ocfs2_lock_res *res);
res               110 fs/ocfs2/dlmglue.h void ocfs2_inode_lock_res_init(struct ocfs2_lock_res *res,
res               125 fs/ocfs2/dlmglue.h void ocfs2_lock_res_free(struct ocfs2_lock_res *res);
res                57 fs/ocfs2/suballoc.c static u64 ocfs2_group_from_res(struct ocfs2_suballoc_result *res)
res                59 fs/ocfs2/suballoc.c 	if (res->sr_blkno == 0)
res                62 fs/ocfs2/suballoc.c 	if (res->sr_bg_blkno)
res                63 fs/ocfs2/suballoc.c 		return res->sr_bg_blkno;
res                65 fs/ocfs2/suballoc.c 	return ocfs2_which_suballoc_group(res->sr_blkno, res->sr_bit_offset);
res                87 fs/ocfs2/suballoc.c 				      struct ocfs2_suballoc_result *res);
res                92 fs/ocfs2/suballoc.c 				    struct ocfs2_suballoc_result *res);
res                97 fs/ocfs2/suballoc.c 				     struct ocfs2_suballoc_result *res);
res              1278 fs/ocfs2/suballoc.c 					     struct ocfs2_suballoc_result *res)
res              1323 fs/ocfs2/suballoc.c 		res->sr_bit_offset = best_offset;
res              1324 fs/ocfs2/suballoc.c 		res->sr_bits = best_size;
res              1477 fs/ocfs2/suballoc.c 				      struct ocfs2_suballoc_result *res)
res              1510 fs/ocfs2/suballoc.c 							max_bits, res);
res              1517 fs/ocfs2/suballoc.c 							  res->sr_bit_offset +
res              1518 fs/ocfs2/suballoc.c 							  res->sr_bits);
res              1530 fs/ocfs2/suballoc.c 		if (min_bits <= res->sr_bits)
res              1532 fs/ocfs2/suballoc.c 		else if (res->sr_bits) {
res              1537 fs/ocfs2/suballoc.c 			ocfs2_local_alloc_seen_free_bits(osb, res->sr_bits);
res              1548 fs/ocfs2/suballoc.c 				    struct ocfs2_suballoc_result *res)
res              1561 fs/ocfs2/suballoc.c 							res);
res              1564 fs/ocfs2/suballoc.c 				res->sr_bit_offset + res->sr_bits;
res              1618 fs/ocfs2/suballoc.c static int ocfs2_bg_discontig_fix_by_rec(struct ocfs2_suballoc_result *res,
res              1626 fs/ocfs2/suballoc.c 	if (res->sr_bit_offset < bitoff)
res              1628 fs/ocfs2/suballoc.c 	if (res->sr_bit_offset >= (bitoff + bitcount))
res              1630 fs/ocfs2/suballoc.c 	res->sr_blkno = le64_to_cpu(rec->e_blkno) +
res              1631 fs/ocfs2/suballoc.c 		(res->sr_bit_offset - bitoff);
res              1632 fs/ocfs2/suballoc.c 	if ((res->sr_bit_offset + res->sr_bits) > (bitoff + bitcount))
res              1633 fs/ocfs2/suballoc.c 		res->sr_bits = (bitoff + bitcount) - res->sr_bit_offset;
res              1639 fs/ocfs2/suballoc.c 					  struct ocfs2_suballoc_result *res)
res              1642 fs/ocfs2/suballoc.c 	u64 bg_blkno = res->sr_bg_blkno;  /* Save off */
res              1648 fs/ocfs2/suballoc.c 		res->sr_blkno = 0;
res              1652 fs/ocfs2/suballoc.c 	res->sr_blkno = res->sr_bg_blkno + res->sr_bit_offset;
res              1653 fs/ocfs2/suballoc.c 	res->sr_bg_blkno = 0;  /* Clear it for contig block groups */
res              1660 fs/ocfs2/suballoc.c 		if (ocfs2_bg_discontig_fix_by_rec(res, rec, cl)) {
res              1661 fs/ocfs2/suballoc.c 			res->sr_bg_blkno = bg_blkno;  /* Restore */
res              1671 fs/ocfs2/suballoc.c 				  struct ocfs2_suballoc_result *res,
res              1681 fs/ocfs2/suballoc.c 					  res->sr_bg_blkno, &group_bh);
res              1689 fs/ocfs2/suballoc.c 				  ac->ac_max_block, res);
res              1697 fs/ocfs2/suballoc.c 		ocfs2_bg_discontig_fix_result(ac, gd, res);
res              1703 fs/ocfs2/suballoc.c 	res->sr_bg_stable_blkno = group_bh->b_blocknr;
res              1709 fs/ocfs2/suballoc.c 					       res->sr_bits,
res              1717 fs/ocfs2/suballoc.c 					 res->sr_bit_offset, res->sr_bits);
res              1720 fs/ocfs2/suballoc.c 					       res->sr_bits,
res              1738 fs/ocfs2/suballoc.c 			      struct ocfs2_suballoc_result *res,
res              1771 fs/ocfs2/suballoc.c 					     res)) == -ENOSPC) {
res              1796 fs/ocfs2/suballoc.c 		(unsigned long long)le64_to_cpu(bg->bg_blkno), res->sr_bits);
res              1798 fs/ocfs2/suballoc.c 	res->sr_bg_blkno = le64_to_cpu(bg->bg_blkno);
res              1800 fs/ocfs2/suballoc.c 	BUG_ON(res->sr_bits == 0);
res              1802 fs/ocfs2/suballoc.c 		ocfs2_bg_discontig_fix_result(ac, bg, res);
res              1808 fs/ocfs2/suballoc.c 	res->sr_bg_stable_blkno = group_bh->b_blocknr;
res              1825 fs/ocfs2/suballoc.c 	    (ocfs2_block_group_reasonably_empty(bg, res->sr_bits))) {
res              1839 fs/ocfs2/suballoc.c 						  ac->ac_bh, res->sr_bits,
res              1850 fs/ocfs2/suballoc.c 					    res->sr_bit_offset,
res              1851 fs/ocfs2/suballoc.c 					    res->sr_bits);
res              1854 fs/ocfs2/suballoc.c 					ac->ac_bh, res->sr_bits, chain);
res              1861 fs/ocfs2/suballoc.c 			res->sr_bits);
res              1879 fs/ocfs2/suballoc.c 				     struct ocfs2_suballoc_result *res)
res              1908 fs/ocfs2/suballoc.c 	res->sr_bg_blkno = hint;
res              1909 fs/ocfs2/suballoc.c 	if (res->sr_bg_blkno) {
res              1915 fs/ocfs2/suballoc.c 						min_bits, res, &bits_left);
res              1930 fs/ocfs2/suballoc.c 				    res, &bits_left);
res              1933 fs/ocfs2/suballoc.c 			hint = res->sr_bg_blkno;
res              1935 fs/ocfs2/suballoc.c 			hint = ocfs2_group_from_res(res);
res              1958 fs/ocfs2/suballoc.c 					    res, &bits_left);
res              1960 fs/ocfs2/suballoc.c 			hint = ocfs2_group_from_res(res);
res              1995 fs/ocfs2/suballoc.c 	struct ocfs2_suballoc_result res = { .sr_blkno = 0, };
res              2005 fs/ocfs2/suballoc.c 					   &res);
res              2012 fs/ocfs2/suballoc.c 	*suballoc_loc = res.sr_bg_blkno;
res              2013 fs/ocfs2/suballoc.c 	*suballoc_bit_start = res.sr_bit_offset;
res              2014 fs/ocfs2/suballoc.c 	*blkno_start = res.sr_blkno;
res              2015 fs/ocfs2/suballoc.c 	ac->ac_bits_given += res.sr_bits;
res              2016 fs/ocfs2/suballoc.c 	*num_bits = res.sr_bits;
res              2066 fs/ocfs2/suballoc.c 	struct ocfs2_suballoc_result *res;
res              2073 fs/ocfs2/suballoc.c 	res = kzalloc(sizeof(*res), GFP_NOFS);
res              2074 fs/ocfs2/suballoc.c 	if (res == NULL) {
res              2101 fs/ocfs2/suballoc.c 	ret = ocfs2_claim_suballoc_bits(ac, handle, 1, 1, res);
res              2107 fs/ocfs2/suballoc.c 	ac->ac_find_loc_priv = res;
res              2108 fs/ocfs2/suballoc.c 	*fe_blkno = res->sr_blkno;
res              2115 fs/ocfs2/suballoc.c 		kfree(res);
res              2129 fs/ocfs2/suballoc.c 	struct ocfs2_suballoc_result *res = ac->ac_find_loc_priv;
res              2140 fs/ocfs2/suballoc.c 	BUG_ON(res->sr_blkno != di_blkno);
res              2143 fs/ocfs2/suballoc.c 					  res->sr_bg_stable_blkno, &bg_bh);
res              2153 fs/ocfs2/suballoc.c 					       ac->ac_bh, res->sr_bits,
res              2164 fs/ocfs2/suballoc.c 					 res->sr_bit_offset,
res              2165 fs/ocfs2/suballoc.c 					 res->sr_bits);
res              2168 fs/ocfs2/suballoc.c 					       ac->ac_bh, res->sr_bits, chain);
res              2174 fs/ocfs2/suballoc.c 					   res->sr_bits);
res              2178 fs/ocfs2/suballoc.c 	BUG_ON(res->sr_bits != 1);
res              2180 fs/ocfs2/suballoc.c 	*suballoc_loc = res->sr_bg_blkno;
res              2181 fs/ocfs2/suballoc.c 	*suballoc_bit = res->sr_bit_offset;
res              2200 fs/ocfs2/suballoc.c 	struct ocfs2_suballoc_result res;
res              2213 fs/ocfs2/suballoc.c 					   &res);
res              2220 fs/ocfs2/suballoc.c 	BUG_ON(res.sr_bits != 1);
res              2222 fs/ocfs2/suballoc.c 	*suballoc_loc = res.sr_bg_blkno;
res              2223 fs/ocfs2/suballoc.c 	*suballoc_bit = res.sr_bit_offset;
res              2224 fs/ocfs2/suballoc.c 	*fe_blkno = res.sr_blkno;
res              2304 fs/ocfs2/suballoc.c 	struct ocfs2_suballoc_result res = { .sr_blkno = 0, };
res              2341 fs/ocfs2/suballoc.c 						   &res);
res              2343 fs/ocfs2/suballoc.c 			BUG_ON(res.sr_blkno); /* cluster alloc can't set */
res              2346 fs/ocfs2/suballoc.c 								 res.sr_bg_blkno,
res              2347 fs/ocfs2/suballoc.c 								 res.sr_bit_offset);
res              2349 fs/ocfs2/suballoc.c 			*num_clusters = res.sr_bits;
res              2759 fs/ocfs2/suballoc.c 				   u16 bit, int *res)
res              2790 fs/ocfs2/suballoc.c 	*res = ocfs2_test_bit(bit, (unsigned long *)group->bg_bitmap);
res              2813 fs/ocfs2/suballoc.c int ocfs2_test_inode_bit(struct ocfs2_super *osb, u64 blkno, int *res)
res              2853 fs/ocfs2/suballoc.c 					 group_blkno, blkno, suballoc_bit, res);
res               204 fs/ocfs2/suballoc.h int ocfs2_test_inode_bit(struct ocfs2_super *osb, u64 blkno, int *res);
res               354 fs/open.c      	int res;
res               398 fs/open.c      	res = user_path_at(dfd, filename, lookup_flags, &path);
res               399 fs/open.c      	if (res)
res               409 fs/open.c      		res = -EACCES;
res               414 fs/open.c      	res = inode_permission(inode, mode | MAY_ACCESS);
res               416 fs/open.c      	if (res || !(mode & S_IWOTH) || special_file(inode->i_mode))
res               429 fs/open.c      		res = -EROFS;
res               433 fs/open.c      	if (retry_estale(res, lookup_flags)) {
res               440 fs/open.c      	return res;
res               126 fs/orangefs/orangefs-bufmap.c 	int res = 0;
res               129 fs/orangefs/orangefs-bufmap.c 		res = wait_for_free(m);
res               130 fs/orangefs/orangefs-bufmap.c 	if (likely(!res)) {
res               132 fs/orangefs/orangefs-bufmap.c 		res = find_first_zero_bit(m->map, m->count);
res               133 fs/orangefs/orangefs-bufmap.c 		__set_bit(res, m->map);
res               136 fs/orangefs/orangefs-bufmap.c 	return res;
res               253 fs/overlayfs/export.c 	int res, len = *max_len << 2;
res               255 fs/overlayfs/export.c 	res = ovl_d_to_fh(dentry, (char *)fid, len);
res               256 fs/overlayfs/export.c 	if (res <= 0)
res               259 fs/overlayfs/export.c 	len = res;
res               374 fs/overlayfs/inode.c 	ssize_t res;
res               380 fs/overlayfs/inode.c 	res = vfs_getxattr(realdentry, name, value, size);
res               382 fs/overlayfs/inode.c 	return res;
res               399 fs/overlayfs/inode.c 	ssize_t res;
res               405 fs/overlayfs/inode.c 	res = vfs_listxattr(realdentry, list, size);
res               407 fs/overlayfs/inode.c 	if (res <= 0 || size == 0)
res               408 fs/overlayfs/inode.c 		return res;
res               411 fs/overlayfs/inode.c 	for (s = list, len = res; len;) {
res               420 fs/overlayfs/inode.c 			res -= slen;
res               427 fs/overlayfs/inode.c 	return res;
res               788 fs/overlayfs/inode.c 	bool res;
res               794 fs/overlayfs/inode.c 	res = IS_DEADDIR(trap) && !ovl_inode_upper(trap) &&
res               798 fs/overlayfs/inode.c 	return res;
res                31 fs/overlayfs/namei.c 	int res;
res                49 fs/overlayfs/namei.c 		res = strlen(buf) + 1;
res                50 fs/overlayfs/namei.c 		memmove(buf + prelen, buf, res);
res               109 fs/overlayfs/namei.c 	int res, err;
res               112 fs/overlayfs/namei.c 	res = vfs_getxattr(dentry, name, NULL, 0);
res               113 fs/overlayfs/namei.c 	if (res < 0) {
res               114 fs/overlayfs/namei.c 		if (res == -ENODATA || res == -EOPNOTSUPP)
res               119 fs/overlayfs/namei.c 	if (res == 0)
res               122 fs/overlayfs/namei.c 	fh = kzalloc(res, GFP_KERNEL);
res               126 fs/overlayfs/namei.c 	res = vfs_getxattr(dentry, name, fh, res);
res               127 fs/overlayfs/namei.c 	if (res < 0)
res               130 fs/overlayfs/namei.c 	err = ovl_check_fh_len(fh, res);
res               144 fs/overlayfs/namei.c 	pr_warn_ratelimited("overlayfs: failed to get origin (%i)\n", res);
res               147 fs/overlayfs/namei.c 	pr_warn_ratelimited("overlayfs: invalid origin (%*phN)\n", res, fh);
res               407 fs/overlayfs/readdir.c 	int res;
res               426 fs/overlayfs/readdir.c 	res = ovl_dir_read_merged(dentry, &cache->entries, &cache->root);
res               427 fs/overlayfs/readdir.c 	if (res) {
res               430 fs/overlayfs/readdir.c 		return ERR_PTR(res);
res               598 fs/overlayfs/readdir.c 	int res;
res               614 fs/overlayfs/readdir.c 	res = ovl_dir_read_impure(path, &cache->entries, &cache->root);
res               615 fs/overlayfs/readdir.c 	if (res) {
res               618 fs/overlayfs/readdir.c 		return ERR_PTR(res);
res               785 fs/overlayfs/readdir.c 	loff_t res;
res               793 fs/overlayfs/readdir.c 		res = vfs_llseek(od->realfile, offset, origin);
res               796 fs/overlayfs/readdir.c 		res = -EINVAL;
res               815 fs/overlayfs/readdir.c 		res = offset;
res               820 fs/overlayfs/readdir.c 	return res;
res               540 fs/overlayfs/util.c 	int res;
res               542 fs/overlayfs/util.c 	res = vfs_getxattr(dentry, OVL_XATTR_ORIGIN, NULL, 0);
res               545 fs/overlayfs/util.c 	if (res >= 0)
res               553 fs/overlayfs/util.c 	int res;
res               559 fs/overlayfs/util.c 	res = vfs_getxattr(dentry, name, &val, 1);
res               560 fs/overlayfs/util.c 	if (res == 1 && val == 'y')
res               840 fs/overlayfs/util.c 	int res;
res               846 fs/overlayfs/util.c 	res = vfs_getxattr(dentry, OVL_XATTR_METACOPY, NULL, 0);
res               847 fs/overlayfs/util.c 	if (res < 0) {
res               848 fs/overlayfs/util.c 		if (res == -ENODATA || res == -EOPNOTSUPP)
res               855 fs/overlayfs/util.c 	pr_warn_ratelimited("overlayfs: failed to get metacopy (%i)\n", res);
res               856 fs/overlayfs/util.c 	return res;
res               878 fs/overlayfs/util.c 	ssize_t res;
res               881 fs/overlayfs/util.c 	res = vfs_getxattr(dentry, name, NULL, 0);
res               882 fs/overlayfs/util.c 	if (res < 0) {
res               883 fs/overlayfs/util.c 		if (res == -ENODATA || res == -EOPNOTSUPP)
res               888 fs/overlayfs/util.c 	if (res != 0) {
res               889 fs/overlayfs/util.c 		buf = kzalloc(res + padding, GFP_KERNEL);
res               893 fs/overlayfs/util.c 		res = vfs_getxattr(dentry, name, buf, res);
res               894 fs/overlayfs/util.c 		if (res < 0)
res               899 fs/overlayfs/util.c 	return res;
res               903 fs/overlayfs/util.c 			    name, res);
res               905 fs/overlayfs/util.c 	return res;
res               910 fs/overlayfs/util.c 	int res;
res               913 fs/overlayfs/util.c 	res = ovl_getxattr(dentry, OVL_XATTR_REDIRECT, &buf, padding + 1);
res               914 fs/overlayfs/util.c 	if (res == -ENODATA)
res               916 fs/overlayfs/util.c 	if (res < 0)
res               917 fs/overlayfs/util.c 		return ERR_PTR(res);
res               918 fs/overlayfs/util.c 	if (res == 0)
res               935 fs/overlayfs/util.c 	res = -EINVAL;
res               937 fs/overlayfs/util.c 	return ERR_PTR(res);
res               768 fs/pipe.c      int create_pipe_files(struct file **res, int flags)
res               787 fs/pipe.c      	res[0] = alloc_file_clone(f, O_RDONLY | (flags & O_NONBLOCK),
res               789 fs/pipe.c      	if (IS_ERR(res[0])) {
res               792 fs/pipe.c      		return PTR_ERR(res[0]);
res               794 fs/pipe.c      	res[0]->private_data = inode->i_pipe;
res               795 fs/pipe.c      	res[1] = f;
res               633 fs/proc/base.c 	int res;
res               635 fs/proc/base.c 	res = lock_trace(task);
res               636 fs/proc/base.c 	if (res)
res               637 fs/proc/base.c 		return res;
res              1899 fs/proc/base.c 			struct dentry *res;
res              1900 fs/proc/base.c 			res = instantiate(child, task, ptr);
res              1902 fs/proc/base.c 			if (unlikely(res)) {
res              1904 fs/proc/base.c 				child = res;
res              2482 fs/proc/base.c 	struct dentry *res = ERR_PTR(-ENOENT);
res              2495 fs/proc/base.c 			res = proc_pident_instantiate(dentry, task, p);
res              2501 fs/proc/base.c 	return res;
res                69 fs/proc/namespaces.c 	int res = -EACCES;
res                73 fs/proc/namespaces.c 		return res;
res                76 fs/proc/namespaces.c 		res = ns_get_name(name, sizeof(name), task, ns_ops);
res                77 fs/proc/namespaces.c 		if (res >= 0)
res                78 fs/proc/namespaces.c 			res = readlink_copy(buffer, buflen, name);
res                81 fs/proc/namespaces.c 	return res;
res               149 fs/proc/namespaces.c 	struct dentry *res = ERR_PTR(-ENOENT);
res               164 fs/proc/namespaces.c 	res = proc_ns_instantiate(dentry, task, *entry);
res               168 fs/proc/namespaces.c 	return res;
res               710 fs/proc/proc_sysctl.c 			struct dentry *res;
res               718 fs/proc/proc_sysctl.c 			res = d_splice_alias(inode, child);
res               720 fs/proc/proc_sysctl.c 			if (unlikely(res)) {
res               721 fs/proc/proc_sysctl.c 				if (IS_ERR(res)) {
res               726 fs/proc/proc_sysctl.c 				child = res;
res               762 fs/proc/proc_sysctl.c 	bool res;
res               768 fs/proc/proc_sysctl.c 		res = proc_sys_link_fill_cache(file, ctx, head, table);
res               770 fs/proc/proc_sysctl.c 		res = proc_sys_fill_cache(file, ctx, head, table);
res               772 fs/proc/proc_sysctl.c 	if (res)
res               775 fs/proc/proc_sysctl.c 	return res;
res               912 fs/proc/proc_sysctl.c 	int res;
res               915 fs/proc/proc_sysctl.c 		res = 0;
res               917 fs/proc/proc_sysctl.c 		res = 1;
res               919 fs/proc/proc_sysctl.c 		res = set->is_seen(set);
res               921 fs/proc/proc_sysctl.c 	return res;
res                26 fs/proc_namespace.c 	__poll_t res = EPOLLIN | EPOLLRDNORM;
res                34 fs/proc_namespace.c 		res |= EPOLLERR | EPOLLPRI;
res                37 fs/proc_namespace.c 	return res;
res               674 fs/pstore/ram.c 	struct resource *res;
res               680 fs/pstore/ram.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               681 fs/pstore/ram.c 	if (!res) {
res               687 fs/pstore/ram.c 	pdata->mem_size = resource_size(res);
res               688 fs/pstore/ram.c 	pdata->mem_address = res->start;
res               313 fs/read_write.c 		loff_t res = vfs_llseek(f.file, offset, whence);
res               314 fs/read_write.c 		retval = res;
res               315 fs/read_write.c 		if (res != (loff_t)retval)
res               530 fs/read_write.c 	ssize_t res;
res               535 fs/read_write.c 	res = vfs_write(file, (__force const char __user *)buf, count, pos);
res               538 fs/read_write.c 	return res;
res                44 fs/readdir.c   	int res = -ENOTDIR;
res                50 fs/readdir.c   	res = security_file_permission(file, MAY_READ);
res                51 fs/readdir.c   	if (res)
res                55 fs/readdir.c   		res = down_read_killable(&inode->i_rwsem);
res                57 fs/readdir.c   		res = down_write_killable(&inode->i_rwsem);
res                58 fs/readdir.c   	if (res)
res                61 fs/readdir.c   	res = -ENOENT;
res                65 fs/readdir.c   			res = file->f_op->iterate_shared(file, ctx);
res                67 fs/readdir.c   			res = file->f_op->iterate(file, ctx);
res                77 fs/readdir.c   	return res;
res               188 fs/reiserfs/namei.c 	__u32 res;
res               195 fs/reiserfs/namei.c 	res = REISERFS_SB(s)->s_hash_function(name, len);
res               198 fs/reiserfs/namei.c 	res = GET_HASH_VALUE(res);
res               199 fs/reiserfs/namei.c 	if (res == 0)
res               204 fs/reiserfs/namei.c 		res = 128;
res               205 fs/reiserfs/namei.c 	return res + MAX_GENERATION_NUMBER;
res               468 fs/seq_file.c  	int res = -1;
res               475 fs/seq_file.c  				res = end - buf;
res               478 fs/seq_file.c  	seq_commit(m, res);
res               480 fs/seq_file.c  	return res;
res               506 fs/seq_file.c  	int res = -ENAMETOOLONG;
res               514 fs/seq_file.c  		res = PTR_ERR(p);
res               518 fs/seq_file.c  				res = end - buf;
res               520 fs/seq_file.c  				res = -ENAMETOOLONG;
res               523 fs/seq_file.c  	seq_commit(m, res);
res               525 fs/seq_file.c  	return res < 0 && res != -ENAMETOOLONG ? res : 0;
res               535 fs/seq_file.c  	int res = -1;
res               542 fs/seq_file.c  				res = end - buf;
res               545 fs/seq_file.c  	seq_commit(m, res);
res               547 fs/seq_file.c  	return res;
res               570 fs/seq_file.c  	int res = -ENOMEM;
res               577 fs/seq_file.c  		res = seq_open(file, op);
res               578 fs/seq_file.c  		if (!res)
res               583 fs/seq_file.c  	return res;
res               608 fs/seq_file.c  	int res = seq_release(inode, file);
res               610 fs/seq_file.c  	return res;
res               354 fs/splice.c    	ssize_t res;
res               359 fs/splice.c    	res = vfs_readv(file, (const struct iovec __user *)vec, vlen, &pos, 0);
res               362 fs/splice.c    	return res;
res               374 fs/splice.c    	ssize_t res;
res               388 fs/splice.c    	res = iov_iter_get_pages_alloc(&to, &pages, len + offset, &base);
res               389 fs/splice.c    	if (res <= 0)
res               392 fs/splice.c    	nr_pages = DIV_ROUND_UP(res + base, PAGE_SIZE);
res               398 fs/splice.c    			res = -ENOMEM;
res               414 fs/splice.c    	res = kernel_readv(in, vec, nr_pages, *ppos);
res               415 fs/splice.c    	if (res > 0) {
res               416 fs/splice.c    		copied = res;
res               417 fs/splice.c    		*ppos += res;
res               427 fs/splice.c    	return res;
res               335 fs/squashfs/cache.c 	int bytes, res = length;
res               346 fs/squashfs/cache.c 			res = entry->error;
res               349 fs/squashfs/cache.c 			res = -EIO;
res               367 fs/squashfs/cache.c 	return res;
res               371 fs/squashfs/cache.c 	return res;
res               409 fs/squashfs/cache.c 	int i, res;
res               419 fs/squashfs/cache.c 		res = -ENOMEM;
res               425 fs/squashfs/cache.c 		res = -ENOMEM;
res               432 fs/squashfs/cache.c 	res = squashfs_read_data(sb, block, length |
res               438 fs/squashfs/cache.c 	if (res < 0)
res               447 fs/squashfs/cache.c 	return ERR_PTR(res);
res               186 fs/squashfs/decompressor_multi.c 	int res;
res               189 fs/squashfs/decompressor_multi.c 	res = msblk->decompressor->decompress(msblk, decomp_stream->stream,
res               192 fs/squashfs/decompressor_multi.c 	if (res < 0)
res               195 fs/squashfs/decompressor_multi.c 	return res;
res                81 fs/squashfs/decompressor_multi_percpu.c 	int res = msblk->decompressor->decompress(msblk, stream->stream, bh, b,
res                85 fs/squashfs/decompressor_multi_percpu.c 	if (res < 0)
res                89 fs/squashfs/decompressor_multi_percpu.c 	return res;
res                65 fs/squashfs/decompressor_single.c 	int res;
res                69 fs/squashfs/decompressor_single.c 	res = msblk->decompressor->decompress(msblk, stream->stream, bh, b,
res                73 fs/squashfs/decompressor_single.c 	if (res < 0)
res                77 fs/squashfs/decompressor_single.c 	return res;
res               276 fs/squashfs/file.c 			long long res = read_indexes(inode->i_sb, blocks,
res               279 fs/squashfs/file.c 			if (res < 0) {
res               286 fs/squashfs/file.c 				err = res;
res               290 fs/squashfs/file.c 			cur_data_block += res;
res               332 fs/squashfs/file.c 	int res = fill_meta_index(inode, index, &start, &offset, block);
res               335 fs/squashfs/file.c 		       " 0x%x, block 0x%llx\n", res, index, start, offset,
res               338 fs/squashfs/file.c 	if (res < 0)
res               339 fs/squashfs/file.c 		return res;
res               347 fs/squashfs/file.c 	if (res < index) {
res               348 fs/squashfs/file.c 		blks = read_indexes(inode->i_sb, index - res, &start, &offset);
res               357 fs/squashfs/file.c 	res = squashfs_read_metadata(inode->i_sb, &size, &start, &offset,
res               359 fs/squashfs/file.c 	if (res < 0)
res               360 fs/squashfs/file.c 		return res;
res               427 fs/squashfs/file.c 	int res = buffer->error;
res               429 fs/squashfs/file.c 	if (res)
res               438 fs/squashfs/file.c 	return res;
res               456 fs/squashfs/file.c 	int res;
res               474 fs/squashfs/file.c 			res = squashfs_readpage_sparse(page, expected);
res               476 fs/squashfs/file.c 			res = squashfs_readpage_block(page, block, bsize, expected);
res               478 fs/squashfs/file.c 		res = squashfs_readpage_fragment(page, expected);
res               480 fs/squashfs/file.c 	if (!res)
res                26 fs/squashfs/file_cache.c 	int res = buffer->error;
res                28 fs/squashfs/file_cache.c 	if (res)
res                35 fs/squashfs/file_cache.c 	return res;
res                36 fs/squashfs/file_direct.c 	int i, n, pages, missing_pages, bytes, res = -ENOMEM;
res                48 fs/squashfs/file_direct.c 		return res;
res                84 fs/squashfs/file_direct.c 		res = squashfs_read_cache(target_page, block, bsize, pages,
res                86 fs/squashfs/file_direct.c 		if (res < 0)
res                93 fs/squashfs/file_direct.c 	res = squashfs_read_data(inode->i_sb, block, bsize, NULL, actor);
res                94 fs/squashfs/file_direct.c 	if (res < 0)
res                97 fs/squashfs/file_direct.c 	if (res != expected) {
res                98 fs/squashfs/file_direct.c 		res = -EIO;
res               103 fs/squashfs/file_direct.c 	bytes = res % PAGE_SIZE;
res               140 fs/squashfs/file_direct.c 	return res;
res               150 fs/squashfs/file_direct.c 	int res = buffer->error, n, offset = 0;
res               152 fs/squashfs/file_direct.c 	if (res) {
res               173 fs/squashfs/file_direct.c 	return res;
res                97 fs/squashfs/lz4_wrapper.c 	int avail, i, bytes = length, res;
res               108 fs/squashfs/lz4_wrapper.c 	res = LZ4_decompress_safe(stream->input, stream->output,
res               111 fs/squashfs/lz4_wrapper.c 	if (res < 0)
res               114 fs/squashfs/lz4_wrapper.c 	bytes = res;
res               129 fs/squashfs/lz4_wrapper.c 	return res;
res                71 fs/squashfs/lzo_wrapper.c 	int avail, i, bytes = length, res;
res                83 fs/squashfs/lzo_wrapper.c 	res = lzo1x_decompress_safe(stream->input, (size_t)length,
res                85 fs/squashfs/lzo_wrapper.c 	if (res != LZO_E_OK)
res                88 fs/squashfs/lzo_wrapper.c 	res = bytes = (int)out_len;
res               104 fs/squashfs/lzo_wrapper.c 	return res;
res               361 fs/sysv/dir.c  	ino_t res = 0;
res               364 fs/sysv/dir.c  		res = fs16_to_cpu(SYSV_SB(dentry->d_sb), de->inode);
res               367 fs/sysv/dir.c  	return res;
res                60 fs/sysv/ialloc.c 	struct sysv_inode *res;
res                67 fs/sysv/ialloc.c 	res = (struct sysv_inode *)(*bh)->b_data;
res                68 fs/sysv/ialloc.c 	return res + ((ino-1) & sbi->s_inodes_per_block_1);
res               433 fs/sysv/itree.c 	unsigned blocks, res, direct = DIRECT, i = DEPTH;
res               435 fs/sysv/itree.c 	res = blocks;
res               438 fs/sysv/itree.c 		res += blocks;
res               250 fs/timerfd.c   	ssize_t res;
res               257 fs/timerfd.c   		res = -EAGAIN;
res               259 fs/timerfd.c   		res = wait_event_interruptible_locked_irq(ctx->wqh, ctx->ticks);
res               269 fs/timerfd.c   		res = -ECANCELED;
res               297 fs/timerfd.c   		res = put_user(ticks, (u64 __user *) buf) ? -EFAULT: sizeof(ticks);
res               298 fs/timerfd.c   	return res;
res                72 fs/ufs/dir.c   	ino_t res = 0;
res                78 fs/ufs/dir.c   		res = fs32_to_cpu(dir->i_sb, de->d_ino);
res                81 fs/ufs/dir.c   	return res;
res               134 fs/ufs/inode.c 	u64 res = 0;
res               168 fs/ufs/inode.c 	res = fs32_to_cpu(sb, q->key32);
res               192 fs/ufs/inode.c 	res = fs64_to_cpu(sb, q->key64);
res               194 fs/ufs/inode.c 	res += uspi->s_sbbase;
res               200 fs/ufs/inode.c 	return res;
res               765 fs/ufs/super.c 	u64 res;
res               768 fs/ufs/super.c 		res = ~0ULL;
res               770 fs/ufs/super.c 		res = UFS_NDADDR + (1LL << bits) + (1LL << (2*bits)) +
res               773 fs/ufs/super.c 	if (res >= (MAX_LFS_FILESIZE >> uspi->s_bshift))
res               775 fs/ufs/super.c 	return res << uspi->s_bshift;
res               243 fs/verity/open.c 	int res;
res               248 fs/verity/open.c 	res = inode->i_sb->s_vop->get_verity_descriptor(inode, NULL, 0);
res               249 fs/verity/open.c 	if (res < 0) {
res               251 fs/verity/open.c 			     "Error %d getting verity descriptor size", res);
res               252 fs/verity/open.c 		return res;
res               254 fs/verity/open.c 	if (res > FS_VERITY_MAX_DESCRIPTOR_SIZE) {
res               256 fs/verity/open.c 			     res);
res               259 fs/verity/open.c 	desc = kmalloc(res, GFP_KERNEL);
res               262 fs/verity/open.c 	res = inode->i_sb->s_vop->get_verity_descriptor(inode, desc, res);
res               263 fs/verity/open.c 	if (res < 0) {
res               264 fs/verity/open.c 		fsverity_err(inode, "Error %d reading verity descriptor", res);
res               268 fs/verity/open.c 	vi = fsverity_create_info(inode, desc, res);
res               270 fs/verity/open.c 		res = PTR_ERR(vi);
res               275 fs/verity/open.c 	res = 0;
res               278 fs/verity/open.c 	return res;
res               184 fs/xfs/libxfs/xfs_trans_resv.c 	uint			res, size = 0;
res               186 fs/xfs/libxfs/xfs_trans_resv.c 	res = xfs_calc_buf_res(xfs_allocfree_log_count(mp, 1),
res               191 fs/xfs/libxfs/xfs_trans_resv.c 			return res;
res               195 fs/xfs/libxfs/xfs_trans_resv.c 	res += xfs_calc_buf_res(M_IGEO(mp)->ialloc_blks, size);
res               196 fs/xfs/libxfs/xfs_trans_resv.c 	return res;
res               434 fs/xfs/libxfs/xfs_trans_resv.c 	uint	res = XFS_DQUOT_LOGRES(mp);
res               436 fs/xfs/libxfs/xfs_trans_resv.c 	res += xfs_calc_icreate_resv_alloc(mp);
res               437 fs/xfs/libxfs/xfs_trans_resv.c 	return res + xfs_calc_iunlink_add_reservation(mp);
res               225 fs/xfs/scrub/btree.c 	bool			res;
res               234 fs/xfs/scrub/btree.c 		res = xfs_btree_check_lptr(bs->cur, be64_to_cpu(ptr->l), level);
res               236 fs/xfs/scrub/btree.c 		res = xfs_btree_check_sptr(bs->cur, be32_to_cpu(ptr->s), level);
res               237 fs/xfs/scrub/btree.c 	if (!res)
res               240 fs/xfs/scrub/btree.c 	return res;
res               114 fs/xfs/xfs_super.c suffix_kstrtoint(const substring_t *s, unsigned int base, int *res)
res               141 fs/xfs/xfs_super.c 	*res = _res << shift_left_factor;
res              3309 fs/xfs/xfs_trace.h 		 struct xfs_trans_res *res),
res              3310 fs/xfs/xfs_trace.h 	TP_ARGS(mp, type, res),
res              3321 fs/xfs/xfs_trace.h 		__entry->logres = res->tr_logres;
res              3322 fs/xfs/xfs_trace.h 		__entry->logcount = res->tr_logcount;
res              3323 fs/xfs/xfs_trace.h 		__entry->logflags = res->tr_logflags;
res                31 fs/xfs/xfs_trans.c 	struct xfs_trans_res	*res;
res                35 fs/xfs/xfs_trans.c 	res = (struct xfs_trans_res *)M_RES(mp);
res                37 fs/xfs/xfs_trans.c 	for (i = 0; res < end_res; i++, res++)
res                38 fs/xfs/xfs_trans.c 		trace_xfs_trans_resv_calc(mp, i, res);
res               667 include/acpi/acrestyp.h #define ACPI_NEXT_RESOURCE(res) \
res               668 include/acpi/acrestyp.h 	ACPI_ADD_PTR (struct acpi_resource, (res), (res)->length)
res               181 include/asm-generic/div64.h 	uint64_t res;
res               185 include/asm-generic/div64.h 		res = ((uint64_t)m_lo * n_lo) >> 32;
res               188 include/asm-generic/div64.h 		res = (m + (uint64_t)m_lo * n_lo) >> 32;
res               190 include/asm-generic/div64.h 		res = m + (uint64_t)m_lo * n_lo;
res               191 include/asm-generic/div64.h 		res_lo = res >> 32;
res               193 include/asm-generic/div64.h 		res = res_lo | ((uint64_t)res_hi << 32);
res               198 include/asm-generic/div64.h 		res += (uint64_t)m_lo * n_hi;
res               199 include/asm-generic/div64.h 		res += (uint64_t)m_hi * n_lo;
res               200 include/asm-generic/div64.h 		res >>= 32;
res               202 include/asm-generic/div64.h 		res += (uint64_t)m_lo * n_hi;
res               203 include/asm-generic/div64.h 		tmp = res >> 32;
res               204 include/asm-generic/div64.h 		res += (uint64_t)m_hi * n_lo;
res               205 include/asm-generic/div64.h 		res_lo = res >> 32;
res               207 include/asm-generic/div64.h 		res = res_lo | ((uint64_t)res_hi << 32);
res               210 include/asm-generic/div64.h 	res += (uint64_t)m_hi * n_hi;
res               212 include/asm-generic/div64.h 	return res;
res                98 include/drm/bridge/dw_hdmi.h 	} res[DW_HDMI_RES_MAX];
res               151 include/drm/drm_fixed.h 	s64 res;
res               182 include/drm/drm_fixed.h 	res = (s64) res_abs;
res               184 include/drm/drm_fixed.h 		res = -res;
res               185 include/drm/drm_fixed.h 	return res;
res               427 include/linux/acpi.h bool acpi_dev_resource_memory(struct acpi_resource *ares, struct resource *res);
res               428 include/linux/acpi.h bool acpi_dev_resource_io(struct acpi_resource *ares, struct resource *res);
res               436 include/linux/acpi.h 				 struct resource *res);
res               453 include/linux/acpi.h struct acpi_device *acpi_resource_consumer(struct resource *res);
res               455 include/linux/acpi.h int acpi_check_resource_conflict(const struct resource *res);
res               460 include/linux/acpi.h acpi_status acpi_release_memory(acpi_handle handle, struct resource *res,
res               772 include/linux/acpi.h static inline int acpi_check_resource_conflict(struct resource *res)
res               882 include/linux/acpi.h static inline struct acpi_device *acpi_resource_consumer(struct resource *res)
res              1250 include/linux/acpi.h int acpi_irq_get(acpi_handle handle, unsigned int index, struct resource *res);
res              1253 include/linux/acpi.h int acpi_irq_get(acpi_handle handle, unsigned int index, struct resource *res)
res                66 include/linux/amba/bus.h 	struct resource		res;
res               183 include/linux/amba/bus.h 	.res = DEFINE_RES_MEM(base, SZ_4K),			\
res               194 include/linux/amba/bus.h 	.res = DEFINE_RES_MEM(base, SZ_4K),			\
res               122 include/linux/arm-smccc.h 			struct arm_smccc_res *res, struct arm_smccc_quirk *quirk);
res               139 include/linux/arm-smccc.h 			struct arm_smccc_res *res, struct arm_smccc_quirk *quirk);
res               191 include/linux/arm-smccc.h #define __declare_arg_0(a0, res)					\
res               192 include/linux/arm-smccc.h 	struct arm_smccc_res   *___res = res;				\
res               198 include/linux/arm-smccc.h #define __declare_arg_1(a0, a1, res)					\
res               200 include/linux/arm-smccc.h 	struct arm_smccc_res   *___res = res;				\
res               206 include/linux/arm-smccc.h #define __declare_arg_2(a0, a1, a2, res)				\
res               209 include/linux/arm-smccc.h 	struct arm_smccc_res   *___res = res;				\
res               215 include/linux/arm-smccc.h #define __declare_arg_3(a0, a1, a2, a3, res)				\
res               219 include/linux/arm-smccc.h 	struct arm_smccc_res   *___res = res;				\
res               225 include/linux/arm-smccc.h #define __declare_arg_4(a0, a1, a2, a3, a4, res)			\
res               227 include/linux/arm-smccc.h 	__declare_arg_3(a0, a1, a2, a3, res);				\
res               230 include/linux/arm-smccc.h #define __declare_arg_5(a0, a1, a2, a3, a4, a5, res)			\
res               232 include/linux/arm-smccc.h 	__declare_arg_4(a0, a1, a2, a3, a4, res);			\
res               235 include/linux/arm-smccc.h #define __declare_arg_6(a0, a1, a2, a3, a4, a5, a6, res)		\
res               237 include/linux/arm-smccc.h 	__declare_arg_5(a0, a1, a2, a3, a4, a5, res);			\
res               240 include/linux/arm-smccc.h #define __declare_arg_7(a0, a1, a2, a3, a4, a5, a6, a7, res)		\
res               242 include/linux/arm-smccc.h 	__declare_arg_6(a0, a1, a2, a3, a4, a5, a6, res);		\
res               279 include/linux/audit.h 					 const char *old_names, int res);
res               574 include/linux/audit.h 						const char *old_names, int res)
res               185 include/linux/compiler.h 	case 1: *(__u8 *)res = *(volatile __u8 *)p; break;		\
res               186 include/linux/compiler.h 	case 2: *(__u16 *)res = *(volatile __u16 *)p; break;		\
res               187 include/linux/compiler.h 	case 4: *(__u32 *)res = *(volatile __u32 *)p; break;		\
res               188 include/linux/compiler.h 	case 8: *(__u64 *)res = *(volatile __u64 *)p; break;		\
res               191 include/linux/compiler.h 		__builtin_memcpy((void *)res, (const void *)p, size);	\
res               197 include/linux/compiler.h void __read_once_size(const volatile void *p, void *res, int size)
res               215 include/linux/compiler.h void __read_once_size_nocheck(const volatile void *p, void *res, int size)
res               220 include/linux/compiler.h static __always_inline void __write_once_size(volatile void *p, void *res, int size)
res               223 include/linux/compiler.h 	case 1: *(volatile __u8 *)p = *(__u8 *)res; break;
res               224 include/linux/compiler.h 	case 2: *(volatile __u16 *)p = *(__u16 *)res; break;
res               225 include/linux/compiler.h 	case 4: *(volatile __u32 *)p = *(__u32 *)res; break;
res               226 include/linux/compiler.h 	case 8: *(volatile __u64 *)p = *(__u64 *)res; break;
res               229 include/linux/compiler.h 		__builtin_memcpy((void *)p, (const void *)res, size);
res               867 include/linux/device.h typedef void (*dr_release_t)(struct device *dev, void *res);
res               868 include/linux/device.h typedef int (*dr_match_t)(struct device *dev, void *res, void *match_data);
res               890 include/linux/device.h extern void devres_free(void *res);
res               891 include/linux/device.h extern void devres_add(struct device *dev, void *res);
res               948 include/linux/device.h 				    const struct resource *res);
res                40 include/linux/eisa.h 	struct resource       res[EISA_MAX_RESOURCES];
res                95 include/linux/eisa.h 	struct resource *res;
res               473 include/linux/etherdevice.h 	bool res = false;
res               477 include/linux/etherdevice.h 		res = ether_addr_equal_64bits(addr, ha->addr);
res               478 include/linux/etherdevice.h 		if (res)
res               482 include/linux/etherdevice.h 	return res;
res               124 include/linux/fdtable.h extern int __close_fd_get_file(unsigned int fd, struct file **res);
res               655 include/linux/filter.h 	u32 res;
res               662 include/linux/filter.h 	res = BPF_PROG_RUN(prog, skb);
res               667 include/linux/filter.h 	return res;
res               673 include/linux/filter.h 	u32 res;
res               676 include/linux/filter.h 	res = __bpf_prog_run_save_cb(prog, skb);
res               678 include/linux/filter.h 	return res;
res               685 include/linux/filter.h 	u32 res;
res               691 include/linux/filter.h 	res = BPF_PROG_RUN(prog, skb);
res               693 include/linux/filter.h 	return res;
res              3392 include/linux/fs.h 	int res = 0;
res              3394 include/linux/fs.h 		res |= IOCB_APPEND;
res              3396 include/linux/fs.h 		res |= IOCB_DIRECT;
res              3398 include/linux/fs.h 		res |= IOCB_DSYNC;
res              3400 include/linux/fs.h 		res |= IOCB_SYNC;
res              3401 include/linux/fs.h 	return res;
res              3427 include/linux/fs.h 	ino_t res;
res              3434 include/linux/fs.h 	res = dentry->d_parent->d_inode->i_ino;
res              3436 include/linux/fs.h 	return res;
res               314 include/linux/genhd.h 	typeof((part)->dkstats->field) res = 0;				\
res               317 include/linux/genhd.h 		res += per_cpu_ptr((part)->dkstats, _cpu)->field;	\
res               318 include/linux/genhd.h 	res;								\
res               691 include/linux/iio/iio.h int devm_iio_device_match(struct device *dev, void *res, void *data);
res               490 include/linux/input.h INPUT_GENERATE_ABS_ACCESSORS(res, resolution)
res               373 include/linux/intel-iommu.h #define QI_PGRP_RESP_CODE(res)	(((u64)(res)) << 12)
res                76 include/linux/io.h void devm_ioremap_release(struct device *dev, void *res);
res                82 include/linux/io.h void *__devm_memremap_pages(struct device *dev, struct resource *res);
res               202 include/linux/ioport.h int adjust_resource(struct resource *res, resource_size_t start,
res               204 include/linux/ioport.h resource_size_t resource_alignment(struct resource *res);
res               205 include/linux/ioport.h static inline resource_size_t resource_size(const struct resource *res)
res               207 include/linux/ioport.h 	return res->end - res->start + 1;
res               209 include/linux/ioport.h static inline unsigned long resource_type(const struct resource *res)
res               211 include/linux/ioport.h 	return res->flags & IORESOURCE_TYPE_BITS;
res               213 include/linux/ioport.h static inline unsigned long resource_ext_type(const struct resource *res)
res               215 include/linux/ioport.h 	return res->flags & IORESOURCE_EXT_TYPE_BITS;
res               339 include/linux/kernel.h int __must_check _kstrtoul(const char *s, unsigned int base, unsigned long *res);
res               340 include/linux/kernel.h int __must_check _kstrtol(const char *s, unsigned int base, long *res);
res               342 include/linux/kernel.h int __must_check kstrtoull(const char *s, unsigned int base, unsigned long long *res);
res               343 include/linux/kernel.h int __must_check kstrtoll(const char *s, unsigned int base, long long *res);
res               361 include/linux/kernel.h static inline int __must_check kstrtoul(const char *s, unsigned int base, unsigned long *res)
res               369 include/linux/kernel.h 		return kstrtoull(s, base, (unsigned long long *)res);
res               371 include/linux/kernel.h 		return _kstrtoul(s, base, res);
res               390 include/linux/kernel.h static inline int __must_check kstrtol(const char *s, unsigned int base, long *res)
res               398 include/linux/kernel.h 		return kstrtoll(s, base, (long long *)res);
res               400 include/linux/kernel.h 		return _kstrtol(s, base, res);
res               403 include/linux/kernel.h int __must_check kstrtouint(const char *s, unsigned int base, unsigned int *res);
res               404 include/linux/kernel.h int __must_check kstrtoint(const char *s, unsigned int base, int *res);
res               406 include/linux/kernel.h static inline int __must_check kstrtou64(const char *s, unsigned int base, u64 *res)
res               408 include/linux/kernel.h 	return kstrtoull(s, base, res);
res               411 include/linux/kernel.h static inline int __must_check kstrtos64(const char *s, unsigned int base, s64 *res)
res               413 include/linux/kernel.h 	return kstrtoll(s, base, res);
res               416 include/linux/kernel.h static inline int __must_check kstrtou32(const char *s, unsigned int base, u32 *res)
res               418 include/linux/kernel.h 	return kstrtouint(s, base, res);
res               421 include/linux/kernel.h static inline int __must_check kstrtos32(const char *s, unsigned int base, s32 *res)
res               423 include/linux/kernel.h 	return kstrtoint(s, base, res);
res               426 include/linux/kernel.h int __must_check kstrtou16(const char *s, unsigned int base, u16 *res);
res               427 include/linux/kernel.h int __must_check kstrtos16(const char *s, unsigned int base, s16 *res);
res               428 include/linux/kernel.h int __must_check kstrtou8(const char *s, unsigned int base, u8 *res);
res               429 include/linux/kernel.h int __must_check kstrtos8(const char *s, unsigned int base, s8 *res);
res               430 include/linux/kernel.h int __must_check kstrtobool(const char *s, bool *res);
res               432 include/linux/kernel.h int __must_check kstrtoull_from_user(const char __user *s, size_t count, unsigned int base, unsigned long long *res);
res               433 include/linux/kernel.h int __must_check kstrtoll_from_user(const char __user *s, size_t count, unsigned int base, long long *res);
res               434 include/linux/kernel.h int __must_check kstrtoul_from_user(const char __user *s, size_t count, unsigned int base, unsigned long *res);
res               435 include/linux/kernel.h int __must_check kstrtol_from_user(const char __user *s, size_t count, unsigned int base, long *res);
res               436 include/linux/kernel.h int __must_check kstrtouint_from_user(const char __user *s, size_t count, unsigned int base, unsigned int *res);
res               437 include/linux/kernel.h int __must_check kstrtoint_from_user(const char __user *s, size_t count, unsigned int base, int *res);
res               438 include/linux/kernel.h int __must_check kstrtou16_from_user(const char __user *s, size_t count, unsigned int base, u16 *res);
res               439 include/linux/kernel.h int __must_check kstrtos16_from_user(const char __user *s, size_t count, unsigned int base, s16 *res);
res               440 include/linux/kernel.h int __must_check kstrtou8_from_user(const char __user *s, size_t count, unsigned int base, u8 *res);
res               441 include/linux/kernel.h int __must_check kstrtos8_from_user(const char __user *s, size_t count, unsigned int base, s8 *res);
res               442 include/linux/kernel.h int __must_check kstrtobool_from_user(const char __user *s, size_t count, bool *res);
res               444 include/linux/kernel.h static inline int __must_check kstrtou64_from_user(const char __user *s, size_t count, unsigned int base, u64 *res)
res               446 include/linux/kernel.h 	return kstrtoull_from_user(s, count, base, res);
res               449 include/linux/kernel.h static inline int __must_check kstrtos64_from_user(const char __user *s, size_t count, unsigned int base, s64 *res)
res               451 include/linux/kernel.h 	return kstrtoll_from_user(s, count, base, res);
res               454 include/linux/kernel.h static inline int __must_check kstrtou32_from_user(const char __user *s, size_t count, unsigned int base, u32 *res)
res               456 include/linux/kernel.h 	return kstrtouint_from_user(s, count, base, res);
res               459 include/linux/kernel.h static inline int __must_check kstrtos32_from_user(const char __user *s, size_t count, unsigned int base, s32 *res)
res               461 include/linux/kernel.h 	return kstrtoint_from_user(s, count, base, res);
res               122 include/linux/libnvdimm.h 	struct resource *res;
res                87 include/linux/mbus.h void mvebu_mbus_get_pcie_mem_aperture(struct resource *res);
res                88 include/linux/mbus.h void mvebu_mbus_get_pcie_io_aperture(struct resource *res);
res               109 include/linux/memremap.h 	struct resource res;
res               469 include/linux/mfd/abx500/ab8500-bm.h int ab8500_fg_inst_curr_finalize(struct ab8500_fg *di, int *res);
res                53 include/linux/mfd/hi655x-pmic.h 	struct resource *res;
res               498 include/linux/mlx4/qp.h 	u16 res;
res               500 include/linux/mlx4/qp.h 	res = ((q & 0xff) ^ ((q & 0xff0000) >> 16)) | (q & 0xff00);
res               501 include/linux/mlx4/qp.h 	return res;
res               393 include/linux/mlx5/driver.h 	enum mlx5_res_type	res;
res               606 include/linux/mlx5/qp.h void mlx5_core_res_put(struct mlx5_core_rsc_common *res);
res                60 include/linux/mpi.h int mpi_powm(MPI res, MPI base, MPI exp, MPI mod);
res               151 include/linux/mroute_base.h 		} res;
res               160 include/linux/mroute_base.h 	if (refcount_dec_and_test(&c->mfc_un.res.refcount))
res               166 include/linux/mroute_base.h 	refcount_inc(&c->mfc_un.res.refcount);
res                72 include/linux/nd.h 	struct resource res;
res               112 include/linux/nd.h 	struct resource **res;
res               232 include/linux/net.h 		  struct socket **res, int kern);
res               233 include/linux/net.h int sock_create(int family, int type, int proto, struct socket **res);
res               234 include/linux/net.h int sock_create_kern(struct net *net, int family, int type, int proto, struct socket **res);
res               235 include/linux/net.h int sock_create_lite(int family, int type, int proto, struct socket **res);
res                54 include/linux/netfilter_arp/arp_tables.h 			const struct nf_hook_ops *ops, struct xt_table **res);
res               112 include/linux/netfilter_bridge/ebtables.h 			      struct ebt_table **res);
res                27 include/linux/netfilter_ipv4/ip_tables.h 		       const struct nf_hook_ops *ops, struct xt_table **res);
res                29 include/linux/netfilter_ipv6/ip6_tables.h 			const struct nf_hook_ops *ops, struct xt_table **res);
res               272 include/linux/nfs_xdr.h 	struct nfs4_layoutget_res res;
res               315 include/linux/nfs_xdr.h 	struct nfs4_layoutcommit_res res;
res               336 include/linux/nfs_xdr.h 	struct nfs4_layoutreturn_res res;
res               383 include/linux/nfs_xdr.h 	struct nfs42_layoutstat_res res;
res               416 include/linux/nfs_xdr.h 	struct nfs42_layouterror_res res;
res              1534 include/linux/nfs_xdr.h 	struct nfs_pgio_res	res;		/* result struct */
res              1576 include/linux/nfs_xdr.h 	struct nfs_commitres	res;		/* result struct */
res              1597 include/linux/nfs_xdr.h 	struct nfs_removeres res;
res              1607 include/linux/nfs_xdr.h 	struct nfs_renameres	res;
res               143 include/linux/of_address.h 				    struct resource *res);
res               158 include/linux/of_address.h 					   struct resource *res)
res                49 include/linux/of_irq.h 		struct resource *res, int nr_irqs);
res                72 include/linux/of_irq.h 					   struct resource *res, int nr_irqs)
res                29 include/linux/pci-ecam.h 	struct resource			res;
res               516 include/linux/pci.h 			const struct resource *res,
res               564 include/linux/pci.h 	struct resource		*res;
res               980 include/linux/pci.h 			     struct resource *res);
res               981 include/linux/pci.h void pcibios_bus_to_resource(struct pci_bus *bus, struct resource *res,
res              1016 include/linux/pci.h 					  struct resource *res);
res              1282 include/linux/pci.h struct resource *pci_find_resource(struct pci_dev *dev, struct resource *res);
res              1294 include/linux/pci.h void pci_add_resource(struct list_head *resources, struct resource *res);
res              1295 include/linux/pci.h void pci_add_resource_offset(struct list_head *resources, struct resource *res,
res              1298 include/linux/pci.h void pci_bus_add_resource(struct pci_bus *bus, struct resource *res,
res              1308 include/linux/pci.h #define pci_bus_for_each_resource(bus, res, i)				\
res              1310 include/linux/pci.h 	    (res = pci_bus_resource_n(bus, i)) || i < PCI_BRIDGE_RESOURCE_NUM; \
res              1314 include/linux/pci.h 			struct resource *res, resource_size_t size,
res              1328 include/linux/pci.h int pci_remap_iospace(const struct resource *res, phys_addr_t phys_addr);
res              1329 include/linux/pci.h int devm_pci_remap_iospace(struct device *dev, const struct resource *res,
res              1331 include/linux/pci.h void pci_unmap_iospace(struct resource *res);
res              1336 include/linux/pci.h 					  struct resource *res);
res              1720 include/linux/pci.h 						 struct resource *res)
res                79 include/linux/platform_device.h 		const struct resource *res;
res               107 include/linux/platform_device.h 		const struct resource *res, unsigned int num,
res               114 include/linux/platform_device.h 		.res = res,
res               148 include/linux/platform_device.h 		const struct resource *res, unsigned int num)
res               151 include/linux/platform_device.h 			res, num, NULL, 0);
res               180 include/linux/platform_device.h 					 const struct resource *res,
res               282 include/linux/platform_device.h #define platform_create_bundle(driver, probe, res, n_res, data, size) \
res               283 include/linux/platform_device.h 	__platform_create_bundle(driver, probe, res, n_res, data, size, THIS_MODULE)
res               286 include/linux/platform_device.h 	struct resource *res, unsigned int n_res,
res                37 include/linux/pnp.h static inline int pnp_resource_valid(struct resource *res)
res                39 include/linux/pnp.h 	if (res)
res                44 include/linux/pnp.h static inline int pnp_resource_enabled(struct resource *res)
res                46 include/linux/pnp.h 	if (res && !(res->flags & IORESOURCE_DISABLED))
res                51 include/linux/pnp.h static inline resource_size_t pnp_resource_len(struct resource *res)
res                53 include/linux/pnp.h 	if (res->start == 0 && res->end == 0)
res                55 include/linux/pnp.h 	return resource_size(res);
res                62 include/linux/pnp.h 	struct resource *res = pnp_get_resource(dev, IORESOURCE_IO, bar);
res                64 include/linux/pnp.h 	if (pnp_resource_valid(res))
res                65 include/linux/pnp.h 		return res->start;
res                72 include/linux/pnp.h 	struct resource *res = pnp_get_resource(dev, IORESOURCE_IO, bar);
res                74 include/linux/pnp.h 	if (pnp_resource_valid(res))
res                75 include/linux/pnp.h 		return res->end;
res                82 include/linux/pnp.h 	struct resource *res = pnp_get_resource(dev, IORESOURCE_IO, bar);
res                84 include/linux/pnp.h 	if (pnp_resource_valid(res))
res                85 include/linux/pnp.h 		return res->flags;
res                97 include/linux/pnp.h 	struct resource *res = pnp_get_resource(dev, IORESOURCE_IO, bar);
res                99 include/linux/pnp.h 	if (pnp_resource_valid(res))
res               100 include/linux/pnp.h 		return pnp_resource_len(res);
res               108 include/linux/pnp.h 	struct resource *res = pnp_get_resource(dev, IORESOURCE_MEM, bar);
res               110 include/linux/pnp.h 	if (pnp_resource_valid(res))
res               111 include/linux/pnp.h 		return res->start;
res               118 include/linux/pnp.h 	struct resource *res = pnp_get_resource(dev, IORESOURCE_MEM, bar);
res               120 include/linux/pnp.h 	if (pnp_resource_valid(res))
res               121 include/linux/pnp.h 		return res->end;
res               127 include/linux/pnp.h 	struct resource *res = pnp_get_resource(dev, IORESOURCE_MEM, bar);
res               129 include/linux/pnp.h 	if (pnp_resource_valid(res))
res               130 include/linux/pnp.h 		return res->flags;
res               142 include/linux/pnp.h 	struct resource *res = pnp_get_resource(dev, IORESOURCE_MEM, bar);
res               144 include/linux/pnp.h 	if (pnp_resource_valid(res))
res               145 include/linux/pnp.h 		return pnp_resource_len(res);
res               152 include/linux/pnp.h 	struct resource *res = pnp_get_resource(dev, IORESOURCE_IRQ, bar);
res               154 include/linux/pnp.h 	if (pnp_resource_valid(res))
res               155 include/linux/pnp.h 		return res->start;
res               161 include/linux/pnp.h 	struct resource *res = pnp_get_resource(dev, IORESOURCE_IRQ, bar);
res               163 include/linux/pnp.h 	if (pnp_resource_valid(res))
res               164 include/linux/pnp.h 		return res->flags;
res               176 include/linux/pnp.h 	struct resource *res = pnp_get_resource(dev, IORESOURCE_DMA, bar);
res               178 include/linux/pnp.h 	if (pnp_resource_valid(res))
res               179 include/linux/pnp.h 		return res->start;
res               185 include/linux/pnp.h 	struct resource *res = pnp_get_resource(dev, IORESOURCE_DMA, bar);
res               187 include/linux/pnp.h 	if (pnp_resource_valid(res))
res               188 include/linux/pnp.h 		return res->flags;
res                25 include/linux/psi.h int psi_show(struct seq_file *s, struct psi_group *group, enum psi_res res);
res                33 include/linux/psi.h 			char *buf, size_t nbytes, enum psi_res res);
res                15 include/linux/resource_ext.h 	struct resource res;		/* In master (CPU) address space */
res                25 include/linux/resource_ext.h 	struct resource		*res;	/* In master (CPU) address space */
res                31 include/linux/resource_ext.h resource_list_create_entry(struct resource *res, size_t extra_size);
res               220 include/linux/rio.h 	struct resource *res;
res               233 include/linux/rio.h 	struct resource *res;
res               256 include/linux/rio_drv.h static inline void rio_init_mbox_res(struct resource *res, int start, int end)
res               258 include/linux/rio_drv.h 	memset(res, 0, sizeof(struct resource));
res               259 include/linux/rio_drv.h 	res->start = start;
res               260 include/linux/rio_drv.h 	res->end = end;
res               261 include/linux/rio_drv.h 	res->flags = RIO_RESOURCE_MAILBOX;
res               274 include/linux/rio_drv.h static inline void rio_init_dbell_res(struct resource *res, u16 start, u16 end)
res               276 include/linux/rio_drv.h 	memset(res, 0, sizeof(struct resource));
res               277 include/linux/rio_drv.h 	res->start = start;
res               278 include/linux/rio_drv.h 	res->end = end;
res               279 include/linux/rio_drv.h 	res->flags = RIO_RESOURCE_DOORBELL;
res               489 include/linux/sched/signal.h 	sigset_t *res = &current->blocked;
res               491 include/linux/sched/signal.h 		res = &current->saved_sigmask;
res               492 include/linux/sched/signal.h 	return res;
res              4359 include/linux/skbuff.h static inline void gso_reset_checksum(struct sk_buff *skb, __wsum res)
res              4365 include/linux/skbuff.h 	SKB_GSO_CB(skb)->csum = res;
res              4377 include/linux/skbuff.h static inline __sum16 gso_make_checksum(struct sk_buff *skb, __wsum res)
res              4383 include/linux/skbuff.h 	SKB_GSO_CB(skb)->csum = res;
res                20 include/linux/soc/ti/ti_sci_inta_msi.h 				      struct ti_sci_resource *res);
res               553 include/linux/soc/ti/ti_sci_protocol.h u16 ti_sci_get_free_resource(struct ti_sci_resource *res);
res               554 include/linux/soc/ti/ti_sci_protocol.h void ti_sci_release_resource(struct ti_sci_resource *res, u16 id);
res               555 include/linux/soc/ti/ti_sci_protocol.h u32 ti_sci_get_num_resources(struct ti_sci_resource *res);
res               592 include/linux/soc/ti/ti_sci_protocol.h static inline u16 ti_sci_get_free_resource(struct ti_sci_resource *res)
res               597 include/linux/soc/ti/ti_sci_protocol.h static inline void ti_sci_release_resource(struct ti_sci_resource *res, u16 id)
res               601 include/linux/soc/ti/ti_sci_protocol.h static inline u32 ti_sci_get_num_resources(struct ti_sci_resource *res)
res                36 include/linux/soundwire/sdw_intel.h void *sdw_intel_init(acpi_handle *parent_handle, struct sdw_intel_res *res);
res               679 include/linux/spi/spi.h 				  void *res);
res               699 include/linux/spi/spi.h extern void spi_res_add(struct spi_message *message, void *res);
res               700 include/linux/spi/spi.h extern void spi_res_free(void *res);
res              1044 include/linux/spi/spi.h 				       struct spi_replaced_transfers *res);
res               192 include/linux/string.h extern int kstrtobool(const char *s, bool *res);
res               193 include/linux/string.h static inline int strtobool(const char *s, bool *res)
res               195 include/linux/string.h 	return kstrtobool(s, res);
res               109 include/linux/uaccess.h 	unsigned long res = n;
res               113 include/linux/uaccess.h 		res = raw_copy_from_user(to, from, n);
res               115 include/linux/uaccess.h 	if (unlikely(res))
res               116 include/linux/uaccess.h 		memset(to + (n - res), 0, res);
res               117 include/linux/uaccess.h 	return res;
res                97 include/linux/usb/chipidea.h 			struct resource *res, int nres,
res               176 include/net/act_api.h 		    int nr_actions, struct tcf_result *res);
res               103 include/net/caif/cfctrl.h 	struct cfctrl_rsp res;
res                59 include/net/checksum.h 	u32 res = (__force u32)csum;
res                60 include/net/checksum.h 	res += (__force u32)addend;
res                61 include/net/checksum.h 	return (__force __wsum)(res + (res < (__force u32)addend));
res                72 include/net/checksum.h 	u16 res = (__force u16)csum;
res                74 include/net/checksum.h 	res += (__force u16)addend;
res                75 include/net/checksum.h 	return (__force __sum16)(res + (res < (__force u16)addend));
res               178 include/net/dn_dev.h 	int res = 0;
res               191 include/net/dn_dev.h 			res = 1;
res               196 include/net/dn_dev.h 	return res;
res                47 include/net/dn_fib.h #define DN_FIB_RES_RESET(res)	((res).nh_sel = 0)
res                48 include/net/dn_fib.h #define DN_FIB_RES_NH(res)	((res).fi->fib_nh[(res).nh_sel])
res                50 include/net/dn_fib.h #define DN_FIB_RES_PREFSRC(res)	((res).fi->fib_prefsrc ? : __dn_fib_res_prefsrc(&res))
res                51 include/net/dn_fib.h #define DN_FIB_RES_GW(res)	(DN_FIB_RES_NH(res).nh_gw)
res                52 include/net/dn_fib.h #define DN_FIB_RES_DEV(res)	(DN_FIB_RES_NH(res).nh_dev)
res                53 include/net/dn_fib.h #define DN_FIB_RES_OIF(res)	(DN_FIB_RES_NH(res).nh_oif)
res                89 include/net/dn_fib.h 			struct dn_fib_res *res);
res               108 include/net/dn_fib.h 			  const struct flowidn *fld, struct dn_fib_res *res);
res               111 include/net/dn_fib.h void dn_fib_select_multipath(const struct flowidn *fld, struct dn_fib_res *res);
res               127 include/net/dn_fib.h int dn_fib_lookup(struct flowidn *fld, struct dn_fib_res *res);
res               139 include/net/dn_fib.h static inline void dn_fib_res_put(struct dn_fib_res *res)
res               141 include/net/dn_fib.h 	if (res->fi)
res               142 include/net/dn_fib.h 		dn_fib_info_put(res->fi);
res               143 include/net/dn_fib.h 	if (res->r)
res               144 include/net/dn_fib.h 		fib_rule_put(res->r);
res               152 include/net/dn_fib.h #define dn_fib_lookup(fl, res) (-ESRCH)
res               154 include/net/dn_fib.h #define dn_fib_select_multipath(fl, res) do { } while(0)
res               155 include/net/dn_fib.h #define dn_fib_rules_policy(saddr,res,flags) (0)
res               156 include/net/dn_fib.h #define dn_fib_res_put(res) do { } while(0)
res               402 include/net/ip6_fib.h 		struct fib6_result *res, int flags);
res               406 include/net/ip6_fib.h 		      int oif, struct flowi6 *fl6, struct fib6_result *res,
res               409 include/net/ip6_fib.h void fib6_select_path(const struct net *net, struct fib6_result *res,
res               331 include/net/ip6_route.h u32 ip6_mtu_from_fib6(const struct fib6_result *res,
res               201 include/net/ip_fib.h __be32 fib_result_prefsrc(struct net *net, struct fib_result *res);
res               203 include/net/ip_fib.h #define FIB_RES_NHC(res)		((res).nhc)
res               204 include/net/ip_fib.h #define FIB_RES_DEV(res)	(FIB_RES_NHC(res)->nhc_dev)
res               205 include/net/ip_fib.h #define FIB_RES_OIF(res)	(FIB_RES_NHC(res)->nhc_oif)
res               256 include/net/ip_fib.h 		     struct fib_result *res, int fib_flags);
res               293 include/net/ip_fib.h 			     struct fib_result *res, unsigned int flags)
res               302 include/net/ip_fib.h 		err = fib_table_lookup(tb, flp, res, flags | FIB_LOOKUP_NOREF);
res               342 include/net/ip_fib.h 		 struct fib_result *res, unsigned int flags);
res               345 include/net/ip_fib.h 			     struct fib_result *res, unsigned int flags)
res               352 include/net/ip_fib.h 		return __fib_lookup(net, flp, res, flags);
res               356 include/net/ip_fib.h 	res->tclassid = 0;
res               360 include/net/ip_fib.h 		err = fib_table_lookup(tb, flp, res, flags);
res               367 include/net/ip_fib.h 		err = fib_table_lookup(tb, flp, res, flags);
res               449 include/net/ip_fib.h void fib_select_multipath(struct fib_result *res, int hash);
res               450 include/net/ip_fib.h void fib_select_path(struct net *net, struct fib_result *res,
res               466 include/net/ip_fib.h static inline void fib_combine_itag(u32 *itag, const struct fib_result *res)
res               469 include/net/ip_fib.h 	struct fib_nh_common *nhc = res->nhc;
res               483 include/net/ip_fib.h 	rtag = res->tclassid;
res               518 include/net/ip_fib.h u32 ip_mtu_from_fib_result(struct fib_result *res, __be32 daddr);
res                35 include/net/ipv6_stubs.h 			   struct fib6_result *res, int flags);
res                38 include/net/ipv6_stubs.h 				 struct fib6_result *res, int flags);
res                39 include/net/ipv6_stubs.h 	void (*fib6_select_path)(const struct net *net, struct fib6_result *res,
res                42 include/net/ipv6_stubs.h 	u32 (*ip6_mtu_from_fib6)(const struct fib6_result *res,
res               516 include/net/iw_handler.h 	char *res = iwe_stream_add_event(info, stream, ends, iwe, event_len);
res               518 include/net/iw_handler.h 	if (res == stream)
res               520 include/net/iw_handler.h 	return res;
res               535 include/net/iw_handler.h 	char *res = iwe_stream_add_point(info, stream, ends, iwe, extra);
res               537 include/net/iw_handler.h 	if (res == stream)
res               539 include/net/iw_handler.h 	return res;
res               202 include/net/nexthop.h static inline void nexthop_path_fib_result(struct fib_result *res, int hash)
res               207 include/net/nexthop.h 	nh = nexthop_select_path(res->fi->nh, hash);
res               209 include/net/nexthop.h 	res->nhc = &nhi->fib_nhc;
res               322 include/net/nexthop.h static inline void nexthop_path_fib6_result(struct fib6_result *res, int hash)
res               324 include/net/nexthop.h 	struct nexthop *nh = res->f6i->nh;
res               331 include/net/nexthop.h 		res->fib6_type = RTN_BLACKHOLE;
res               332 include/net/nexthop.h 		res->fib6_flags |= RTF_REJECT;
res               333 include/net/nexthop.h 		res->nh = nexthop_fib6_nh(nh);
res               335 include/net/nexthop.h 		res->nh = &nhi->fib6_nh;
res                45 include/net/phonet/phonet.h struct sock *pn_find_sock_by_res(struct net *net, u8 res);
res                46 include/net/phonet/phonet.h int pn_sock_bind_res(struct sock *sock, u8 res);
res                47 include/net/phonet/phonet.h int pn_sock_unbind_res(struct sock *sk, u8 res);
res                74 include/net/pkt_cls.h 		 struct tcf_result *res, bool compat_mode);
res               132 include/net/pkt_cls.h 			       struct tcf_result *res, bool compat_mode)
res               297 include/net/pkt_cls.h 	      struct tcf_result *res)
res               300 include/net/pkt_cls.h 	return tcf_action_exec(skb, exts->actions, exts->nr_actions, res);
res               536 include/net/pkt_cls.h 	struct tcf_result *res;
res               120 include/net/route.h 					    struct fib_result *res,
res               186 include/net/route.h 		       struct fib_result *res);
res              1237 include/net/sch_generic.h static inline void psched_ratecfg_getrate(struct tc_ratespec *res,
res              1240 include/net/sch_generic.h 	memset(res, 0, sizeof(*res));
res              1246 include/net/sch_generic.h 	res->rate = min_t(u64, r->rate_bytes_ps, ~0U);
res              1248 include/net/sch_generic.h 	res->overhead = r->overhead;
res              1249 include/net/sch_generic.h 	res->linklayer = (r->linklayer & TC_LINKLAYER_MASK);
res              1284 include/net/sch_generic.h static inline void skb_tc_reinsert(struct sk_buff *skb, struct tcf_result *res)
res              1286 include/net/sch_generic.h 	struct gnet_stats_queue *stats = res->qstats;
res              1289 include/net/sch_generic.h 	if (res->ingress)
res              1294 include/net/sch_generic.h 		qstats_overlimit_inc(res->qstats);
res               211 include/pcmcia/ds.h int pcmcia_request_window(struct pcmcia_device *p_dev, struct resource *res,
res               213 include/pcmcia/ds.h int pcmcia_release_window(struct pcmcia_device *p_dev, struct resource *res);
res               214 include/pcmcia/ds.h int pcmcia_map_mem_page(struct pcmcia_device *p_dev, struct resource *res,
res                97 include/pcmcia/ss.h 	struct resource	*res;
res               102 include/pcmcia/ss.h 	struct resource		*res;
res              1473 include/rdma/ib_verbs.h 	struct rdma_restrack_entry res;
res              1513 include/rdma/ib_verbs.h 	struct rdma_restrack_entry res;
res              1561 include/rdma/ib_verbs.h 	struct rdma_restrack_entry res;
res              1746 include/rdma/ib_verbs.h 	struct rdma_restrack_entry     res;
res              1780 include/rdma/ib_verbs.h 	struct rdma_restrack_entry res;
res              2643 include/rdma/ib_verbs.h 	struct rdma_restrack_root *res;
res              2674 include/rdma/ib_verbs.h 			   struct ib_client_nl_info *res);
res              2675 include/rdma/ib_verbs.h 	int (*get_global_nl_info)(struct ib_client_nl_info *res);
res               293 include/rdma/opa_port_info.h 		u8     res;                       /* was inittype */
res               430 include/rdma/rdma_cm.h struct rdma_cm_id *rdma_res_to_id(struct rdma_restrack_entry *res);
res                36 include/rdma/rdma_counter.h 	struct rdma_restrack_entry	res;
res               110 include/rdma/restrack.h void rdma_restrack_kadd(struct rdma_restrack_entry *res);
res               111 include/rdma/restrack.h void rdma_restrack_uadd(struct rdma_restrack_entry *res);
res               118 include/rdma/restrack.h void rdma_restrack_del(struct rdma_restrack_entry *res);
res               124 include/rdma/restrack.h static inline bool rdma_is_kernel_res(struct rdma_restrack_entry *res)
res               126 include/rdma/restrack.h 	return !res->user;
res               133 include/rdma/restrack.h int __must_check rdma_restrack_get(struct rdma_restrack_entry *res);
res               139 include/rdma/restrack.h int rdma_restrack_put(struct rdma_restrack_entry *res);
res               146 include/rdma/restrack.h void rdma_restrack_set_task(struct rdma_restrack_entry *res,
res               290 include/soc/fsl/qe/immap_qe.h 		u8	res[0x200];	/* UCC blocks are 512 bytes each */
res               278 include/sound/core.h void release_and_free_resource(struct resource *res);
res               110 include/sound/hda_codec.h 	void (*unsol_event)(struct hda_codec *codec, unsigned int res);
res               367 include/sound/hda_codec.h snd_hda_queue_unsol_event(struct hda_bus *bus, u32 res, u32 res_ex)
res               369 include/sound/hda_codec.h 	snd_hdac_bus_queue_event(&bus->core, res, res_ex);
res                21 include/sound/hda_hwdep.h 	u32 res;	/* response */
res                75 include/sound/hdaudio.h 			 unsigned int flags, unsigned int *res);
res               128 include/sound/hdaudio.h 		  unsigned int verb, unsigned int parm, unsigned int *res);
res               130 include/sound/hdaudio.h 			unsigned int *res);
res               243 include/sound/hdaudio.h 			    unsigned int *res);
res               267 include/sound/hdaudio.h 	u32 res[HDA_MAX_CODECS];	/* last read value */
res               371 include/sound/hdaudio.h 			   unsigned int cmd, unsigned int *res);
res               373 include/sound/hdaudio.h 				    unsigned int cmd, unsigned int *res);
res               374 include/sound/hdaudio.h void snd_hdac_bus_queue_event(struct hdac_bus *bus, u32 res, u32 res_ex);
res               388 include/sound/hdaudio.h 			      unsigned int *res);
res                63 include/sound/mpu401.h 	struct resource *res;		/* port resource */
res                15 include/trace/events/fib6.h 	TP_PROTO(const struct net *net, const struct fib6_result *res,
res                18 include/trace/events/fib6.h 	TP_ARGS(net, res, table, flp),
res                42 include/trace/events/fib6.h 		__entry->err = ip6_rt_type_to_error(res->fib6_type);
res                65 include/trace/events/fib6.h 		if (res->nh && res->nh->fib_nh_dev) {
res                66 include/trace/events/fib6.h 			__assign_str(name, res->nh->fib_nh_dev);
res                70 include/trace/events/fib6.h 		if (res->f6i == net->ipv6.fib6_null_entry) {
res                76 include/trace/events/fib6.h 		} else if (res->nh) {
res                78 include/trace/events/fib6.h 			*in6 = res->nh->fib_nh_gw6;
res               137 include/trace/events/smbus.h 		 const union i2c_smbus_data *data, int res),
res               138 include/trace/events/smbus.h 	TP_ARGS(adap, addr, flags, read_write, command, protocol, data, res),
res               139 include/trace/events/smbus.h 	TP_CONDITION(res >= 0 && read_write == I2C_SMBUS_READ),
res               203 include/trace/events/smbus.h 		     int res),
res               204 include/trace/events/smbus.h 	    TP_ARGS(adap, addr, flags, read_write, command, protocol, res),
res               211 include/trace/events/smbus.h 		    __field(__s16,	res			)
res               221 include/trace/events/smbus.h 		    __entry->res = res;
res               239 include/trace/events/smbus.h 		      __entry->res
res               114 include/trace/events/xen.h 	    TP_PROTO(unsigned long op, size_t args, enum xen_mc_extend_args res),
res               115 include/trace/events/xen.h 	    TP_ARGS(op, args, res),
res               119 include/trace/events/xen.h 		    __field(enum xen_mc_extend_args, res)
res               123 include/trace/events/xen.h 			   __entry->res = res),
res               127 include/trace/events/xen.h 		      __entry->res == XEN_MC_XE_OK ? "OK" :
res               128 include/trace/events/xen.h 		      __entry->res == XEN_MC_XE_BAD_OP ? "BAD_OP" :
res               129 include/trace/events/xen.h 		      __entry->res == XEN_MC_XE_NO_SPACE ? "NO_SPACE" : "???")
res                63 include/uapi/linux/aio_abi.h 	__s64		res;		/* result code for this event */
res                77 include/uapi/linux/io_uring.h 	__s32	res;		/* result code for this event */
res                47 include/uapi/linux/virtio_input.h 	__u32 res;
res               226 include/uapi/rdma/ib_user_mad.h 	__u16   res;
res                38 include/xen/xen-ops.h void xen_get_runstate_snapshot(struct vcpu_runstate_info *res);
res               110 init/do_mounts.c 	dev_t res = 0;
res               146 init/do_mounts.c 	res = dev->devt;
res               152 init/do_mounts.c 	res = 0;
res               156 init/do_mounts.c 		res = part_devt(part);
res               170 init/do_mounts.c 	return res;
res               226 init/do_mounts.c 	dev_t res = 0;
res               232 init/do_mounts.c 		res = devt_from_partuuid(name);
res               233 init/do_mounts.c 		if (!res)
res               244 init/do_mounts.c 		res = dev->devt;
res               256 init/do_mounts.c 			res = MKDEV(maj, min);
res               257 init/do_mounts.c 			if (maj != MAJOR(res) || min != MINOR(res))
res               260 init/do_mounts.c 			res = new_decode_dev(simple_strtoul(name, &p, 16));
res               268 init/do_mounts.c 	res = Root_NFS;
res               271 init/do_mounts.c 	res = Root_RAM0;
res               281 init/do_mounts.c 	res = blk_lookup_devt(s, 0);
res               282 init/do_mounts.c 	if (res)
res               297 init/do_mounts.c 	res = blk_lookup_devt(s, part);
res               298 init/do_mounts.c 	if (res)
res               305 init/do_mounts.c 	res = blk_lookup_devt(s, part);
res               306 init/do_mounts.c 	if (res)
res               312 init/do_mounts.c 	return res;
res               178 init/do_mounts_rd.c 	int res = 0;
res               274 init/do_mounts_rd.c 	res = 1;
res               282 init/do_mounts_rd.c 	return res;
res               479 init/initramfs.c 			int res = decompress(buf, len, NULL, flush_buffer, NULL,
res               481 init/initramfs.c 			if (res)
res              1206 ipc/mqueue.c   		int res = prepare_timeout(u_abs_timeout, &ts);
res              1207 ipc/mqueue.c   		if (res)
res              1208 ipc/mqueue.c   			return res;
res              1220 ipc/mqueue.c   		int res = prepare_timeout(u_abs_timeout, &ts);
res              1221 ipc/mqueue.c   		if (res)
res              1222 ipc/mqueue.c   			return res;
res              1549 ipc/mqueue.c   		int res = compat_prepare_timeout(u_abs_timeout, &ts);
res              1550 ipc/mqueue.c   		if (res)
res              1551 ipc/mqueue.c   			return res;
res              1564 ipc/mqueue.c   		int res = compat_prepare_timeout(u_abs_timeout, &ts);
res              1565 ipc/mqueue.c   		if (res)
res              1566 ipc/mqueue.c   			return res;
res               234 ipc/msg.c      static void expunge_all(struct msg_queue *msq, int res,
res               241 ipc/msg.c      		WRITE_ONCE(msr->r_msg, ERR_PTR(res));
res              1203 ipc/sem.c      	time64_t res;
res              1205 ipc/sem.c      	res = sma->sems[0].sem_otime;
res              1209 ipc/sem.c      		if (to > res)
res              1210 ipc/sem.c      			res = to;
res              1212 ipc/sem.c      	return res;
res               146 kernel/acct.c  	struct bsd_acct_struct *res;
res               150 kernel/acct.c  	res = to_acct(READ_ONCE(ns->bacct));
res               151 kernel/acct.c  	if (!res) {
res               155 kernel/acct.c  	if (!atomic_long_inc_not_zero(&res->count)) {
res               161 kernel/acct.c  	mutex_lock(&res->lock);
res               162 kernel/acct.c  	if (res != to_acct(READ_ONCE(ns->bacct))) {
res               163 kernel/acct.c  		mutex_unlock(&res->lock);
res               164 kernel/acct.c  		acct_put(res);
res               167 kernel/acct.c  	return res;
res              1086 kernel/audit.c 				     u32 old_lock, u32 new_lock, int res)
res              1099 kernel/audit.c 			 !!old_lock, !!new_lock, res);
res              1098 kernel/auditfilter.c static void audit_log_rule_change(char *action, struct audit_krule *rule, int res)
res              1112 kernel/auditfilter.c 	audit_log_format(ab, " list=%d res=%d", rule->listnr, res);
res              1440 kernel/auditfilter.c 			int res = update_lsm_rule(r);
res              1442 kernel/auditfilter.c 				err = res;
res              1402 kernel/auditsc.c 	int res;
res              1424 kernel/auditsc.c 		res = get_cmdline(current, buf, MAX_PROCTITLE_AUDIT_LEN);
res              1425 kernel/auditsc.c 		if (res == 0) {
res              1429 kernel/auditsc.c 		res = audit_proctitle_rtrim(buf, res);
res              1430 kernel/auditsc.c 		if (res == 0) {
res              1435 kernel/auditsc.c 		context->proctitle.len = res;
res              2622 kernel/auditsc.c 				  int res)
res              2636 kernel/auditsc.c 			 names, old_names, res);
res              2016 kernel/bpf/core.c 	u32 res;
res              2019 kernel/bpf/core.c 	res = prandom_u32_state(state);
res              2022 kernel/bpf/core.c 	return res;
res               365 kernel/bpf/helpers.c 			  unsigned long long *res, bool *is_negative)
res               374 kernel/bpf/helpers.c 	if (!buf || !buf_len || !res || !is_negative)
res               401 kernel/bpf/helpers.c 	val_len = _parse_integer(cur_buf, base, res);
res               416 kernel/bpf/helpers.c 			 long long *res)
res               428 kernel/bpf/helpers.c 		*res = -_res;
res               432 kernel/bpf/helpers.c 		*res = _res;
res               438 kernel/bpf/helpers.c 	   long *, res)
res               448 kernel/bpf/helpers.c 	*res = _res;
res               463 kernel/bpf/helpers.c 	   unsigned long *, res)
res               476 kernel/bpf/helpers.c 	*res = _res;
res               305 kernel/bpf/offload.c 	void *res;
res               308 kernel/bpf/offload.c 	res = ns_get_path_cb(&ns_path, bpf_prog_offload_info_fill_ns, &args);
res               309 kernel/bpf/offload.c 	if (IS_ERR(res)) {
res               312 kernel/bpf/offload.c 		return PTR_ERR(res);
res               529 kernel/bpf/offload.c 	void *res;
res               531 kernel/bpf/offload.c 	res = ns_get_path_cb(&ns_path, bpf_map_offload_info_fill_ns, &args);
res               532 kernel/bpf/offload.c 	if (IS_ERR(res)) {
res               535 kernel/bpf/offload.c 		return PTR_ERR(res);
res              4180 kernel/bpf/verifier.c 	s64 res = (s64)((u64)a + (u64)b);
res              4183 kernel/bpf/verifier.c 		return res > a;
res              4184 kernel/bpf/verifier.c 	return res < a;
res              4190 kernel/bpf/verifier.c 	s64 res = (s64)((u64)a - (u64)b);
res              4193 kernel/bpf/verifier.c 		return res < a;
res              4194 kernel/bpf/verifier.c 	return res > a;
res              1367 kernel/cgroup/cgroup.c 	struct cgroup *res = NULL;
res              1376 kernel/cgroup/cgroup.c 		res = &root->cgrp;
res              1384 kernel/cgroup/cgroup.c 				res = c;
res              1391 kernel/cgroup/cgroup.c 	BUG_ON(!res);
res              1392 kernel/cgroup/cgroup.c 	return res;
res              1399 kernel/cgroup/cgroup.c 	struct cgroup *res = NULL;
res              1405 kernel/cgroup/cgroup.c 		res = &root->cgrp;
res              1407 kernel/cgroup/cgroup.c 		res = cset->dfl_cgrp;
res              1415 kernel/cgroup/cgroup.c 				res = c;
res              1421 kernel/cgroup/cgroup.c 	BUG_ON(!res);
res              1422 kernel/cgroup/cgroup.c 	return res;
res              3626 kernel/cgroup/cgroup.c 					  size_t nbytes, enum psi_res res)
res              3638 kernel/cgroup/cgroup.c 	new = psi_trigger_create(&cgrp->psi, buf, nbytes, res);
res              2112 kernel/cpu.c   	ssize_t cur, res = 0;
res              2122 kernel/cpu.c   			res += cur;
res              2126 kernel/cpu.c   	return res;
res               475 kernel/debug/kdb/kdb_io.c 	int res;
res               482 kernel/debug/kdb/kdb_io.c 			res = (*f)();
res               483 kernel/debug/kdb/kdb_io.c 			if (res != -1) {
res               326 kernel/debug/kdb/kdb_support.c int kdb_getarea_size(void *res, unsigned long addr, size_t size)
res               328 kernel/debug/kdb/kdb_support.c 	int ret = probe_kernel_read((char *)res, (char *)addr, size);
res               351 kernel/debug/kdb/kdb_support.c int kdb_putarea_size(unsigned long addr, void *res, size_t size)
res               353 kernel/debug/kdb/kdb_support.c 	int ret = probe_kernel_read((char *)addr, (char *)res, size);
res               377 kernel/debug/kdb/kdb_support.c static int kdb_getphys(void *res, unsigned long addr, size_t size)
res               388 kernel/debug/kdb/kdb_support.c 	memcpy(res, vaddr + (addr & (PAGE_SIZE - 1)), size);
res               563 kernel/debug/kdb/kdb_support.c 	long res = 0;
res               572 kernel/debug/kdb/kdb_support.c 			res |= TASK_UNINTERRUPTIBLE;
res               575 kernel/debug/kdb/kdb_support.c 			res |= RUNNING;
res               578 kernel/debug/kdb/kdb_support.c 			res |= TASK_INTERRUPTIBLE;
res               581 kernel/debug/kdb/kdb_support.c 			res |= TASK_STOPPED;
res               584 kernel/debug/kdb/kdb_support.c 			res |= TASK_TRACED;
res               587 kernel/debug/kdb/kdb_support.c 			res |= EXIT_ZOMBIE << 16;
res               590 kernel/debug/kdb/kdb_support.c 			res |= EXIT_DEAD << 16;
res               593 kernel/debug/kdb/kdb_support.c 			res |= UNRUNNABLE;
res               596 kernel/debug/kdb/kdb_support.c 			res |= IDLE;
res               599 kernel/debug/kdb/kdb_support.c 			res |= DAEMON;
res               602 kernel/debug/kdb/kdb_support.c 			res = ~0UL;
res               611 kernel/debug/kdb/kdb_support.c 	return res;
res                28 kernel/dma/mapping.c static void dmam_release(struct device *dev, void *res)
res                30 kernel/dma/mapping.c 	struct dma_devres *this = res;
res                36 kernel/dma/mapping.c static int dmam_match(struct device *dev, void *res, void *match_data)
res                38 kernel/dma/mapping.c 	struct dma_devres *this = res, *match = match_data;
res              2650 kernel/fork.c  	int res;
res              2657 kernel/fork.c  			res = visitor(child, data);
res              2658 kernel/fork.c  			if (res) {
res              2659 kernel/fork.c  				if (res < 0)
res              2902 kernel/futex.c 	int res, ret;
res              3026 kernel/futex.c 	res = fixup_owner(uaddr, &q, !ret);
res              3031 kernel/futex.c 	if (res)
res              3032 kernel/futex.c 		ret = (res < 0) ? res : 0;
res              3321 kernel/futex.c 	int res, ret;
res              3426 kernel/futex.c 		res = fixup_owner(uaddr2, &q, !ret);
res              3431 kernel/futex.c 		if (res)
res              3432 kernel/futex.c 			ret = (res < 0) ? res : 0;
res               129 kernel/iomem.c static void devm_memremap_release(struct device *dev, void *res)
res               131 kernel/iomem.c 	memunmap(*(void **)res);
res               134 kernel/iomem.c static int devm_memremap_match(struct device *dev, void *res, void *match_data)
res               136 kernel/iomem.c 	return *(void **)res == match_data;
res               755 kernel/irq/chip.c 	irqreturn_t res;
res               763 kernel/irq/chip.c 	res = action->handler(irq, action->dev_id);
res               764 kernel/irq/chip.c 	trace_irq_handler_exit(irq, action, res);
res               928 kernel/irq/chip.c 	irqreturn_t res;
res               941 kernel/irq/chip.c 		res = action->handler(irq, raw_cpu_ptr(action->percpu_dev_id));
res               942 kernel/irq/chip.c 		trace_irq_handler_exit(irq, action, res);
res               971 kernel/irq/chip.c 	irqreturn_t res;
res               976 kernel/irq/chip.c 	res = action->handler(irq, raw_cpu_ptr(action->percpu_dev_id));
res               977 kernel/irq/chip.c 	trace_irq_handler_exit(irq, action, res);
res                18 kernel/irq/devres.c static void devm_irq_release(struct device *dev, void *res)
res                20 kernel/irq/devres.c 	struct irq_devres *this = res;
res                25 kernel/irq/devres.c static int devm_irq_match(struct device *dev, void *res, void *data)
res                27 kernel/irq/devres.c 	struct irq_devres *this = res, *match = data;
res               154 kernel/irq/devres.c static void devm_irq_desc_release(struct device *dev, void *res)
res               156 kernel/irq/devres.c 	struct irq_desc_devres *this = res;
res               240 kernel/irq/devres.c static void devm_irq_remove_generic_chip(struct device *dev, void *res)
res               242 kernel/irq/devres.c 	struct irq_generic_chip_devres *this = res;
res               146 kernel/irq/handle.c 		irqreturn_t res;
res               149 kernel/irq/handle.c 		res = action->handler(irq, action->dev_id);
res               150 kernel/irq/handle.c 		trace_irq_handler_exit(irq, action, res);
res               156 kernel/irq/handle.c 		switch (res) {
res               178 kernel/irq/handle.c 		retval |= res;
res               128 kernel/irq/irq_sim.c static void devm_irq_sim_release(struct device *dev, void *res)
res               130 kernel/irq/irq_sim.c 	struct irq_sim_devres *this = res;
res               274 kernel/kcov.c  	int res = 0;
res               288 kernel/kcov.c  		res = -EINVAL;
res               305 kernel/kcov.c  	return res;
res               424 kernel/kcov.c  	int res;
res               428 kernel/kcov.c  	res = kcov_ioctl_locked(kcov, cmd, arg);
res               430 kernel/kcov.c  	return res;
res               532 kernel/kexec_file.c static int locate_mem_hole_callback(struct resource *res, void *arg)
res               535 kernel/kexec_file.c 	u64 start = res->start, end = res->end;
res               561 kernel/kexec_file.c 	struct resource res = { };
res               574 kernel/kexec_file.c 			res.start = mstart;
res               575 kernel/kexec_file.c 			res.end = mend - 1;
res               576 kernel/kexec_file.c 			ret = func(&res, kbuf);
res               588 kernel/kexec_file.c 			res.start = mstart;
res               589 kernel/kexec_file.c 			res.end = mend - 1;
res               590 kernel/kexec_file.c 			ret = func(&res, kbuf);
res               589 kernel/locking/lockdep_proc.c 	int res;
res               596 kernel/locking/lockdep_proc.c 	res = seq_open(file, &lockstat_ops);
res               597 kernel/locking/lockdep_proc.c 	if (!res) {
res               616 kernel/locking/lockdep_proc.c 	return res;
res               936 kernel/locking/rtmutex.c 	int chain_walk = 0, res;
res              1003 kernel/locking/rtmutex.c 	res = rt_mutex_adjust_prio_chain(owner, chwalk, lock,
res              1008 kernel/locking/rtmutex.c 	return res;
res              1206 kernel/locking/rtmutex.c static void rt_mutex_handle_deadlock(int res, int detect_deadlock,
res              1213 kernel/locking/rtmutex.c 	if (res != -EDEADLOCK || detect_deadlock)
res              1060 kernel/power/hibernate.c 	dev_t res;
res              1070 kernel/power/hibernate.c 	res = name_to_dev_t(name);
res              1072 kernel/power/hibernate.c 	if (!res)
res              1076 kernel/power/hibernate.c 	swsusp_resume_device = res;
res               158 kernel/power/snapshot.c 	void *res;
res               160 kernel/power/snapshot.c 	res = (void *)get_zeroed_page(gfp_mask);
res               162 kernel/power/snapshot.c 		while (res && swsusp_page_is_free(virt_to_page(res))) {
res               164 kernel/power/snapshot.c 			swsusp_set_page_forbidden(virt_to_page(res));
res               166 kernel/power/snapshot.c 			res = (void *)get_zeroed_page(gfp_mask);
res               168 kernel/power/snapshot.c 	if (res) {
res               169 kernel/power/snapshot.c 		swsusp_set_page_forbidden(virt_to_page(res));
res               170 kernel/power/snapshot.c 		swsusp_set_page_free(virt_to_page(res));
res               172 kernel/power/snapshot.c 	return res;
res               336 kernel/power/swap.c 	int res;
res               338 kernel/power/swap.c 	res = swap_type_of(swsusp_resume_device, swsusp_resume_block,
res               340 kernel/power/swap.c 	if (res < 0)
res               341 kernel/power/swap.c 		return res;
res               343 kernel/power/swap.c 	root_swap = res;
res               344 kernel/power/swap.c 	res = blkdev_get(hib_resume_bdev, FMODE_WRITE, NULL);
res               345 kernel/power/swap.c 	if (res)
res               346 kernel/power/swap.c 		return res;
res               348 kernel/power/swap.c 	res = set_blocksize(hib_resume_bdev, PAGE_SIZE);
res               349 kernel/power/swap.c 	if (res < 0)
res               358 kernel/power/swap.c 	return res;
res               138 kernel/power/user.c 	ssize_t res;
res               145 kernel/power/user.c 		res = -ENODATA;
res               149 kernel/power/user.c 		res = snapshot_read_next(&data->handle);
res               150 kernel/power/user.c 		if (res <= 0)
res               153 kernel/power/user.c 		res = PAGE_SIZE - pg_offp;
res               156 kernel/power/user.c 	res = simple_read_from_buffer(buf, count, &pg_offp,
res               157 kernel/power/user.c 			data_of(data->handle), res);
res               158 kernel/power/user.c 	if (res > 0)
res               159 kernel/power/user.c 		*offp += res;
res               164 kernel/power/user.c 	return res;
res               171 kernel/power/user.c 	ssize_t res;
res               179 kernel/power/user.c 		res = snapshot_write_next(&data->handle);
res               180 kernel/power/user.c 		if (res <= 0)
res               183 kernel/power/user.c 		res = PAGE_SIZE - pg_offp;
res               187 kernel/power/user.c 		res = -EINVAL;
res               191 kernel/power/user.c 	res = simple_write_to_buffer(data_of(data->handle), res, &pg_offp,
res               193 kernel/power/user.c 	if (res > 0)
res               194 kernel/power/user.c 		*offp += res;
res               198 kernel/power/user.c 	return res;
res              2845 kernel/printk/printk.c 	int res;
res              2851 kernel/printk/printk.c 	res = _braille_unregister_console(console);
res              2852 kernel/printk/printk.c 	if (res)
res              2853 kernel/printk/printk.c 		return res;
res              2855 kernel/printk/printk.c 	res = 1;
res              2859 kernel/printk/printk.c 		res = 0;
res              2865 kernel/printk/printk.c 				res = 0;
res              2871 kernel/printk/printk.c 	if (!res && (console->flags & CON_EXTENDED))
res              2884 kernel/printk/printk.c 	return res;
res               110 kernel/reboot.c static void devm_unregister_reboot_notifier(struct device *dev, void *res)
res               112 kernel/reboot.c 	WARN_ON(unregister_reboot_notifier(*(struct notifier_block **)res));
res               150 kernel/resource.c static void free_resource(struct resource *res)
res               152 kernel/resource.c 	if (!res)
res               155 kernel/resource.c 	if (!PageSlab(virt_to_head_page(res))) {
res               157 kernel/resource.c 		res->sibling = bootmem_resource_free;
res               158 kernel/resource.c 		bootmem_resource_free = res;
res               161 kernel/resource.c 		kfree(res);
res               167 kernel/resource.c 	struct resource *res = NULL;
res               171 kernel/resource.c 		res = bootmem_resource_free;
res               172 kernel/resource.c 		bootmem_resource_free = res->sibling;
res               176 kernel/resource.c 	if (res)
res               177 kernel/resource.c 		memset(res, 0, sizeof(struct resource));
res               179 kernel/resource.c 		res = kzalloc(sizeof(struct resource), flags);
res               181 kernel/resource.c 	return res;
res               343 kernel/resource.c 			       bool first_lvl, struct resource *res)
res               348 kernel/resource.c 	if (!res)
res               385 kernel/resource.c 		res->start = max(start, p->start);
res               386 kernel/resource.c 		res->end = min(end, p->end);
res               387 kernel/resource.c 		res->flags = p->flags;
res               388 kernel/resource.c 		res->desc = p->desc;
res               400 kernel/resource.c 	struct resource res;
res               404 kernel/resource.c 	       !find_next_iomem_res(start, end, flags, desc, first_lvl, &res)) {
res               405 kernel/resource.c 		ret = (*func)(&res, arg);
res               409 kernel/resource.c 		start = res.end + 1;
res               480 kernel/resource.c 	struct resource res;
res               489 kernel/resource.c 				    false, &res)) {
res               490 kernel/resource.c 		pfn = PFN_UP(res.start);
res               491 kernel/resource.c 		end_pfn = PFN_DOWN(res.end + 1);
res               496 kernel/resource.c 		start = res.end + 1;
res               539 kernel/resource.c 	struct resource res;
res               543 kernel/resource.c 	res.start = start;
res               544 kernel/resource.c 	res.end = start + size - 1;
res               552 kernel/resource.c 		if (resource_overlaps(p, &res))
res               579 kernel/resource.c static void resource_clip(struct resource *res, resource_size_t min,
res               582 kernel/resource.c 	if (res->start < min)
res               583 kernel/resource.c 		res->start = min;
res               584 kernel/resource.c 	if (res->end > max)
res               585 kernel/resource.c 		res->end = max;
res               765 kernel/resource.c 	struct resource *res;
res               768 kernel/resource.c 	for (res = root->child; res; res = res->sibling) {
res               769 kernel/resource.c 		if (res->start == start)
res               774 kernel/resource.c 	return res;
res               935 kernel/resource.c static int __adjust_resource(struct resource *res, resource_size_t start,
res               938 kernel/resource.c 	struct resource *tmp, *parent = res->parent;
res               948 kernel/resource.c 	if (res->sibling && (res->sibling->start <= end))
res               952 kernel/resource.c 	if (tmp != res) {
res               953 kernel/resource.c 		while (tmp->sibling != res)
res               960 kernel/resource.c 	for (tmp = res->child; tmp; tmp = tmp->sibling)
res               964 kernel/resource.c 	res->start = start;
res               965 kernel/resource.c 	res->end = end;
res               982 kernel/resource.c int adjust_resource(struct resource *res, resource_size_t start,
res               988 kernel/resource.c 	result = __adjust_resource(res, start, size);
res              1000 kernel/resource.c 	struct resource *res = alloc_resource(GFP_ATOMIC);
res              1004 kernel/resource.c 	if (!res)
res              1007 kernel/resource.c 	res->name = name;
res              1008 kernel/resource.c 	res->start = start;
res              1009 kernel/resource.c 	res->end = end;
res              1010 kernel/resource.c 	res->flags = type | IORESOURCE_BUSY;
res              1011 kernel/resource.c 	res->desc = IORES_DESC_NONE;
res              1015 kernel/resource.c 		conflict = __request_resource(parent, res);
res              1019 kernel/resource.c 			res = next_res;
res              1025 kernel/resource.c 		if (conflict->start <= res->start &&
res              1026 kernel/resource.c 				conflict->end >= res->end) {
res              1027 kernel/resource.c 			free_resource(res);
res              1033 kernel/resource.c 		if (conflict->start > res->start) {
res              1034 kernel/resource.c 			end = res->end;
res              1035 kernel/resource.c 			res->end = conflict->start - 1;
res              1039 kernel/resource.c 					free_resource(res);
res              1049 kernel/resource.c 			res->start = conflict->end + 1;
res              1090 kernel/resource.c resource_size_t resource_alignment(struct resource *res)
res              1092 kernel/resource.c 	switch (res->flags & (IORESOURCE_SIZEALIGN | IORESOURCE_STARTALIGN)) {
res              1094 kernel/resource.c 		return resource_size(res);
res              1096 kernel/resource.c 		return res->start;
res              1128 kernel/resource.c 	struct resource *res = alloc_resource(GFP_KERNEL);
res              1130 kernel/resource.c 	if (!res)
res              1133 kernel/resource.c 	res->name = name;
res              1134 kernel/resource.c 	res->start = start;
res              1135 kernel/resource.c 	res->end = start + n - 1;
res              1142 kernel/resource.c 		res->flags = resource_type(parent) | resource_ext_type(parent);
res              1143 kernel/resource.c 		res->flags |= IORESOURCE_BUSY | flags;
res              1144 kernel/resource.c 		res->desc = parent->desc;
res              1146 kernel/resource.c 		conflict = __request_resource(parent, res);
res              1156 kernel/resource.c 				conflict->name, conflict, res);
res              1174 kernel/resource.c 		free_resource(res);
res              1175 kernel/resource.c 		res = NULL;
res              1179 kernel/resource.c 	return res;
res              1203 kernel/resource.c 		struct resource *res = *p;
res              1205 kernel/resource.c 		if (!res)
res              1207 kernel/resource.c 		if (res->start <= start && res->end >= end) {
res              1208 kernel/resource.c 			if (!(res->flags & IORESOURCE_BUSY)) {
res              1209 kernel/resource.c 				p = &res->child;
res              1212 kernel/resource.c 			if (res->start != start || res->end != end)
res              1214 kernel/resource.c 			*p = res->sibling;
res              1216 kernel/resource.c 			if (res->flags & IORESOURCE_MUXED)
res              1218 kernel/resource.c 			free_resource(res);
res              1221 kernel/resource.c 		p = &res->sibling;
res              1257 kernel/resource.c 	struct resource *res;
res              1272 kernel/resource.c 	while ((res = *p)) {
res              1273 kernel/resource.c 		if (res->start >= end)
res              1277 kernel/resource.c 		if (res->start > start || res->end < end) {
res              1278 kernel/resource.c 			p = &res->sibling;
res              1292 kernel/resource.c 		if (!(res->flags & IORESOURCE_SYSRAM)) {
res              1297 kernel/resource.c 		if (!(res->flags & IORESOURCE_MEM))
res              1300 kernel/resource.c 		if (!(res->flags & IORESOURCE_BUSY)) {
res              1301 kernel/resource.c 			p = &res->child;
res              1306 kernel/resource.c 		if (res->start == start && res->end == end) {
res              1308 kernel/resource.c 			*p = res->sibling;
res              1309 kernel/resource.c 			free_resource(res);
res              1311 kernel/resource.c 		} else if (res->start == start && res->end != end) {
res              1313 kernel/resource.c 			ret = __adjust_resource(res, end + 1,
res              1314 kernel/resource.c 						res->end - end);
res              1315 kernel/resource.c 		} else if (res->start != start && res->end == end) {
res              1317 kernel/resource.c 			ret = __adjust_resource(res, res->start,
res              1318 kernel/resource.c 						start - res->start);
res              1325 kernel/resource.c 			new_res->name = res->name;
res              1327 kernel/resource.c 			new_res->end = res->end;
res              1328 kernel/resource.c 			new_res->flags = res->flags;
res              1329 kernel/resource.c 			new_res->desc = res->desc;
res              1330 kernel/resource.c 			new_res->parent = res->parent;
res              1331 kernel/resource.c 			new_res->sibling = res->sibling;
res              1334 kernel/resource.c 			ret = __adjust_resource(res, res->start,
res              1335 kernel/resource.c 						start - res->start);
res              1338 kernel/resource.c 			res->sibling = new_res;
res              1403 kernel/resource.c static int devm_resource_match(struct device *dev, void *res, void *data)
res              1405 kernel/resource.c 	struct resource **ptr = res;
res              1430 kernel/resource.c static void devm_region_release(struct device *dev, void *res)
res              1432 kernel/resource.c 	struct region_devres *this = res;
res              1437 kernel/resource.c static int devm_region_match(struct device *dev, void *res, void *match_data)
res              1439 kernel/resource.c 	struct region_devres *this = res, *match = match_data;
res              1450 kernel/resource.c 	struct resource *res;
res              1461 kernel/resource.c 	res = __request_region(parent, start, n, name, 0);
res              1462 kernel/resource.c 	if (res)
res              1467 kernel/resource.c 	return res;
res              1501 kernel/resource.c 			struct resource *res = reserve + x;
res              1508 kernel/resource.c 				res->flags = IORESOURCE_IO;
res              1511 kernel/resource.c 				res->flags = IORESOURCE_MEM;
res              1514 kernel/resource.c 			res->name = "reserved";
res              1515 kernel/resource.c 			res->start = io_start;
res              1516 kernel/resource.c 			res->end = io_start + io_num - 1;
res              1517 kernel/resource.c 			res->flags |= IORESOURCE_BUSY;
res              1518 kernel/resource.c 			res->desc = IORES_DESC_NONE;
res              1519 kernel/resource.c 			res->child = NULL;
res              1520 kernel/resource.c 			if (request_resource(parent, res) == 0)
res              1622 kernel/resource.c struct resource_entry *resource_list_create_entry(struct resource *res,
res              1630 kernel/resource.c 		entry->res = res ? res : &entry->__res;
res              1651 kernel/resource.c 	struct resource *res;
res              1663 kernel/resource.c 			res = devm_request_mem_region(dev, addr, size, name);
res              1665 kernel/resource.c 			res = request_mem_region(addr, size, name);
res              1666 kernel/resource.c 		if (!res)
res              1668 kernel/resource.c 		res->desc = IORES_DESC_DEVICE_PRIVATE_MEMORY;
res              1669 kernel/resource.c 		return res;
res              2794 kernel/sched/fair.c 	typeof(*ptr) res, var = READ_ONCE(*ptr);                \
res              2796 kernel/sched/fair.c 	res = var + val;                                        \
res              2798 kernel/sched/fair.c 	if (val < 0 && res > var)                               \
res              2799 kernel/sched/fair.c 		res = 0;                                        \
res              2801 kernel/sched/fair.c 	WRITE_ONCE(*ptr, res);                                  \
res              2814 kernel/sched/fair.c 	typeof(*ptr) res, var = READ_ONCE(*ptr);		\
res              2815 kernel/sched/fair.c 	res = var - val;					\
res              2816 kernel/sched/fair.c 	if (res > var)						\
res              2817 kernel/sched/fair.c 		res = 0;					\
res              2818 kernel/sched/fair.c 	WRITE_ONCE(*ptr, res);					\
res               940 kernel/sched/psi.c int psi_show(struct seq_file *m, struct psi_group *group, enum psi_res res)
res               956 kernel/sched/psi.c 	for (full = 0; full < 2 - (res == PSI_CPU); full++) {
res               962 kernel/sched/psi.c 			avg[w] = group->avg[res * 2 + full][w];
res               963 kernel/sched/psi.c 		total = div_u64(group->total[PSI_AVGS][res * 2 + full],
res              1008 kernel/sched/psi.c 			char *buf, size_t nbytes, enum psi_res res)
res              1019 kernel/sched/psi.c 		state = PSI_IO_SOME + res * 2;
res              1021 kernel/sched/psi.c 		state = PSI_IO_FULL + res * 2;
res              1192 kernel/sched/psi.c 			 size_t nbytes, enum psi_res res)
res              1211 kernel/sched/psi.c 	new = psi_trigger_create(&psi_system, buf, nbytes, res);
res              2163 kernel/sysctl.c 			   unsigned long *res)
res              2178 kernel/sysctl.c 	*res = (unsigned long)result;
res                29 kernel/time/clockevents.c 	int res;
res               404 kernel/time/clockevents.c 	int res;
res               407 kernel/time/clockevents.c 	res = __clockevents_try_unbind(cu->ce, smp_processor_id());
res               408 kernel/time/clockevents.c 	if (res == -EAGAIN)
res               409 kernel/time/clockevents.c 		res = clockevents_replace(cu->ce);
res               410 kernel/time/clockevents.c 	cu->res = res;
res               420 kernel/time/clockevents.c 	struct ce_unbind cu = { .ce = ced, .res = -ENODEV };
res               423 kernel/time/clockevents.c 	return cu.res;
res               325 kernel/time/hrtimer.c 	ktime_t res = ktime_add_unsafe(lhs, rhs);
res               331 kernel/time/hrtimer.c 	if (res < 0 || res < lhs || res < rhs)
res               332 kernel/time/hrtimer.c 		res = ktime_set(KTIME_SEC_MAX, 0);
res               334 kernel/time/hrtimer.c 	return res;
res                98 kernel/time/sched_clock.c 	u64 cyc, res;
res               108 kernel/time/sched_clock.c 		res = rd->epoch_ns + cyc_to_ns(cyc, rd->mult, rd->shift);
res               111 kernel/time/sched_clock.c 	return res;
res               170 kernel/time/sched_clock.c 	u64 res, wrap, new_mask, new_epoch, cyc, ns;
res               228 kernel/time/sched_clock.c 	res = cyc_to_ns(1ULL, new_mult, new_shift);
res               231 kernel/time/sched_clock.c 		bits, r, r_unit, res, wrap);
res               858 kernel/time/time.c 	struct timespec64 res;
res               860 kernel/time/time.c 	set_normalized_timespec64(&res, (timeu64_t) lhs.tv_sec + rhs.tv_sec,
res               863 kernel/time/time.c 	if (unlikely(res.tv_sec < lhs.tv_sec || res.tv_sec < rhs.tv_sec)) {
res               864 kernel/time/time.c 		res.tv_sec = TIME64_MAX;
res               865 kernel/time/time.c 		res.tv_nsec = 0;
res               868 kernel/time/time.c 	return res;
res                89 lib/cmdline.c  	int res, i = 1;
res                92 lib/cmdline.c  		res = get_option((char **)&str, ints + i);
res                93 lib/cmdline.c  		if (res == 0)
res                95 lib/cmdline.c  		if (res == 3) {
res               108 lib/cmdline.c  		if (res == 1)
res              1157 lib/debugobjects.c 	int res = -EINVAL;
res              1183 lib/debugobjects.c 	res = 0;
res              1186 lib/debugobjects.c 	if (res)
res              1188 lib/debugobjects.c 	return res;
res                16 lib/devres.c   void devm_ioremap_release(struct device *dev, void *res)
res                18 lib/devres.c   	iounmap(*(void __iomem **)res);
res                21 lib/devres.c   static int devm_ioremap_match(struct device *dev, void *res, void *match_data)
res                23 lib/devres.c   	return *(void **)res == match_data;
res               154 lib/devres.c   				    const struct resource *res)
res               161 lib/devres.c   	if (!res || resource_type(res) != IORESOURCE_MEM) {
res               166 lib/devres.c   	size = resource_size(res);
res               168 lib/devres.c   	if (!devm_request_mem_region(dev, res->start, size, dev_name(dev))) {
res               169 lib/devres.c   		dev_err(dev, "can't request region for resource %pR\n", res);
res               173 lib/devres.c   	dest_ptr = devm_ioremap(dev, res->start, size);
res               175 lib/devres.c   		dev_err(dev, "ioremap failed for resource %pR\n", res);
res               176 lib/devres.c   		devm_release_mem_region(dev, res->start, size);
res               209 lib/devres.c   	struct resource res;
res               211 lib/devres.c   	if (of_address_to_resource(node, index, &res))
res               214 lib/devres.c   		*size = resource_size(&res);
res               215 lib/devres.c   	return devm_ioremap_resource(dev, &res);
res               223 lib/devres.c   static void devm_ioport_map_release(struct device *dev, void *res)
res               225 lib/devres.c   	ioport_unmap(*(void __iomem **)res);
res               228 lib/devres.c   static int devm_ioport_map_match(struct device *dev, void *res,
res               231 lib/devres.c   	return *(void **)res == match_data;
res               290 lib/devres.c   static void pcim_iomap_release(struct device *gendev, void *res)
res               293 lib/devres.c   	struct pcim_iomap_devres *this = res;
res                78 lib/digsig.c   	MPI in = NULL, res = NULL, pkey[2];
res               141 lib/digsig.c   	res = mpi_alloc(mpi_get_nlimbs(in) * 2);
res               142 lib/digsig.c   	if (!res)
res               145 lib/digsig.c   	err = mpi_powm(res, in, pkey[1], pkey[0]);
res               149 lib/digsig.c   	if (mpi_get_nlimbs(res) * BYTES_PER_MPI_LIMB > mlen) {
res               154 lib/digsig.c   	p = mpi_get_buffer(res, &l, NULL);
res               174 lib/digsig.c   	mpi_free(res);
res               109 lib/fonts/fonts.c 	int i, c, cc, res;
res               131 lib/fonts/fonts.c 		res = (xres / f->width) * (yres / f->height) / 1000;
res               132 lib/fonts/fonts.c 		if (res > 20)
res               133 lib/fonts/fonts.c 			c += 20 - res;
res               772 lib/genalloc.c static void devm_gen_pool_release(struct device *dev, void *res)
res               774 lib/genalloc.c 	gen_pool_destroy(*(struct gen_pool **)res);
res               777 lib/genalloc.c static int devm_gen_pool_match(struct device *dev, void *res, void *data)
res               779 lib/genalloc.c 	struct gen_pool **p = res;
res                21 lib/hweight.c  	unsigned int res = w - ((w >> 1) & 0x55555555);
res                22 lib/hweight.c  	res = (res & 0x33333333) + ((res >> 2) & 0x33333333);
res                23 lib/hweight.c  	res = (res + (res >> 4)) & 0x0F0F0F0F;
res                24 lib/hweight.c  	res = res + (res >> 8);
res                25 lib/hweight.c  	return (res + (res >> 16)) & 0x000000FF;
res                32 lib/hweight.c  	unsigned int res = w - ((w >> 1) & 0x5555);
res                33 lib/hweight.c  	res = (res & 0x3333) + ((res >> 2) & 0x3333);
res                34 lib/hweight.c  	res = (res + (res >> 4)) & 0x0F0F;
res                35 lib/hweight.c  	return (res + (res >> 8)) & 0x00FF;
res                41 lib/hweight.c  	unsigned int res = w - ((w >> 1) & 0x55);
res                42 lib/hweight.c  	res = (res & 0x33) + ((res >> 2) & 0x33);
res                43 lib/hweight.c  	return (res + (res >> 4)) & 0x0F;
res                59 lib/hweight.c  	__u64 res = w - ((w >> 1) & 0x5555555555555555ul);
res                60 lib/hweight.c  	res = (res & 0x3333333333333333ul) + ((res >> 2) & 0x3333333333333333ul);
res                61 lib/hweight.c  	res = (res + (res >> 4)) & 0x0F0F0F0F0F0F0F0Ful;
res                62 lib/hweight.c  	res = res + (res >> 8);
res                63 lib/hweight.c  	res = res + (res >> 16);
res                64 lib/hweight.c  	return (res + (res >> 32)) & 0x00000000000000FFul;
res              1201 lib/inflate.c      int res;
res              1258 lib/inflate.c      if ((res = inflate())) {
res              1259 lib/inflate.c  	    switch (res) {
res              1192 lib/iov_iter.c 	unsigned long res = 0;
res              1201 lib/iov_iter.c 		(res |= (unsigned long)v.iov_base | v.iov_len, 0),
res              1202 lib/iov_iter.c 		res |= v.bv_offset | v.bv_len,
res              1203 lib/iov_iter.c 		res |= (unsigned long)v.iov_base | v.iov_len
res              1205 lib/iov_iter.c 	return res;
res              1211 lib/iov_iter.c 	unsigned long res = 0;
res              1220 lib/iov_iter.c 		(res |= (!res ? 0 : (unsigned long)v.iov_base) |
res              1222 lib/iov_iter.c 		(res |= (!res ? 0 : (unsigned long)v.bv_offset) |
res              1224 lib/iov_iter.c 		(res |= (!res ? 0 : (unsigned long)v.iov_base) |
res              1227 lib/iov_iter.c 	return res;
res              1291 lib/iov_iter.c 		int res;
res              1297 lib/iov_iter.c 		res = get_user_pages_fast(addr, n,
res              1300 lib/iov_iter.c 		if (unlikely(res < 0))
res              1301 lib/iov_iter.c 			return res;
res              1302 lib/iov_iter.c 		return (res == n ? len : res * PAGE_SIZE) - *start;
res              1373 lib/iov_iter.c 		int res;
res              1380 lib/iov_iter.c 		res = get_user_pages_fast(addr, n,
res              1382 lib/iov_iter.c 		if (unlikely(res < 0)) {
res              1384 lib/iov_iter.c 			return res;
res              1387 lib/iov_iter.c 		return (res == n ? len : res * PAGE_SIZE) - *start;
res                50 lib/kstrtox.c  	unsigned long long res;
res                53 lib/kstrtox.c  	res = 0;
res                73 lib/kstrtox.c  		if (unlikely(res & (~0ull << 60))) {
res                74 lib/kstrtox.c  			if (res > div_u64(ULLONG_MAX - val, base))
res                77 lib/kstrtox.c  		res = res * base + val;
res                81 lib/kstrtox.c  	*p = res;
res                85 lib/kstrtox.c  static int _kstrtoull(const char *s, unsigned int base, unsigned long long *res)
res               101 lib/kstrtox.c  	*res = _res;
res               121 lib/kstrtox.c  int kstrtoull(const char *s, unsigned int base, unsigned long long *res)
res               125 lib/kstrtox.c  	return _kstrtoull(s, base, res);
res               145 lib/kstrtox.c  int kstrtoll(const char *s, unsigned int base, long long *res)
res               156 lib/kstrtox.c  		*res = -tmp;
res               163 lib/kstrtox.c  		*res = tmp;
res               170 lib/kstrtox.c  int _kstrtoul(const char *s, unsigned int base, unsigned long *res)
res               180 lib/kstrtox.c  	*res = tmp;
res               186 lib/kstrtox.c  int _kstrtol(const char *s, unsigned int base, long *res)
res               196 lib/kstrtox.c  	*res = tmp;
res               217 lib/kstrtox.c  int kstrtouint(const char *s, unsigned int base, unsigned int *res)
res               227 lib/kstrtox.c  	*res = tmp;
res               248 lib/kstrtox.c  int kstrtoint(const char *s, unsigned int base, int *res)
res               258 lib/kstrtox.c  	*res = tmp;
res               263 lib/kstrtox.c  int kstrtou16(const char *s, unsigned int base, u16 *res)
res               273 lib/kstrtox.c  	*res = tmp;
res               278 lib/kstrtox.c  int kstrtos16(const char *s, unsigned int base, s16 *res)
res               288 lib/kstrtox.c  	*res = tmp;
res               293 lib/kstrtox.c  int kstrtou8(const char *s, unsigned int base, u8 *res)
res               303 lib/kstrtox.c  	*res = tmp;
res               308 lib/kstrtox.c  int kstrtos8(const char *s, unsigned int base, s8 *res)
res               318 lib/kstrtox.c  	*res = tmp;
res               332 lib/kstrtox.c  int kstrtobool(const char *s, bool *res)
res               341 lib/kstrtox.c  		*res = true;
res               346 lib/kstrtox.c  		*res = false;
res               353 lib/kstrtox.c  			*res = true;
res               357 lib/kstrtox.c  			*res = false;
res               374 lib/kstrtox.c  int kstrtobool_from_user(const char __user *s, size_t count, bool *res)
res               383 lib/kstrtox.c  	return kstrtobool(buf, res);
res               388 lib/kstrtox.c  int f(const char __user *s, size_t count, unsigned int base, type *res)	\
res               397 lib/kstrtox.c  	return g(buf, base, res);					\
res                 7 lib/kstrtox.h  unsigned int _parse_integer(const char *s, unsigned int base, unsigned long long *res);
res                33 lib/math/div64.c 	uint64_t res, d = 1;
res                37 lib/math/div64.c 	res = 0;
res                40 lib/math/div64.c 		res = (uint64_t) high << 32;
res                52 lib/math/div64.c 			res += d;
res                58 lib/math/div64.c 	*n = res;
res                24 lib/mpi/mpi-pow.c int mpi_powm(MPI res, MPI base, MPI exp, MPI mod)
res                46 lib/mpi/mpi-pow.c 	rp = res->d;
res                55 lib/mpi/mpi-pow.c 		res->nlimbs = (msize == 1 && mod->d[0] == 1) ? 0 : 1;
res                56 lib/mpi/mpi-pow.c 		if (res->nlimbs) {
res                57 lib/mpi/mpi-pow.c 			if (mpi_resize(res, 1) < 0)
res                59 lib/mpi/mpi-pow.c 			rp = res->d;
res                62 lib/mpi/mpi-pow.c 		res->sign = 0;
res                99 lib/mpi/mpi-pow.c 		res->nlimbs = 0;
res               100 lib/mpi/mpi-pow.c 		res->sign = 0;
res               104 lib/mpi/mpi-pow.c 	if (res->alloced < size) {
res               114 lib/mpi/mpi-pow.c 			if (mpi_resize(res, size) < 0)
res               116 lib/mpi/mpi-pow.c 			rp = res->d;
res               263 lib/mpi/mpi-pow.c 			    mpihelp_lshift(res->d, rp, rsize, mod_shift_cnt);
res               264 lib/mpi/mpi-pow.c 			rp = res->d;
res               270 lib/mpi/mpi-pow.c 			MPN_COPY(res->d, rp, rsize);
res               271 lib/mpi/mpi-pow.c 			rp = res->d;
res               293 lib/mpi/mpi-pow.c 	res->nlimbs = rsize;
res               294 lib/mpi/mpi-pow.c 	res->sign = rsign;
res               301 lib/mpi/mpi-pow.c 		mpi_assign_limb_space(res, rp, size);
res                82 lib/random32.c 	u32 res;
res                84 lib/random32.c 	res = prandom_u32_state(state);
res                87 lib/random32.c 	return res;
res               269 lib/seq_buf.c  	int res = -1;
res               278 lib/seq_buf.c  				res = end - buf;
res               281 lib/seq_buf.c  	seq_buf_commit(s, res);
res               283 lib/seq_buf.c  	return res;
res               184 lib/string.c   	long res = 0;
res               208 lib/string.c   		c = read_word_at_a_time(src+res);
res               212 lib/string.c   			*(unsigned long *)(dest+res) = c & zero_bytemask(data);
res               213 lib/string.c   			return res + find_zero(data);
res               215 lib/string.c   		*(unsigned long *)(dest+res) = c;
res               216 lib/string.c   		res += sizeof(unsigned long);
res               224 lib/string.c   		c = src[res];
res               225 lib/string.c   		dest[res] = c;
res               227 lib/string.c   			return res;
res               228 lib/string.c   		res++;
res               233 lib/string.c   	if (res)
res               234 lib/string.c   		dest[res-1] = '\0';
res               335 lib/string.c   	size_t res = dsize + len;
res               346 lib/string.c   	return res;
res               882 lib/string.c   	int res = 0;
res               885 lib/string.c   		if ((res = *su1 - *su2) != 0)
res               887 lib/string.c   	return res;
res               600 lib/string_helpers.c 	int i, res;
res               606 lib/string_helpers.c 	res = get_cmdline(task, buffer, PAGE_SIZE - 1);
res               607 lib/string_helpers.c 	buffer[res] = '\0';
res               610 lib/string_helpers.c 	while (--res >= 0 && buffer[res] == '\0')
res               614 lib/string_helpers.c 	for (i = 0; i <= res; i++)
res                31 lib/strncpy_from_user.c 	unsigned long res = 0;
res                40 lib/strncpy_from_user.c 		unsafe_get_user(c, (unsigned long __user *)(src+res), byte_at_a_time);
res                42 lib/strncpy_from_user.c 		*(unsigned long *)(dst+res) = c;
res                46 lib/strncpy_from_user.c 			return res + find_zero(data);
res                48 lib/strncpy_from_user.c 		res += sizeof(unsigned long);
res                56 lib/strncpy_from_user.c 		unsafe_get_user(c,src+res, efault);
res                57 lib/strncpy_from_user.c 		dst[res] = c;
res                59 lib/strncpy_from_user.c 			return res;
res                60 lib/strncpy_from_user.c 		res++;
res                68 lib/strncpy_from_user.c 	if (res >= count)
res                69 lib/strncpy_from_user.c 		return res;
res                26 lib/strnlen_user.c 	unsigned long align, res = 0;
res                45 lib/strnlen_user.c 			return res + find_zero(data) + 1 - align;
res                47 lib/strnlen_user.c 		res += sizeof(unsigned long);
res                52 lib/strnlen_user.c 		unsafe_get_user(c, (unsigned long __user *)(src+res), efault);
res                54 lib/strnlen_user.c 	res -= align;
res                60 lib/strnlen_user.c 	if (res >= count)
res                51 lib/test-kstrtox.c 		type res;						\
res                54 lib/test-kstrtox.c 		rv = fn(t->str, t->base, &res);				\
res                60 lib/test-kstrtox.c 		if (res != t->expected_res) {				\
res                62 lib/test-kstrtox.c 				t->str, t->base, t->expected_res, res);	\
res               341 lib/test-string_helpers.c 					      char *res,
res               345 lib/test-string_helpers.c 	if (!memcmp(res, exp, strlen(exp) + 1))
res               348 lib/test-string_helpers.c 	res[string_get_size_maxbuf - 1] = '\0';
res               353 lib/test-string_helpers.c 	pr_warn("expected: '%s', got '%s'\n", exp, res);
res                12 lib/test_bitfield.c #define CHECK_ENC_GET_U(tp, v, field, res) do {				\
res                17 lib/test_bitfield.c 			if (_res != res) {				\
res                18 lib/test_bitfield.c 				pr_warn("u" #tp "_encode_bits(" #v ", " #field ") is 0x%llx != " #res "\n",\
res                27 lib/test_bitfield.c #define CHECK_ENC_GET_LE(tp, v, field, res) do {			\
res                32 lib/test_bitfield.c 			if (_res != cpu_to_le##tp(res)) {		\
res                35 lib/test_bitfield.c 					(u64)(res));			\
res                43 lib/test_bitfield.c #define CHECK_ENC_GET_BE(tp, v, field, res) do {			\
res                48 lib/test_bitfield.c 			if (_res != cpu_to_be##tp(res)) {		\
res                51 lib/test_bitfield.c 					(u64)(res));			\
res                59 lib/test_bitfield.c #define CHECK_ENC_GET(tp, v, field, res) do {				\
res                60 lib/test_bitfield.c 		CHECK_ENC_GET_U(tp, v, field, res);			\
res                61 lib/test_bitfield.c 		CHECK_ENC_GET_LE(tp, v, field, res);			\
res                62 lib/test_bitfield.c 		CHECK_ENC_GET_BE(tp, v, field, res);			\
res                10 lib/usercopy.c 	unsigned long res = n;
res                14 lib/usercopy.c 		res = raw_copy_from_user(to, from, n);
res                16 lib/usercopy.c 	if (unlikely(res))
res                17 lib/usercopy.c 		memset(to + (n - res), 0, res);
res                18 lib/usercopy.c 	return res;
res               121 lib/vdso/gettimeofday.c __cvdso_clock_gettime32(clockid_t clock, struct old_timespec32 *res)
res               130 lib/vdso/gettimeofday.c 		return clock_gettime32_fallback(clock, res);
res               137 lib/vdso/gettimeofday.c 		res->tv_sec = ts.tv_sec;
res               138 lib/vdso/gettimeofday.c 		res->tv_nsec = ts.tv_nsec;
res               181 lib/vdso/gettimeofday.c int __cvdso_clock_getres_common(clockid_t clock, struct __kernel_timespec *res)
res               217 lib/vdso/gettimeofday.c 	if (likely(res)) {
res               218 lib/vdso/gettimeofday.c 		res->tv_sec = 0;
res               219 lib/vdso/gettimeofday.c 		res->tv_nsec = ns;
res               224 lib/vdso/gettimeofday.c int __cvdso_clock_getres(clockid_t clock, struct __kernel_timespec *res)
res               226 lib/vdso/gettimeofday.c 	int ret = __cvdso_clock_getres_common(clock, res);
res               229 lib/vdso/gettimeofday.c 		return clock_getres_fallback(clock, res);
res               234 lib/vdso/gettimeofday.c __cvdso_clock_getres_time32(clockid_t clock, struct old_timespec32 *res)
res               243 lib/vdso/gettimeofday.c 		return clock_getres32_fallback(clock, res);
res               249 lib/vdso/gettimeofday.c 	if (likely(!ret && res)) {
res               250 lib/vdso/gettimeofday.c 		res->tv_sec = ts.tv_sec;
res               251 lib/vdso/gettimeofday.c 		res->tv_nsec = ts.tv_nsec;
res               970 lib/vsprintf.c char *resource_string(char *buf, char *end, struct resource *res,
res              1007 lib/vsprintf.c #define FLAG_BUF_SIZE		(2 * sizeof(res->flags))
res              1017 lib/vsprintf.c 	if (check_pointer(&buf, end, res, spec))
res              1021 lib/vsprintf.c 	if (res->flags & IORESOURCE_IO) {
res              1024 lib/vsprintf.c 	} else if (res->flags & IORESOURCE_MEM) {
res              1027 lib/vsprintf.c 	} else if (res->flags & IORESOURCE_IRQ) {
res              1030 lib/vsprintf.c 	} else if (res->flags & IORESOURCE_DMA) {
res              1033 lib/vsprintf.c 	} else if (res->flags & IORESOURCE_BUS) {
res              1041 lib/vsprintf.c 	if (decode && res->flags & IORESOURCE_UNSET) {
res              1043 lib/vsprintf.c 		p = number(p, pend, resource_size(res), *specp);
res              1045 lib/vsprintf.c 		p = number(p, pend, res->start, *specp);
res              1046 lib/vsprintf.c 		if (res->start != res->end) {
res              1048 lib/vsprintf.c 			p = number(p, pend, res->end, *specp);
res              1052 lib/vsprintf.c 		if (res->flags & IORESOURCE_MEM_64)
res              1054 lib/vsprintf.c 		if (res->flags & IORESOURCE_PREFETCH)
res              1056 lib/vsprintf.c 		if (res->flags & IORESOURCE_WINDOW)
res              1058 lib/vsprintf.c 		if (res->flags & IORESOURCE_DISABLED)
res              1062 lib/vsprintf.c 		p = number(p, pend, res->flags, default_flag_spec);
res              1691 lib/zstd/decompress.c 			const size_t res = ZSTD_decompressFrame(dctx, dst, dstCapacity, &src, &srcSize);
res              1692 lib/zstd/decompress.c 			if (ZSTD_isError(res))
res              1693 lib/zstd/decompress.c 				return res;
res              1696 lib/zstd/decompress.c 			dst = (BYTE *)dst + res;
res              1697 lib/zstd/decompress.c 			dstCapacity -= res;
res               480 mm/dmapool.c   static void dmam_pool_release(struct device *dev, void *res)
res               482 mm/dmapool.c   	struct dma_pool *pool = *(struct dma_pool **)res;
res               487 mm/dmapool.c   static int dmam_pool_match(struct device *dev, void *res, void *match_data)
res               489 mm/dmapool.c   	return *(struct dma_pool **)res == match_data;
res               785 mm/memory-failure.c 	int res = 0;
res               794 mm/memory-failure.c 		res = truncate_error_page(hpage, pfn, mapping);
res               805 mm/memory-failure.c 		res = MF_RECOVERED;
res               809 mm/memory-failure.c 	return res;
res               837 mm/memory-failure.c 	unsigned long res;
res              1072 mm/memory-failure.c 		if ((p->flags & ps->mask) == ps->res)
res              1079 mm/memory-failure.c 			if ((page_flags & ps->mask) == ps->res)
res              1088 mm/memory-failure.c 	int res;
res              1140 mm/memory-failure.c 		res = -EBUSY;
res              1146 mm/memory-failure.c 		res = -EBUSY;
res              1150 mm/memory-failure.c 	res = identify_page_state(pfn, p, page_flags);
res              1153 mm/memory-failure.c 	return res;
res              1254 mm/memory-failure.c 	int res;
res              1351 mm/memory-failure.c 		res = -EBUSY;
res              1403 mm/memory-failure.c 		res = -EBUSY;
res              1412 mm/memory-failure.c 		res = -EBUSY;
res              1417 mm/memory-failure.c 	res = identify_page_state(pfn, p, page_flags);
res              1420 mm/memory-failure.c 	return res;
res              4202 mm/memory.c    	int res;
res              4206 mm/memory.c    			   !(res = __follow_pte_pmd(mm, address, NULL,
res              4208 mm/memory.c    	return res;
res              4215 mm/memory.c    	int res;
res              4219 mm/memory.c    			   !(res = __follow_pte_pmd(mm, address, range,
res              4221 mm/memory.c    	return res;
res               106 mm/memory_hotplug.c 	struct resource *res;
res               118 mm/memory_hotplug.c 	res = __request_region(&iomem_resource, start, size,
res               121 mm/memory_hotplug.c 	if (!res) {
res               126 mm/memory_hotplug.c 	return res;
res               129 mm/memory_hotplug.c static void release_memory_resource(struct resource *res)
res               131 mm/memory_hotplug.c 	if (!res)
res               133 mm/memory_hotplug.c 	release_resource(res);
res               134 mm/memory_hotplug.c 	kfree(res);
res              1032 mm/memory_hotplug.c int __ref add_memory_resource(int nid, struct resource *res)
res              1039 mm/memory_hotplug.c 	start = res->start;
res              1040 mm/memory_hotplug.c 	size = resource_size(res);
res              1111 mm/memory_hotplug.c 	struct resource *res;
res              1114 mm/memory_hotplug.c 	res = register_memory_resource(start, size);
res              1115 mm/memory_hotplug.c 	if (IS_ERR(res))
res              1116 mm/memory_hotplug.c 		return PTR_ERR(res);
res              1118 mm/memory_hotplug.c 	ret = add_memory_resource(nid, res);
res              1120 mm/memory_hotplug.c 		release_memory_resource(res);
res                49 mm/memremap.c  static void pgmap_array_delete(struct resource *res)
res                51 mm/memremap.c  	xa_store_range(&pgmap_array, PHYS_PFN(res->start), PHYS_PFN(res->end),
res                58 mm/memremap.c  	return PHYS_PFN(pgmap->res.start) +
res                64 mm/memremap.c  	const struct resource *res = &pgmap->res;
res                66 mm/memremap.c  	return (res->start + resource_size(res)) >> PAGE_SHIFT;
res               105 mm/memremap.c  	struct resource *res = &pgmap->res;
res               123 mm/memremap.c  		__remove_pages(PHYS_PFN(res->start),
res               124 mm/memremap.c  			       PHYS_PFN(resource_size(res)), NULL);
res               126 mm/memremap.c  		arch_remove_memory(nid, res->start, resource_size(res),
res               128 mm/memremap.c  		kasan_remove_zero_shadow(__va(res->start), resource_size(res));
res               132 mm/memremap.c  	untrack_pfn(NULL, PHYS_PFN(res->start), resource_size(res));
res               133 mm/memremap.c  	pgmap_array_delete(res);
res               159 mm/memremap.c  	struct resource *res = &pgmap->res;
res               221 mm/memremap.c  	conflict_pgmap = get_dev_pagemap(PHYS_PFN(res->start), NULL);
res               229 mm/memremap.c  	conflict_pgmap = get_dev_pagemap(PHYS_PFN(res->end), NULL);
res               237 mm/memremap.c  	is_ram = region_intersects(res->start, resource_size(res),
res               242 mm/memremap.c  				is_ram == REGION_MIXED ? "mixed" : "ram", res);
res               247 mm/memremap.c  	error = xa_err(xa_store_range(&pgmap_array, PHYS_PFN(res->start),
res               248 mm/memremap.c  				PHYS_PFN(res->end), pgmap, GFP_KERNEL));
res               255 mm/memremap.c  	error = track_pfn_remap(NULL, &pgprot, PHYS_PFN(res->start), 0,
res               256 mm/memremap.c  			resource_size(res));
res               274 mm/memremap.c  		error = add_pages(nid, PHYS_PFN(res->start),
res               275 mm/memremap.c  				PHYS_PFN(resource_size(res)), &restrictions);
res               277 mm/memremap.c  		error = kasan_add_zero_shadow(__va(res->start), resource_size(res));
res               283 mm/memremap.c  		error = arch_add_memory(nid, res->start, resource_size(res),
res               291 mm/memremap.c  		move_pfn_range_to_zone(zone, PHYS_PFN(res->start),
res               292 mm/memremap.c  				PHYS_PFN(resource_size(res)), restrictions.altmap);
res               304 mm/memremap.c  				PHYS_PFN(res->start),
res               305 mm/memremap.c  				PHYS_PFN(resource_size(res)), pgmap);
res               307 mm/memremap.c  	return __va(res->start);
res               310 mm/memremap.c  	kasan_remove_zero_shadow(__va(res->start), resource_size(res));
res               312 mm/memremap.c  	untrack_pfn(NULL, PHYS_PFN(res->start), resource_size(res));
res               314 mm/memremap.c  	pgmap_array_delete(res);
res               396 mm/memremap.c  		if (phys >= pgmap->res.start && phys <= pgmap->res.end)
res               726 mm/page_alloc.c 	unsigned long res;
res               728 mm/page_alloc.c 	if (kstrtoul(buf, 10, &res) < 0 ||  res > MAX_ORDER / 2) {
res               732 mm/page_alloc.c 	_debug_guardpage_minorder = res;
res               733 mm/page_alloc.c 	pr_info("Setting debug_guardpage_minorder to %lu\n", res);
res              4099 mm/shmem.c     	struct file *res;
res              4119 mm/shmem.c     	res = ERR_PTR(ramfs_nommu_expand_for_mapping(inode, size));
res              4120 mm/shmem.c     	if (!IS_ERR(res))
res              4121 mm/shmem.c     		res = alloc_file_pseudo(inode, mnt, name, O_RDWR,
res              4123 mm/shmem.c     	if (IS_ERR(res))
res              4125 mm/shmem.c     	return res;
res              4119 mm/slab.c      	int limit, batchcount, shared, res;
res              4138 mm/slab.c      	res = -EINVAL;
res              4143 mm/slab.c      				res = 0;
res              4145 mm/slab.c      				res = do_tune_cpucache(cachep, limit,
res              4153 mm/slab.c      	if (res >= 0)
res              4154 mm/slab.c      		res = count;
res              4155 mm/slab.c      	return res;
res               863 mm/util.c      	int res = 0;
res               884 mm/util.c      	res = access_process_vm(task, arg_start, buffer, len, FOLL_FORCE);
res               890 mm/util.c      	if (res > 0 && buffer[res-1] != '\0' && len < buflen) {
res               891 mm/util.c      		len = strnlen(buffer, res);
res               892 mm/util.c      		if (len < res) {
res               893 mm/util.c      			res = len;
res               896 mm/util.c      			if (len > buflen - res)
res               897 mm/util.c      				len = buflen - res;
res               898 mm/util.c      			res += access_process_vm(task, env_start,
res               899 mm/util.c      						 buffer+res, len,
res               901 mm/util.c      			res = strnlen(buffer, res);
res               907 mm/util.c      	return res;
res               867 mm/vmscan.c    		int res;
res               877 mm/vmscan.c    		res = mapping->a_ops->writepage(page, &wbc);
res               878 mm/vmscan.c    		if (res < 0)
res               879 mm/vmscan.c    			handle_write_error(mapping, page, res);
res               880 mm/vmscan.c    		if (res == AOP_WRITEPAGE_ACTIVATE) {
res               538 net/ax25/af_ax25.c 	int res = 0;
res               556 net/ax25/af_ax25.c 				res = -EINVAL;
res               561 net/ax25/af_ax25.c 				res = -EINVAL;
res               570 net/ax25/af_ax25.c 			res = -EINVAL;
res               579 net/ax25/af_ax25.c 			res = -EINVAL;
res               587 net/ax25/af_ax25.c 			res = -EINVAL;
res               595 net/ax25/af_ax25.c 			res = -EINVAL;
res               603 net/ax25/af_ax25.c 			res = -EINVAL;
res               611 net/ax25/af_ax25.c 			res = -EINVAL;
res               631 net/ax25/af_ax25.c 			res = -EINVAL;
res               644 net/ax25/af_ax25.c 			res = -EFAULT;
res               651 net/ax25/af_ax25.c 			res = -EADDRNOTAVAIL;
res               659 net/ax25/af_ax25.c 			res = -ENODEV;
res               666 net/ax25/af_ax25.c 			res = -ENODEV;
res               674 net/ax25/af_ax25.c 		res = -ENOPROTOOPT;
res               678 net/ax25/af_ax25.c 	return res;
res               781 net/ax25/af_ax25.c 	int res = 0;
res               789 net/ax25/af_ax25.c 	res = -EOPNOTSUPP;
res               794 net/ax25/af_ax25.c 	return res;
res              1694 net/ax25/af_ax25.c 	int res = 0;
res              1704 net/ax25/af_ax25.c 		res = put_user(amount, (int __user *)argp);
res              1714 net/ax25/af_ax25.c 		res = put_user(amount, (int __user *) argp);
res              1723 net/ax25/af_ax25.c 			res = -EFAULT;
res              1726 net/ax25/af_ax25.c 		res = ax25_uid_ioctl(cmd, &sax25);
res              1733 net/ax25/af_ax25.c 			res = -EPERM;
res              1737 net/ax25/af_ax25.c 			res = -EFAULT;
res              1741 net/ax25/af_ax25.c 			res = -EINVAL;
res              1745 net/ax25/af_ax25.c 		res = 0;
res              1753 net/ax25/af_ax25.c 			res = -EPERM;
res              1756 net/ax25/af_ax25.c 		res = ax25_rt_ioctl(cmd, argp);
res              1761 net/ax25/af_ax25.c 			res = -EPERM;
res              1764 net/ax25/af_ax25.c 		res = ax25_ctl_ioctl(cmd, argp);
res              1802 net/ax25/af_ax25.c 				res = -EFAULT;
res              1807 net/ax25/af_ax25.c 				res = -EINVAL;
res              1811 net/ax25/af_ax25.c 		res = 0;
res              1819 net/ax25/af_ax25.c 			res = -EPERM;
res              1823 net/ax25/af_ax25.c 			res = -EFAULT;
res              1826 net/ax25/af_ax25.c 		res = ax25_fwd_ioctl(cmd, &ax25_fwd);
res              1840 net/ax25/af_ax25.c 		res = -EINVAL;
res              1844 net/ax25/af_ax25.c 		res = -ENOIOCTLCMD;
res              1849 net/ax25/af_ax25.c 	return res;
res                34 net/ax25/ax25_dev.c 	ax25_dev *ax25_dev, *res = NULL;
res                39 net/ax25/ax25_dev.c 			res = ax25_dev;
res                43 net/ax25/ax25_dev.c 	return res;
res               157 net/ax25/ax25_ds_subr.c 	int res = 0;
res               162 net/ax25/ax25_ds_subr.c 			res = 1;
res               167 net/ax25/ax25_ds_subr.c 	return res;
res               160 net/ax25/ax25_iface.c 	int (*res)(struct sk_buff *, ax25_cb *) = NULL;
res               166 net/ax25/ax25_iface.c 			res = protocol->func;
res               171 net/ax25/ax25_iface.c 	return res;
res               203 net/ax25/ax25_iface.c 	int res = 0;
res               208 net/ax25/ax25_iface.c 			res = 1;
res               213 net/ax25/ax25_iface.c 	return res;
res                52 net/ax25/ax25_uid.c 	ax25_uid_assoc *ax25_uid, *res = NULL;
res                58 net/ax25/ax25_uid.c 			res = ax25_uid;
res                64 net/ax25/ax25_uid.c 	return res;
res                73 net/ax25/ax25_uid.c 	unsigned long res;
res                77 net/ax25/ax25_uid.c 		res = -ENOENT;
res                81 net/ax25/ax25_uid.c 				res = from_kuid_munged(current_user_ns(), ax25_uid->uid);
res                87 net/ax25/ax25_uid.c 		return res;
res               448 net/batman-adv/bat_iv_ogm.c 	bool res = false;
res               497 net/batman-adv/bat_iv_ogm.c 		res = true;
res               515 net/batman-adv/bat_iv_ogm.c 		res = true;
res               522 net/batman-adv/bat_iv_ogm.c 	return res;
res              1738 net/batman-adv/bat_iv_ogm.c 	bool res;
res              1741 net/batman-adv/bat_iv_ogm.c 	res = batadv_check_management_packet(skb, if_incoming, BATADV_OGM_HLEN);
res              1742 net/batman-adv/bat_iv_ogm.c 	if (!res)
res               353 net/batman-adv/bat_v_elp.c 	int res = -ENOMEM;
res               384 net/batman-adv/bat_v_elp.c 	res = 0;
res               387 net/batman-adv/bat_v_elp.c 	return res;
res               518 net/batman-adv/bat_v_elp.c 	bool res;
res               521 net/batman-adv/bat_v_elp.c 	res = batadv_check_management_packet(skb, if_incoming, BATADV_ELP_HLEN);
res               522 net/batman-adv/bat_v_elp.c 	if (!res)
res               508 net/batman-adv/distributed-arp-table.c static bool batadv_is_orig_node_eligible(struct batadv_dat_candidate *res,
res               524 net/batman-adv/distributed-arp-table.c 		if (res[j].orig_node == candidate)
res               632 net/batman-adv/distributed-arp-table.c 	struct batadv_dat_candidate *res;
res               638 net/batman-adv/distributed-arp-table.c 	res = kmalloc_array(BATADV_DAT_CANDIDATES_NUM, sizeof(*res),
res               640 net/batman-adv/distributed-arp-table.c 	if (!res)
res               653 net/batman-adv/distributed-arp-table.c 		batadv_choose_next_candidate(bat_priv, res, select, ip_key,
res               656 net/batman-adv/distributed-arp-table.c 	return res;
res               597 net/batman-adv/network-coding.c 	bool res = false;
res               612 net/batman-adv/network-coding.c 	res = true;
res               615 net/batman-adv/network-coding.c 	return res;
res              1062 net/batman-adv/network-coding.c 	bool res = false;
res              1213 net/batman-adv/network-coding.c 	res = true;
res              1223 net/batman-adv/network-coding.c 	return res;
res               525 net/batman-adv/originator.c 	struct batadv_neigh_node *tmp_neigh_node, *res = NULL;
res               538 net/batman-adv/originator.c 		res = tmp_neigh_node;
res               543 net/batman-adv/originator.c 	return res;
res               225 net/batman-adv/routing.c 	int res, ret = NET_RX_DROP;
res               261 net/batman-adv/routing.c 		res = batadv_send_skb_to_orig(skb, orig_node, NULL);
res               262 net/batman-adv/routing.c 		if (res == NET_XMIT_SUCCESS)
res               298 net/batman-adv/routing.c 	int res, ret = NET_RX_DROP;
res               329 net/batman-adv/routing.c 	res = batadv_send_skb_to_orig(skb, orig_node, NULL);
res               330 net/batman-adv/routing.c 	if (res == NET_RX_SUCCESS)
res               363 net/batman-adv/routing.c 	int res, ret = NET_RX_DROP;
res               430 net/batman-adv/routing.c 	res = batadv_send_skb_to_orig(skb, orig_node, recv_if);
res               431 net/batman-adv/routing.c 	if (res == NET_XMIT_SUCCESS)
res               682 net/batman-adv/routing.c 	int res, hdr_len, ret = NET_RX_DROP;
res               725 net/batman-adv/routing.c 	res = batadv_send_skb_to_orig(skb, orig_node, recv_if);
res               728 net/batman-adv/routing.c 	if (res == NET_XMIT_SUCCESS) {
res               222 net/batman-adv/sysfs.c 	size_t res = __batadv_store_bool_attr(buff, count, _post_func,	\
res               233 net/batman-adv/sysfs.c 	return res;							\
res               243 net/batman-adv/sysfs.c 	size_t res = sprintf(buff, "%s\n",				\
res               249 net/batman-adv/sysfs.c 	return res;							\
res                35 net/bluetooth/ecdh_helper.c 	struct ecdh_completion *res = req->data;
res                40 net/bluetooth/ecdh_helper.c 	res->err = err;
res                41 net/bluetooth/ecdh_helper.c 	complete(&res->completion);
res               277 net/bluetooth/hidp/core.c 		int res;
res               279 net/bluetooth/hidp/core.c 		res = wait_event_interruptible_timeout(session->report_queue,
res               283 net/bluetooth/hidp/core.c 		if (res == 0) {
res               288 net/bluetooth/hidp/core.c 		if (res < 0) {
res               352 net/bluetooth/hidp/core.c 		int res;
res               354 net/bluetooth/hidp/core.c 		res = wait_event_interruptible_timeout(session->report_queue,
res               358 net/bluetooth/hidp/core.c 		if (res == 0) {
res               363 net/bluetooth/hidp/core.c 		if (res < 0) {
res              7535 net/bluetooth/l2cap_core.c 			__u16 res, stat;
res              7539 net/bluetooth/l2cap_core.c 					res = L2CAP_CR_PEND;
res              7544 net/bluetooth/l2cap_core.c 					res = L2CAP_CR_SUCCESS;
res              7550 net/bluetooth/l2cap_core.c 				res = L2CAP_CR_SEC_BLOCK;
res              7556 net/bluetooth/l2cap_core.c 			rsp.result = cpu_to_le16(res);
res              7562 net/bluetooth/l2cap_core.c 			    res == L2CAP_CR_SUCCESS) {
res               214 net/bluetooth/smp.c 		  const u8 v[32], const u8 x[16], u8 z, u8 res[16])
res               227 net/bluetooth/smp.c 	err = aes_cmac(tfm_cmac, x, m, sizeof(m), res);
res               231 net/bluetooth/smp.c 	SMP_DBG("res %16phN", res);
res               292 net/bluetooth/smp.c 		  u8 res[16])
res               308 net/bluetooth/smp.c 	err = aes_cmac(tfm_cmac, w, m, sizeof(m), res);
res               312 net/bluetooth/smp.c 	SMP_DBG("res %16phN", res);
res               344 net/bluetooth/smp.c 		  const u8 key_id[4], u8 res[16])
res               350 net/bluetooth/smp.c 	err = aes_cmac(tfm_cmac, w, key_id, 4, res);
res               354 net/bluetooth/smp.c 	SMP_DBG("res %16phN", res);
res               360 net/bluetooth/smp.c 		  const u8 salt[16], u8 res[16])
res               366 net/bluetooth/smp.c 	err = aes_cmac(tfm_cmac, salt, w, 16, res);
res               370 net/bluetooth/smp.c 	SMP_DBG("res %16phN", res);
res               412 net/bluetooth/smp.c 		  const bdaddr_t *ia, u8 _rat, const bdaddr_t *ra, u8 res[16])
res               432 net/bluetooth/smp.c 	u128_xor((u128 *) res, (u128 *) r, (u128 *) p1);
res               435 net/bluetooth/smp.c 	err = smp_e(k, res);
res               449 net/bluetooth/smp.c 	u128_xor((u128 *) res, (u128 *) res, (u128 *) p2);
res               452 net/bluetooth/smp.c 	err = smp_e(k, res);
res               475 net/bluetooth/smp.c static int smp_ah(const u8 irk[16], const u8 r[3], u8 res[3])
res               496 net/bluetooth/smp.c 	memcpy(res, _res, 3);
res              3562 net/bluetooth/smp.c 	u8 res[3];
res              3565 net/bluetooth/smp.c 	err = smp_ah(irk, r, res);
res              3569 net/bluetooth/smp.c 	if (crypto_memneq(res, exp, 3))
res              3592 net/bluetooth/smp.c 	u8 res[16];
res              3595 net/bluetooth/smp.c 	err = smp_c1(k, r, preq, pres, _iat, &ia, _rat, &ra, res);
res              3599 net/bluetooth/smp.c 	if (crypto_memneq(res, exp, 16))
res              3617 net/bluetooth/smp.c 	u8 res[16];
res              3620 net/bluetooth/smp.c 	err = smp_s1(k, r1, r2, res);
res              3624 net/bluetooth/smp.c 	if (crypto_memneq(res, exp, 16))
res              3649 net/bluetooth/smp.c 	u8 res[16];
res              3652 net/bluetooth/smp.c 	err = smp_f4(tfm_cmac, u, v, x, z, res);
res              3656 net/bluetooth/smp.c 	if (crypto_memneq(res, exp, 16))
res              3719 net/bluetooth/smp.c 	u8 res[16];
res              3722 net/bluetooth/smp.c 	err = smp_f6(tfm_cmac, w, n1, n2, r, io_cap, a1, a2, res);
res              3726 net/bluetooth/smp.c 	if (crypto_memneq(res, exp, 16))
res              3773 net/bluetooth/smp.c 	u8 res[16];
res              3776 net/bluetooth/smp.c 	err = smp_h6(tfm_cmac, w, key_id, res);
res              3780 net/bluetooth/smp.c 	if (crypto_memneq(res, exp, 16))
res               445 net/bridge/br_if.c 	int res;
res               456 net/bridge/br_if.c 	res = register_netdev(dev);
res               457 net/bridge/br_if.c 	if (res)
res               459 net/bridge/br_if.c 	return res;
res              1144 net/bridge/netfilter/ebtables.c 		       const struct nf_hook_ops *ops, struct ebt_table **res)
res              1219 net/bridge/netfilter/ebtables.c 	WRITE_ONCE(*res, table);
res              1223 net/bridge/netfilter/ebtables.c 		*res = NULL;
res               224 net/caif/cfcnfg.c 	int res;
res               231 net/caif/cfcnfg.c 		res = cfcnfg_get_id_from_ifi(cnfg, s->ifindex);
res               232 net/caif/cfcnfg.c 		if (res < 0)
res               233 net/caif/cfcnfg.c 			return res;
res               234 net/caif/cfcnfg.c 		l->phyid = res;
res               166 net/caif/cfctrl.c 	return &this->res;
res               501 net/caif/cfctrl.c 				cfctrl->res.reject_rsp(cfctrl->serv.layer.up,
res               506 net/caif/cfctrl.c 				cfctrl->res.linksetup_rsp(cfctrl->serv.
res               520 net/caif/cfctrl.c 		cfctrl->res.linkdestroy_rsp(cfctrl->serv.layer.up, linkid);
res               524 net/caif/cfctrl.c 		cfctrl->res.linkerror_ind();
res               527 net/caif/cfctrl.c 		cfctrl->res.enum_rsp();
res               530 net/caif/cfctrl.c 		cfctrl->res.sleep_rsp();
res               533 net/caif/cfctrl.c 		cfctrl->res.wake_rsp();
res               536 net/caif/cfctrl.c 		cfctrl->res.restart_rsp();
res               539 net/caif/cfctrl.c 		cfctrl->res.radioset_rsp();
res               263 net/can/gw.c   	int res = calc_idx(xor->result_idx, cf->len);
res               267 net/can/gw.c   	if (from < 0 || to < 0 || res < 0)
res               278 net/can/gw.c   	cf->data[res] = val;
res               308 net/can/gw.c   	int res = calc_idx(crc8->result_idx, cf->len);
res               312 net/can/gw.c   	if (from < 0 || to < 0 || res < 0)
res              8057 net/core/dev.c 	int res;
res              8064 net/core/dev.c 		res = call_netdevice_notifiers(NETDEV_CHANGE_TX_QUEUE_LEN, dev);
res              8065 net/core/dev.c 		res = notifier_to_errno(res);
res              8066 net/core/dev.c 		if (res)
res              8068 net/core/dev.c 		res = dev_qdisc_change_tx_queue_len(dev);
res              8069 net/core/dev.c 		if (res)
res              8078 net/core/dev.c 	return res;
res              4621 net/core/filter.c 	struct fib_result res;
res              4660 net/core/filter.c 		err = fib_table_lookup(tb, &fl4, &res, FIB_LOOKUP_NOREF);
res              4667 net/core/filter.c 		err = fib_lookup(net, &fl4, &res, FIB_LOOKUP_NOREF);
res              4682 net/core/filter.c 	if (res.type != RTN_UNICAST)
res              4685 net/core/filter.c 	if (fib_info_num_path(res.fi) > 1)
res              4686 net/core/filter.c 		fib_select_path(net, &res, &fl4, NULL);
res              4689 net/core/filter.c 		mtu = ip_mtu_from_fib_result(&res, params->ipv4_dst);
res              4694 net/core/filter.c 	nhc = res.nhc;
res              4702 net/core/filter.c 	params->rt_metric = res.fi->fib_priority;
res              4734 net/core/filter.c 	struct fib6_result res = {};
res              4782 net/core/filter.c 		err = ipv6_stub->fib6_table_lookup(net, tb, oif, &fl6, &res,
res              4790 net/core/filter.c 		err = ipv6_stub->fib6_lookup(net, oif, &fl6, &res, strict);
res              4793 net/core/filter.c 	if (unlikely(err || IS_ERR_OR_NULL(res.f6i) ||
res              4794 net/core/filter.c 		     res.f6i == net->ipv6.fib6_null_entry))
res              4797 net/core/filter.c 	switch (res.fib6_type) {
res              4811 net/core/filter.c 	ipv6_stub->fib6_select_path(net, &res, &fl6, fl6.flowi6_oif,
res              4815 net/core/filter.c 		mtu = ipv6_stub->ip6_mtu_from_fib6(&res, dst, src);
res              4820 net/core/filter.c 	if (res.nh->fib_nh_lws)
res              4823 net/core/filter.c 	if (res.nh->fib_nh_gw_family)
res              4824 net/core/filter.c 		*dst = res.nh->fib_nh_gw6;
res              4826 net/core/filter.c 	dev = res.nh->fib_nh_dev;
res              4827 net/core/filter.c 	params->rt_metric = res.f6i->fib6_metric;
res               254 net/core/gen_stats.c 	int res;
res               268 net/core/gen_stats.c 		res = gnet_stats_copy(d, TCA_STATS_RATE_EST, &est, sizeof(est),
res               270 net/core/gen_stats.c 		if (res < 0 || est.bps == sample.bps)
res               271 net/core/gen_stats.c 			return res;
res                16 net/core/gro_cells.c 	int res;
res                23 net/core/gro_cells.c 		res = netif_rx(skb);
res                33 net/core/gro_cells.c 		res = NET_RX_DROP;
res                41 net/core/gro_cells.c 	res = NET_RX_SUCCESS;
res                45 net/core/gro_cells.c 	return res;
res              2739 net/core/sock.c 	ssize_t res;
res              2745 net/core/sock.c 	res = kernel_sendmsg(sock, &msg, &iov, 1, size);
res              2747 net/core/sock.c 	return res;
res              2754 net/core/sock.c 	ssize_t res;
res              2761 net/core/sock.c 	res = kernel_sendmsg_locked(sk, &msg, &iov, 1, size);
res              2763 net/core/sock.c 	return res;
res              3241 net/core/sock.c 	int res = 0;
res              3244 net/core/sock.c 		res += per_cpu_ptr(net->core.prot_inuse, cpu)->val[idx];
res              3246 net/core/sock.c 	return res >= 0 ? res : 0;
res              3257 net/core/sock.c 	int cpu, res = 0;
res              3260 net/core/sock.c 		res += *per_cpu_ptr(net->core.sock_inuse, cpu);
res              3262 net/core/sock.c 	return res;
res                27 net/core/sock_diag.c 		u64 res = atomic64_read(&sk->sk_cookie);
res                29 net/core/sock_diag.c 		if (res)
res                30 net/core/sock_diag.c 			return res;
res                31 net/core/sock_diag.c 		res = atomic64_inc_return(&cookie_gen);
res                32 net/core/sock_diag.c 		atomic64_cmpxchg(&sk->sk_cookie, 0, res);
res                38 net/core/sock_diag.c 	u64 res;
res                43 net/core/sock_diag.c 	res = sock_gen_cookie(sk);
res                44 net/core/sock_diag.c 	if ((u32)res != cookie[0] || (u32)(res >> 32) != cookie[1])
res                53 net/core/sock_diag.c 	u64 res = sock_gen_cookie(sk);
res                55 net/core/sock_diag.c 	cookie[0] = (u32)res;
res                56 net/core/sock_diag.c 	cookie[1] = (u32)(res >> 32);
res               201 net/decnet/dn_fib.c 		struct dn_fib_res res;
res               228 net/decnet/dn_fib.c 		if ((err = dn_fib_lookup(&fld, &res)) != 0)
res               232 net/decnet/dn_fib.c 		if (res.type != RTN_UNICAST && res.type != RTN_LOCAL)
res               234 net/decnet/dn_fib.c 		nh->nh_scope = res.scope;
res               235 net/decnet/dn_fib.c 		nh->nh_oif = DN_FIB_RES_OIF(res);
res               236 net/decnet/dn_fib.c 		nh->nh_dev = DN_FIB_RES_DEV(res);
res               245 net/decnet/dn_fib.c 		dn_fib_res_put(&res);
res               416 net/decnet/dn_fib.c int dn_fib_semantic_match(int type, struct dn_fib_info *fi, const struct flowidn *fld, struct dn_fib_res *res)
res               424 net/decnet/dn_fib.c 		res->fi = fi;
res               428 net/decnet/dn_fib.c 			DN_FIB_RES_RESET(*res);
res               441 net/decnet/dn_fib.c 				res->nh_sel = nhsel;
res               446 net/decnet/dn_fib.c 			res->fi = NULL;
res               451 net/decnet/dn_fib.c 			res->fi = NULL;
res               458 net/decnet/dn_fib.c void dn_fib_select_multipath(const struct flowidn *fld, struct dn_fib_res *res)
res               460 net/decnet/dn_fib.c 	struct dn_fib_info *fi = res->fi;
res               475 net/decnet/dn_fib.c 			res->nh_sel = 0;
res               487 net/decnet/dn_fib.c 				res->nh_sel = nhsel;
res               493 net/decnet/dn_fib.c 	res->nh_sel = 0;
res               862 net/decnet/dn_route.c static int dn_rt_set_next_hop(struct dn_route *rt, struct dn_fib_res *res)
res               864 net/decnet/dn_route.c 	struct dn_fib_info *fi = res->fi;
res               870 net/decnet/dn_route.c 		if (DN_FIB_RES_GW(*res) &&
res               871 net/decnet/dn_route.c 		    DN_FIB_RES_NH(*res).nh_scope == RT_SCOPE_LINK)
res               872 net/decnet/dn_route.c 			rt->rt_gateway = DN_FIB_RES_GW(*res);
res               875 net/decnet/dn_route.c 	rt->rt_type = res->type;
res               936 net/decnet/dn_route.c static inline __le16 __dn_fib_res_prefsrc(struct dn_fib_res *res)
res               938 net/decnet/dn_route.c 	return dnet_select_source(DN_FIB_RES_DEV(*res), DN_FIB_RES_GW(*res), res->scope);
res               941 net/decnet/dn_route.c static inline __le16 dn_fib_rules_map_destination(__le16 daddr, struct dn_fib_res *res)
res               943 net/decnet/dn_route.c 	__le16 mask = dnet_make_mask(res->prefixlen);
res               944 net/decnet/dn_route.c 	return (daddr&~mask)|res->fi->fib_nh->nh_gw;
res               962 net/decnet/dn_route.c 	struct dn_fib_res res = { .fi = NULL, .type = RTN_UNICAST };
res              1039 net/decnet/dn_route.c 		res.type = RTN_LOCAL;
res              1056 net/decnet/dn_route.c 	if (try_hard || (err = dn_fib_lookup(&fld, &res)) != 0) {
res              1085 net/decnet/dn_route.c 						res.type = RTN_LOCAL;
res              1109 net/decnet/dn_route.c 			res.type = RTN_LOCAL;
res              1124 net/decnet/dn_route.c 						       res.type == RTN_LOCAL ?
res              1127 net/decnet/dn_route.c 			if (fld.saddr == 0 && res.type != RTN_LOCAL)
res              1135 net/decnet/dn_route.c 	if (res.type == RTN_NAT)
res              1138 net/decnet/dn_route.c 	if (res.type == RTN_LOCAL) {
res              1148 net/decnet/dn_route.c 		if (res.fi)
res              1149 net/decnet/dn_route.c 			dn_fib_info_put(res.fi);
res              1150 net/decnet/dn_route.c 		res.fi = NULL;
res              1154 net/decnet/dn_route.c 	if (res.fi->fib_nhs > 1 && fld.flowidn_oif == 0)
res              1155 net/decnet/dn_route.c 		dn_fib_select_multipath(&fld, &res);
res              1163 net/decnet/dn_route.c 		fld.saddr = DN_FIB_RES_PREFSRC(res);
res              1167 net/decnet/dn_route.c 	dev_out = DN_FIB_RES_DEV(res);
res              1170 net/decnet/dn_route.c 	gateway = DN_FIB_RES_GW(res);
res              1206 net/decnet/dn_route.c 	err = dn_rt_set_next_hop(rt, &res);
res              1218 net/decnet/dn_route.c 		dn_fib_res_put(&res);
res              1319 net/decnet/dn_route.c 	struct dn_fib_res res = { .fi = NULL, .type = RTN_UNREACHABLE };
res              1343 net/decnet/dn_route.c 	err = dn_fib_lookup(&fld, &res);
res              1353 net/decnet/dn_route.c 		res.type = RTN_LOCAL;
res              1358 net/decnet/dn_route.c 		out_dev = DN_FIB_RES_DEV(res);
res              1365 net/decnet/dn_route.c 		if (res.r)
res              1368 net/decnet/dn_route.c 		gateway = DN_FIB_RES_GW(res);
res              1369 net/decnet/dn_route.c 		if (res.type == RTN_NAT) {
res              1370 net/decnet/dn_route.c 			fld.daddr = dn_fib_rules_map_destination(fld.daddr, &res);
res              1371 net/decnet/dn_route.c 			dn_fib_res_put(&res);
res              1373 net/decnet/dn_route.c 			if (dn_fib_lookup(&fld, &res))
res              1376 net/decnet/dn_route.c 			if (res.type != RTN_UNICAST)
res              1384 net/decnet/dn_route.c 	switch(res.type) {
res              1395 net/decnet/dn_route.c 		if (res.fi->fib_nhs > 1 && fld.flowidn_oif == 0)
res              1396 net/decnet/dn_route.c 			dn_fib_select_multipath(&fld, &res);
res              1407 net/decnet/dn_route.c 		local_src = DN_FIB_RES_PREFSRC(res);
res              1467 net/decnet/dn_route.c 	switch (res.type) {
res              1484 net/decnet/dn_route.c 	err = dn_rt_set_next_hop(rt, &res);
res              1497 net/decnet/dn_route.c 		dn_fib_res_put(&res);
res                54 net/decnet/dn_rules.c int dn_fib_lookup(struct flowidn *flp, struct dn_fib_res *res)
res                57 net/decnet/dn_rules.c 		.result = res,
res                63 net/decnet/dn_rules.c 	res->r = arg.rule;
res               187 net/decnet/dn_rules.c 	struct dn_fib_res res;
res               191 net/decnet/dn_rules.c 	res.r = NULL;
res               194 net/decnet/dn_rules.c 		if (!tb->lookup(tb, &fld, &res)) {
res               195 net/decnet/dn_rules.c 			ret = res.type;
res               196 net/decnet/dn_rules.c 			dn_fib_res_put(&res);
res               790 net/decnet/dn_table.c static int dn_fib_table_lookup(struct dn_fib_table *tb, const struct flowidn *flp, struct dn_fib_res *res)
res               817 net/decnet/dn_table.c 			err = dn_fib_semantic_match(f->fn_type, DN_FIB_INFO(f), flp, res);
res               820 net/decnet/dn_table.c 				res->type = f->fn_type;
res               821 net/decnet/dn_table.c 				res->scope = f->fn_scope;
res               822 net/decnet/dn_table.c 				res->prefixlen = dz->dz_order;
res               419 net/ethernet/eth.c static void devm_free_netdev(struct device *dev, void *res)
res               421 net/ethernet/eth.c 	free_netdev(*(struct net_device **)res);
res               439 net/hsr/hsr_device.c 	int res;
res               450 net/hsr/hsr_device.c 	res = hsr_create_self_node(hsr, hsr_dev->dev_addr,
res               452 net/hsr/hsr_device.c 	if (res < 0)
res               453 net/hsr/hsr_device.c 		return res;
res               481 net/hsr/hsr_device.c 	res = hsr_add_port(hsr, hsr_dev, HSR_PT_MASTER);
res               482 net/hsr/hsr_device.c 	if (res)
res               485 net/hsr/hsr_device.c 	res = register_netdevice(hsr_dev);
res               486 net/hsr/hsr_device.c 	if (res)
res               489 net/hsr/hsr_device.c 	res = hsr_add_port(hsr, slave[0], HSR_PT_SLAVE_A);
res               490 net/hsr/hsr_device.c 	if (res)
res               493 net/hsr/hsr_device.c 	res = hsr_add_port(hsr, slave[1], HSR_PT_SLAVE_B);
res               494 net/hsr/hsr_device.c 	if (res)
res               510 net/hsr/hsr_device.c 	return res;
res               201 net/hsr/hsr_forward.c 	int res;
res               206 net/hsr/hsr_forward.c 	res = netif_rx(skb);
res               207 net/hsr/hsr_forward.c 	if (res == NET_RX_DROP) {
res                25 net/hsr/hsr_main.c 	int res;
res                71 net/hsr/hsr_main.c 		res = hsr_create_self_node(hsr,
res                76 net/hsr/hsr_main.c 		if (res)
res               116 net/hsr/hsr_main.c 	int res;
res               121 net/hsr/hsr_main.c 	res = hsr_netlink_init();
res               123 net/hsr/hsr_main.c 	return res;
res                82 net/hsr/hsr_netlink.c 	int res;
res                86 net/hsr/hsr_netlink.c 	res = 0;
res                91 net/hsr/hsr_netlink.c 		res = nla_put_u32(skb, IFLA_HSR_SLAVE1, port->dev->ifindex);
res                93 net/hsr/hsr_netlink.c 	if (res)
res                99 net/hsr/hsr_netlink.c 		res = nla_put_u32(skb, IFLA_HSR_SLAVE2, port->dev->ifindex);
res               101 net/hsr/hsr_netlink.c 	if (res)
res               152 net/hsr/hsr_netlink.c 	int res;
res               163 net/hsr/hsr_netlink.c 	res = nla_put(skb, HSR_A_NODE_ADDR, ETH_ALEN, addr);
res               164 net/hsr/hsr_netlink.c 	if (res < 0)
res               167 net/hsr/hsr_netlink.c 	res = nla_put_u32(skb, HSR_A_IFINDEX, port->dev->ifindex);
res               168 net/hsr/hsr_netlink.c 	if (res < 0)
res               194 net/hsr/hsr_netlink.c 	int res;
res               204 net/hsr/hsr_netlink.c 	res = nla_put(skb, HSR_A_NODE_ADDR, ETH_ALEN, addr);
res               205 net/hsr/hsr_netlink.c 	if (res < 0)
res               248 net/hsr/hsr_netlink.c 	int res;
res               271 net/hsr/hsr_netlink.c 		res = -ENOMEM;
res               279 net/hsr/hsr_netlink.c 		res = -ENOMEM;
res               283 net/hsr/hsr_netlink.c 	res = nla_put_u32(skb_out, HSR_A_IFINDEX, hsr_dev->ifindex);
res               284 net/hsr/hsr_netlink.c 	if (res < 0)
res               288 net/hsr/hsr_netlink.c 	res = hsr_get_node_data(hsr,
res               297 net/hsr/hsr_netlink.c 	if (res < 0)
res               300 net/hsr/hsr_netlink.c 	res = nla_put(skb_out, HSR_A_NODE_ADDR, ETH_ALEN,
res               302 net/hsr/hsr_netlink.c 	if (res < 0)
res               306 net/hsr/hsr_netlink.c 		res = nla_put(skb_out, HSR_A_NODE_ADDR_B, ETH_ALEN,
res               308 net/hsr/hsr_netlink.c 		if (res < 0)
res               311 net/hsr/hsr_netlink.c 		res = nla_put_u32(skb_out, HSR_A_ADDR_B_IFINDEX,
res               313 net/hsr/hsr_netlink.c 		if (res < 0)
res               317 net/hsr/hsr_netlink.c 	res = nla_put_u32(skb_out, HSR_A_IF1_AGE, hsr_node_if1_age);
res               318 net/hsr/hsr_netlink.c 	if (res < 0)
res               320 net/hsr/hsr_netlink.c 	res = nla_put_u16(skb_out, HSR_A_IF1_SEQ, hsr_node_if1_seq);
res               321 net/hsr/hsr_netlink.c 	if (res < 0)
res               325 net/hsr/hsr_netlink.c 		res = nla_put_u32(skb_out, HSR_A_IF1_IFINDEX,
res               327 net/hsr/hsr_netlink.c 	if (res < 0)
res               330 net/hsr/hsr_netlink.c 	res = nla_put_u32(skb_out, HSR_A_IF2_AGE, hsr_node_if2_age);
res               331 net/hsr/hsr_netlink.c 	if (res < 0)
res               333 net/hsr/hsr_netlink.c 	res = nla_put_u16(skb_out, HSR_A_IF2_SEQ, hsr_node_if2_seq);
res               334 net/hsr/hsr_netlink.c 	if (res < 0)
res               338 net/hsr/hsr_netlink.c 		res = nla_put_u32(skb_out, HSR_A_IF2_IFINDEX,
res               340 net/hsr/hsr_netlink.c 	if (res < 0)
res               362 net/hsr/hsr_netlink.c 	return res;
res               377 net/hsr/hsr_netlink.c 	int res;
res               398 net/hsr/hsr_netlink.c 		res = -ENOMEM;
res               406 net/hsr/hsr_netlink.c 		res = -ENOMEM;
res               411 net/hsr/hsr_netlink.c 		res = nla_put_u32(skb_out, HSR_A_IFINDEX, hsr_dev->ifindex);
res               412 net/hsr/hsr_netlink.c 		if (res < 0)
res               421 net/hsr/hsr_netlink.c 		res = nla_put(skb_out, HSR_A_NODE_ADDR, ETH_ALEN, addr);
res               422 net/hsr/hsr_netlink.c 		if (res < 0) {
res               423 net/hsr/hsr_netlink.c 			if (res == -EMSGSIZE) {
res               453 net/hsr/hsr_netlink.c 	return res;
res               101 net/hsr/hsr_slave.c 	int res;
res               104 net/hsr/hsr_slave.c 	res = dev_set_promiscuity(dev, 1);
res               105 net/hsr/hsr_slave.c 	if (res)
res               113 net/hsr/hsr_slave.c 	res = netdev_rx_handler_register(dev, hsr_handle_frame, port);
res               114 net/hsr/hsr_slave.c 	if (res)
res               125 net/hsr/hsr_slave.c 	return res;
res               132 net/hsr/hsr_slave.c 	int res;
res               135 net/hsr/hsr_slave.c 		res = hsr_check_dev_ok(dev);
res               136 net/hsr/hsr_slave.c 		if (res)
res               137 net/hsr/hsr_slave.c 			return res;
res               153 net/hsr/hsr_slave.c 		res = hsr_portdev_setup(dev, port);
res               154 net/hsr/hsr_slave.c 		if (res)
res               169 net/hsr/hsr_slave.c 	return res;
res               141 net/ieee802154/6lowpan/reassembly.c 		int res;
res               145 net/ieee802154/6lowpan/reassembly.c 		res = lowpan_frag_reasm(fq, skb, prev_tail, ldev);
res               147 net/ieee802154/6lowpan/reassembly.c 		return res;
res               188 net/ieee802154/6lowpan/reassembly.c 					  lowpan_rx_result res)
res               190 net/ieee802154/6lowpan/reassembly.c 	switch (res) {
res               221 net/ieee802154/6lowpan/reassembly.c 	lowpan_rx_result res;
res               225 net/ieee802154/6lowpan/reassembly.c 		res = rxh(skb);	\
res               226 net/ieee802154/6lowpan/reassembly.c 		if (res != RX_CONTINUE)	\
res               235 net/ieee802154/6lowpan/reassembly.c 	return lowpan_frag_rx_handlers_result(skb, res);
res               445 net/ieee802154/6lowpan/reassembly.c 	int res;
res               448 net/ieee802154/6lowpan/reassembly.c 	res = fqdir_init(&ieee802154_lowpan->fqdir, &lowpan_frags, net);
res               449 net/ieee802154/6lowpan/reassembly.c 	if (res < 0)
res               450 net/ieee802154/6lowpan/reassembly.c 		return res;
res               456 net/ieee802154/6lowpan/reassembly.c 	res = lowpan_frags_ns_sysctl_register(net);
res               457 net/ieee802154/6lowpan/reassembly.c 	if (res < 0)
res               459 net/ieee802154/6lowpan/reassembly.c 	return res;
res                30 net/ieee802154/6lowpan/rx.c static int lowpan_rx_handlers_result(struct sk_buff *skb, lowpan_rx_result res)
res                32 net/ieee802154/6lowpan/rx.c 	switch (res) {
res               204 net/ieee802154/6lowpan/rx.c 	lowpan_rx_result res;
res               208 net/ieee802154/6lowpan/rx.c 		res = rxh(skb);	\
res               209 net/ieee802154/6lowpan/rx.c 		if (res != RX_CONTINUE)	\
res               224 net/ieee802154/6lowpan/rx.c 	return lowpan_rx_handlers_result(skb, res);
res              1652 net/ipv4/af_inet.c 	unsigned long res = 0;
res              1656 net/ipv4/af_inet.c 		res += snmp_get_cpu_field(mib, i, offt);
res              1657 net/ipv4/af_inet.c 	return res;
res              1684 net/ipv4/af_inet.c 	u64 res = 0;
res              1688 net/ipv4/af_inet.c 		res += snmp_get_cpu_field64(mib, cpu, offt, syncp_offset);
res              1690 net/ipv4/af_inet.c 	return res;
res              1729 net/ipv4/cipso_ipv4.c 	int res;
res              1742 net/ipv4/cipso_ipv4.c 	res = __ip_options_compile(dev_net(skb->dev), opt, skb, NULL);
res              1745 net/ipv4/cipso_ipv4.c 	if (res)
res              2145 net/ipv4/cipso_ipv4.c 	int res = -ENOMSG;
res              2150 net/ipv4/cipso_ipv4.c 		res = cipso_v4_getattr(opt->opt.__data +
res              2155 net/ipv4/cipso_ipv4.c 	return res;
res                87 net/ipv4/datagram.c 	int res;
res                90 net/ipv4/datagram.c 	res = __ip4_datagram_connect(sk, uaddr, addr_len);
res                92 net/ipv4/datagram.c 	return res;
res               159 net/ipv4/devinet.c 		struct fib_result res = { 0 };
res               167 net/ipv4/devinet.c 		    !fib_table_lookup(local, &fl4, &res, FIB_LOOKUP_NOREF) &&
res               168 net/ipv4/devinet.c 		    res.type == RTN_LOCAL)
res               169 net/ipv4/devinet.c 			result = FIB_RES_DEV(res);
res               220 net/ipv4/fib_frontend.c 	struct fib_result	res;
res               234 net/ipv4/fib_frontend.c 		if (!fib_table_lookup(table, &fl4, &res, FIB_LOOKUP_NOREF)) {
res               235 net/ipv4/fib_frontend.c 			struct fib_nh_common *nhc = fib_info_nhc(res.fi, 0);
res               238 net/ipv4/fib_frontend.c 				ret = res.type;
res               284 net/ipv4/fib_frontend.c 	struct fib_result res;
res               309 net/ipv4/fib_frontend.c 		if (!fib_lookup(net, &fl4, &res, 0))
res               310 net/ipv4/fib_frontend.c 			return fib_result_prefsrc(net, &res);
res               360 net/ipv4/fib_frontend.c 	struct fib_result res;
res               385 net/ipv4/fib_frontend.c 	if (fib_lookup(net, &fl4, &res, 0))
res               387 net/ipv4/fib_frontend.c 	if (res.type != RTN_UNICAST &&
res               388 net/ipv4/fib_frontend.c 	    (res.type != RTN_LOCAL || !IN_DEV_ACCEPT_LOCAL(idev)))
res               390 net/ipv4/fib_frontend.c 	fib_combine_itag(itag, &res);
res               392 net/ipv4/fib_frontend.c 	dev_match = fib_info_nh_uses_dev(res.fi, dev);
res               396 net/ipv4/fib_frontend.c 	dev_match = dev_match || (res.type == RTN_LOCAL &&
res               399 net/ipv4/fib_frontend.c 		ret = FIB_RES_NHC(res)->nhc_scope >= RT_SCOPE_HOST;
res               409 net/ipv4/fib_frontend.c 	if (fib_lookup(net, &fl4, &res, FIB_LOOKUP_IGNORE_LINKSTATE) == 0) {
res               410 net/ipv4/fib_frontend.c 		if (res.type == RTN_UNICAST)
res               411 net/ipv4/fib_frontend.c 			ret = FIB_RES_NHC(res)->nhc_scope >= RT_SCOPE_HOST;
res              1331 net/ipv4/fib_frontend.c 	struct fib_result       res;
res              1349 net/ipv4/fib_frontend.c 		frn->err = fib_table_lookup(tb, &fl4, &res, FIB_LOOKUP_NOREF);
res              1352 net/ipv4/fib_frontend.c 			frn->prefixlen = res.prefixlen;
res              1353 net/ipv4/fib_frontend.c 			frn->nh_sel = res.nh_sel;
res              1354 net/ipv4/fib_frontend.c 			frn->type = res.type;
res              1355 net/ipv4/fib_frontend.c 			frn->scope = res.scope;
res                44 net/ipv4/fib_lookup.h static inline void fib_result_assign(struct fib_result *res,
res                48 net/ipv4/fib_lookup.h 	res->fi = fi;
res                49 net/ipv4/fib_lookup.h 	res->nhc = fib_info_nhc(fi, 0);
res                79 net/ipv4/fib_rules.c 		 struct fib_result *res, unsigned int flags)
res                82 net/ipv4/fib_rules.c 		.result = res,
res                93 net/ipv4/fib_rules.c 		res->tclassid = ((struct fib4_rule *)arg.rule)->tclassid;
res                95 net/ipv4/fib_rules.c 		res->tclassid = 0;
res              1058 net/ipv4/fib_semantics.c 	struct fib_result res;
res              1107 net/ipv4/fib_semantics.c 			err = fib_table_lookup(tbl, &fl4, &res,
res              1116 net/ipv4/fib_semantics.c 			err = fib_lookup(net, &fl4, &res,
res              1127 net/ipv4/fib_semantics.c 	if (res.type != RTN_UNICAST && res.type != RTN_LOCAL) {
res              1131 net/ipv4/fib_semantics.c 	nh->fib_nh_scope = res.scope;
res              1132 net/ipv4/fib_semantics.c 	nh->fib_nh_oif = FIB_RES_OIF(res);
res              1133 net/ipv4/fib_semantics.c 	nh->fib_nh_dev = dev = FIB_RES_DEV(res);
res              1295 net/ipv4/fib_semantics.c __be32 fib_result_prefsrc(struct net *net, struct fib_result *res)
res              1297 net/ipv4/fib_semantics.c 	struct fib_nh_common *nhc = res->nhc;
res              1299 net/ipv4/fib_semantics.c 	if (res->fi->fib_prefsrc)
res              1300 net/ipv4/fib_semantics.c 		return res->fi->fib_prefsrc;
res              1310 net/ipv4/fib_semantics.c 	return fib_info_update_nhc_saddr(net, nhc, res->fi->fib_scope);
res              1989 net/ipv4/fib_semantics.c static void fib_select_default(const struct flowi4 *flp, struct fib_result *res)
res              1992 net/ipv4/fib_semantics.c 	struct hlist_head *fa_head = res->fa_head;
res              1993 net/ipv4/fib_semantics.c 	struct fib_table *tb = res->table;
res              1994 net/ipv4/fib_semantics.c 	u8 slen = 32 - res->prefixlen;
res              1997 net/ipv4/fib_semantics.c 	u32 last_prio = res->fi->fib_priority;
res              2021 net/ipv4/fib_semantics.c 		if (next_fi->fib_scope != res->scope ||
res              2032 net/ipv4/fib_semantics.c 			if (next_fi != res->fi)
res              2037 net/ipv4/fib_semantics.c 			fib_result_assign(res, fi);
res              2053 net/ipv4/fib_semantics.c 		fib_result_assign(res, fi);
res              2059 net/ipv4/fib_semantics.c 		fib_result_assign(res, last_resort);
res              2158 net/ipv4/fib_semantics.c void fib_select_multipath(struct fib_result *res, int hash)
res              2160 net/ipv4/fib_semantics.c 	struct fib_info *fi = res->fi;
res              2164 net/ipv4/fib_semantics.c 	if (unlikely(res->fi->nh)) {
res              2165 net/ipv4/fib_semantics.c 		nexthop_path_fib_result(res, hash);
res              2174 net/ipv4/fib_semantics.c 				res->nh_sel = nhsel;
res              2175 net/ipv4/fib_semantics.c 				res->nhc = &nexthop_nh->nh_common;
res              2183 net/ipv4/fib_semantics.c 		res->nh_sel = nhsel;
res              2184 net/ipv4/fib_semantics.c 		res->nhc = &nexthop_nh->nh_common;
res              2190 net/ipv4/fib_semantics.c void fib_select_path(struct net *net, struct fib_result *res,
res              2197 net/ipv4/fib_semantics.c 	if (fib_info_num_path(res->fi) > 1) {
res              2200 net/ipv4/fib_semantics.c 		fib_select_multipath(res, h);
res              2204 net/ipv4/fib_semantics.c 	if (!res->prefixlen &&
res              2205 net/ipv4/fib_semantics.c 	    res->table->tb_num_default > 1 &&
res              2206 net/ipv4/fib_semantics.c 	    res->type == RTN_UNICAST)
res              2207 net/ipv4/fib_semantics.c 		fib_select_default(fl4, res);
res              2211 net/ipv4/fib_semantics.c 		fl4->saddr = fib_result_prefsrc(net, res);
res              1313 net/ipv4/fib_trie.c 		     struct fib_result *res, int fib_flags)
res              1491 net/ipv4/fib_trie.c 			res->prefix = htonl(n->key);
res              1492 net/ipv4/fib_trie.c 			res->prefixlen = KEYLENGTH - fa->fa_slen;
res              1493 net/ipv4/fib_trie.c 			res->nh_sel = nhsel;
res              1494 net/ipv4/fib_trie.c 			res->nhc = nhc;
res              1495 net/ipv4/fib_trie.c 			res->type = fa->fa_type;
res              1496 net/ipv4/fib_trie.c 			res->scope = fi->fib_scope;
res              1497 net/ipv4/fib_trie.c 			res->fi = fi;
res              1498 net/ipv4/fib_trie.c 			res->table = tb;
res              1499 net/ipv4/fib_trie.c 			res->fa_head = &n->leaf;
res               965 net/ipv4/inet_diag.c 		int idx, accum, res;
res              1013 net/ipv4/inet_diag.c 		res = 0;
res              1015 net/ipv4/inet_diag.c 			if (res >= 0) {
res              1016 net/ipv4/inet_diag.c 				res = sk_diag_fill(sk_arr[idx], skb, r,
res              1021 net/ipv4/inet_diag.c 				if (res < 0)
res              1026 net/ipv4/inet_diag.c 		if (res < 0)
res               170 net/ipv4/inet_fragment.c 	int res;
res               176 net/ipv4/inet_fragment.c 	res = rhashtable_init(&fqdir->rhashtable, &fqdir->f->rhash_params);
res               177 net/ipv4/inet_fragment.c 	if (res < 0) {
res               179 net/ipv4/inet_fragment.c 		return res;
res               653 net/ipv4/ip_fragment.c 	int res;
res               655 net/ipv4/ip_fragment.c 	res = fqdir_init(&net->ipv4.fqdir, &ip4_frags, net);
res               656 net/ipv4/ip_fragment.c 	if (res < 0)
res               657 net/ipv4/ip_fragment.c 		return res;
res               683 net/ipv4/ip_fragment.c 	res = ip4_frags_ns_ctl_register(net);
res               684 net/ipv4/ip_fragment.c 	if (res < 0)
res               686 net/ipv4/ip_fragment.c 	return res;
res               377 net/ipv4/ip_gre.c 	int res;
res               384 net/ipv4/ip_gre.c 	res = __ipgre_rcv(skb, tpi, itn, hdr_len, false);
res               385 net/ipv4/ip_gre.c 	if (res == PACKET_NEXT && tpi->proto == htons(ETH_P_TEB)) {
res               390 net/ipv4/ip_gre.c 		res = __ipgre_rcv(skb, tpi, itn, hdr_len, true);
res               392 net/ipv4/ip_gre.c 	return res;
res               215 net/ipv4/ip_output.c 		int res = lwtunnel_xmit(skb);
res               217 net/ipv4/ip_output.c 		if (res < 0 || res == LWTUNNEL_XMIT_DONE)
res               218 net/ipv4/ip_output.c 			return res;
res               224 net/ipv4/ip_output.c 		int res;
res               228 net/ipv4/ip_output.c 		res = neigh_output(neigh, skb, is_v6gw);
res               230 net/ipv4/ip_output.c 		return res;
res               462 net/ipv4/ip_output.c 	int res;
res               532 net/ipv4/ip_output.c 	res = ip_local_out(net, sk, skb);
res               534 net/ipv4/ip_output.c 	return res;
res               124 net/ipv4/ip_tunnel_core.c 	struct metadata_dst *res;
res               132 net/ipv4/ip_tunnel_core.c 	res = metadata_dst_alloc(0, METADATA_IP_TUNNEL, flags);
res               133 net/ipv4/ip_tunnel_core.c 	if (!res)
res               136 net/ipv4/ip_tunnel_core.c 	dst = &res->u.tun_info;
res               147 net/ipv4/ip_tunnel_core.c 	return res;
res               147 net/ipv4/ipmr.c 	struct ipmr_result res;
res               149 net/ipv4/ipmr.c 		.result = &res,
res               160 net/ipv4/ipmr.c 	*mrt = res.mrt;
res               167 net/ipv4/ipmr.c 	struct ipmr_result *res = arg->result;
res               187 net/ipv4/ipmr.c 	res->mrt = mrt;
res               814 net/ipv4/ipmr.c 	cache->mfc_un.res.minvif = MAXVIFS;
res               815 net/ipv4/ipmr.c 	cache->mfc_un.res.maxvif = 0;
res               816 net/ipv4/ipmr.c 	memset(cache->mfc_un.res.ttls, 255, MAXVIFS);
res               821 net/ipv4/ipmr.c 			cache->mfc_un.res.ttls[vifi] = ttls[vifi];
res               822 net/ipv4/ipmr.c 			if (cache->mfc_un.res.minvif > vifi)
res               823 net/ipv4/ipmr.c 				cache->mfc_un.res.minvif = vifi;
res               824 net/ipv4/ipmr.c 			if (cache->mfc_un.res.maxvif <= vifi)
res               825 net/ipv4/ipmr.c 				cache->mfc_un.res.maxvif = vifi + 1;
res               828 net/ipv4/ipmr.c 	cache->mfc_un.res.lastuse = jiffies;
res               983 net/ipv4/ipmr.c 		c->_c.mfc_un.res.last_assert = jiffies - MFC_ASSERT_THRESH - 1;
res               984 net/ipv4/ipmr.c 		c->_c.mfc_un.res.minvif = MAXVIFS;
res               986 net/ipv4/ipmr.c 		refcount_set(&c->_c.mfc_un.res.refcount, 1);
res              1652 net/ipv4/ipmr.c 			sr.pktcnt = c->_c.mfc_un.res.pkt;
res              1653 net/ipv4/ipmr.c 			sr.bytecnt = c->_c.mfc_un.res.bytes;
res              1654 net/ipv4/ipmr.c 			sr.wrong_if = c->_c.mfc_un.res.wrong_if;
res              1727 net/ipv4/ipmr.c 			sr.pktcnt = c->_c.mfc_un.res.pkt;
res              1728 net/ipv4/ipmr.c 			sr.bytecnt = c->_c.mfc_un.res.bytes;
res              1729 net/ipv4/ipmr.c 			sr.wrong_if = c->_c.mfc_un.res.wrong_if;
res              1959 net/ipv4/ipmr.c 	c->_c.mfc_un.res.pkt++;
res              1960 net/ipv4/ipmr.c 	c->_c.mfc_un.res.bytes += skb->len;
res              1961 net/ipv4/ipmr.c 	c->_c.mfc_un.res.lastuse = jiffies;
res              1971 net/ipv4/ipmr.c 		    cache_proxy->_c.mfc_un.res.ttls[true_vifi] < 255)
res              1992 net/ipv4/ipmr.c 		c->_c.mfc_un.res.wrong_if++;
res              2001 net/ipv4/ipmr.c 		     c->_c.mfc_un.res.ttls[true_vifi] < 255) &&
res              2003 net/ipv4/ipmr.c 			       c->_c.mfc_un.res.last_assert +
res              2005 net/ipv4/ipmr.c 			c->_c.mfc_un.res.last_assert = jiffies;
res              2024 net/ipv4/ipmr.c 				c->_c.mfc_un.res.ttls[c->_c.mfc_parent]) {
res              2034 net/ipv4/ipmr.c 	for (ct = c->_c.mfc_un.res.maxvif - 1;
res              2035 net/ipv4/ipmr.c 	     ct >= c->_c.mfc_un.res.minvif; ct--) {
res              2039 net/ipv4/ipmr.c 		    ip_hdr(skb)->ttl > c->_c.mfc_un.res.ttls[ct]) {
res              3000 net/ipv4/ipmr.c 				   mfc->_c.mfc_un.res.pkt,
res              3001 net/ipv4/ipmr.c 				   mfc->_c.mfc_un.res.bytes,
res              3002 net/ipv4/ipmr.c 				   mfc->_c.mfc_un.res.wrong_if);
res              3003 net/ipv4/ipmr.c 			for (n = mfc->_c.mfc_un.res.minvif;
res              3004 net/ipv4/ipmr.c 			     n < mfc->_c.mfc_un.res.maxvif; n++) {
res              3006 net/ipv4/ipmr.c 				    mfc->_c.mfc_un.res.ttls[n] < 255)
res              3009 net/ipv4/ipmr.c 					   n, mfc->_c.mfc_un.res.ttls[n]);
res                86 net/ipv4/ipmr_base.c 		if (c->mfc_un.res.ttls[vifi] < 255)
res               100 net/ipv4/ipmr_base.c 		if (c->mfc_un.res.ttls[vifi] < 255)
res               105 net/ipv4/ipmr_base.c 		if (proxy && proxy->mfc_un.res.ttls[vifi] < 255)
res               235 net/ipv4/ipmr_base.c 	for (ct = c->mfc_un.res.minvif; ct < c->mfc_un.res.maxvif; ct++) {
res               236 net/ipv4/ipmr_base.c 		if (VIF_EXISTS(mrt, ct) && c->mfc_un.res.ttls[ct] < 255) {
res               246 net/ipv4/ipmr_base.c 			nhp->rtnh_hops = c->mfc_un.res.ttls[ct];
res               255 net/ipv4/ipmr_base.c 	lastuse = READ_ONCE(c->mfc_un.res.lastuse);
res               258 net/ipv4/ipmr_base.c 	mfcs.mfcs_packets = c->mfc_un.res.pkt;
res               259 net/ipv4/ipmr_base.c 	mfcs.mfcs_bytes = c->mfc_un.res.bytes;
res               260 net/ipv4/ipmr_base.c 	mfcs.mfcs_wrong_if = c->mfc_un.res.wrong_if;
res               277 net/ipv4/ipmr_base.c 	for (ct = c->mfc_un.res.minvif; ct < c->mfc_un.res.maxvif; ct++) {
res               278 net/ipv4/ipmr_base.c 		if (VIF_EXISTS(mrt, ct) && c->mfc_un.res.ttls[ct] < 255) {
res              1540 net/ipv4/netfilter/arp_tables.c 			struct xt_table **res)
res              1566 net/ipv4/netfilter/arp_tables.c 	WRITE_ONCE(*res, new_table);
res              1571 net/ipv4/netfilter/arp_tables.c 		*res = NULL;
res              1757 net/ipv4/netfilter/ip_tables.c 		       const struct nf_hook_ops *ops, struct xt_table **res)
res              1783 net/ipv4/netfilter/ip_tables.c 	WRITE_ONCE(*res, new_table);
res              1790 net/ipv4/netfilter/ip_tables.c 		*res = NULL;
res                35 net/ipv4/netfilter/ipt_rpfilter.c 	struct fib_result res;
res                38 net/ipv4/netfilter/ipt_rpfilter.c 	if (fib_lookup(net, fl4, &res, FIB_LOOKUP_IGNORE_LINKSTATE))
res                41 net/ipv4/netfilter/ipt_rpfilter.c 	if (res.type != RTN_UNICAST) {
res                42 net/ipv4/netfilter/ipt_rpfilter.c 		if (res.type != RTN_LOCAL || !(flags & XT_RPFILTER_ACCEPT_LOCAL))
res                45 net/ipv4/netfilter/ipt_rpfilter.c 	return fib_info_nh_uses_dev(res.fi, dev) || flags & XT_RPFILTER_LOOSE;
res                64 net/ipv4/netfilter/nft_fib_ipv4.c 	struct fib_result res;
res               121 net/ipv4/netfilter/nft_fib_ipv4.c 	if (fib_lookup(nft_net(pkt), &fl4, &res, FIB_LOOKUP_IGNORE_LINKSTATE))
res               124 net/ipv4/netfilter/nft_fib_ipv4.c 	switch (res.type) {
res               134 net/ipv4/netfilter/nft_fib_ipv4.c                found = FIB_RES_DEV(res);
res               136 net/ipv4/netfilter/nft_fib_ipv4.c 		if (!fib_info_nh_uses_dev(res.fi, oif))
res                64 net/ipv4/ping.c 	u32 res = (num + net_hash_mix(net)) & mask;
res                66 net/ipv4/ping.c 	pr_debug("hash(%u) = %u\n", num, res);
res                67 net/ipv4/ping.c 	return res;
res               742 net/ipv4/route.c 	struct fib_result res;
res               787 net/ipv4/route.c 			if (fib_lookup(net, fl4, &res, 0) == 0) {
res               788 net/ipv4/route.c 				struct fib_nh_common *nhc = FIB_RES_NHC(res);
res              1016 net/ipv4/route.c 	struct fib_result res;
res              1035 net/ipv4/route.c 	if (fib_lookup(dev_net(dst->dev), fl4, &res, 0) == 0) {
res              1036 net/ipv4/route.c 		struct fib_nh_common *nhc = FIB_RES_NHC(res);
res              1198 net/ipv4/route.c 	int res;
res              1214 net/ipv4/route.c 		res = __ip_options_compile(dev_net(skb->dev), &opt, skb, NULL);
res              1217 net/ipv4/route.c 		if (res)
res              1260 net/ipv4/route.c 		struct fib_result res;
res              1272 net/ipv4/route.c 		if (fib_lookup(dev_net(rt->dst.dev), &fl4, &res, 0) == 0)
res              1273 net/ipv4/route.c 			src = fib_result_prefsrc(dev_net(rt->dst.dev), &res);
res              1391 net/ipv4/route.c u32 ip_mtu_from_fib_result(struct fib_result *res, __be32 daddr)
res              1393 net/ipv4/route.c 	struct fib_nh_common *nhc = res->nhc;
res              1395 net/ipv4/route.c 	struct fib_info *fi = res->fi;
res              1561 net/ipv4/route.c 			   const struct fib_result *res,
res              1569 net/ipv4/route.c 		struct fib_nh_common *nhc = FIB_RES_NHC(*res);
res              1613 net/ipv4/route.c 	set_class_tag(rt, res->tclassid);
res              1782 net/ipv4/route.c 			   const struct fib_result *res,
res              1786 net/ipv4/route.c 	struct fib_nh_common *nhc = FIB_RES_NHC(*res);
res              1802 net/ipv4/route.c 	err = fib_validate_source(skb, saddr, daddr, tos, FIB_RES_OIF(*res),
res              1811 net/ipv4/route.c 	do_cache = res->fi && !itag;
res              1849 net/ipv4/route.c 	rth = rt_dst_alloc(out_dev->dev, 0, res->type,
res              1862 net/ipv4/route.c 	rt_set_nexthop(rth, daddr, res, fnhe, res->fi, res->type, itag,
res              2008 net/ipv4/route.c 			    struct fib_result *res,
res              2014 net/ipv4/route.c 	if (res->fi && fib_info_num_path(res->fi) > 1) {
res              2015 net/ipv4/route.c 		int h = fib_multipath_hash(res->fi->fib_net, NULL, skb, hkeys);
res              2017 net/ipv4/route.c 		fib_select_multipath(res, h);
res              2022 net/ipv4/route.c 	return __mkroute_input(skb, res, in_dev, daddr, saddr, tos);
res              2038 net/ipv4/route.c 			       struct fib_result *res)
res              2070 net/ipv4/route.c 	res->fi = NULL;
res              2071 net/ipv4/route.c 	res->table = NULL;
res              2116 net/ipv4/route.c 	err = fib_lookup(net, &fl4, res, 0);
res              2123 net/ipv4/route.c 	if (res->type == RTN_BROADCAST) {
res              2132 net/ipv4/route.c 	if (res->type == RTN_LOCAL) {
res              2144 net/ipv4/route.c 	if (res->type != RTN_UNICAST)
res              2148 net/ipv4/route.c 	err = ip_mkroute_input(skb, res, in_dev, daddr, saddr, tos, flkeys);
res              2162 net/ipv4/route.c 	res->type = RTN_BROADCAST;
res              2166 net/ipv4/route.c 	do_cache &= res->fi && !itag;
res              2168 net/ipv4/route.c 		struct fib_nh_common *nhc = FIB_RES_NHC(*res);
res              2179 net/ipv4/route.c 			   flags | RTCF_LOCAL, res->type,
res              2191 net/ipv4/route.c 	if (res->type == RTN_UNREACHABLE) {
res              2198 net/ipv4/route.c 		struct fib_nh_common *nhc = FIB_RES_NHC(*res);
res              2216 net/ipv4/route.c 	res->type = RTN_UNREACHABLE;
res              2217 net/ipv4/route.c 	res->fi = NULL;
res              2218 net/ipv4/route.c 	res->table = NULL;
res              2248 net/ipv4/route.c 	struct fib_result res;
res              2253 net/ipv4/route.c 	err = ip_route_input_rcu(skb, daddr, saddr, tos, dev, &res);
res              2262 net/ipv4/route.c 		       u8 tos, struct net_device *dev, struct fib_result *res)
res              2308 net/ipv4/route.c 	return ip_route_input_slow(skb, daddr, saddr, tos, dev, res);
res              2312 net/ipv4/route.c static struct rtable *__mkroute_output(const struct fib_result *res,
res              2317 net/ipv4/route.c 	struct fib_info *fi = res->fi;
res              2320 net/ipv4/route.c 	u16 type = res->type;
res              2359 net/ipv4/route.c 		if (fi && res->prefixlen < 4)
res              2378 net/ipv4/route.c 		struct fib_nh_common *nhc = FIB_RES_NHC(*res);
res              2430 net/ipv4/route.c 	rt_set_nexthop(rth, fl4->daddr, res, fnhe, fi, type, 0, do_cache);
res              2444 net/ipv4/route.c 	struct fib_result res = {
res              2458 net/ipv4/route.c 	rth = ip_route_output_key_hash_rcu(net, fl4, &res, skb);
res              2466 net/ipv4/route.c 					    struct fib_result *res,
res              2563 net/ipv4/route.c 		res->type = RTN_LOCAL;
res              2568 net/ipv4/route.c 	err = fib_lookup(net, fl4, res, 0);
res              2570 net/ipv4/route.c 		res->fi = NULL;
res              2571 net/ipv4/route.c 		res->table = NULL;
res              2596 net/ipv4/route.c 			res->type = RTN_UNICAST;
res              2603 net/ipv4/route.c 	if (res->type == RTN_LOCAL) {
res              2605 net/ipv4/route.c 			if (res->fi->fib_prefsrc)
res              2606 net/ipv4/route.c 				fl4->saddr = res->fi->fib_prefsrc;
res              2612 net/ipv4/route.c 		dev_out = l3mdev_master_dev_rcu(FIB_RES_DEV(*res)) ? :
res              2618 net/ipv4/route.c 		orig_oif = FIB_RES_OIF(*res);
res              2625 net/ipv4/route.c 	fib_select_path(net, res, fl4, skb);
res              2627 net/ipv4/route.c 	dev_out = FIB_RES_DEV(*res);
res              2632 net/ipv4/route.c 	rth = __mkroute_output(res, fl4, orig_oif, dev_out, flags);
res              3082 net/ipv4/route.c 	struct fib_result res = {};
res              3153 net/ipv4/route.c 					 dev, &res);
res              3161 net/ipv4/route.c 		rt = ip_route_output_key_hash_rcu(net, &fl4, &res, skb);
res              3176 net/ipv4/route.c 		table_id = res.table ? res.table->tb_id : 0;
res              3185 net/ipv4/route.c 		if (!res.fi) {
res              3186 net/ipv4/route.c 			err = fib_props[res.type].error;
res              3193 net/ipv4/route.c 				    rt->rt_type, res.prefix, res.prefixlen,
res              3194 net/ipv4/route.c 				    fl4.flowi4_tos, res.fi, 0);
res               356 net/ipv4/tcp.c 	u8 res = 0;
res               361 net/ipv4/tcp.c 		res = 1;
res               362 net/ipv4/tcp.c 		while (seconds > period && res < 255) {
res               363 net/ipv4/tcp.c 			res++;
res               370 net/ipv4/tcp.c 	return res;
res               112 net/ipv4/tcp_cdg.c 	u32 res;
res               120 net/ipv4/tcp_cdg.c 	res = U32_MAX - (ux & 0xff) * (U32_MAX / 1000000);
res               126 net/ipv4/tcp_cdg.c 		res = ((u64)res * y) >> 16;
res               129 net/ipv4/tcp_cdg.c 	return res;
res              4457 net/ipv4/tcp_input.c 	bool res = tcp_try_coalesce(sk, to, from, fragstolen);
res              4460 net/ipv4/tcp_input.c 	if (res) {
res              4466 net/ipv4/tcp_input.c 	return res;
res              2634 net/ipv4/tcp_ipv4.c 	int res, cpu, cnt;
res              2643 net/ipv4/tcp_ipv4.c 		res = inet_ctl_sock_create(&sk, PF_INET, SOCK_RAW,
res              2645 net/ipv4/tcp_ipv4.c 		if (res)
res              2740 net/ipv4/tcp_ipv4.c 	return res;
res              3851 net/ipv4/tcp_output.c 	int res;
res              3854 net/ipv4/tcp_output.c 	res = af_ops->send_synack(sk, NULL, &fl, req, NULL, TCP_SYNACK_NORMAL);
res              3855 net/ipv4/tcp_output.c 	if (!res) {
res              3862 net/ipv4/tcp_output.c 	return res;
res               170 net/ipv4/udp.c 	int res = 0;
res               184 net/ipv4/udp.c 				res = 0;
res               186 net/ipv4/udp.c 				res = 1;
res               192 net/ipv4/udp.c 	return res;
res              1605 net/ipv4/udp.c 	int res;
res              1616 net/ipv4/udp.c 	res = skb ? skb->len : -1;
res              1620 net/ipv4/udp.c 	return res;
res               153 net/ipv6/addrconf_core.c 			       struct fib6_result *res, int flags)
res               160 net/ipv6/addrconf_core.c 			 struct fib6_result *res, int flags)
res               166 net/ipv6/addrconf_core.c eafnosupport_fib6_select_path(const struct net *net, struct fib6_result *res,
res               173 net/ipv6/addrconf_core.c eafnosupport_ip6_mtu_from_fib6(const struct fib6_result *res,
res               268 net/ipv6/datagram.c 	int res;
res               271 net/ipv6/datagram.c 	res = __ip6_datagram_connect(sk, uaddr, addr_len);
res               273 net/ipv6/datagram.c 	return res;
res                62 net/ipv6/fib6_rules.c 		struct fib6_result *res, int flags)
res                70 net/ipv6/fib6_rules.c 			.result = res,
res                80 net/ipv6/fib6_rules.c 					fl6, res, flags);
res                81 net/ipv6/fib6_rules.c 		if (err || res->f6i == net->ipv6.fib6_null_entry)
res                83 net/ipv6/fib6_rules.c 						oif, fl6, res, flags);
res                94 net/ipv6/fib6_rules.c 		struct fib6_result res = {};
res                98 net/ipv6/fib6_rules.c 			.result = &res,
res               108 net/ipv6/fib6_rules.c 		if (res.rt6)
res               109 net/ipv6/fib6_rules.c 			return &res.rt6->dst;
res               156 net/ipv6/fib6_rules.c 	struct fib6_result *res = arg->result;
res               181 net/ipv6/fib6_rules.c 	err = fib6_table_lookup(net, table, *oif, flp6, res, flags);
res               182 net/ipv6/fib6_rules.c 	if (!err && res->f6i != net->ipv6.fib6_null_entry)
res               184 net/ipv6/fib6_rules.c 				      res->nh->fib_nh_dev);
res               194 net/ipv6/fib6_rules.c 	struct fib6_result *res = arg->result;
res               250 net/ipv6/fib6_rules.c 	res->rt6 = rt;
res               265 net/ipv6/fib6_rules.c 	struct fib6_result *res = arg->result;
res               266 net/ipv6/fib6_rules.c 	struct rt6_info *rt = res->rt6;
res               198 net/ipv6/icmp.c 	bool res = false;
res               213 net/ipv6/icmp.c 		res = true;
res               224 net/ipv6/icmp.c 		res = inet_peer_xrlim_allow(peer, tmo);
res               229 net/ipv6/icmp.c 	return res;
res               119 net/ipv6/inet6_connection_sock.c 	int res;
res               135 net/ipv6/inet6_connection_sock.c 	res = ip6_xmit(sk, skb, &fl6, sk->sk_mark, rcu_dereference(np->opt),
res               138 net/ipv6/inet6_connection_sock.c 	return res;
res               330 net/ipv6/ip6_fib.c 		struct fib6_result *res, int flags)
res               333 net/ipv6/ip6_fib.c 				 res, flags);
res               463 net/ipv6/ip6_fib.c 	int res;
res               467 net/ipv6/ip6_fib.c 		res = rt6_dump_route(rt, w->args, w->skip_in_node);
res               468 net/ipv6/ip6_fib.c 		if (res >= 0) {
res               475 net/ipv6/ip6_fib.c 			w->skip_in_node += res;
res               523 net/ipv6/ip6_fib.c 	int res;
res               534 net/ipv6/ip6_fib.c 		res = fib6_walk(net, w);
res               536 net/ipv6/ip6_fib.c 		if (res > 0) {
res               552 net/ipv6/ip6_fib.c 		res = fib6_walk_continue(w);
res               554 net/ipv6/ip6_fib.c 		if (res <= 0) {
res               560 net/ipv6/ip6_fib.c 	return res;
res               574 net/ipv6/ip6_fib.c 	int res = 0;
res               624 net/ipv6/ip6_fib.c 			res = fib6_dump_table(tb, skb, cb);
res               625 net/ipv6/ip6_fib.c 			if (!res)
res               641 net/ipv6/ip6_fib.c 			res = fib6_dump_table(tb, skb, cb);
res               642 net/ipv6/ip6_fib.c 			if (res != 0)
res               653 net/ipv6/ip6_fib.c 	res = res < 0 ? res : skb->len;
res               654 net/ipv6/ip6_fib.c 	if (res <= 0)
res               656 net/ipv6/ip6_fib.c 	return res;
res              2045 net/ipv6/ip6_fib.c 	int res;
res              2051 net/ipv6/ip6_fib.c 	res = fib6_walk_continue(w);
res              2052 net/ipv6/ip6_fib.c 	if (res <= 0)
res              2054 net/ipv6/ip6_fib.c 	return res;
res              2059 net/ipv6/ip6_fib.c 	int res;
res              2078 net/ipv6/ip6_fib.c 		res = c->func(rt, c->arg);
res              2079 net/ipv6/ip6_fib.c 		if (res == -1) {
res              2081 net/ipv6/ip6_fib.c 			res = fib6_del(rt, &info);
res              2082 net/ipv6/ip6_fib.c 			if (res) {
res              2087 net/ipv6/ip6_fib.c 					 res);
res              2092 net/ipv6/ip6_fib.c 		} else if (res == -2) {
res              2099 net/ipv6/ip6_fib.c 		WARN_ON(res != 0);
res               103 net/ipv6/ip6_output.c 		int res = lwtunnel_xmit(skb);
res               105 net/ipv6/ip6_output.c 		if (res < 0 || res == LWTUNNEL_XMIT_DONE)
res               106 net/ipv6/ip6_output.c 			return res;
res               134 net/ipv6/ip6mr.c 	struct ip6mr_result res;
res               136 net/ipv6/ip6mr.c 		.result = &res,
res               147 net/ipv6/ip6mr.c 	*mrt = res.mrt;
res               154 net/ipv6/ip6mr.c 	struct ip6mr_result *res = arg->result;
res               174 net/ipv6/ip6mr.c 	res->mrt = mrt;
res               485 net/ipv6/ip6mr.c 				   mfc->_c.mfc_un.res.pkt,
res               486 net/ipv6/ip6mr.c 				   mfc->_c.mfc_un.res.bytes,
res               487 net/ipv6/ip6mr.c 				   mfc->_c.mfc_un.res.wrong_if);
res               488 net/ipv6/ip6mr.c 			for (n = mfc->_c.mfc_un.res.minvif;
res               489 net/ipv6/ip6mr.c 			     n < mfc->_c.mfc_un.res.maxvif; n++) {
res               491 net/ipv6/ip6mr.c 				    mfc->_c.mfc_un.res.ttls[n] < 255)
res               494 net/ipv6/ip6mr.c 						   mfc->_c.mfc_un.res.ttls[n]);
res               839 net/ipv6/ip6mr.c 	cache->mfc_un.res.minvif = MAXMIFS;
res               840 net/ipv6/ip6mr.c 	cache->mfc_un.res.maxvif = 0;
res               841 net/ipv6/ip6mr.c 	memset(cache->mfc_un.res.ttls, 255, MAXMIFS);
res               846 net/ipv6/ip6mr.c 			cache->mfc_un.res.ttls[vifi] = ttls[vifi];
res               847 net/ipv6/ip6mr.c 			if (cache->mfc_un.res.minvif > vifi)
res               848 net/ipv6/ip6mr.c 				cache->mfc_un.res.minvif = vifi;
res               849 net/ipv6/ip6mr.c 			if (cache->mfc_un.res.maxvif <= vifi)
res               850 net/ipv6/ip6mr.c 				cache->mfc_un.res.maxvif = vifi + 1;
res               853 net/ipv6/ip6mr.c 	cache->mfc_un.res.lastuse = jiffies;
res               979 net/ipv6/ip6mr.c 	c->_c.mfc_un.res.last_assert = jiffies - MFC_ASSERT_THRESH - 1;
res               980 net/ipv6/ip6mr.c 	c->_c.mfc_un.res.minvif = MAXMIFS;
res               982 net/ipv6/ip6mr.c 	refcount_set(&c->_c.mfc_un.res.refcount, 1);
res              1891 net/ipv6/ip6mr.c 			sr.pktcnt = c->_c.mfc_un.res.pkt;
res              1892 net/ipv6/ip6mr.c 			sr.bytecnt = c->_c.mfc_un.res.bytes;
res              1893 net/ipv6/ip6mr.c 			sr.wrong_if = c->_c.mfc_un.res.wrong_if;
res              1966 net/ipv6/ip6mr.c 			sr.pktcnt = c->_c.mfc_un.res.pkt;
res              1967 net/ipv6/ip6mr.c 			sr.bytecnt = c->_c.mfc_un.res.bytes;
res              1968 net/ipv6/ip6mr.c 			sr.wrong_if = c->_c.mfc_un.res.wrong_if;
res              2090 net/ipv6/ip6mr.c 	c->_c.mfc_un.res.pkt++;
res              2091 net/ipv6/ip6mr.c 	c->_c.mfc_un.res.bytes += skb->len;
res              2092 net/ipv6/ip6mr.c 	c->_c.mfc_un.res.lastuse = jiffies;
res              2103 net/ipv6/ip6mr.c 		    cache_proxy->_c.mfc_un.res.ttls[true_vifi] < 255) {
res              2114 net/ipv6/ip6mr.c 		c->_c.mfc_un.res.wrong_if++;
res              2123 net/ipv6/ip6mr.c 		     c->_c.mfc_un.res.ttls[true_vifi] < 255) &&
res              2125 net/ipv6/ip6mr.c 			       c->_c.mfc_un.res.last_assert +
res              2127 net/ipv6/ip6mr.c 			c->_c.mfc_un.res.last_assert = jiffies;
res              2145 net/ipv6/ip6mr.c 				c->_c.mfc_un.res.ttls[c->_c.mfc_parent]) {
res              2155 net/ipv6/ip6mr.c 	for (ct = c->_c.mfc_un.res.maxvif - 1;
res              2156 net/ipv6/ip6mr.c 	     ct >= c->_c.mfc_un.res.minvif; ct--) {
res              2159 net/ipv6/ip6mr.c 		    ipv6_hdr(skb)->hop_limit > c->_c.mfc_un.res.ttls[ct]) {
res              1767 net/ipv6/netfilter/ip6_tables.c 			struct xt_table **res)
res              1793 net/ipv6/netfilter/ip6_tables.c 	WRITE_ONCE(*res, new_table);
res              1800 net/ipv6/netfilter/ip6_tables.c 		*res = NULL;
res               488 net/ipv6/netfilter/nf_conntrack_reasm.c 	int res;
res               490 net/ipv6/netfilter/nf_conntrack_reasm.c 	res = fqdir_init(&net->nf_frag.fqdir, &nf_frags, net);
res               491 net/ipv6/netfilter/nf_conntrack_reasm.c 	if (res < 0)
res               492 net/ipv6/netfilter/nf_conntrack_reasm.c 		return res;
res               498 net/ipv6/netfilter/nf_conntrack_reasm.c 	res = nf_ct_frag6_sysctl_register(net);
res               499 net/ipv6/netfilter/nf_conntrack_reasm.c 	if (res < 0)
res               501 net/ipv6/netfilter/nf_conntrack_reasm.c 	return res;
res               507 net/ipv6/reassembly.c 	int res;
res               509 net/ipv6/reassembly.c 	res = fqdir_init(&net->ipv6.fqdir, &ip6_frags, net);
res               510 net/ipv6/reassembly.c 	if (res < 0)
res               511 net/ipv6/reassembly.c 		return res;
res               517 net/ipv6/reassembly.c 	res = ip6_frags_ns_sysctl_register(net);
res               518 net/ipv6/reassembly.c 	if (res < 0)
res               520 net/ipv6/reassembly.c 	return res;
res               110 net/ipv6/route.c static struct rt6_info *rt6_find_cached_rt(const struct fib6_result *res,
res               427 net/ipv6/route.c void fib6_select_path(const struct net *net, struct fib6_result *res,
res               432 net/ipv6/route.c 	struct fib6_info *match = res->f6i;
res               445 net/ipv6/route.c 		nexthop_path_fib6_result(res, fl6->mp_hash);
res               467 net/ipv6/route.c 	res->f6i = match;
res               468 net/ipv6/route.c 	res->nh = match->fib6_nh;
res               515 net/ipv6/route.c 					struct fib6_result *res,
res               535 net/ipv6/route.c static void rt6_device_match(struct net *net, struct fib6_result *res,
res               538 net/ipv6/route.c 	struct fib6_info *f6i = res->f6i;
res               558 net/ipv6/route.c 			nh = rt6_nh_dev_match(net, spf6i->nh, res, saddr,
res               568 net/ipv6/route.c 			res->f6i = spf6i;
res               574 net/ipv6/route.c 		res->f6i = net->ipv6.fib6_null_entry;
res               575 net/ipv6/route.c 		nh = res->f6i->fib6_nh;
res               588 net/ipv6/route.c 		res->f6i = net->ipv6.fib6_null_entry;
res               589 net/ipv6/route.c 		nh = res->f6i->fib6_nh;
res               592 net/ipv6/route.c 	res->nh = nh;
res               593 net/ipv6/route.c 	res->fib6_type = res->f6i->fib6_type;
res               594 net/ipv6/route.c 	res->fib6_flags = res->f6i->fib6_flags;
res               598 net/ipv6/route.c 	res->fib6_flags |= RTF_REJECT;
res               599 net/ipv6/route.c 	res->fib6_type = RTN_BLACKHOLE;
res               600 net/ipv6/route.c 	res->nh = nh;
res               795 net/ipv6/route.c 			   struct fib6_result *res, struct fib6_info **cont,
res               824 net/ipv6/route.c 				res->fib6_flags = RTF_REJECT;
res               825 net/ipv6/route.c 				res->fib6_type = RTN_BLACKHOLE;
res               826 net/ipv6/route.c 				res->f6i = f6i;
res               827 net/ipv6/route.c 				res->nh = nexthop_fib6_nh(f6i->nh);
res               842 net/ipv6/route.c 			res->f6i = f6i;
res               843 net/ipv6/route.c 			res->nh = nh;
res               844 net/ipv6/route.c 			res->fib6_flags = f6i->fib6_flags;
res               845 net/ipv6/route.c 			res->fib6_type = f6i->fib6_type;
res               852 net/ipv6/route.c 			 bool *do_rr, struct fib6_result *res)
res               858 net/ipv6/route.c 	__find_rr_leaf(rr_head, NULL, metric, res, &cont,
res               861 net/ipv6/route.c 	__find_rr_leaf(leaf, rr_head, metric, res, &cont,
res               864 net/ipv6/route.c 	if (res->f6i || !cont)
res               867 net/ipv6/route.c 	__find_rr_leaf(cont, NULL, metric, res, NULL,
res               872 net/ipv6/route.c 		       struct fib6_result *res, int strict)
res               880 net/ipv6/route.c 	res->f6i = NULL;
res               902 net/ipv6/route.c 	find_rr_leaf(fn, leaf, rt0, oif, strict, &do_rr, res);
res               920 net/ipv6/route.c 	if (!res->f6i) {
res               921 net/ipv6/route.c 		res->f6i = net->ipv6.fib6_null_entry;
res               922 net/ipv6/route.c 		res->nh = res->f6i->fib6_nh;
res               923 net/ipv6/route.c 		res->fib6_flags = res->f6i->fib6_flags;
res               924 net/ipv6/route.c 		res->fib6_type = res->f6i->fib6_type;
res               928 net/ipv6/route.c static bool rt6_is_gw_or_nonexthop(const struct fib6_result *res)
res               930 net/ipv6/route.c 	return (res->f6i->fib6_flags & RTF_NONEXTHOP) ||
res               931 net/ipv6/route.c 	       res->nh->fib_nh_gw_family;
res              1015 net/ipv6/route.c static struct net_device *ip6_rt_get_dev_rcu(const struct fib6_result *res)
res              1017 net/ipv6/route.c 	struct net_device *dev = res->nh->fib_nh_dev;
res              1019 net/ipv6/route.c 	if (res->fib6_flags & (RTF_LOCAL | RTF_ANYCAST)) {
res              1025 net/ipv6/route.c 		    !rt6_need_strict(&res->f6i->fib6_dst.addr))
res              1093 net/ipv6/route.c static void ip6_rt_init_dst(struct rt6_info *rt, const struct fib6_result *res)
res              1095 net/ipv6/route.c 	struct fib6_info *f6i = res->f6i;
res              1097 net/ipv6/route.c 	if (res->fib6_flags & RTF_REJECT) {
res              1098 net/ipv6/route.c 		ip6_rt_init_dst_reject(rt, res->fib6_type);
res              1105 net/ipv6/route.c 	if (res->fib6_type == RTN_LOCAL || res->fib6_type == RTN_ANYCAST) {
res              1113 net/ipv6/route.c 	if (res->nh->fib_nh_lws) {
res              1114 net/ipv6/route.c 		rt->dst.lwtstate = lwtstate_get(res->nh->fib_nh_lws);
res              1130 net/ipv6/route.c static void ip6_rt_copy_init(struct rt6_info *rt, const struct fib6_result *res)
res              1132 net/ipv6/route.c 	const struct fib6_nh *nh = res->nh;
res              1134 net/ipv6/route.c 	struct fib6_info *f6i = res->f6i;
res              1136 net/ipv6/route.c 	ip6_rt_init_dst(rt, res);
res              1140 net/ipv6/route.c 	rt->rt6i_flags = res->fib6_flags;
res              1186 net/ipv6/route.c static struct rt6_info *ip6_create_rt_rcu(const struct fib6_result *res)
res              1188 net/ipv6/route.c 	struct net_device *dev = res->nh->fib_nh_dev;
res              1189 net/ipv6/route.c 	struct fib6_info *f6i = res->f6i;
res              1203 net/ipv6/route.c 	ip6_rt_copy_init(nrt, res);
res              1218 net/ipv6/route.c 	struct fib6_result res = {};
res              1228 net/ipv6/route.c 	res.f6i = rcu_dereference(fn->leaf);
res              1229 net/ipv6/route.c 	if (!res.f6i)
res              1230 net/ipv6/route.c 		res.f6i = net->ipv6.fib6_null_entry;
res              1232 net/ipv6/route.c 		rt6_device_match(net, &res, &fl6->saddr, fl6->flowi6_oif,
res              1235 net/ipv6/route.c 	if (res.f6i == net->ipv6.fib6_null_entry) {
res              1243 net/ipv6/route.c 	} else if (res.fib6_flags & RTF_REJECT) {
res              1247 net/ipv6/route.c 	fib6_select_path(net, &res, fl6, fl6->flowi6_oif,
res              1251 net/ipv6/route.c 	rt = rt6_find_cached_rt(&res, &fl6->daddr, &fl6->saddr);
res              1257 net/ipv6/route.c 		rt = ip6_create_rt_rcu(&res);
res              1261 net/ipv6/route.c 	trace_fib6_table_lookup(net, &res, table, fl6);
res              1328 net/ipv6/route.c static struct rt6_info *ip6_rt_cache_alloc(const struct fib6_result *res,
res              1332 net/ipv6/route.c 	struct fib6_info *f6i = res->f6i;
res              1343 net/ipv6/route.c 	dev = ip6_rt_get_dev_rcu(res);
res              1350 net/ipv6/route.c 	ip6_rt_copy_init(rt, res);
res              1356 net/ipv6/route.c 	if (!rt6_is_gw_or_nonexthop(res)) {
res              1371 net/ipv6/route.c static struct rt6_info *ip6_rt_pcpu_alloc(const struct fib6_result *res)
res              1373 net/ipv6/route.c 	struct fib6_info *f6i = res->f6i;
res              1382 net/ipv6/route.c 	dev = ip6_rt_get_dev_rcu(res);
res              1389 net/ipv6/route.c 	ip6_rt_copy_init(pcpu_rt, res);
res              1404 net/ipv6/route.c static struct rt6_info *rt6_get_pcpu_route(const struct fib6_result *res)
res              1408 net/ipv6/route.c 	pcpu_rt = this_cpu_read(*res->nh->rt6i_pcpu);
res              1413 net/ipv6/route.c 		p = this_cpu_ptr(res->nh->rt6i_pcpu);
res              1427 net/ipv6/route.c 					    const struct fib6_result *res)
res              1431 net/ipv6/route.c 	pcpu_rt = ip6_rt_pcpu_alloc(res);
res              1435 net/ipv6/route.c 	p = this_cpu_ptr(res->nh->rt6i_pcpu);
res              1439 net/ipv6/route.c 	if (res->f6i->fib6_destroying) {
res              1583 net/ipv6/route.c static unsigned int fib6_mtu(const struct fib6_result *res)
res              1585 net/ipv6/route.c 	const struct fib6_nh *nh = res->nh;
res              1588 net/ipv6/route.c 	if (res->f6i->fib6_pmtu) {
res              1589 net/ipv6/route.c 		mtu = res->f6i->fib6_pmtu;
res              1659 net/ipv6/route.c 				const struct fib6_result *res)
res              1663 net/ipv6/route.c 	struct fib6_info *f6i = res->f6i;
res              1666 net/ipv6/route.c 	struct fib6_nh *nh = res->nh;
res              1700 net/ipv6/route.c 	if (dst_metric_raw(&nrt->dst, RTAX_MTU) >= fib6_mtu(res)) {
res              1789 net/ipv6/route.c static struct rt6_info *rt6_find_cached_rt(const struct fib6_result *res,
res              1810 net/ipv6/route.c 	if (res->f6i->fib6_src.plen)
res              1814 net/ipv6/route.c 	bucket = fib6_nh_get_excptn_bucket(res->nh, NULL);
res              1822 net/ipv6/route.c 	if (!ret && src_key && src_key != &res->f6i->fib6_src.addr) {
res              1823 net/ipv6/route.c 		src_key = &res->f6i->fib6_src.addr;
res              2181 net/ipv6/route.c 		      struct flowi6 *fl6, struct fib6_result *res, int strict)
res              2192 net/ipv6/route.c 	rt6_select(net, fn, oif, res, strict);
res              2193 net/ipv6/route.c 	if (res->f6i == net->ipv6.fib6_null_entry) {
res              2205 net/ipv6/route.c 	trace_fib6_table_lookup(net, res, table, fl6);
res              2214 net/ipv6/route.c 	struct fib6_result res = {};
res              2228 net/ipv6/route.c 	fib6_table_lookup(net, table, oif, fl6, &res, strict);
res              2229 net/ipv6/route.c 	if (res.f6i == net->ipv6.fib6_null_entry)
res              2232 net/ipv6/route.c 	fib6_select_path(net, &res, fl6, oif, false, skb, strict);
res              2235 net/ipv6/route.c 	rt = rt6_find_cached_rt(&res, &fl6->daddr, &fl6->saddr);
res              2239 net/ipv6/route.c 			    !res.nh->fib_nh_gw_family)) {
res              2245 net/ipv6/route.c 		rt = ip6_rt_cache_alloc(&res, &fl6->daddr, NULL);
res              2262 net/ipv6/route.c 		rt = rt6_get_pcpu_route(&res);
res              2265 net/ipv6/route.c 			rt = rt6_make_pcpu_route(net, &res);
res              2760 net/ipv6/route.c 		struct fib6_result res = {};
res              2764 net/ipv6/route.c 		res.f6i = rcu_dereference(rt6->from);
res              2765 net/ipv6/route.c 		if (!res.f6i)
res              2768 net/ipv6/route.c 		res.fib6_flags = res.f6i->fib6_flags;
res              2769 net/ipv6/route.c 		res.fib6_type = res.f6i->fib6_type;
res              2771 net/ipv6/route.c 		if (res.f6i->nh) {
res              2777 net/ipv6/route.c 			nexthop_for_each_fib6_nh(res.f6i->nh,
res              2786 net/ipv6/route.c 			res.nh = arg.match;
res              2788 net/ipv6/route.c 			res.nh = res.f6i->fib6_nh;
res              2791 net/ipv6/route.c 		nrt6 = ip6_rt_cache_alloc(&res, daddr, saddr);
res              2794 net/ipv6/route.c 			if (rt6_insert_exception(nrt6, &res))
res              2870 net/ipv6/route.c static bool ip6_redirect_nh_match(const struct fib6_result *res,
res              2875 net/ipv6/route.c 	const struct fib6_nh *nh = res->nh;
res              2889 net/ipv6/route.c 		rt_cache = rt6_find_cached_rt(res, &fl6->daddr, &fl6->saddr);
res              2901 net/ipv6/route.c 	struct fib6_result	*res;
res              2911 net/ipv6/route.c 	arg->res->nh = nh;
res              2912 net/ipv6/route.c 	return ip6_redirect_nh_match(arg->res, arg->fl6, arg->gw, arg->ret);
res              2929 net/ipv6/route.c 	struct fib6_result res = {};
res              2931 net/ipv6/route.c 		.res = &res,
res              2959 net/ipv6/route.c 		res.f6i = rt;
res              2973 net/ipv6/route.c 			res.nh = rt->fib6_nh;
res              2974 net/ipv6/route.c 			if (ip6_redirect_nh_match(&res, fl6, &rdfl->gateway,
res              2993 net/ipv6/route.c 	res.f6i = rt;
res              2994 net/ipv6/route.c 	res.nh = rt->fib6_nh;
res              2999 net/ipv6/route.c 		res.fib6_flags = res.f6i->fib6_flags;
res              3000 net/ipv6/route.c 		res.fib6_type = res.f6i->fib6_type;
res              3001 net/ipv6/route.c 		ret = ip6_create_rt_rcu(&res);
res              3006 net/ipv6/route.c 	trace_fib6_table_lookup(net, &res, table, fl6);
res              3124 net/ipv6/route.c u32 ip6_mtu_from_fib6(const struct fib6_result *res,
res              3128 net/ipv6/route.c 	const struct fib6_nh *nh = res->nh;
res              3129 net/ipv6/route.c 	struct fib6_info *f6i = res->f6i;
res              3140 net/ipv6/route.c 	rt = rt6_find_cached_rt(res, daddr, saddr);
res              3223 net/ipv6/route.c 			       int flags, struct fib6_result *res)
res              3242 net/ipv6/route.c 	err = fib6_table_lookup(net, table, cfg->fc_ifindex, &fl6, res, flags);
res              3243 net/ipv6/route.c 	if (!err && res->f6i != net->ipv6.fib6_null_entry)
res              3244 net/ipv6/route.c 		fib6_select_path(net, res, &fl6, cfg->fc_ifindex,
res              3257 net/ipv6/route.c 	struct fib6_result res = {};
res              3260 net/ipv6/route.c 	err = ip6_nh_lookup_table(net, cfg, gw_addr, tbid, 0, &res);
res              3261 net/ipv6/route.c 	if (!err && !(res.fib6_flags & RTF_REJECT) &&
res              3263 net/ipv6/route.c 	    !ipv6_addr_any(&res.f6i->fib6_dst.addr) &&
res              3264 net/ipv6/route.c 	    (res.fib6_type != RTN_UNICAST || dev != res.nh->fib_nh_dev)) {
res              3281 net/ipv6/route.c 	struct fib6_result res = {};
res              3286 net/ipv6/route.c 					  cfg->fc_table, flags, &res);
res              3290 net/ipv6/route.c 		if (err || res.fib6_flags & RTF_REJECT ||
res              3291 net/ipv6/route.c 		    res.nh->fib_nh_gw_family ||
res              3292 net/ipv6/route.c 		    (dev && dev != res.nh->fib_nh_dev))
res              3302 net/ipv6/route.c 		err = fib6_lookup(net, cfg->fc_ifindex, &fl6, &res, flags);
res              3303 net/ipv6/route.c 		if (err || res.fib6_flags & RTF_REJECT ||
res              3304 net/ipv6/route.c 		    res.nh->fib_nh_gw_family)
res              3310 net/ipv6/route.c 		fib6_select_path(net, &res, &fl6, cfg->fc_ifindex,
res              3316 net/ipv6/route.c 		if (dev != res.nh->fib_nh_dev)
res              3319 net/ipv6/route.c 		*_dev = dev = res.nh->fib_nh_dev;
res              3852 net/ipv6/route.c 	struct fib6_result res = {
res              3858 net/ipv6/route.c 	rt_cache = rt6_find_cached_rt(&res, &cfg->fc_dst, &cfg->fc_src);
res              3980 net/ipv6/route.c 	struct fib6_result res = {};
res              4066 net/ipv6/route.c 	res.f6i = rcu_dereference(rt->from);
res              4067 net/ipv6/route.c 	if (!res.f6i)
res              4070 net/ipv6/route.c 	if (res.f6i->nh) {
res              4076 net/ipv6/route.c 		nexthop_for_each_fib6_nh(res.f6i->nh,
res              4084 net/ipv6/route.c 		res.nh = arg.match;
res              4086 net/ipv6/route.c 		res.nh = res.f6i->fib6_nh;
res              4089 net/ipv6/route.c 	res.fib6_flags = res.f6i->fib6_flags;
res              4090 net/ipv6/route.c 	res.fib6_type = res.f6i->fib6_type;
res              4091 net/ipv6/route.c 	nrt = ip6_rt_cache_alloc(&res, &msg->dest, NULL);
res              4102 net/ipv6/route.c 	if (rt6_insert_exception(nrt, &res)) {
res               238 net/iucv/iucv.c 	u32 res;
res               258 net/iucv/iucv.c 	u32 res;
res              1651 net/iucv/iucv.c 	u32 res;
res               381 net/kcm/kcmsock.c 	int res;
res               384 net/kcm/kcmsock.c 	res = BPF_PROG_RUN(prog, skb);
res               386 net/kcm/kcmsock.c 	return res;
res              3105 net/key/af_key.c 	u32 res;
res              3109 net/key/af_key.c 		res = atomic_inc_return(&acqseq);
res              3110 net/key/af_key.c 	} while (!res);
res              3111 net/key/af_key.c 	return res;
res                25 net/mac80211/debugfs.c 	int res;
res                28 net/mac80211/debugfs.c 	res = vscnprintf(buf, sizeof(buf), fmt, args);
res                31 net/mac80211/debugfs.c 	return simple_read_from_buffer(userbuf, count, ppos, buf, res);
res               345 net/mac80211/debugfs.c 	int q, res = 0;
res               349 net/mac80211/debugfs.c 		res += sprintf(buf + res, "%02d: %#.8lx/%d\n", q,
res               354 net/mac80211/debugfs.c 	return simple_read_from_buffer(user_buf, count, ppos, buf, res);
res               371 net/mac80211/debugfs.c 	int res;
res               374 net/mac80211/debugfs.c 	res = drv_get_stats(local, &stats);
res               376 net/mac80211/debugfs.c 	if (res)
res               377 net/mac80211/debugfs.c 		return res;
res               378 net/mac80211/debugfs.c 	res = printvalue(&stats, buf, sizeof(buf));
res               379 net/mac80211/debugfs.c 	return simple_read_from_buffer(userbuf, count, ppos, buf, res);
res               306 net/mac80211/debugfs_key.c 	ssize_t res;
res               314 net/mac80211/debugfs_key.c 	res = simple_read_from_buffer(userbuf, count, ppos, buf, p - buf);
res               316 net/mac80211/debugfs_key.c 	return res;
res                75 net/mac80211/fils_aead.c 	int res;
res                91 net/mac80211/fils_aead.c 	res = crypto_shash_setkey(tfm, key, key_len);
res                92 net/mac80211/fils_aead.c 	if (!res)
res                93 net/mac80211/fils_aead.c 		res = aes_s2v(tfm, num_elem, addr, len, v);
res                95 net/mac80211/fils_aead.c 	if (res)
res                96 net/mac80211/fils_aead.c 		return res;
res               122 net/mac80211/fils_aead.c 	res = crypto_skcipher_setkey(tfm2, key + key_len, key_len);
res               123 net/mac80211/fils_aead.c 	if (res)
res               128 net/mac80211/fils_aead.c 		res = -ENOMEM;
res               135 net/mac80211/fils_aead.c 	res = crypto_skcipher_encrypt(req);
res               140 net/mac80211/fils_aead.c 	return res;
res               154 net/mac80211/fils_aead.c 	int res;
res               179 net/mac80211/fils_aead.c 	res = crypto_skcipher_setkey(tfm2, key + key_len, key_len);
res               180 net/mac80211/fils_aead.c 	if (res) {
res               182 net/mac80211/fils_aead.c 		return res;
res               194 net/mac80211/fils_aead.c 	res = crypto_skcipher_decrypt(req);
res               197 net/mac80211/fils_aead.c 	if (res)
res               198 net/mac80211/fils_aead.c 		return res;
res               206 net/mac80211/fils_aead.c 	res = crypto_shash_setkey(tfm, key, key_len);
res               207 net/mac80211/fils_aead.c 	if (!res)
res               208 net/mac80211/fils_aead.c 		res = aes_s2v(tfm, num_elem, addr, len, check);
res               210 net/mac80211/fils_aead.c 	if (res)
res               211 net/mac80211/fils_aead.c 		return res;
res               275 net/mac80211/fils_aead.c 	int res;
res               321 net/mac80211/fils_aead.c 	res = aes_siv_decrypt(assoc_data->fils_kek, assoc_data->fils_kek_len,
res               323 net/mac80211/fils_aead.c 	if (res != 0) {
res               327 net/mac80211/fils_aead.c 		return res;
res               496 net/mac80211/iface.c 	int res;
res               556 net/mac80211/iface.c 		res = drv_start(local);
res               557 net/mac80211/iface.c 		if (res)
res               577 net/mac80211/iface.c 			res = -EADDRNOTAVAIL;
res               599 net/mac80211/iface.c 			res = drv_add_interface(local, sdata);
res               600 net/mac80211/iface.c 			if (res)
res               603 net/mac80211/iface.c 			res = ieee80211_add_virtual_monitor(local);
res               604 net/mac80211/iface.c 			if (res)
res               627 net/mac80211/iface.c 			res = drv_add_interface(local, sdata);
res               628 net/mac80211/iface.c 			if (res)
res               630 net/mac80211/iface.c 			res = ieee80211_check_queues(sdata,
res               632 net/mac80211/iface.c 			if (res)
res               685 net/mac80211/iface.c 			res = -ENOMEM;
res               693 net/mac80211/iface.c 		res = sta_info_insert(sta);
res               694 net/mac80211/iface.c 		if (res) {
res               774 net/mac80211/iface.c 	return res;
res              1296 net/mac80211/mlme.c 	int res;
res              1307 net/mac80211/mlme.c 	res = ieee80211_parse_ch_switch_ie(sdata, elems, current_band,
res              1311 net/mac80211/mlme.c 	if (!res) {
res              1320 net/mac80211/mlme.c 	if (res < 0) {
res              1327 net/mac80211/mlme.c 		if (res)
res              1332 net/mac80211/mlme.c 	} else if (sdata->vif.csa_active || res) {
res              1395 net/mac80211/mlme.c 	res = ieee80211_vif_reserve_chanctx(sdata, &csa_ie.chandef,
res              1397 net/mac80211/mlme.c 	if (res) {
res              1400 net/mac80211/mlme.c 			   res);
res              3579 net/mac80211/rx.c 					 ieee80211_rx_result res)
res              3581 net/mac80211/rx.c 	switch (res) {
res              3616 net/mac80211/rx.c 	ieee80211_rx_result res = RX_DROP_MONITOR;
res              3621 net/mac80211/rx.c 		res = rxh(rx);		\
res              3622 net/mac80211/rx.c 		if (res != RX_CONTINUE)	\
res              3657 net/mac80211/rx.c 		res = ieee80211_rx_h_ctrl(rx, frames);
res              3658 net/mac80211/rx.c 		if (res != RX_CONTINUE)
res              3668 net/mac80211/rx.c 		ieee80211_rx_handlers_result(rx, res);
res              3679 net/mac80211/rx.c 	ieee80211_rx_result res = RX_DROP_MONITOR;
res              3685 net/mac80211/rx.c 		res = rxh(rx);		\
res              3686 net/mac80211/rx.c 		if (res != RX_CONTINUE)	\
res              3699 net/mac80211/rx.c 	ieee80211_rx_handlers_result(rx, res);
res              1089 net/mac80211/scan.c 	int res;
res              1092 net/mac80211/scan.c 	res = __ieee80211_start_scan(sdata, req);
res              1095 net/mac80211/scan.c 	return res;
res               248 net/mac80211/tkip.c 	int res;
res               284 net/mac80211/tkip.c 		res = TKIP_DECRYPT_OK;
res               309 net/mac80211/tkip.c 	res = ieee80211_wep_decrypt_data(ctx, rc4key, 16, pos, payload_len - 12);
res               311 net/mac80211/tkip.c 	if (res == TKIP_DECRYPT_OK) {
res               322 net/mac80211/tkip.c 	return res;
res              1773 net/mac80211/tx.c 	ieee80211_tx_result res = TX_DROP;
res              1777 net/mac80211/tx.c 		res = txh(tx);		\
res              1778 net/mac80211/tx.c 		if (res != TX_CONTINUE)	\
res              1791 net/mac80211/tx.c 	if (unlikely(res == TX_DROP)) {
res              1798 net/mac80211/tx.c 	} else if (unlikely(res == TX_QUEUED)) {
res              1813 net/mac80211/tx.c 	ieee80211_tx_result res = TX_CONTINUE;
res              1832 net/mac80211/tx.c 	if (unlikely(res == TX_DROP)) {
res              1839 net/mac80211/tx.c 	} else if (unlikely(res == TX_QUEUED)) {
res              2096 net/mac80211/util.c 	int res, id, i = 0;
res              2098 net/mac80211/util.c 	res = drv_start_nan(sdata->local, sdata,
res              2100 net/mac80211/util.c 	if (WARN_ON(res))
res              2101 net/mac80211/util.c 		return res;
res              2121 net/mac80211/util.c 		res = drv_add_nan_func(sdata->local, sdata, funcs[i]);
res              2122 net/mac80211/util.c 		if (WARN_ON(res))
res              2140 net/mac80211/util.c 	int res, i;
res              2163 net/mac80211/util.c 		res = drv_resume(local);
res              2165 net/mac80211/util.c 		if (res < 0) {
res              2167 net/mac80211/util.c 			return res;
res              2169 net/mac80211/util.c 		if (res == 0)
res              2171 net/mac80211/util.c 		WARN_ON(res > 1);
res              2200 net/mac80211/util.c 	res = drv_start(local);
res              2201 net/mac80211/util.c 	if (res) {
res              2207 net/mac80211/util.c 		return res;
res              2228 net/mac80211/util.c 		res = drv_add_interface(local, sdata);
res              2229 net/mac80211/util.c 		if (WARN_ON(res)) {
res              2240 net/mac80211/util.c 			res = drv_add_interface(local, sdata);
res              2241 net/mac80211/util.c 			if (WARN_ON(res))
res              2249 net/mac80211/util.c 	if (res) {
res              2257 net/mac80211/util.c 		return res;
res              2372 net/mac80211/util.c 			res = ieee80211_reconfig_nan(sdata);
res              2373 net/mac80211/util.c 			if (res < 0) {
res              2375 net/mac80211/util.c 				return res;
res               267 net/mac80211/wpa.c 	int hdrlen, res, hwaccel = 0;
res               293 net/mac80211/wpa.c 	res = ieee80211_tkip_decrypt_data(&rx->local->wep_rx_ctx,
res               299 net/mac80211/wpa.c 	if (res != TKIP_DECRYPT_OK)
res               527 net/mac80211/wpa.c 		int res;
res               533 net/mac80211/wpa.c 		res = memcmp(pn, key->u.ccmp.rx_pn[queue],
res               535 net/mac80211/wpa.c 		if (res < 0 ||
res               536 net/mac80211/wpa.c 		    (!res && !(status->flag & RX_FLAG_ALLOW_SAME_PN))) {
res               754 net/mac80211/wpa.c 		int res;
res               760 net/mac80211/wpa.c 		res = memcmp(pn, key->u.gcmp.rx_pn[queue],
res               762 net/mac80211/wpa.c 		if (res < 0 ||
res               763 net/mac80211/wpa.c 		    (!res && !(status->flag & RX_FLAG_ALLOW_SAME_PN))) {
res              1237 net/mac80211/wpa.c 	ieee80211_tx_result res;
res              1247 net/mac80211/wpa.c 			res = ieee80211_crypto_cs_encrypt(tx, skb);
res              1248 net/mac80211/wpa.c 			if (res != TX_CONTINUE)
res              1249 net/mac80211/wpa.c 				return res;
res               303 net/mac802154/cfg.c 	int res;
res               306 net/mac802154/cfg.c 	res = mac802154_llsec_set_params(&sdata->sec, params, changed);
res               309 net/mac802154/cfg.c 	return res;
res               319 net/mac802154/cfg.c 	int res;
res               322 net/mac802154/cfg.c 	res = mac802154_llsec_get_params(&sdata->sec, params);
res               325 net/mac802154/cfg.c 	return res;
res               335 net/mac802154/cfg.c 	int res;
res               338 net/mac802154/cfg.c 	res = mac802154_llsec_key_add(&sdata->sec, id, key);
res               341 net/mac802154/cfg.c 	return res;
res               350 net/mac802154/cfg.c 	int res;
res               353 net/mac802154/cfg.c 	res = mac802154_llsec_key_del(&sdata->sec, id);
res               356 net/mac802154/cfg.c 	return res;
res               365 net/mac802154/cfg.c 	int res;
res               368 net/mac802154/cfg.c 	res = mac802154_llsec_seclevel_add(&sdata->sec, sl);
res               371 net/mac802154/cfg.c 	return res;
res               380 net/mac802154/cfg.c 	int res;
res               383 net/mac802154/cfg.c 	res = mac802154_llsec_seclevel_del(&sdata->sec, sl);
res               386 net/mac802154/cfg.c 	return res;
res               395 net/mac802154/cfg.c 	int res;
res               398 net/mac802154/cfg.c 	res = mac802154_llsec_dev_add(&sdata->sec, dev_desc);
res               401 net/mac802154/cfg.c 	return res;
res               410 net/mac802154/cfg.c 	int res;
res               413 net/mac802154/cfg.c 	res = mac802154_llsec_dev_del(&sdata->sec, extended_addr);
res               416 net/mac802154/cfg.c 	return res;
res               426 net/mac802154/cfg.c 	int res;
res               429 net/mac802154/cfg.c 	res = mac802154_llsec_devkey_add(&sdata->sec, extended_addr, key);
res               432 net/mac802154/cfg.c 	return res;
res               442 net/mac802154/cfg.c 	int res;
res               445 net/mac802154/cfg.c 	res = mac802154_llsec_devkey_del(&sdata->sec, extended_addr, key);
res               448 net/mac802154/cfg.c 	return res;
res               199 net/mac802154/iface.c 	int res;
res               206 net/mac802154/iface.c 		res = ieee802154_setup_hw(sdata);
res               207 net/mac802154/iface.c 		if (res)
res               210 net/mac802154/iface.c 		res = drv_start(local);
res               211 net/mac802154/iface.c 		if (res)
res               222 net/mac802154/iface.c 	return res;
res                25 net/mac802154/mib.c 	int res;
res                31 net/mac802154/mib.c 	res = drv_set_channel(local, page, chan);
res                32 net/mac802154/mib.c 	if (res) {
res                44 net/mac802154/mib.c 	int res;
res                49 net/mac802154/mib.c 	res = mac802154_llsec_get_params(&sdata->sec, params);
res                52 net/mac802154/mib.c 	return res;
res                60 net/mac802154/mib.c 	int res;
res                65 net/mac802154/mib.c 	res = mac802154_llsec_set_params(&sdata->sec, params, changed);
res                68 net/mac802154/mib.c 	return res;
res                76 net/mac802154/mib.c 	int res;
res                81 net/mac802154/mib.c 	res = mac802154_llsec_key_add(&sdata->sec, id, key);
res                84 net/mac802154/mib.c 	return res;
res                91 net/mac802154/mib.c 	int res;
res                96 net/mac802154/mib.c 	res = mac802154_llsec_key_del(&sdata->sec, id);
res                99 net/mac802154/mib.c 	return res;
res               106 net/mac802154/mib.c 	int res;
res               111 net/mac802154/mib.c 	res = mac802154_llsec_dev_add(&sdata->sec, llsec_dev);
res               114 net/mac802154/mib.c 	return res;
res               120 net/mac802154/mib.c 	int res;
res               125 net/mac802154/mib.c 	res = mac802154_llsec_dev_del(&sdata->sec, dev_addr);
res               128 net/mac802154/mib.c 	return res;
res               136 net/mac802154/mib.c 	int res;
res               141 net/mac802154/mib.c 	res = mac802154_llsec_devkey_add(&sdata->sec, device_addr, key);
res               144 net/mac802154/mib.c 	return res;
res               152 net/mac802154/mib.c 	int res;
res               157 net/mac802154/mib.c 	res = mac802154_llsec_devkey_del(&sdata->sec, device_addr, key);
res               160 net/mac802154/mib.c 	return res;
res               167 net/mac802154/mib.c 	int res;
res               172 net/mac802154/mib.c 	res = mac802154_llsec_seclevel_add(&sdata->sec, sl);
res               175 net/mac802154/mib.c 	return res;
res               182 net/mac802154/mib.c 	int res;
res               187 net/mac802154/mib.c 	res = mac802154_llsec_seclevel_del(&sdata->sec, sl);
res               190 net/mac802154/mib.c 	return res;
res                31 net/mac802154/tx.c 	int res;
res                33 net/mac802154/tx.c 	res = drv_xmit_sync(local, skb);
res                34 net/mac802154/tx.c 	if (res)
res               911 net/netfilter/nf_conntrack_netlink.c 	int res, i;
res               957 net/netfilter/nf_conntrack_netlink.c 			res =
res               963 net/netfilter/nf_conntrack_netlink.c 			if (res < 0) {
res              1403 net/netfilter/nf_conntrack_netlink.c 	int res;
res              1433 net/netfilter/nf_conntrack_netlink.c 			res = ctnetlink_fill_info(skb, NETLINK_CB(cb->skb).portid,
res              1438 net/netfilter/nf_conntrack_netlink.c 			if (res < 0) {
res               477 net/netfilter/nf_conntrack_proto_tcp.c 	bool res, in_recv_win;
res               671 net/netfilter/nf_conntrack_proto_tcp.c 		res = true;
res               673 net/netfilter/nf_conntrack_proto_tcp.c 		res = false;
res               676 net/netfilter/nf_conntrack_proto_tcp.c 			res = true;
res               677 net/netfilter/nf_conntrack_proto_tcp.c 		if (!res) {
res               693 net/netfilter/nf_conntrack_proto_tcp.c 		 res, sender->td_end, sender->td_maxend, sender->td_maxwin,
res               696 net/netfilter/nf_conntrack_proto_tcp.c 	return res;
res               174 net/netfilter/nf_conntrack_seqadj.c 	int res = 1;
res               212 net/netfilter/nf_conntrack_seqadj.c 	res = nf_ct_sack_adjust(skb, protoff, ct, ctinfo);
res               216 net/netfilter/nf_conntrack_seqadj.c 	return res;
res                48 net/netfilter/nf_nat_amanda.c 		int res;
res                51 net/netfilter/nf_nat_amanda.c 		res = nf_ct_expect_related(exp, 0);
res                52 net/netfilter/nf_nat_amanda.c 		if (res == 0)
res                54 net/netfilter/nf_nat_amanda.c 		else if (res != -EBUSY) {
res               408 net/netfilter/x_tables.c 	int res;
res               417 net/netfilter/x_tables.c 		res = snprintf(p, size, "%s%s", np ? "/" : "", names[i]);
res               418 net/netfilter/x_tables.c 		if (res > 0) {
res               419 net/netfilter/x_tables.c 			size -= res;
res               420 net/netfilter/x_tables.c 			p += res;
res              1350 net/netlink/af_netlink.c 	int res = 0;
res              1359 net/netlink/af_netlink.c 		res = test_bit(group - 1, listeners->masks);
res              1363 net/netlink/af_netlink.c 	return res;
res               880 net/netlink/genetlink.c 	const struct genl_family *res = NULL;
res               885 net/netlink/genetlink.c 		res = genl_family_find_byid(id);
res               893 net/netlink/genetlink.c 		res = genl_family_find_byname(name);
res               895 net/netlink/genetlink.c 		if (res == NULL) {
res               902 net/netlink/genetlink.c 			res = genl_family_find_byname(name);
res               908 net/netlink/genetlink.c 	if (res == NULL)
res               911 net/netlink/genetlink.c 	if (!res->netnsok && !net_eq(genl_info_net(info), &init_net)) {
res               916 net/netlink/genetlink.c 	msg = ctrl_build_family_msg(res, info->snd_portid, info->snd_seq,
res               839 net/nfc/digital_technology.c 	struct digital_iso15693_inv_res *res;
res               849 net/nfc/digital_technology.c 	if (resp->len != sizeof(*res)) {
res               854 net/nfc/digital_technology.c 	res = (struct digital_iso15693_inv_res *)resp->data;
res               856 net/nfc/digital_technology.c 	if (!DIGITAL_ISO15693_RES_IS_VALID(res->flags)) {
res               869 net/nfc/digital_technology.c 	target->iso15693_dsfid = res->dsfid;
res               870 net/nfc/digital_technology.c 	memcpy(target->iso15693_uid, &res->uid, sizeof(target->iso15693_uid));
res               347 net/openvswitch/flow.c 	int res;
res               354 net/openvswitch/flow.c 		res = parse_vlan_tag(skb, &key->eth.vlan, true);
res               355 net/openvswitch/flow.c 		if (res <= 0)
res               356 net/openvswitch/flow.c 			return res;
res               360 net/openvswitch/flow.c 	res = parse_vlan_tag(skb, &key->eth.cvlan, false);
res               361 net/openvswitch/flow.c 	if (res <= 0)
res               362 net/openvswitch/flow.c 		return res;
res               819 net/openvswitch/flow.c 	int res;
res               821 net/openvswitch/flow.c 	res = key_extract(skb, key);
res               822 net/openvswitch/flow.c 	if (!res)
res               825 net/openvswitch/flow.c 	return res;
res               848 net/openvswitch/flow.c 	int res, err;
res               876 net/openvswitch/flow.c 	res = key_extract_mac_proto(skb);
res               877 net/openvswitch/flow.c 	if (res < 0)
res               878 net/openvswitch/flow.c 		return res;
res               879 net/openvswitch/flow.c 	key->mac_proto = res;
res              2004 net/packet/af_packet.c 			       unsigned int res)
res              2011 net/packet/af_packet.c 		res = bpf_prog_run_clear_cb(filter->prog, skb);
res              2014 net/packet/af_packet.c 	return res;
res              2052 net/packet/af_packet.c 	unsigned int snaplen, res;
res              2084 net/packet/af_packet.c 	res = run_filter(skb, sk, snaplen);
res              2085 net/packet/af_packet.c 	if (!res)
res              2087 net/packet/af_packet.c 	if (snaplen > res)
res              2088 net/packet/af_packet.c 		snaplen = res;
res              2168 net/packet/af_packet.c 	unsigned int snaplen, res;
res              2205 net/packet/af_packet.c 	res = run_filter(skb, sk, snaplen);
res              2206 net/packet/af_packet.c 	if (!res)
res              2222 net/packet/af_packet.c 	if (snaplen > res)
res              2223 net/packet/af_packet.c 		snaplen = res;
res               149 net/phonet/af_phonet.c 			u16 dst, u16 src, u8 res, u8 irq)
res               173 net/phonet/af_phonet.c 	ph->pn_res = res;
res               205 net/phonet/af_phonet.c 			u16 dst, u16 src, u8 res)
res               217 net/phonet/af_phonet.c 	return pn_send(skb, dev, dst, src, res, 1);
res               232 net/phonet/af_phonet.c 	u8 daddr, saddr, res;
res               237 net/phonet/af_phonet.c 		res = pn_sockaddr_get_resource(target);
res               240 net/phonet/af_phonet.c 		res = pn->resource;
res               252 net/phonet/af_phonet.c 		struct sock *sk = pn_find_sock_by_res(net, res);
res               272 net/phonet/af_phonet.c 	err = pn_send(skb, dev, dst, src, res, 0);
res                46 net/phonet/datagram.c 			u32 res;
res                47 net/phonet/datagram.c 			if (get_user(res, (u32 __user *)arg))
res                49 net/phonet/datagram.c 			if (res >= 256)
res                52 net/phonet/datagram.c 				return pn_sock_bind_res(sk, res);
res                54 net/phonet/datagram.c 				return pn_sock_unbind_res(sk, res);
res                71 net/phonet/socket.c 	u8 res = spn->spn_resource;
res                87 net/phonet/socket.c 			if (pn->resource != res)
res               625 net/phonet/socket.c struct sock *pn_find_sock_by_res(struct net *net, u8 res)
res               633 net/phonet/socket.c 	sk = rcu_dereference(pnres.sk[res]);
res               642 net/phonet/socket.c int pn_sock_bind_res(struct sock *sk, u8 res)
res               654 net/phonet/socket.c 	if (pnres.sk[res] == NULL) {
res               656 net/phonet/socket.c 		rcu_assign_pointer(pnres.sk[res], sk);
res               663 net/phonet/socket.c int pn_sock_unbind_res(struct sock *sk, u8 res)
res               671 net/phonet/socket.c 	if (pnres.sk[res] == sk) {
res               672 net/phonet/socket.c 		RCU_INIT_POINTER(pnres.sk[res], NULL);
res               686 net/phonet/socket.c 	unsigned int res, match = 0;
res               689 net/phonet/socket.c 	for (res = 0; res < 256; res++) {
res               690 net/phonet/socket.c 		if (pnres.sk[res] == sk) {
res               691 net/phonet/socket.c 			RCU_INIT_POINTER(pnres.sk[res], NULL);
res              1152 net/rfkill/core.c 	__poll_t res = EPOLLOUT | EPOLLWRNORM;
res              1158 net/rfkill/core.c 		res = EPOLLIN | EPOLLRDNORM;
res              1161 net/rfkill/core.c 	return res;
res                56 net/rose/rose_route.c 	int i, res = 0;
res                71 net/rose/rose_route.c 		res = -EINVAL;
res                87 net/rose/rose_route.c 			res = -ENOMEM;
res               112 net/rose/rose_route.c 				res = -ENOMEM;
res               153 net/rose/rose_route.c 			res = -ENOMEM;
res               196 net/rose/rose_route.c 	return res;
res               677 net/rose/rose_route.c 	struct rose_neigh *res = NULL;
res               687 net/rose/rose_route.c 					res = node->neighbour[i];
res               698 net/rose/rose_route.c 						res = node->neighbour[i];
res               718 net/rose/rose_route.c 	return res;
res               863 net/rose/rose_route.c 	int res = 0;
res               867 net/rose/rose_route.c 		return res;
res               878 net/rose/rose_route.c 		return res;
res               938 net/rose/rose_route.c 			res = rose_process_rx_frame(sk, skb);
res               948 net/rose/rose_route.c 			res = rose_rx_call_request(skb, dev, rose_neigh, lci);
res               976 net/rose/rose_route.c 				res = 1;
res               997 net/rose/rose_route.c 				res = 1;
res              1014 net/rose/rose_route.c 		res = 0;
res              1078 net/rose/rose_route.c 	res = 1;
res              1084 net/rose/rose_route.c 	return res;
res                26 net/sched/act_api.c 				       struct tcf_result *res)
res                30 net/sched/act_api.c 	res->goto_tp = rcu_dereference_bh(chain->filter_chain);
res               610 net/sched/act_api.c 	struct tc_action_ops *a, *res = NULL;
res               617 net/sched/act_api.c 					res = a;
res               623 net/sched/act_api.c 	return res;
res               629 net/sched/act_api.c 	struct tc_action_ops *a, *res = NULL;
res               636 net/sched/act_api.c 					res = a;
res               642 net/sched/act_api.c 	return res;
res               648 net/sched/act_api.c 		    int nr_actions, struct tcf_result *res)
res               667 net/sched/act_api.c 		ret = a->ops->act(skb, a, res);
res               688 net/sched/act_api.c 			tcf_action_goto_chain_exec(a, res);
res                35 net/sched/act_bpf.c 		       struct tcf_result *res)
res               287 net/sched/act_bpf.c 	int ret, res = 0;
res               312 net/sched/act_bpf.c 		res = ACT_P_CREATED;
res               348 net/sched/act_bpf.c 	if (res != ACT_P_CREATED)
res               364 net/sched/act_bpf.c 	if (res == ACT_P_CREATED) {
res               372 net/sched/act_bpf.c 	return res;
res                32 net/sched/act_connmark.c 			    struct tcf_result *res)
res               570 net/sched/act_csum.c 			struct tcf_result *res)
res               380 net/sched/act_ct.c 		      struct tcf_result *res)
res               679 net/sched/act_ct.c 	int err, res = 0;
res               708 net/sched/act_ct.c 		res = ACT_P_CREATED;
res               743 net/sched/act_ct.c 	if (res == ACT_P_CREATED)
res               746 net/sched/act_ct.c 	return res;
res                80 net/sched/act_ctinfo.c 			  struct tcf_result *res)
res               151 net/sched/act_gact.c 			struct tcf_result *res)
res               690 net/sched/act_ife.c 			  struct tcf_result *res)
res               763 net/sched/act_ife.c 			  struct tcf_result *res, struct tcf_ife_params *p)
res               843 net/sched/act_ife.c 		       struct tcf_result *res)
res               851 net/sched/act_ife.c 		ret = tcf_ife_encode(skb, a, res, p);
res               855 net/sched/act_ife.c 	return tcf_ife_decode(skb, a, res);
res               224 net/sched/act_ipt.c 		       struct tcf_result *res)
res               211 net/sched/act_mirred.c 			  struct tcf_result *res)
res               291 net/sched/act_mirred.c 			res->ingress = want_ingress;
res               292 net/sched/act_mirred.c 			res->qstats = this_cpu_ptr(m->common.cpu_qstats);
res               293 net/sched/act_mirred.c 			skb_tc_reinsert(skb, res);
res                54 net/sched/act_mpls.c 			struct tcf_result *res)
res               106 net/sched/act_nat.c 		       struct tcf_result *res)
res               309 net/sched/act_pedit.c 			 struct tcf_result *res)
res               219 net/sched/act_police.c 			  struct tcf_result *res)
res               159 net/sched/act_sample.c 			  struct tcf_result *res)
res                26 net/sched/act_simple.c 			struct tcf_result *res)
res                27 net/sched/act_skbedit.c 			   struct tcf_result *res)
res                25 net/sched/act_skbmod.c 			  struct tcf_result *res)
res                25 net/sched/act_tunnel_key.c 			  struct tcf_result *res)
res                23 net/sched/act_vlan.c 			struct tcf_result *res)
res               111 net/sched/cls_api.c 	const struct tcf_proto_ops *t, *res = NULL;
res               118 net/sched/cls_api.c 					res = t;
res               124 net/sched/cls_api.c 	return res;
res              1563 net/sched/cls_api.c 		 struct tcf_result *res, bool compat_mode)
res              1581 net/sched/cls_api.c 		err = tp->classify(skb, tp, res);
res              1587 net/sched/cls_api.c 			first_tp = res->goto_tp;
res                32 net/sched/cls_basic.c 	struct tcf_result	res;
res                40 net/sched/cls_basic.c 			  struct tcf_result *res)
res                51 net/sched/cls_basic.c 		*res = f->res;
res                52 net/sched/cls_basic.c 		r = tcf_exts_exec(skb, &f->exts, res);
res               114 net/sched/cls_basic.c 		tcf_unbind_filter(tp, &f->res);
res               132 net/sched/cls_basic.c 	tcf_unbind_filter(tp, &f->res);
res               162 net/sched/cls_basic.c 		f->res.classid = nla_get_u32(tb[TCA_BASIC_CLASSID]);
res               163 net/sched/cls_basic.c 		tcf_bind_filter(tp, &f->res, base);
res               232 net/sched/cls_basic.c 		tcf_unbind_filter(tp, &fold->res);
res               271 net/sched/cls_basic.c 	if (f && f->res.classid == classid) {
res               273 net/sched/cls_basic.c 			__tcf_bind_filter(q, &f->res, base);
res               275 net/sched/cls_basic.c 			__tcf_unbind_filter(q, &f->res);
res               296 net/sched/cls_basic.c 	if (f->res.classid &&
res               297 net/sched/cls_basic.c 	    nla_put_u32(skb, TCA_BASIC_CLASSID, f->res.classid))
res                40 net/sched/cls_bpf.c 	struct tcf_result res;
res                81 net/sched/cls_bpf.c 			    struct tcf_result *res)
res                93 net/sched/cls_bpf.c 		qdisc_skb_cb(skb)->tc_classid = prog->res.classid;
res               109 net/sched/cls_bpf.c 			res->class   = 0;
res               110 net/sched/cls_bpf.c 			res->classid = TC_H_MAJ(prog->res.classid) |
res               122 net/sched/cls_bpf.c 			res->class   = 0;
res               123 net/sched/cls_bpf.c 			res->classid = filter_res;
res               125 net/sched/cls_bpf.c 			*res = prog->res;
res               128 net/sched/cls_bpf.c 		ret = tcf_exts_exec(skb, &prog->exts, res);
res               295 net/sched/cls_bpf.c 	tcf_unbind_filter(tp, &prog->res);
res               451 net/sched/cls_bpf.c 		prog->res.classid = nla_get_u32(tb[TCA_BPF_CLASSID]);
res               452 net/sched/cls_bpf.c 		tcf_bind_filter(tp, &prog->res, base);
res               521 net/sched/cls_bpf.c 		tcf_unbind_filter(tp, &oldprog->res);
res               600 net/sched/cls_bpf.c 	if (prog->res.classid &&
res               601 net/sched/cls_bpf.c 	    nla_put_u32(skb, TCA_BPF_CLASSID, prog->res.classid))
res               639 net/sched/cls_bpf.c 	if (prog && prog->res.classid == classid) {
res               641 net/sched/cls_bpf.c 			__tcf_bind_filter(q, &prog->res, base);
res               643 net/sched/cls_bpf.c 			__tcf_unbind_filter(q, &prog->res);
res                26 net/sched/cls_cgroup.c 			       struct tcf_result *res)
res                38 net/sched/cls_cgroup.c 	res->classid = classid;
res                39 net/sched/cls_cgroup.c 	res->class = 0;
res                41 net/sched/cls_cgroup.c 	return tcf_exts_exec(skb, &head->exts, res);
res               296 net/sched/cls_flow.c 			 struct tcf_result *res)
res               333 net/sched/cls_flow.c 		res->class   = 0;
res               334 net/sched/cls_flow.c 		res->classid = TC_H_MAKE(f->baseclass, f->baseclass + classid);
res               336 net/sched/cls_flow.c 		r = tcf_exts_exec(skb, &f->exts, res);
res               107 net/sched/cls_flower.c 	struct tcf_result res;
res               297 net/sched/cls_flower.c 		       struct tcf_result *res)
res               324 net/sched/cls_flower.c 			*res = f->res;
res               325 net/sched/cls_flower.c 			return tcf_exts_exec(skb, &f->exts, res);
res               449 net/sched/cls_flower.c 	cls_flower.classid = f->res.classid;
res               487 net/sched/cls_flower.c 	cls_flower.classid = f->res.classid;
res               545 net/sched/cls_flower.c 	tcf_unbind_filter(tp, &f->res);
res              1483 net/sched/cls_flower.c 		f->res.classid = nla_get_u32(tb[TCA_FLOWER_CLASSID]);
res              1486 net/sched/cls_flower.c 		tcf_bind_filter(tp, &f->res, base);
res              1656 net/sched/cls_flower.c 		tcf_unbind_filter(tp, &fold->res);
res              1827 net/sched/cls_flower.c 		cls_flower.classid = f->res.classid;
res              2452 net/sched/cls_flower.c 	if (f->res.classid &&
res              2453 net/sched/cls_flower.c 	    nla_put_u32(skb, TCA_FLOWER_CLASSID, f->res.classid))
res              2521 net/sched/cls_flower.c 	if (f && f->res.classid == classid) {
res              2523 net/sched/cls_flower.c 			__tcf_bind_filter(q, &f->res, base);
res              2525 net/sched/cls_flower.c 			__tcf_unbind_filter(q, &f->res);
res                36 net/sched/cls_fw.c 	struct tcf_result	res;
res                51 net/sched/cls_fw.c 		       struct tcf_result *res)
res                64 net/sched/cls_fw.c 				*res = f->res;
res                67 net/sched/cls_fw.c 				r = tcf_exts_exec(skb, &f->exts, res);
res                80 net/sched/cls_fw.c 			res->classid = id;
res                81 net/sched/cls_fw.c 			res->class = 0;
res               144 net/sched/cls_fw.c 			tcf_unbind_filter(tp, &f->res);
res               173 net/sched/cls_fw.c 			tcf_unbind_filter(tp, &f->res);
res               214 net/sched/cls_fw.c 		f->res.classid = nla_get_u32(tb[TCA_FW_CLASSID]);
res               215 net/sched/cls_fw.c 		tcf_bind_filter(tp, &f->res, base);
res               269 net/sched/cls_fw.c 		fnew->res = f->res;
res               295 net/sched/cls_fw.c 		tcf_unbind_filter(tp, &f->res);
res               387 net/sched/cls_fw.c 	if (!f->res.classid && !tcf_exts_has_actions(&f->exts))
res               394 net/sched/cls_fw.c 	if (f->res.classid &&
res               395 net/sched/cls_fw.c 	    nla_put_u32(skb, TCA_FW_CLASSID, f->res.classid))
res               427 net/sched/cls_fw.c 	if (f && f->res.classid == classid) {
res               429 net/sched/cls_fw.c 			__tcf_bind_filter(q, &f->res, base);
res               431 net/sched/cls_fw.c 			__tcf_unbind_filter(q, &f->res);
res                18 net/sched/cls_matchall.c 	struct tcf_result res;
res                28 net/sched/cls_matchall.c 			 struct tcf_result *res)
res                38 net/sched/cls_matchall.c 	*res = head->res;
res                40 net/sched/cls_matchall.c 	return tcf_exts_exec(skb, &head->exts, res);
res               136 net/sched/cls_matchall.c 	tcf_unbind_filter(tp, &head->res);
res               177 net/sched/cls_matchall.c 		head->res.classid = nla_get_u32(tb[TCA_MATCHALL_CLASSID]);
res               178 net/sched/cls_matchall.c 		tcf_bind_filter(tp, &head->res, base);
res               364 net/sched/cls_matchall.c 	if (head->res.classid &&
res               365 net/sched/cls_matchall.c 	    nla_put_u32(skb, TCA_MATCHALL_CLASSID, head->res.classid))
res               402 net/sched/cls_matchall.c 	if (head && head->res.classid == classid) {
res               404 net/sched/cls_matchall.c 			__tcf_bind_filter(q, &head->res, base);
res               406 net/sched/cls_matchall.c 			__tcf_unbind_filter(q, &head->res);
res                51 net/sched/cls_route.c 	struct tcf_result	res;
res               111 net/sched/cls_route.c 	*res = f->res;						\
res               113 net/sched/cls_route.c 		int r = tcf_exts_exec(skb, &f->exts, res);	\
res               125 net/sched/cls_route.c 			   struct tcf_result *res)
res               153 net/sched/cls_route.c 		*res = f->res;
res               297 net/sched/cls_route.c 					tcf_unbind_filter(tp, &f->res);
res               342 net/sched/cls_route.c 			tcf_unbind_filter(tp, &f->res);
res               458 net/sched/cls_route.c 		f->res.classid = nla_get_u32(tb[TCA_ROUTE4_CLASSID]);
res               459 net/sched/cls_route.c 		tcf_bind_filter(tp, &f->res, base);
res               504 net/sched/cls_route.c 		f->res = fold->res;
res               548 net/sched/cls_route.c 		tcf_unbind_filter(tp, &fold->res);
res               625 net/sched/cls_route.c 	if (f->res.classid &&
res               626 net/sched/cls_route.c 	    nla_put_u32(skb, TCA_ROUTE4_CLASSID, f->res.classid))
res               649 net/sched/cls_route.c 	if (f && f->res.classid == classid) {
res               651 net/sched/cls_route.c 			__tcf_bind_filter(q, &f->res, base);
res               653 net/sched/cls_route.c 			__tcf_unbind_filter(q, &f->res);
res                91 net/sched/cls_rsvp.h 	struct tcf_result		res;
res               120 net/sched/cls_rsvp.h 	int r = tcf_exts_exec(skb, &f->exts, res);	\
res               128 net/sched/cls_rsvp.h 			 struct tcf_result *res)
res               194 net/sched/cls_rsvp.h 					*res = f->res;
res               201 net/sched/cls_rsvp.h 					tunnelid = f->res.classid;
res               210 net/sched/cls_rsvp.h 				*res = f->res;
res               300 net/sched/cls_rsvp.h 	tcf_unbind_filter(tp, &f->res);
res               438 net/sched/cls_rsvp.h 					data->tgenerator = f->res.classid;
res               529 net/sched/cls_rsvp.h 			n->res.classid = nla_get_u32(tb[TCA_RSVP_CLASSID]);
res               530 net/sched/cls_rsvp.h 			tcf_bind_filter(tp, &n->res, base);
res               564 net/sched/cls_rsvp.h 		f->res.classid = nla_get_u32(tb[TCA_RSVP_CLASSID]);
res               575 net/sched/cls_rsvp.h 		if (f->res.classid > 255)
res               579 net/sched/cls_rsvp.h 		if (f->res.classid == 0 &&
res               580 net/sched/cls_rsvp.h 		    (f->res.classid = gen_tunnel(data)) == 0)
res               604 net/sched/cls_rsvp.h 				tcf_bind_filter(tp, &f->res, base);
res               718 net/sched/cls_rsvp.h 	if (f->res.classid &&
res               719 net/sched/cls_rsvp.h 	    nla_put_u32(skb, TCA_RSVP_CLASSID, f->res.classid))
res               744 net/sched/cls_rsvp.h 	if (f && f->res.classid == classid) {
res               746 net/sched/cls_rsvp.h 			__tcf_bind_filter(q, &f->res, base);
res               748 net/sched/cls_rsvp.h 			__tcf_unbind_filter(q, &f->res);
res                34 net/sched/cls_tcindex.c 	struct tcf_result	res;
res                62 net/sched/cls_tcindex.c 	return tcf_exts_has_actions(&r->exts) || r->res.classid;
res               103 net/sched/cls_tcindex.c 			    struct tcf_result *res)
res               110 net/sched/cls_tcindex.c 		 skb, tp, res, p);
res               118 net/sched/cls_tcindex.c 		res->classid = TC_H_MAKE(TC_H_MAJ(q->handle), key);
res               119 net/sched/cls_tcindex.c 		res->class = 0;
res               120 net/sched/cls_tcindex.c 		pr_debug("alg 0x%x\n", res->classid);
res               123 net/sched/cls_tcindex.c 	*res = f->res;
res               124 net/sched/cls_tcindex.c 	pr_debug("map 0x%x\n", res->classid);
res               126 net/sched/cls_tcindex.c 	return tcf_exts_exec(skb, &f->exts, res);
res               207 net/sched/cls_tcindex.c 		if (!r->res.class)
res               225 net/sched/cls_tcindex.c 	tcf_unbind_filter(tp, &r->res);
res               389 net/sched/cls_tcindex.c 			cp->perfect[i].res = p->perfect[i].res;
res               398 net/sched/cls_tcindex.c 		cr = r->res;
res               483 net/sched/cls_tcindex.c 	r->res = cr;
res               492 net/sched/cls_tcindex.c 		f->result.res = r->res;
res               560 net/sched/cls_tcindex.c 			if (!p->perfect[i].res.class)
res               607 net/sched/cls_tcindex.c 			tcf_unbind_filter(tp, &r->res);
res               673 net/sched/cls_tcindex.c 		if (r->res.class &&
res               674 net/sched/cls_tcindex.c 		    nla_put_u32(skb, TCA_TCINDEX_CLASSID, r->res.classid))
res               697 net/sched/cls_tcindex.c 	if (r && r->res.classid == classid) {
res               699 net/sched/cls_tcindex.c 			__tcf_bind_filter(q, &r->res, base);
res               701 net/sched/cls_tcindex.c 			__tcf_unbind_filter(q, &r->res);
res                50 net/sched/cls_u32.c 	struct tcf_result	res;
res               104 net/sched/cls_u32.c 			struct tcf_result *res)
res               173 net/sched/cls_u32.c 				*res = n->res;
res               181 net/sched/cls_u32.c 				r = tcf_exts_exec(skb, &n->exts, res);
res               459 net/sched/cls_u32.c 				tcf_unbind_filter(tp, &key->res);
res               550 net/sched/cls_u32.c 	cls_u32.knode.res = &n->res;
res               580 net/sched/cls_u32.c 			tcf_unbind_filter(tp, &n->res);
res               751 net/sched/cls_u32.c 		n->res.classid = nla_get_u32(tb[TCA_U32_CLASSID]);
res               752 net/sched/cls_u32.c 		tcf_bind_filter(tp, &n->res, base);
res               811 net/sched/cls_u32.c 	new->res = n->res;
res               920 net/sched/cls_u32.c 		tcf_unbind_filter(tp, &n->res);
res              1196 net/sched/cls_u32.c 		cls_u32.knode.res = &n->res;
res              1263 net/sched/cls_u32.c 	if (n && n->res.classid == classid) {
res              1265 net/sched/cls_u32.c 			__tcf_bind_filter(q, &n->res, base);
res              1267 net/sched/cls_u32.c 			__tcf_unbind_filter(q, &n->res);
res              1310 net/sched/cls_u32.c 		if (n->res.classid &&
res              1311 net/sched/cls_u32.c 		    nla_put_u32(skb, TCA_U32_CLASSID, n->res.classid))
res               502 net/sched/ematch.c 	int stackp = 0, match_idx = 0, res = 0;
res               519 net/sched/ematch.c 		res = tcf_em_match(skb, cur_match, info);
res               521 net/sched/ematch.c 		if (tcf_em_early_end(cur_match, res))
res               533 net/sched/ematch.c 			res = !res;
res               535 net/sched/ematch.c 		if (tcf_em_early_end(cur_match, res)) {
res               543 net/sched/ematch.c 	return res;
res               382 net/sched/sch_atm.c 	struct tcf_result res;
res               396 net/sched/sch_atm.c 				result = tcf_classify(skb, fl, &res, true);
res               399 net/sched/sch_atm.c 				flow = (struct atm_flow_data *)res.class;
res               401 net/sched/sch_atm.c 					flow = lookup_flow(sch, res.classid);
res              1595 net/sched/sch_cake.c 	struct tcf_result res;
res              1604 net/sched/sch_cake.c 	result = tcf_classify(skb, filter, &res, false);
res              1618 net/sched/sch_cake.c 		if (TC_H_MIN(res.classid) <= CAKE_QUEUES)
res              1619 net/sched/sch_cake.c 			flow = TC_H_MIN(res.classid);
res              1620 net/sched/sch_cake.c 		if (TC_H_MAJ(res.classid) <= (CAKE_QUEUES << 16))
res              1621 net/sched/sch_cake.c 			host = TC_H_MAJ(res.classid) >> 16;
res               213 net/sched/sch_cbq.c 	struct tcf_result res;
res               231 net/sched/sch_cbq.c 		result = tcf_classify(skb, fl, &res, true);
res               235 net/sched/sch_cbq.c 		cl = (void *)res.class;
res               237 net/sched/sch_cbq.c 			if (TC_H_MAJ(res.classid))
res               238 net/sched/sch_cbq.c 				cl = cbq_class_lookup(q, res.classid);
res               239 net/sched/sch_cbq.c 			else if ((cl = defmap[res.classid & TC_PRIO_MAX]) == NULL)
res               307 net/sched/sch_drr.c 	struct tcf_result res;
res               319 net/sched/sch_drr.c 	result = tcf_classify(skb, fl, &res, false);
res               332 net/sched/sch_drr.c 		cl = (struct drr_class *)res.class;
res               334 net/sched/sch_drr.c 			cl = drr_find_class(sch, res.classid);
res               242 net/sched/sch_dsmark.c 		struct tcf_result res;
res               244 net/sched/sch_dsmark.c 		int result = tcf_classify(skb, fl, &res, false);
res               246 net/sched/sch_dsmark.c 		pr_debug("result %d class 0x%04x\n", result, res.classid);
res               260 net/sched/sch_dsmark.c 			skb->tc_index = TC_H_MIN(res.classid);
res                82 net/sched/sch_fq_codel.c 	struct tcf_result res;
res                95 net/sched/sch_fq_codel.c 	result = tcf_classify(skb, filter, &res, false);
res               108 net/sched/sch_fq_codel.c 		if (TC_H_MIN(res.classid) <= q->flows_cnt)
res               109 net/sched/sch_fq_codel.c 			return TC_H_MIN(res.classid);
res               400 net/sched/sch_generic.c 	unsigned long val, res;
res               407 net/sched/sch_generic.c 	res = netdev_get_tx_queue(dev, 0)->trans_start;
res               410 net/sched/sch_generic.c 		if (val && time_after(val, res))
res               411 net/sched/sch_generic.c 			res = val;
res               414 net/sched/sch_generic.c 	return res;
res              1120 net/sched/sch_hfsc.c 	struct tcf_result res;
res              1132 net/sched/sch_hfsc.c 	while (tcf && (result = tcf_classify(skb, tcf, &res, false)) >= 0) {
res              1144 net/sched/sch_hfsc.c 		cl = (struct hfsc_class *)res.class;
res              1146 net/sched/sch_hfsc.c 			cl = hfsc_find_class(res.classid, sch);
res               214 net/sched/sch_htb.c 	struct tcf_result res;
res               235 net/sched/sch_htb.c 	while (tcf && (result = tcf_classify(skb, tcf, &res, false)) >= 0) {
res               247 net/sched/sch_htb.c 		cl = (void *)res.class;
res               249 net/sched/sch_htb.c 			if (res.classid == sch->handle)
res               251 net/sched/sch_htb.c 			cl = htb_find(res.classid, sch);
res                34 net/sched/sch_multiq.c 	struct tcf_result res;
res                39 net/sched/sch_multiq.c 	err = tcf_classify(skb, fl, &res, false);
res                35 net/sched/sch_prio.c 	struct tcf_result res;
res                42 net/sched/sch_prio.c 		err = tcf_classify(skb, fl, &res, false);
res                59 net/sched/sch_prio.c 		band = res.classid;
res               681 net/sched/sch_qfq.c 	struct tcf_result res;
res               694 net/sched/sch_qfq.c 	result = tcf_classify(skb, fl, &res, false);
res               707 net/sched/sch_qfq.c 		cl = (struct qfq_class *)res.class;
res               709 net/sched/sch_qfq.c 			cl = qfq_find_class(sch, res.classid);
res               113 net/sched/sch_sfb.c 	u32 res = p1 + p2;
res               115 net/sched/sch_sfb.c 	return min_t(u32, res, SFB_MAX_PROB);
res               257 net/sched/sch_sfb.c 	struct tcf_result res;
res               260 net/sched/sch_sfb.c 	result = tcf_classify(skb, fl, &res, false);
res               273 net/sched/sch_sfb.c 		*salt = TC_H_MIN(res.classid);
res               167 net/sched/sch_sfq.c 	struct tcf_result res;
res               181 net/sched/sch_sfq.c 	result = tcf_classify(skb, fl, &res, false);
res               194 net/sched/sch_sfq.c 		if (TC_H_MIN(res.classid) <= q->divisor)
res               195 net/sched/sch_sfq.c 			return TC_H_MIN(res.classid);
res               260 net/sched/sch_teql.c 	int res;
res               269 net/sched/sch_teql.c 	res = __teql_resolve(skb, skb_res, dev, txq, dst);
res               272 net/sched/sch_teql.c 	return res;
res               200 net/sctp/ipv6.c 	int res;
res               217 net/sctp/ipv6.c 	res = ip6_xmit(sk, skb, fl6, sk->sk_mark, rcu_dereference(np->opt),
res               220 net/sctp/ipv6.c 	return res;
res              3745 net/sctp/socket.c 			int res = sctp_auth_set_key(ep, asoc, authkey);
res              3747 net/sctp/socket.c 			if (res && !ret)
res              3748 net/sctp/socket.c 				ret = res;
res              3798 net/sctp/socket.c 			int res = sctp_auth_set_active_key(ep, asoc,
res              3801 net/sctp/socket.c 			if (res && !ret)
res              3802 net/sctp/socket.c 				ret = res;
res              3849 net/sctp/socket.c 			int res = sctp_auth_del_key_id(ep, asoc,
res              3852 net/sctp/socket.c 			if (res && !ret)
res              3853 net/sctp/socket.c 				ret = res;
res              3899 net/sctp/socket.c 			int res = sctp_auth_deact_key_id(ep, asoc,
res              3902 net/sctp/socket.c 			if (res && !ret)
res              3903 net/sctp/socket.c 				ret = res;
res               100 net/smc/smc_clc.h 	u8 res[32];
res               260 net/smc/smc_core.h 	struct smc_connection *res = NULL;
res               274 net/smc/smc_core.h 				res = cur;
res               280 net/smc/smc_core.h 	return res;
res               956 net/socket.c   	ssize_t res;
res               967 net/socket.c   	res = sock_recvmsg(sock, &msg, msg.msg_flags);
res               969 net/socket.c   	return res;
res               978 net/socket.c   	ssize_t res;
res               989 net/socket.c   	res = sock_sendmsg(sock, &msg);
res               991 net/socket.c   	return res;
res              1208 net/socket.c   int sock_create_lite(int family, int type, int protocol, struct socket **res)
res              1229 net/socket.c   	*res = sock;
res              1348 net/socket.c   			 struct socket **res, int kern)
res              1437 net/socket.c   	*res = sock;
res              1467 net/socket.c   int sock_create(int family, int type, int protocol, struct socket **res)
res              1469 net/socket.c   	return __sock_create(current->nsproxy->net_ns, family, type, protocol, res, 0);
res              1485 net/socket.c   int sock_create_kern(struct net *net, int family, int type, int protocol, struct socket **res)
res              1487 net/socket.c   	return __sock_create(net, family, type, protocol, res, 1);
res               617 net/sunrpc/auth.c 		int res = cred->cr_ops->cr_init(auth, cred);
res               618 net/sunrpc/auth.c 		if (res < 0) {
res               620 net/sunrpc/auth.c 			cred = ERR_PTR(res);
res               129 net/sunrpc/auth_gss/auth_gss.c simple_get_bytes(const void *p, const void *end, void *res, size_t len)
res               134 net/sunrpc/auth_gss/auth_gss.c 	memcpy(res, p, len);
res               585 net/sunrpc/auth_gss/auth_gss.c 		int res;
res               587 net/sunrpc/auth_gss/auth_gss.c 		res = rpc_queue_upcall(gss_new->pipe, &gss_new->msg);
res               588 net/sunrpc/auth_gss/auth_gss.c 		if (res) {
res               592 net/sunrpc/auth_gss/auth_gss.c 			gss_msg = ERR_PTR(res);
res               168 net/sunrpc/auth_gss/gss_krb5_mech.c simple_get_bytes(const void *p, const void *end, void *res, int len)
res               173 net/sunrpc/auth_gss/gss_krb5_mech.c 	memcpy(res, p, len);
res               178 net/sunrpc/auth_gss/gss_krb5_mech.c simple_get_netobj(const void *p, const void *end, struct xdr_netobj *res)
res               189 net/sunrpc/auth_gss/gss_krb5_mech.c 	res->data = kmemdup(p, len, GFP_NOFS);
res               190 net/sunrpc/auth_gss/gss_krb5_mech.c 	if (unlikely(res->data == NULL))
res               192 net/sunrpc/auth_gss/gss_krb5_mech.c 	res->len = len;
res               198 net/sunrpc/auth_gss/gss_krb5_mech.c 	struct krb5_ctx *ctx, struct crypto_sync_skcipher **res)
res               226 net/sunrpc/auth_gss/gss_krb5_mech.c 	*res = crypto_alloc_sync_skcipher(ctx->gk5e->encrypt_name, 0, 0);
res               227 net/sunrpc/auth_gss/gss_krb5_mech.c 	if (IS_ERR(*res)) {
res               230 net/sunrpc/auth_gss/gss_krb5_mech.c 		*res = NULL;
res               233 net/sunrpc/auth_gss/gss_krb5_mech.c 	if (crypto_sync_skcipher_setkey(*res, key.data, key.len)) {
res               243 net/sunrpc/auth_gss/gss_krb5_mech.c 	crypto_free_sync_skcipher(*res);
res               284 net/sunrpc/auth_gss/gss_rpc_upcall.c 	struct gssx_res_accept_sec_context res = {
res               291 net/sunrpc/auth_gss/gss_rpc_upcall.c 		.rpc_resp = &res,
res               300 net/sunrpc/auth_gss/gss_rpc_upcall.c 	res.output_token->len = GSSX_max_output_token_sz;
res               312 net/sunrpc/auth_gss/gss_rpc_upcall.c 	data->major_status = res.status.major_status;
res               313 net/sunrpc/auth_gss/gss_rpc_upcall.c 	data->minor_status = res.status.minor_status;
res               314 net/sunrpc/auth_gss/gss_rpc_upcall.c 	if (res.context_handle) {
res               326 net/sunrpc/auth_gss/gss_rpc_upcall.c 	if (res.options.count == 1) {
res               327 net/sunrpc/auth_gss/gss_rpc_upcall.c 		gssx_buffer *value = &res.options.data[0].value;
res               340 net/sunrpc/auth_gss/gss_rpc_upcall.c 	if (res.options.count != 0) {
res               341 net/sunrpc/auth_gss/gss_rpc_upcall.c 		kfree(res.options.data);
res               156 net/sunrpc/auth_gss/gss_rpc_xdr.c static int get_host_u32(struct xdr_stream *xdr, u32 *res)
res               164 net/sunrpc/auth_gss/gss_rpc_xdr.c 	memcpy(res, p, sizeof(u32));
res               784 net/sunrpc/auth_gss/gss_rpc_xdr.c 	struct gssx_res_accept_sec_context *res = data;
res               795 net/sunrpc/auth_gss/gss_rpc_xdr.c 	err = gssx_dec_status(xdr, &res->status);
res               804 net/sunrpc/auth_gss/gss_rpc_xdr.c 		err = gssx_dec_ctx(xdr, res->context_handle);
res               808 net/sunrpc/auth_gss/gss_rpc_xdr.c 		res->context_handle = NULL;
res               816 net/sunrpc/auth_gss/gss_rpc_xdr.c 		err = gssx_dec_buffer(xdr, res->output_token);
res               820 net/sunrpc/auth_gss/gss_rpc_xdr.c 		res->output_token = NULL;
res               834 net/sunrpc/auth_gss/gss_rpc_xdr.c 	err = gssx_dec_option_array(xdr, &res->options);
res              1056 net/sunrpc/auth_gss/svcauth_gss.c 	int res;
res              1058 net/sunrpc/auth_gss/svcauth_gss.c 	res = gss_read_common_verf(gc, argv, authp, in_handle);
res              1059 net/sunrpc/auth_gss/svcauth_gss.c 	if (res)
res              1060 net/sunrpc/auth_gss/svcauth_gss.c 		return res;
res              1098 net/sunrpc/auth_gss/svcauth_gss.c 	int pages, i, res;
res              1101 net/sunrpc/auth_gss/svcauth_gss.c 	res = gss_read_common_verf(gc, argv, authp, in_handle);
res              1102 net/sunrpc/auth_gss/svcauth_gss.c 	if (res)
res              1103 net/sunrpc/auth_gss/svcauth_gss.c 		return res;
res              1385 net/sunrpc/auth_gss/svcauth_gss.c 	int res;
res              1393 net/sunrpc/auth_gss/svcauth_gss.c 	res = kstrtoul(tbuf, 0, &i);
res              1394 net/sunrpc/auth_gss/svcauth_gss.c 	if (res)
res              1395 net/sunrpc/auth_gss/svcauth_gss.c 		return res;
res              1398 net/sunrpc/auth_gss/svcauth_gss.c 	res = set_gssp_clnt(net);
res              1399 net/sunrpc/auth_gss/svcauth_gss.c 	if (res)
res              1400 net/sunrpc/auth_gss/svcauth_gss.c 		return res;
res              1401 net/sunrpc/auth_gss/svcauth_gss.c 	res = set_gss_proxy(net, 1);
res              1402 net/sunrpc/auth_gss/svcauth_gss.c 	if (res)
res              1403 net/sunrpc/auth_gss/svcauth_gss.c 		return res;
res               137 net/sunrpc/rpc_pipe.c 	int res = -EPIPE;
res               144 net/sunrpc/rpc_pipe.c 		res = 0;
res               152 net/sunrpc/rpc_pipe.c 		res = 0;
res               160 net/sunrpc/rpc_pipe.c 	return res;
res               217 net/sunrpc/rpc_pipe.c 	int res = -ENXIO;
res               225 net/sunrpc/rpc_pipe.c 		res = pipe->ops->open_pipe(inode);
res               226 net/sunrpc/rpc_pipe.c 		if (res)
res               233 net/sunrpc/rpc_pipe.c 	res = 0;
res               236 net/sunrpc/rpc_pipe.c 	return res;
res               286 net/sunrpc/rpc_pipe.c 	int res = 0;
res               291 net/sunrpc/rpc_pipe.c 		res = -EPIPE;
res               311 net/sunrpc/rpc_pipe.c 	res = pipe->ops->upcall(filp, msg, buf, len);
res               312 net/sunrpc/rpc_pipe.c 	if (res < 0 || msg->len == msg->copied) {
res               321 net/sunrpc/rpc_pipe.c 	return res;
res               328 net/sunrpc/rpc_pipe.c 	int res;
res               331 net/sunrpc/rpc_pipe.c 	res = -EPIPE;
res               333 net/sunrpc/rpc_pipe.c 		res = RPC_I(inode)->pipe->ops->downcall(filp, buf, len);
res               335 net/sunrpc/rpc_pipe.c 	return res;
res                79 net/sunrpc/svc_xprt.c 	int res = -EEXIST;
res                91 net/sunrpc/svc_xprt.c 	res = 0;
res                94 net/sunrpc/svc_xprt.c 	return res;
res               112 net/sunrpc/timer.c 	unsigned long res;
res               117 net/sunrpc/timer.c 	res = ((rt->srtt[timer] + 7) >> 3) + rt->sdrtt[timer];
res               118 net/sunrpc/timer.c 	if (res > RPC_RTO_MAX)
res               119 net/sunrpc/timer.c 		res = RPC_RTO_MAX;
res               121 net/sunrpc/timer.c 	return res;
res               245 net/tipc/bearer.c 	int res = -EINVAL;
res               304 net/tipc/bearer.c 	res = m->enable_media(net, b, attr);
res               305 net/tipc/bearer.c 	if (res) {
res               319 net/tipc/bearer.c 	res = tipc_disc_create(net, b, &b->bcast_addr, &skb);
res               320 net/tipc/bearer.c 	if (res) {
res               337 net/tipc/bearer.c 	return res;
res               340 net/tipc/bearer.c 	return res;
res                43 net/tipc/diag.c 	u32 res[2];
res                45 net/tipc/diag.c 	sock_diag_save_cookie(sk, res);
res                46 net/tipc/diag.c 	return *((u64 *)res);
res               683 net/tipc/name_table.c 	bool res = true;
res               697 net/tipc/name_table.c 		res = false;
res               700 net/tipc/name_table.c 	return res;
res               286 net/tipc/netlink.c 	int res;
res               288 net/tipc/netlink.c 	res = genl_register_family(&tipc_genl_family);
res               289 net/tipc/netlink.c 	if (res) {
res               291 net/tipc/netlink.c 		return res;
res              1331 net/tipc/netlink_compat.c 	int res;
res              1333 net/tipc/netlink_compat.c 	res = genl_register_family(&tipc_genl_compat_family);
res              1334 net/tipc/netlink_compat.c 	if (res) {
res              1336 net/tipc/netlink_compat.c 		return res;
res              2081 net/tipc/node.c 	int res = 0;
res              2117 net/tipc/node.c 		res = -EINVAL;
res              2127 net/tipc/node.c 			res = err;
res              2154 net/tipc/node.c 	return res;
res               329 net/tipc/socket.c 	int res = -EINVAL;
res               333 net/tipc/socket.c 		res = 0;
res               338 net/tipc/socket.c 			res = 0;
res               343 net/tipc/socket.c 			res = 0;
res               348 net/tipc/socket.c 			res = 0;
res               352 net/tipc/socket.c 	if (!res)
res               355 net/tipc/socket.c 	return res;
res               621 net/tipc/socket.c 	int res = -EINVAL;
res               625 net/tipc/socket.c 		res = tipc_sk_withdraw(tsk, 0, NULL);
res               629 net/tipc/socket.c 		res = -EACCES;
res               633 net/tipc/socket.c 		res = -EINVAL;
res               637 net/tipc/socket.c 		res = -EAFNOSUPPORT;
res               644 net/tipc/socket.c 		res = -EAFNOSUPPORT;
res               651 net/tipc/socket.c 		res = -EACCES;
res               655 net/tipc/socket.c 	res = (addr->scope >= 0) ?
res               660 net/tipc/socket.c 	return res;
res              1600 net/tipc/socket.c 	int res;
res              1611 net/tipc/socket.c 		res = put_cmsg(m, SOL_TIPC, TIPC_ERRINFO, 8, anc_data);
res              1612 net/tipc/socket.c 		if (res)
res              1613 net/tipc/socket.c 			return res;
res              1618 net/tipc/socket.c 			res = put_cmsg(m, SOL_TIPC, TIPC_RETDATA, anc_data[1],
res              1620 net/tipc/socket.c 			if (res)
res              1621 net/tipc/socket.c 				return res;
res              1650 net/tipc/socket.c 		res = put_cmsg(m, SOL_TIPC, TIPC_DESTNAME, 12, anc_data);
res              1651 net/tipc/socket.c 		if (res)
res              1652 net/tipc/socket.c 			return res;
res              2391 net/tipc/socket.c 	int res = 0;
res              2399 net/tipc/socket.c 		res = -EINVAL;
res              2406 net/tipc/socket.c 			res = -EINVAL;
res              2410 net/tipc/socket.c 		res = -EINVAL;
res              2418 net/tipc/socket.c 		res = -EINVAL;
res              2436 net/tipc/socket.c 		res = __tipc_sendmsg(sock, &m, 0);
res              2437 net/tipc/socket.c 		if ((res < 0) && (res != -EWOULDBLOCK))
res              2444 net/tipc/socket.c 		res = -EINPROGRESS;
res              2449 net/tipc/socket.c 				res = -EALREADY;
res              2454 net/tipc/socket.c 		res = tipc_wait_for_connect(sock, &timeout);
res              2457 net/tipc/socket.c 		res = -EISCONN;
res              2460 net/tipc/socket.c 		res = -EINVAL;
res              2465 net/tipc/socket.c 	return res;
res              2478 net/tipc/socket.c 	int res;
res              2481 net/tipc/socket.c 	res = tipc_set_sk_state(sk, TIPC_LISTEN);
res              2484 net/tipc/socket.c 	return res;
res              2536 net/tipc/socket.c 	int res;
res              2541 net/tipc/socket.c 		res = -EINVAL;
res              2545 net/tipc/socket.c 	res = tipc_wait_for_accept(sock, timeo);
res              2546 net/tipc/socket.c 	if (res)
res              2551 net/tipc/socket.c 	res = tipc_sk_create(sock_net(sock->sk), new_sock, 0, kern);
res              2552 net/tipc/socket.c 	if (res)
res              2595 net/tipc/socket.c 	return res;
res              2610 net/tipc/socket.c 	int res;
res              2627 net/tipc/socket.c 		res = 0;
res              2629 net/tipc/socket.c 		res = -ENOTCONN;
res              2633 net/tipc/socket.c 	return res;
res              2957 net/tipc/socket.c 	int res = 0;
res              2989 net/tipc/socket.c 		res = tsk_set_importance(tsk, value);
res              2995 net/tipc/socket.c 			res = -ENOPROTOOPT;
res              3012 net/tipc/socket.c 		res = tipc_sk_join(tsk, &mreq);
res              3015 net/tipc/socket.c 		res = tipc_sk_leave(tsk);
res              3018 net/tipc/socket.c 		res = -EINVAL;
res              3023 net/tipc/socket.c 	return res;
res              3047 net/tipc/socket.c 	int res;
res              3053 net/tipc/socket.c 	res = get_user(len, ol);
res              3054 net/tipc/socket.c 	if (res)
res              3055 net/tipc/socket.c 		return res;
res              3089 net/tipc/socket.c 		res = -EINVAL;
res              3094 net/tipc/socket.c 	if (res)
res              3095 net/tipc/socket.c 		return res;	/* "get" failed */
res              3245 net/tipc/socket.c 	int res;
res              3247 net/tipc/socket.c 	res = proto_register(&tipc_proto, 1);
res              3248 net/tipc/socket.c 	if (res) {
res              3253 net/tipc/socket.c 	res = sock_register(&tipc_family_ops);
res              3254 net/tipc/socket.c 	if (res) {
res              3260 net/tipc/socket.c 	return res;
res               966 net/unix/af_unix.c static int unix_mknod(const char *sun_path, umode_t mode, struct path *res)
res               987 net/unix/af_unix.c 			res->mnt = mntget(path.mnt);
res               988 net/unix/af_unix.c 			res->dentry = dget(dentry);
res              1096 net/wireless/chan.c 	bool res;
res              1111 net/wireless/chan.c 	res = cfg80211_chandef_usable(wiphy, chandef, prohibited_flags);
res              1113 net/wireless/chan.c 	trace_cfg80211_return_bool(res);
res              1114 net/wireless/chan.c 	return res;
res               649 net/wireless/core.c 	int res;
res               784 net/wireless/core.c 	res = wiphy_verify_combinations(wiphy);
res               785 net/wireless/core.c 	if (res)
res               786 net/wireless/core.c 		return res;
res               888 net/wireless/core.c 	res = device_add(&rdev->wiphy.dev);
res               889 net/wireless/core.c 	if (res) {
res               891 net/wireless/core.c 		return res;
res               951 net/wireless/core.c 	res = rfkill_register(rdev->rfkill);
res               952 net/wireless/core.c 	if (res) {
res               956 net/wireless/core.c 		return res;
res                19 net/wireless/debugfs.c 	int res;							\
res                21 net/wireless/debugfs.c 	res = scnprintf(buf, buflen, fmt "\n", ##value);		\
res                22 net/wireless/debugfs.c 	return simple_read_from_buffer(userbuf, count, ppos, buf, res);	\
res              2012 net/wireless/nl80211.c 			int res;
res              2014 net/wireless/nl80211.c 			res = rdev_get_antenna(rdev, &tx_ant, &rx_ant);
res              2015 net/wireless/nl80211.c 			if (!res) {
res              2415 net/wireless/nl80211.c 			int res;
res              2417 net/wireless/nl80211.c 			res = rdev_get_txq_stats(rdev, NULL, &txqstats);
res              2418 net/wireless/nl80211.c 			if (!res &&
res              8612 net/wireless/nl80211.c 	struct cfg80211_bss *res = &intbss->pub;
res              8638 net/wireless/nl80211.c 	if ((!is_zero_ether_addr(res->bssid) &&
res              8639 net/wireless/nl80211.c 	     nla_put(msg, NL80211_BSS_BSSID, ETH_ALEN, res->bssid)))
res              8644 net/wireless/nl80211.c 	if (rcu_access_pointer(res->proberesp_ies) &&
res              8651 net/wireless/nl80211.c 	ies = rcu_dereference(res->ies);
res              8662 net/wireless/nl80211.c 	ies = rcu_dereference(res->beacon_ies);
res              8673 net/wireless/nl80211.c 	if (res->beacon_interval &&
res              8674 net/wireless/nl80211.c 	    nla_put_u16(msg, NL80211_BSS_BEACON_INTERVAL, res->beacon_interval))
res              8676 net/wireless/nl80211.c 	if (nla_put_u16(msg, NL80211_BSS_CAPABILITY, res->capability) ||
res              8677 net/wireless/nl80211.c 	    nla_put_u32(msg, NL80211_BSS_FREQUENCY, res->channel->center_freq) ||
res              8678 net/wireless/nl80211.c 	    nla_put_u32(msg, NL80211_BSS_CHAN_WIDTH, res->scan_width) ||
res              8702 net/wireless/nl80211.c 		if (nla_put_u32(msg, NL80211_BSS_SIGNAL_MBM, res->signal))
res              8706 net/wireless/nl80211.c 		if (nla_put_u8(msg, NL80211_BSS_SIGNAL_UNSPEC, res->signal))
res              8873 net/wireless/nl80211.c 	int res;
res              8881 net/wireless/nl80211.c 	res = nl80211_prepare_wdev_dump(cb, &rdev, &wdev);
res              8882 net/wireless/nl80211.c 	if (res)
res              8889 net/wireless/nl80211.c 		res = -EINVAL;
res              8894 net/wireless/nl80211.c 		res = -EOPNOTSUPP;
res              8899 net/wireless/nl80211.c 		res = rdev_dump_survey(rdev, wdev->netdev, survey_idx, &survey);
res              8900 net/wireless/nl80211.c 		if (res == -ENOENT)
res              8902 net/wireless/nl80211.c 		if (res)
res              8922 net/wireless/nl80211.c 	res = skb->len;
res              8926 net/wireless/nl80211.c 	return res;
res               333 net/wireless/pmsr.c 				     struct cfg80211_pmsr_result *res)
res               335 net/wireless/pmsr.c 	if (res->status == NL80211_PMSR_STATUS_FAILURE) {
res               337 net/wireless/pmsr.c 				res->ftm.failure_reason))
res               340 net/wireless/pmsr.c 		if (res->ftm.failure_reason ==
res               342 net/wireless/pmsr.c 		    res->ftm.busy_retry_time &&
res               344 net/wireless/pmsr.c 				res->ftm.busy_retry_time))
res               354 net/wireless/pmsr.c 				 res->ftm.val))				\
res               360 net/wireless/pmsr.c 		if (res->ftm.val##_valid)				\
res               368 net/wireless/pmsr.c 				      res->ftm.val,			\
res               375 net/wireless/pmsr.c 		if (res->ftm.val##_valid)				\
res               379 net/wireless/pmsr.c 	if (res->ftm.burst_index >= 0)
res               388 net/wireless/pmsr.c 	if (res->ftm.tx_rate_valid &&
res               389 net/wireless/pmsr.c 	    !nl80211_put_sta_rate(msg, &res->ftm.tx_rate,
res               392 net/wireless/pmsr.c 	if (res->ftm.rx_rate_valid &&
res               393 net/wireless/pmsr.c 	    !nl80211_put_sta_rate(msg, &res->ftm.rx_rate,
res               402 net/wireless/pmsr.c 	if (res->ftm.lci && res->ftm.lci_len &&
res               404 net/wireless/pmsr.c 		    res->ftm.lci_len, res->ftm.lci))
res               406 net/wireless/pmsr.c 	if (res->ftm.civicloc && res->ftm.civicloc_len &&
res               408 net/wireless/pmsr.c 		    res->ftm.civicloc_len, res->ftm.civicloc))
res               421 net/wireless/pmsr.c 				    struct cfg80211_pmsr_result *res)
res               437 net/wireless/pmsr.c 	if (nla_put(msg, NL80211_PMSR_PEER_ATTR_ADDR, ETH_ALEN, res->addr))
res               444 net/wireless/pmsr.c 	if (nla_put_u32(msg, NL80211_PMSR_RESP_ATTR_STATUS, res->status) ||
res               446 net/wireless/pmsr.c 			      res->host_time, NL80211_PMSR_RESP_ATTR_PAD))
res               449 net/wireless/pmsr.c 	if (res->ap_tsf_valid &&
res               451 net/wireless/pmsr.c 			      res->ap_tsf, NL80211_PMSR_RESP_ATTR_PAD))
res               454 net/wireless/pmsr.c 	if (res->final && nla_put_flag(msg, NL80211_PMSR_RESP_ATTR_FINAL))
res               461 net/wireless/pmsr.c 	typedata = nla_nest_start_noflag(msg, res->type);
res               465 net/wireless/pmsr.c 	switch (res->type) {
res               467 net/wireless/pmsr.c 		if (nl80211_pmsr_send_ftm_res(msg, res))
res               921 net/wireless/scan.c 	struct cfg80211_internal_bss *bss, *res = NULL;
res               948 net/wireless/scan.c 			res = bss;
res               949 net/wireless/scan.c 			bss_ref_get(rdev, res);
res               955 net/wireless/scan.c 	if (!res)
res               957 net/wireless/scan.c 	trace_cfg80211_return_bss(&res->pub);
res               958 net/wireless/scan.c 	return &res->pub;
res               993 net/wireless/scan.c 	    struct cfg80211_internal_bss *res,
res              1002 net/wireless/scan.c 		r = cmp_bss(&res->pub, &bss->pub, mode);
res              1375 net/wireless/scan.c 	struct cfg80211_internal_bss tmp = {}, *res;
res              1439 net/wireless/scan.c 	res = cfg80211_bss_update(wiphy_to_rdev(wiphy), &tmp, signal_valid, ts);
res              1440 net/wireless/scan.c 	if (!res)
res              1444 net/wireless/scan.c 		bss_type = res->pub.capability & WLAN_CAPABILITY_DMG_TYPE_MASK;
res              1449 net/wireless/scan.c 		if (res->pub.capability & WLAN_CAPABILITY_ESS)
res              1458 net/wireless/scan.c 					       &res->pub)) {
res              1459 net/wireless/scan.c 			if (__cfg80211_unlink_bss(rdev, res))
res              1464 net/wireless/scan.c 	trace_cfg80211_return_bss(&res->pub);
res              1466 net/wireless/scan.c 	return &res->pub;
res              1666 net/wireless/scan.c 	struct cfg80211_bss *res;
res              1669 net/wireless/scan.c 	res = cfg80211_inform_single_bss_data(wiphy, data, ftype, bssid, tsf,
res              1672 net/wireless/scan.c 	if (!res)
res              1674 net/wireless/scan.c 	non_tx_data.tx_bss = res;
res              1678 net/wireless/scan.c 	return res;
res              1798 net/wireless/scan.c 	struct cfg80211_internal_bss tmp = {}, *res;
res              1857 net/wireless/scan.c 	res = cfg80211_bss_update(wiphy_to_rdev(wiphy), &tmp, signal_valid,
res              1859 net/wireless/scan.c 	if (!res)
res              1863 net/wireless/scan.c 		bss_type = res->pub.capability & WLAN_CAPABILITY_DMG_TYPE_MASK;
res              1868 net/wireless/scan.c 		if (res->pub.capability & WLAN_CAPABILITY_ESS)
res              1872 net/wireless/scan.c 	trace_cfg80211_return_bss(&res->pub);
res              1874 net/wireless/scan.c 	return &res->pub;
res              1883 net/wireless/scan.c 	struct cfg80211_bss *res, *tmp_bss;
res              1890 net/wireless/scan.c 	res = cfg80211_inform_single_bss_frame_data(wiphy, data, mgmt,
res              1892 net/wireless/scan.c 	if (!res || !wiphy->support_mbssid ||
res              1894 net/wireless/scan.c 		return res;
res              1897 net/wireless/scan.c 		return res;
res              1899 net/wireless/scan.c 	non_tx_data.tx_bss = res;
res              1909 net/wireless/scan.c 	ies1 = rcu_access_pointer(res->ies);
res              1915 net/wireless/scan.c 	list_for_each_entry(tmp_bss, &res->nontrans_list,
res              1924 net/wireless/scan.c 	return res;
res              2595 net/wireless/scan.c 	int res;
res              2608 net/wireless/scan.c 	res = ieee80211_scan_results(rdev, info, extra, data->length);
res              2610 net/wireless/scan.c 	if (res >= 0) {
res              2611 net/wireless/scan.c 		data->length = res;
res              2612 net/wireless/scan.c 		res = 0;
res              2615 net/wireless/scan.c 	return res;
res               144 net/xfrm/xfrm_policy.c 	struct hlist_head *res[XFRM_POL_CAND_MAX];
res              1664 net/xfrm/xfrm_policy.c 		for (i = 0; i < ARRAY_SIZE(cand.res); i++) {
res              1667 net/xfrm/xfrm_policy.c 			tmp = __xfrm_policy_bysel_ctx(cand.res[i], mark,
res              1955 net/xfrm/xfrm_policy.c 	cand->res[XFRM_POL_CAND_ANY] = &b->hhead;
res              1960 net/xfrm/xfrm_policy.c 		cand->res[XFRM_POL_CAND_DADDR] = &n->hhead;
res              1964 net/xfrm/xfrm_policy.c 			cand->res[XFRM_POL_CAND_BOTH] = &n->hhead;
res              1970 net/xfrm/xfrm_policy.c 		cand->res[XFRM_POL_CAND_SADDR] = &n->hhead;
res              2055 net/xfrm/xfrm_policy.c 	for (i = 0; i < ARRAY_SIZE(cand->res); i++) {
res              2056 net/xfrm/xfrm_policy.c 		tmp = __xfrm_policy_eval_candidates(cand->res[i],
res              3673 net/xfrm/xfrm_policy.c 	int res = 1;
res              3688 net/xfrm/xfrm_policy.c 		res = 0;
res              3692 net/xfrm/xfrm_policy.c 	return res;
res              1929 net/xfrm/xfrm_state.c 	u32 res;
res              1933 net/xfrm/xfrm_state.c 		res = atomic_inc_return(&acqseq);
res              1934 net/xfrm/xfrm_state.c 	} while (!res);
res              1936 net/xfrm/xfrm_state.c 	return res;
res               192 samples/bpf/cookie_uid_helper_example.c 	int res;
res               196 samples/bpf/cookie_uid_helper_example.c 		res = bpf_map_lookup_elem(map_fd, &curN, &curEntry);
res               197 samples/bpf/cookie_uid_helper_example.c 		if (res < 0) {
res               217 samples/bpf/cookie_uid_helper_example.c 	int res;
res               233 samples/bpf/cookie_uid_helper_example.c 	res = getsockopt(s_send, SOL_SOCKET, SO_COOKIE, &cookie, &cookie_len);
res               234 samples/bpf/cookie_uid_helper_example.c 	if (res < 0)
res               236 samples/bpf/cookie_uid_helper_example.c 	res = bpf_map_lookup_elem(map_fd, &cookie, &dataEntry);
res               237 samples/bpf/cookie_uid_helper_example.c 	if (res != -1)
res               240 samples/bpf/cookie_uid_helper_example.c 		res = sendto(s_send, &message, sizeof(message), 0,
res               242 samples/bpf/cookie_uid_helper_example.c 		if (res == -1)
res               244 samples/bpf/cookie_uid_helper_example.c 		if (res != sizeof(message))
res               245 samples/bpf/cookie_uid_helper_example.c 			error(1, 0, "%uB != %luB\n", res, sizeof(message));
res               250 samples/bpf/cookie_uid_helper_example.c 		res = memcmp(&(si_other.sin_addr), &(si_me.sin_addr),
res               252 samples/bpf/cookie_uid_helper_example.c 		if (res != 0)
res               253 samples/bpf/cookie_uid_helper_example.c 			error(1, EFAULT, "sender addr error: %d\n", res);
res               255 samples/bpf/cookie_uid_helper_example.c 		res = bpf_map_lookup_elem(map_fd, &cookie, &dataEntry);
res               256 samples/bpf/cookie_uid_helper_example.c 		if (res < 0)
res               223 samples/bpf/task_fd_query_user.c 	int err, res, kfd, efd;
res               231 samples/bpf/task_fd_query_user.c 	res = snprintf(event_alias, sizeof(event_alias), "test_%d", getpid());
res               232 samples/bpf/task_fd_query_user.c 	CHECK_PERROR_RET(res < 0 || res >= sizeof(event_alias));
res               234 samples/bpf/task_fd_query_user.c 	res = snprintf(buf, sizeof(buf), "%c:%ss/%s %s:0x%lx",
res               237 samples/bpf/task_fd_query_user.c 	CHECK_PERROR_RET(res < 0 || res >= sizeof(buf));
res                72 samples/bpf/xdp_monitor_user.c 	int res;
res                74 samples/bpf/xdp_monitor_user.c 	res = clock_gettime(CLOCK_MONOTONIC, &t);
res                75 samples/bpf/xdp_monitor_user.c 	if (res < 0) {
res                76 samples/bpf/xdp_monitor_user.c 		fprintf(stderr, "Error with gettimeofday! (%i)\n", res);
res               147 samples/bpf/xdp_redirect_cpu_user.c 	int res;
res               149 samples/bpf/xdp_redirect_cpu_user.c 	res = clock_gettime(CLOCK_MONOTONIC, &t);
res               150 samples/bpf/xdp_redirect_cpu_user.c 	if (res < 0) {
res               151 samples/bpf/xdp_redirect_cpu_user.c 		fprintf(stderr, "Error with gettimeofday! (%i)\n", res);
res               172 samples/bpf/xdp_rxq_info_user.c 	int res;
res               174 samples/bpf/xdp_rxq_info_user.c 	res = clock_gettime(CLOCK_MONOTONIC, &t);
res               175 samples/bpf/xdp_rxq_info_user.c 	if (res < 0) {
res               176 samples/bpf/xdp_rxq_info_user.c 		fprintf(stderr, "Error with gettimeofday! (%i)\n", res);
res                46 samples/hidraw/hid-example.c 	int i, res, desc_size = 0;
res                69 samples/hidraw/hid-example.c 	res = ioctl(fd, HIDIOCGRDESCSIZE, &desc_size);
res                70 samples/hidraw/hid-example.c 	if (res < 0)
res                77 samples/hidraw/hid-example.c 	res = ioctl(fd, HIDIOCGRDESC, &rpt_desc);
res                78 samples/hidraw/hid-example.c 	if (res < 0) {
res                88 samples/hidraw/hid-example.c 	res = ioctl(fd, HIDIOCGRAWNAME(256), buf);
res                89 samples/hidraw/hid-example.c 	if (res < 0)
res                95 samples/hidraw/hid-example.c 	res = ioctl(fd, HIDIOCGRAWPHYS(256), buf);
res                96 samples/hidraw/hid-example.c 	if (res < 0)
res               102 samples/hidraw/hid-example.c 	res = ioctl(fd, HIDIOCGRAWINFO, &info);
res               103 samples/hidraw/hid-example.c 	if (res < 0) {
res               118 samples/hidraw/hid-example.c 	res = ioctl(fd, HIDIOCSFEATURE(4), buf);
res               119 samples/hidraw/hid-example.c 	if (res < 0)
res               122 samples/hidraw/hid-example.c 		printf("ioctl HIDIOCSFEATURE returned: %d\n", res);
res               126 samples/hidraw/hid-example.c 	res = ioctl(fd, HIDIOCGFEATURE(256), buf);
res               127 samples/hidraw/hid-example.c 	if (res < 0) {
res               130 samples/hidraw/hid-example.c 		printf("ioctl HIDIOCGFEATURE returned: %d\n", res);
res               132 samples/hidraw/hid-example.c 		for (i = 0; i < res; i++)
res               140 samples/hidraw/hid-example.c 	res = write(fd, buf, 2);
res               141 samples/hidraw/hid-example.c 	if (res < 0) {
res               145 samples/hidraw/hid-example.c 		printf("write() wrote %d bytes\n", res);
res               149 samples/hidraw/hid-example.c 	res = read(fd, buf, 16);
res               150 samples/hidraw/hid-example.c 	if (res < 0) {
res               153 samples/hidraw/hid-example.c 		printf("read() read %d bytes:\n\t", res);
res               154 samples/hidraw/hid-example.c 		for (i = 0; i < res; i++)
res                75 scripts/dtc/srcpos.c 		char *res;
res                77 scripts/dtc/srcpos.c 		res = xmalloc((3 * diff) + restlen + 1);
res                79 scripts/dtc/srcpos.c 			res[j++] = '.';
res                80 scripts/dtc/srcpos.c 			res[j++] = '.';
res                81 scripts/dtc/srcpos.c 			res[j++] = '/';
res                83 scripts/dtc/srcpos.c 		strcpy(res + j, p1);
res                84 scripts/dtc/srcpos.c 		return res;
res               381 scripts/genksyms/genksyms.c 	struct string_list *res, *n;
res               385 scripts/genksyms/genksyms.c 	n = res = copy_node(start);
res               391 scripts/genksyms/genksyms.c 	return res;
res               992 scripts/kconfig/confdata.c 	int res, i;
res              1052 scripts/kconfig/confdata.c 		res = conf_touch_dep(sym->name);
res              1053 scripts/kconfig/confdata.c 		if (res)
res              1054 scripts/kconfig/confdata.c 			return res;
res               255 scripts/kconfig/expr.c 	int res, old_count;
res               284 scripts/kconfig/expr.c 		res = (e1->type == E_SYMBOL && e2->type == E_SYMBOL &&
res               289 scripts/kconfig/expr.c 		return res;
res              1037 scripts/kconfig/expr.c 	int res;
res              1080 scripts/kconfig/expr.c 		res = strcmp(str1, str2);
res              1082 scripts/kconfig/expr.c 		res = (lval.u > rval.u) - (lval.u < rval.u);
res              1084 scripts/kconfig/expr.c 		res = (lval.s > rval.s) - (lval.s < rval.s);
res              1088 scripts/kconfig/expr.c 		return res ? no : yes;
res              1090 scripts/kconfig/expr.c 		return res >= 0 ? yes : no;
res              1092 scripts/kconfig/expr.c 		return res > 0 ? yes : no;
res              1094 scripts/kconfig/expr.c 		return res <= 0 ? yes : no;
res              1096 scripts/kconfig/expr.c 		return res < 0 ? yes : no;
res              1098 scripts/kconfig/expr.c 		return res ? yes : no;
res               393 scripts/kconfig/mconf.c 	struct gstr res;
res               443 scripts/kconfig/mconf.c 		res = get_relations_str(sym_arr, &head);
res               446 scripts/kconfig/mconf.c 					str_get(&res), 0, 0, keys, &vscroll,
res               455 scripts/kconfig/mconf.c 		str_free(&res);
res               649 scripts/kconfig/mconf.c 	int res;
res               666 scripts/kconfig/mconf.c 		res = dialog_menu(prompt ? prompt : "Main Menu",
res               669 scripts/kconfig/mconf.c 		if (res == 1 || res == KEY_ESC || res == -ERRDISPLAYTOOSMALL)
res               684 scripts/kconfig/mconf.c 		switch (res) {
res               803 scripts/kconfig/mconf.c 		int res;
res               824 scripts/kconfig/mconf.c 		res = dialog_checklist(prompt ? prompt : "Main Menu",
res               830 scripts/kconfig/mconf.c 		switch (res) {
res               861 scripts/kconfig/mconf.c 		int res;
res               878 scripts/kconfig/mconf.c 		res = dialog_inputbox(prompt ? prompt : "Main Menu",
res               881 scripts/kconfig/mconf.c 		switch (res) {
res               900 scripts/kconfig/mconf.c 		int res;
res               902 scripts/kconfig/mconf.c 		res = dialog_inputbox(NULL, load_config_text,
res               904 scripts/kconfig/mconf.c 		switch(res) {
res               927 scripts/kconfig/mconf.c 		int res;
res               929 scripts/kconfig/mconf.c 		res = dialog_inputbox(NULL, save_config_text,
res               931 scripts/kconfig/mconf.c 		switch(res) {
res               952 scripts/kconfig/mconf.c 	int res;
res               958 scripts/kconfig/mconf.c 		res = dialog_yesno(NULL,
res               963 scripts/kconfig/mconf.c 		res = -1;
res               967 scripts/kconfig/mconf.c 	switch (res) {
res               984 scripts/kconfig/mconf.c 		res = 0;
res               991 scripts/kconfig/mconf.c 		if (res != KEY_ESC)
res               992 scripts/kconfig/mconf.c 			res = 0;
res               995 scripts/kconfig/mconf.c 	return res;
res              1006 scripts/kconfig/mconf.c 	int res;
res              1035 scripts/kconfig/mconf.c 		res = handle_exit();
res              1036 scripts/kconfig/mconf.c 	} while (res == KEY_ESC);
res              1038 scripts/kconfig/mconf.c 	return res;
res               843 scripts/kconfig/menu.c 	struct gstr res = str_new();
res               847 scripts/kconfig/menu.c 		get_symbol_str(&res, sym, head);
res               849 scripts/kconfig/menu.c 		str_append(&res, "No matches found.\n");
res               850 scripts/kconfig/menu.c 	return res;
res               413 scripts/kconfig/nconf.c 	int res = btn_dialog(main_window,
res               418 scripts/kconfig/nconf.c 	if (res == 0)
res               420 scripts/kconfig/nconf.c 	else if (res == 1)
res               649 scripts/kconfig/nconf.c 	int res;
res               654 scripts/kconfig/nconf.c 	res = btn_dialog(main_window,
res               660 scripts/kconfig/nconf.c 	if (res == KEY_EXIT) {
res               666 scripts/kconfig/nconf.c 	switch (res) {
res               668 scripts/kconfig/nconf.c 		res = conf_write(filename);
res               669 scripts/kconfig/nconf.c 		if (res)
res               694 scripts/kconfig/nconf.c 	struct gstr res;
res               726 scripts/kconfig/nconf.c 	res = get_relations_str(sym_arr, NULL);
res               729 scripts/kconfig/nconf.c 			"Search Results", str_get(&res));
res               730 scripts/kconfig/nconf.c 	str_free(&res);
res              1073 scripts/kconfig/nconf.c 	int res;
res              1100 scripts/kconfig/nconf.c 			res = wgetch(menu_win(curses_menu));
res              1101 scripts/kconfig/nconf.c 			if (!res)
res              1103 scripts/kconfig/nconf.c 			if (do_match(res, &match_state, &current_index) == 0) {
res              1109 scripts/kconfig/nconf.c 			if (process_special_keys(&res,
res              1112 scripts/kconfig/nconf.c 			switch (res) {
res              1136 scripts/kconfig/nconf.c 			if (res == 10 || res == 27 ||
res              1137 scripts/kconfig/nconf.c 				res == 32 || res == 'n' || res == 'y' ||
res              1138 scripts/kconfig/nconf.c 				res == KEY_LEFT || res == KEY_RIGHT ||
res              1139 scripts/kconfig/nconf.c 				res == 'm')
res              1146 scripts/kconfig/nconf.c 		if (res == 27 || (menu != &rootmenu && res == KEY_LEFT))
res              1161 scripts/kconfig/nconf.c 		switch (res) {
res              1185 scripts/kconfig/nconf.c 				else if (res == 10)
res              1238 scripts/kconfig/nconf.c 	int res, i = 0;
res              1281 scripts/kconfig/nconf.c 			res = wgetch(menu_win(curses_menu));
res              1282 scripts/kconfig/nconf.c 			if (!res)
res              1284 scripts/kconfig/nconf.c 			if (do_match(res, &match_state, &selected_index) == 0) {
res              1291 scripts/kconfig/nconf.c 						&res,
res              1294 scripts/kconfig/nconf.c 			switch (res) {
res              1318 scripts/kconfig/nconf.c 			if (res == 10 || res == 27 || res == ' ' ||
res              1319 scripts/kconfig/nconf.c 					res == KEY_LEFT){
res              1325 scripts/kconfig/nconf.c 		if (res == 27 || res == KEY_LEFT)
res              1331 scripts/kconfig/nconf.c 		switch (res) {
res              1353 scripts/kconfig/nconf.c 		int res;
res              1369 scripts/kconfig/nconf.c 		res = dialog_inputbox(main_window,
res              1375 scripts/kconfig/nconf.c 		switch (res) {
res              1395 scripts/kconfig/nconf.c 		int res;
res              1396 scripts/kconfig/nconf.c 		res = dialog_inputbox(main_window,
res              1401 scripts/kconfig/nconf.c 		switch (res) {
res              1426 scripts/kconfig/nconf.c 		int res;
res              1427 scripts/kconfig/nconf.c 		res = dialog_inputbox(main_window,
res              1432 scripts/kconfig/nconf.c 		switch (res) {
res              1436 scripts/kconfig/nconf.c 			res = conf_write(dialog_input_result);
res              1437 scripts/kconfig/nconf.c 			if (!res) {
res               205 scripts/kconfig/nconf.gui.c 	int res = 0;
res               208 scripts/kconfig/nconf.gui.c 		res++;
res               210 scripts/kconfig/nconf.gui.c 	return res;
res               256 scripts/kconfig/nconf.gui.c 	int res = -1;
res               320 scripts/kconfig/nconf.gui.c 	while ((res = wgetch(win))) {
res               321 scripts/kconfig/nconf.gui.c 		switch (res) {
res               338 scripts/kconfig/nconf.gui.c 		if (res == 10 || res == ' ') {
res               339 scripts/kconfig/nconf.gui.c 			res = item_index(current_item(menu));
res               341 scripts/kconfig/nconf.gui.c 		} else if (res == 27 || res == KEY_F(F_BACK) ||
res               342 scripts/kconfig/nconf.gui.c 				res == KEY_F(F_EXIT)) {
res               343 scripts/kconfig/nconf.gui.c 			res = KEY_EXIT;
res               354 scripts/kconfig/nconf.gui.c 	return res;
res               368 scripts/kconfig/nconf.gui.c 	int res = -1;
res               433 scripts/kconfig/nconf.gui.c 	while ((res = wgetch(form_win))) {
res               435 scripts/kconfig/nconf.gui.c 		switch (res) {
res               485 scripts/kconfig/nconf.gui.c 			if ((isgraph(res) || isspace(res))) {
res               496 scripts/kconfig/nconf.gui.c 				result[cursor_position] = res;
res               501 scripts/kconfig/nconf.gui.c 				mvprintw(0, 0, "unknown key: %d\n", res);
res               519 scripts/kconfig/nconf.gui.c 		if (res == 10) {
res               520 scripts/kconfig/nconf.gui.c 			res = 0;
res               522 scripts/kconfig/nconf.gui.c 		} else if (res == 27 || res == KEY_F(F_BACK) ||
res               523 scripts/kconfig/nconf.gui.c 				res == KEY_F(F_EXIT)) {
res               524 scripts/kconfig/nconf.gui.c 			res = KEY_EXIT;
res               526 scripts/kconfig/nconf.gui.c 		} else if (res == KEY_F(F_HELP)) {
res               527 scripts/kconfig/nconf.gui.c 			res = 1;
res               538 scripts/kconfig/nconf.gui.c 	return res;
res               554 scripts/kconfig/nconf.gui.c 	int res;
res               613 scripts/kconfig/nconf.gui.c 		res = wgetch(win);
res               614 scripts/kconfig/nconf.gui.c 		switch (res) {
res               647 scripts/kconfig/nconf.gui.c 		if (res == 10 || res == 27 || res == 'q' ||
res               648 scripts/kconfig/nconf.gui.c 			res == KEY_F(F_HELP) || res == KEY_F(F_BACK) ||
res               649 scripts/kconfig/nconf.gui.c 			res == KEY_F(F_EXIT))
res               659 scripts/kconfig/nconf.gui.c 	} while (res);
res               254 scripts/kconfig/preprocess.c 	char *res;
res               270 scripts/kconfig/preprocess.c 		res = expand_string_with_args(v->value, argc, argv);
res               272 scripts/kconfig/preprocess.c 		res = xstrdup(v->value);
res               276 scripts/kconfig/preprocess.c 	return res;
res               348 scripts/kconfig/preprocess.c 	char *tmp, *name, *res, *endptr, *prev, *p;
res               364 scripts/kconfig/preprocess.c 		res = xstrdup(argv[n - 1]);
res               414 scripts/kconfig/preprocess.c 	res = variable_expand(name, new_argc, new_argv);
res               415 scripts/kconfig/preprocess.c 	if (res)
res               419 scripts/kconfig/preprocess.c 	res = function_expand(name, new_argc, new_argv);
res               420 scripts/kconfig/preprocess.c 	if (res)
res               425 scripts/kconfig/preprocess.c 		res = env_expand(name);
res               426 scripts/kconfig/preprocess.c 		if (res)
res               430 scripts/kconfig/preprocess.c 	res = xstrdup("");
res               438 scripts/kconfig/preprocess.c 	return res;
res              1183 scripts/kconfig/qconf.cc 	QString res = str;
res              1184 scripts/kconfig/qconf.cc 	for (int i = 0; (i = res.indexOf(re, i)) >= 0;) {
res              1185 scripts/kconfig/qconf.cc 		switch (res[i].toLatin1()) {
res              1187 scripts/kconfig/qconf.cc 			res.replace(i, 1, "&lt;");
res              1191 scripts/kconfig/qconf.cc 			res.replace(i, 1, "&gt;");
res              1195 scripts/kconfig/qconf.cc 			res.replace(i, 1, "&amp;");
res              1199 scripts/kconfig/qconf.cc 			res.replace(i, 1, "&quot;");
res              1203 scripts/kconfig/qconf.cc 			res.replace(i, 1, "<br>");
res              1208 scripts/kconfig/qconf.cc 	return res;
res               874 scripts/kconfig/symbol.c 	char *res;
res               891 scripts/kconfig/symbol.c 	res = xmalloc(reslen);
res               892 scripts/kconfig/symbol.c 	res[0] = '\0';
res               894 scripts/kconfig/symbol.c 	strcat(res, "\"");
res               899 scripts/kconfig/symbol.c 		strncat(res, p, l);
res               905 scripts/kconfig/symbol.c 		strcat(res, "\\");
res               906 scripts/kconfig/symbol.c 		strncat(res, p++, 1);
res               909 scripts/kconfig/symbol.c 	strcat(res, "\"");
res               910 scripts/kconfig/symbol.c 	return res;
res              2475 security/apparmor/apparmorfs.c 	int res;
res              2477 security/apparmor/apparmorfs.c 	res = snprintf(name, sizeof(name), "%s:[%lu]", AAFS_NAME,
res              2479 security/apparmor/apparmorfs.c 	if (res > 0 && res < sizeof(name))
res              2480 security/apparmor/apparmorfs.c 		res = readlink_copy(buffer, buflen, name);
res              2482 security/apparmor/apparmorfs.c 		res = -ENOENT;
res              2484 security/apparmor/apparmorfs.c 	return res;
res               109 security/apparmor/label.c 	int res;
res               119 security/apparmor/label.c 	res = a->level - b->level;
res               120 security/apparmor/label.c 	if (res)
res               121 security/apparmor/label.c 		return res;
res               137 security/apparmor/label.c 	int res;
res               148 security/apparmor/label.c 	res = ns_cmp(a->ns, b->ns);
res               149 security/apparmor/label.c 	if (res)
res               150 security/apparmor/label.c 		return res;
res               177 security/apparmor/label.c 		int res = profile_cmp(a[i], b[i]);
res               179 security/apparmor/label.c 		if (res != 0)
res               180 security/apparmor/label.c 			return res;
res               233 security/apparmor/label.c 		int res = profile_cmp(vec[pos], vec[i]);
res               235 security/apparmor/label.c 		AA_BUG(res > 0, "vec not sorted");
res               236 security/apparmor/label.c 		if (res == 0) {
res               282 security/apparmor/label.c 			int res = profile_cmp(vec[pos], tmp);
res               284 security/apparmor/label.c 			if (res == 0) {
res               289 security/apparmor/label.c 			} else if (res < 0)
res               515 security/apparmor/label.c 		int res = profile_cmp(sub->vec[I->j], set->vec[I->i]);
res               517 security/apparmor/label.c 		if (res == 0) {
res               520 security/apparmor/label.c 		} else if (res > 0)
res               746 security/apparmor/label.c 	bool res;
res               751 security/apparmor/label.c 	res = __label_remove(label, ns_unconfined(labels_ns(label)));
res               754 security/apparmor/label.c 	return res;
res               768 security/apparmor/label.c 	bool res;
res               776 security/apparmor/label.c 		res = __label_replace(old, new);
res               783 security/apparmor/label.c 		res = __label_remove(old, new);
res               790 security/apparmor/label.c 		res = (l == new);
res               795 security/apparmor/label.c 	return res;
res               946 security/apparmor/label.c 			int res = profile_cmp(a->vec[I->i], b->vec[I->j]);
res               948 security/apparmor/label.c 			if (res > 0)
res               950 security/apparmor/label.c 			if (res == 0)
res               989 security/apparmor/label.c 		int res = profile_cmp(p, z->vec[k]);
res               991 security/apparmor/label.c 		if (res != 0)
res               992 security/apparmor/label.c 			return res;
res              1421 security/apparmor/label.c 	bool res = false;
res              1427 security/apparmor/label.c 		return res;
res              1430 security/apparmor/label.c 		return res;
res              1436 security/apparmor/label.c 		res = true;
res              1441 security/apparmor/label.c 	return res;
res                91 security/apparmor/path.c 	char *res;
res                99 security/apparmor/path.c 		res = dentry_path(path->dentry, buf, buflen);
res               100 security/apparmor/path.c 		*name = res;
res               101 security/apparmor/path.c 		if (IS_ERR(res)) {
res               103 security/apparmor/path.c 			return PTR_ERR(res);
res               122 security/apparmor/path.c 		res = __d_path(path, &root, buf, buflen);
res               125 security/apparmor/path.c 		res = d_absolute_path(path, buf, buflen);
res               133 security/apparmor/path.c 	if (!res || IS_ERR(res)) {
res               134 security/apparmor/path.c 		if (PTR_ERR(res) == -ENAMETOOLONG) {
res               140 security/apparmor/path.c 		res = dentry_path_raw(path->dentry, buf, buflen);
res               141 security/apparmor/path.c 		if (IS_ERR(res)) {
res               142 security/apparmor/path.c 			error = PTR_ERR(res);
res               149 security/apparmor/path.c 	*name = res;
res               417 security/apparmor/policy_unpack.c 	int res = unpack_str(e, &tmp, name);
res               420 security/apparmor/policy_unpack.c 	if (!res)
res               423 security/apparmor/policy_unpack.c 	*string = kmemdup(tmp, res, GFP_KERNEL);
res               429 security/apparmor/policy_unpack.c 	return res;
res               166 security/keys/keyctl_pkey.c 	struct kernel_pkey_query res;
res               175 security/keys/keyctl_pkey.c 	ret = params.key->type->asym_query(&params, &res);
res               180 security/keys/keyctl_pkey.c 	if (copy_to_user(_res, &res, sizeof(res)) == 0 &&
res               751 security/keys/trusted.c 	int res;
res               777 security/keys/trusted.c 			res = hex2bin(opt->pcrinfo, args[0].from,
res               779 security/keys/trusted.c 			if (res < 0)
res               783 security/keys/trusted.c 			res = kstrtoul(args[0].from, 16, &handle);
res               784 security/keys/trusted.c 			if (res < 0)
res               792 security/keys/trusted.c 			res = hex2bin(opt->keyauth, args[0].from,
res               794 security/keys/trusted.c 			if (res < 0)
res               800 security/keys/trusted.c 			res = hex2bin(opt->blobauth, args[0].from,
res               802 security/keys/trusted.c 			if (res < 0)
res               812 security/keys/trusted.c 			res = kstrtoul(args[0].from, 10, &lock);
res               813 security/keys/trusted.c 			if (res < 0)
res               837 security/keys/trusted.c 			res = hex2bin(opt->policydigest, args[0].from,
res               839 security/keys/trusted.c 			if (res < 0)
res               846 security/keys/trusted.c 			res = kstrtoul(args[0].from, 16, &handle);
res               847 security/keys/trusted.c 			if (res < 0)
res                88 security/safesetid/securityfs.c 	int res = 0;
res                96 security/safesetid/securityfs.c 			res = -EINVAL;
res               107 security/safesetid/securityfs.c 	return res;
res               212 security/safesetid/securityfs.c 	ssize_t res = 0;
res               221 security/safesetid/securityfs.c 		res = simple_read_from_buffer(buf, len, ppos,
res               225 security/safesetid/securityfs.c 	return res;
res              1678 security/selinux/selinuxfs.c 	char res[TMPBUFLEN];
res              1679 security/selinux/selinuxfs.c 	ssize_t len = snprintf(res, sizeof(res), "%d", sel_ino_to_class(ino));
res              1680 security/selinux/selinuxfs.c 	return simple_read_from_buffer(buf, count, ppos, res, len);
res              1692 security/selinux/selinuxfs.c 	char res[TMPBUFLEN];
res              1693 security/selinux/selinuxfs.c 	ssize_t len = snprintf(res, sizeof(res), "%d", sel_ino_to_perm(ino));
res              1694 security/selinux/selinuxfs.c 	return simple_read_from_buffer(buf, count, ppos, res, len);
res              2273 security/smack/smackfs.c 	int res;
res              2282 security/smack/smackfs.c 		res = smk_parse_rule(data, &rule, 0);
res              2287 security/smack/smackfs.c 		res = smk_parse_long_rule(data, &rule, 0, 3);
res              2290 security/smack/smackfs.c 	if (res >= 0)
res              2291 security/smack/smackfs.c 		res = smk_access(rule.smk_subject, rule.smk_object,
res              2293 security/smack/smackfs.c 	else if (res != -ENOENT)
res              2294 security/smack/smackfs.c 		return res;
res              2299 security/smack/smackfs.c 	data[0] = res >= 0 ? '1' : '0';
res               115 sound/aoa/soundbus/i2sbus/core.c 				     int layout, struct resource *res)
res               131 sound/aoa/soundbus/i2sbus/core.c 		return of_address_to_resource(np, index, res);
res               135 sound/aoa/soundbus/i2sbus/core.c 	rc = of_address_to_resource(parent, pindex, res);
res               143 sound/aoa/soundbus/i2sbus/core.c 	res->start += reg[index * 2];
res               144 sound/aoa/soundbus/i2sbus/core.c 	res->end = res->start + reg[index * 2 + 1] - 1;
res               910 sound/arm/aaci.c 		 (unsigned long long)dev->res.start, dev->irq[0]);
res              1000 sound/arm/aaci.c 	aaci->base = ioremap(dev->res.start, resource_size(&dev->res));
res                29 sound/core/misc.c void release_and_free_resource(struct resource *res)
res                31 sound/core/misc.c 	if (res) {
res                32 sound/core/misc.c 		release_resource(res);
res                33 sound/core/misc.c 		kfree(res);
res               618 sound/core/oss/mixer_oss.c 	int res;
res               639 sound/core/oss/mixer_oss.c 	if ((res = kctl->put(kctl, uctl)) < 0)
res               641 sound/core/oss/mixer_oss.c 	if (res > 0)
res               659 sound/core/oss/mixer_oss.c 	int res;
res               684 sound/core/oss/mixer_oss.c 	if ((res = kctl->put(kctl, uctl)) < 0)
res               686 sound/core/oss/mixer_oss.c 	if (res > 0)
res              1583 sound/core/oss/pcm_oss.c 	long res;
res              1610 sound/core/oss/pcm_oss.c 		res = schedule_timeout(10 * HZ);
res              1615 sound/core/oss/pcm_oss.c 		if (res == 0) {
res              1981 sound/core/oss/pcm_oss.c static int snd_pcm_oss_get_caps1(struct snd_pcm_substream *substream, int res)
res              1985 sound/core/oss/pcm_oss.c 		res &= ~DSP_CAP_DUPLEX;
res              1986 sound/core/oss/pcm_oss.c 		return res;
res              1991 sound/core/oss/pcm_oss.c 			res |= DSP_CAP_MULTI;
res              1999 sound/core/oss/pcm_oss.c 			res &= ~DSP_CAP_REALTIME;
res              2002 sound/core/oss/pcm_oss.c 	return res;
res              2559 sound/core/oss/pcm_oss.c 	int res;
res              2591 sound/core/oss/pcm_oss.c 		if (get_user(res, p))
res              2593 sound/core/oss/pcm_oss.c 		if ((res = snd_pcm_oss_set_rate(pcm_oss_file, res))<0)
res              2594 sound/core/oss/pcm_oss.c 			return res;
res              2595 sound/core/oss/pcm_oss.c 		return put_user(res, p);
res              2597 sound/core/oss/pcm_oss.c 		res = snd_pcm_oss_get_rate(pcm_oss_file);
res              2598 sound/core/oss/pcm_oss.c 		if (res < 0)
res              2599 sound/core/oss/pcm_oss.c 			return res;
res              2600 sound/core/oss/pcm_oss.c 		return put_user(res, p);
res              2602 sound/core/oss/pcm_oss.c 		if (get_user(res, p))
res              2604 sound/core/oss/pcm_oss.c 		res = res > 0 ? 2 : 1;
res              2605 sound/core/oss/pcm_oss.c 		if ((res = snd_pcm_oss_set_channels(pcm_oss_file, res)) < 0)
res              2606 sound/core/oss/pcm_oss.c 			return res;
res              2607 sound/core/oss/pcm_oss.c 		return put_user(--res, p);
res              2609 sound/core/oss/pcm_oss.c 		res = snd_pcm_oss_get_block_size(pcm_oss_file);
res              2610 sound/core/oss/pcm_oss.c 		if (res < 0)
res              2611 sound/core/oss/pcm_oss.c 			return res;
res              2612 sound/core/oss/pcm_oss.c 		return put_user(res, p);
res              2614 sound/core/oss/pcm_oss.c 		if (get_user(res, p))
res              2616 sound/core/oss/pcm_oss.c 		res = snd_pcm_oss_set_format(pcm_oss_file, res);
res              2617 sound/core/oss/pcm_oss.c 		if (res < 0)
res              2618 sound/core/oss/pcm_oss.c 			return res;
res              2619 sound/core/oss/pcm_oss.c 		return put_user(res, p);
res              2621 sound/core/oss/pcm_oss.c 		res = snd_pcm_oss_get_format(pcm_oss_file);
res              2622 sound/core/oss/pcm_oss.c 		if (res < 0)
res              2623 sound/core/oss/pcm_oss.c 			return res;
res              2624 sound/core/oss/pcm_oss.c 		return put_user(res, p);
res              2626 sound/core/oss/pcm_oss.c 		if (get_user(res, p))
res              2628 sound/core/oss/pcm_oss.c 		res = snd_pcm_oss_set_channels(pcm_oss_file, res);
res              2629 sound/core/oss/pcm_oss.c 		if (res < 0)
res              2630 sound/core/oss/pcm_oss.c 			return res;
res              2631 sound/core/oss/pcm_oss.c 		return put_user(res, p);
res              2633 sound/core/oss/pcm_oss.c 		res = snd_pcm_oss_get_channels(pcm_oss_file);
res              2634 sound/core/oss/pcm_oss.c 		if (res < 0)
res              2635 sound/core/oss/pcm_oss.c 			return res;
res              2636 sound/core/oss/pcm_oss.c 		return put_user(res, p);
res              2643 sound/core/oss/pcm_oss.c 		if (get_user(res, p))
res              2645 sound/core/oss/pcm_oss.c 		res = snd_pcm_oss_set_subdivide(pcm_oss_file, res);
res              2646 sound/core/oss/pcm_oss.c 		if (res < 0)
res              2647 sound/core/oss/pcm_oss.c 			return res;
res              2648 sound/core/oss/pcm_oss.c 		return put_user(res, p);
res              2650 sound/core/oss/pcm_oss.c 		if (get_user(res, p))
res              2652 sound/core/oss/pcm_oss.c 		return snd_pcm_oss_set_fragment(pcm_oss_file, res);
res              2654 sound/core/oss/pcm_oss.c 		res = snd_pcm_oss_get_formats(pcm_oss_file);
res              2655 sound/core/oss/pcm_oss.c 		if (res < 0)
res              2656 sound/core/oss/pcm_oss.c 			return res;
res              2657 sound/core/oss/pcm_oss.c 		return put_user(res, p);
res              2667 sound/core/oss/pcm_oss.c 		res = snd_pcm_oss_get_caps(pcm_oss_file);
res              2668 sound/core/oss/pcm_oss.c 		if (res < 0)
res              2669 sound/core/oss/pcm_oss.c 			return res;
res              2670 sound/core/oss/pcm_oss.c 		return put_user(res, p);
res              2672 sound/core/oss/pcm_oss.c 		res = snd_pcm_oss_get_trigger(pcm_oss_file);
res              2673 sound/core/oss/pcm_oss.c 		if (res < 0)
res              2674 sound/core/oss/pcm_oss.c 			return res;
res              2675 sound/core/oss/pcm_oss.c 		return put_user(res, p);
res              2677 sound/core/oss/pcm_oss.c 		if (get_user(res, p))
res              2679 sound/core/oss/pcm_oss.c 		return snd_pcm_oss_set_trigger(pcm_oss_file, res);
res              2700 sound/core/oss/pcm_oss.c 		res = snd_pcm_oss_get_odelay(pcm_oss_file);
res              2701 sound/core/oss/pcm_oss.c 		if (res < 0) {
res              2704 sound/core/oss/pcm_oss.c 			return res;
res              2706 sound/core/oss/pcm_oss.c 		return put_user(res, p);
res              2740 sound/core/oss/pcm_oss.c 		ssize_t res = snd_pcm_oss_read1(substream, buf, count);
res              2743 sound/core/oss/pcm_oss.c 			(long)count, (long)res);
res              2744 sound/core/oss/pcm_oss.c 		return res;
res               186 sound/core/oss/rate.c 	snd_pcm_sframes_t res;
res               194 sound/core/oss/rate.c 		res = (((frames * data->pitch) + (BITS/2)) >> SHIFT);
res               196 sound/core/oss/rate.c 		res = (((frames << SHIFT) + (data->pitch / 2)) / data->pitch);		
res               212 sound/core/oss/rate.c 	data->old_dst_frames = res;
res               213 sound/core/oss/rate.c 	return res;
res               219 sound/core/oss/rate.c 	snd_pcm_sframes_t res;
res               227 sound/core/oss/rate.c 		res = (((frames << SHIFT) + (data->pitch / 2)) / data->pitch);
res               229 sound/core/oss/rate.c 		res = (((frames * data->pitch) + (BITS/2)) >> SHIFT);
res               245 sound/core/oss/rate.c 	data->old_src_frames = res;
res               246 sound/core/oss/rate.c 	return res;
res               938 sound/core/pcm_native.c 	int res;
res               949 sound/core/pcm_native.c 	res = snd_pcm_status(substream, &status);
res               950 sound/core/pcm_native.c 	if (res < 0)
res               951 sound/core/pcm_native.c 		return res;
res               982 sound/core/pcm_native.c 	int res;
res               986 sound/core/pcm_native.c 	res = snd_pcm_channel_info(substream, &info);
res               987 sound/core/pcm_native.c 	if (res < 0)
res               988 sound/core/pcm_native.c 		return res;
res              1027 sound/core/pcm_native.c 	int res = 0, depth = 1;
res              1037 sound/core/pcm_native.c 		res = ops->pre_action(s, state);
res              1038 sound/core/pcm_native.c 		if (res < 0)
res              1042 sound/core/pcm_native.c 		res = ops->do_action(s, state);
res              1043 sound/core/pcm_native.c 		if (res < 0) {
res              1072 sound/core/pcm_native.c 	return res;
res              1082 sound/core/pcm_native.c 	int res;
res              1084 sound/core/pcm_native.c 	res = ops->pre_action(substream, state);
res              1085 sound/core/pcm_native.c 	if (res < 0)
res              1086 sound/core/pcm_native.c 		return res;
res              1087 sound/core/pcm_native.c 	res = ops->do_action(substream, state);
res              1088 sound/core/pcm_native.c 	if (res == 0)
res              1092 sound/core/pcm_native.c 	return res;
res              1164 sound/core/pcm_native.c 	int res;
res              1168 sound/core/pcm_native.c 		res = snd_pcm_action_group(ops, substream, state, 1);
res              1170 sound/core/pcm_native.c 		res = snd_pcm_action_single(ops, substream, state);
res              1172 sound/core/pcm_native.c 	return res;
res              1182 sound/core/pcm_native.c 	int res;
res              1185 sound/core/pcm_native.c 	res = snd_pcm_action(ops, substream, state);
res              1187 sound/core/pcm_native.c 	return res;
res              1196 sound/core/pcm_native.c 	int res;
res              1201 sound/core/pcm_native.c 		res = snd_pcm_action_group(ops, substream, state, 0);
res              1203 sound/core/pcm_native.c 		res = snd_pcm_action_single(ops, substream, state);
res              1205 sound/core/pcm_native.c 	return res;
res              1992 sound/core/pcm_native.c 	int res = 0;
res              2002 sound/core/pcm_native.c 		res = -EBADFD;
res              2009 sound/core/pcm_native.c 		res = -EINVAL;
res              2015 sound/core/pcm_native.c 		res = -ENOMEM;
res              2024 sound/core/pcm_native.c 		res = -EBADFD;
res              2028 sound/core/pcm_native.c 		res = -EALREADY;
res              2052 sound/core/pcm_native.c 	return res;
res              2067 sound/core/pcm_native.c 	int res = 0;
res              2072 sound/core/pcm_native.c 		res = -EALREADY;
res              2096 sound/core/pcm_native.c 	return res;
res              2906 sound/core/pcm_native.c 	int res;
res              2911 sound/core/pcm_native.c 	res = snd_power_wait(substream->pcm->card, SNDRV_CTL_POWER_D0);
res              2912 sound/core/pcm_native.c 	if (res < 0)
res              2913 sound/core/pcm_native.c 		return res;
res              2962 sound/core/pcm_native.c 		snd_pcm_sframes_t __user *res = arg;
res              2968 sound/core/pcm_native.c 		if (put_user(delay, res))
res               202 sound/core/seq/seq_clientmgr.c static void usage_alloc(struct snd_seq_usage *res, int num)
res               204 sound/core/seq/seq_clientmgr.c 	res->cur += num;
res               205 sound/core/seq/seq_clientmgr.c 	if (res->cur > res->peak)
res               206 sound/core/seq/seq_clientmgr.c 		res->peak = res->cur;
res               209 sound/core/seq/seq_clientmgr.c static void usage_free(struct snd_seq_usage *res, int num)
res               211 sound/core/seq/seq_clientmgr.c 	res->cur -= num;
res                67 sound/core/seq/seq_midi.c 	long res;
res                77 sound/core/seq/seq_midi.c 		res = snd_rawmidi_kernel_read(substream, buf, sizeof(buf));
res                78 sound/core/seq/seq_midi.c 		if (res <= 0)
res                83 sound/core/seq/seq_midi.c 		while (res-- > 0) {
res               331 sound/core/seq/seq_prioq.c 	int res;
res               347 sound/core/seq/seq_prioq.c 			res = snd_seq_compare_tick_time(&ev->time.tick, &info->time.tick);
res               349 sound/core/seq/seq_prioq.c 			res = snd_seq_compare_real_time(&ev->time.time, &info->time.time);
res               350 sound/core/seq/seq_prioq.c 		if (!res)
res               355 sound/core/seq/seq_prioq.c 			res = snd_seq_compare_tick_time(&ev->time.tick, &info->time.tick);
res               357 sound/core/seq/seq_prioq.c 			res = snd_seq_compare_real_time(&ev->time.time, &info->time.time);
res               358 sound/core/seq/seq_prioq.c 		if (res)
res               487 sound/drivers/mpu401/mpu401_uart.c 	release_and_free_resource(mpu->res);
res               544 sound/drivers/mpu401/mpu401_uart.c 		mpu->res = request_region(port, res_size, "MPU401 UART");
res               545 sound/drivers/mpu401/mpu401_uart.c 		if (!mpu->res) {
res               247 sound/hda/ext/hdac_ext_stream.c 	struct hdac_ext_stream *res = NULL;
res               264 sound/hda/ext/hdac_ext_stream.c 			res = hstream;
res               270 sound/hda/ext/hdac_ext_stream.c 			res = hstream;
res               274 sound/hda/ext/hdac_ext_stream.c 	if (res) {
res               276 sound/hda/ext/hdac_ext_stream.c 		res->link_locked = 1;
res               277 sound/hda/ext/hdac_ext_stream.c 		res->link_substream = substream;
res               280 sound/hda/ext/hdac_ext_stream.c 	return res;
res               287 sound/hda/ext/hdac_ext_stream.c 	struct hdac_ext_stream *res = NULL;
res               305 sound/hda/ext/hdac_ext_stream.c 			res = hstream;
res               309 sound/hda/ext/hdac_ext_stream.c 	if (res) {
res               311 sound/hda/ext/hdac_ext_stream.c 		res->hstream.opened = 1;
res               312 sound/hda/ext/hdac_ext_stream.c 		res->hstream.running = 0;
res               313 sound/hda/ext/hdac_ext_stream.c 		res->hstream.substream = substream;
res               317 sound/hda/ext/hdac_ext_stream.c 	return res;
res                72 sound/hda/hdac_bus.c 			   unsigned int cmd, unsigned int *res)
res                77 sound/hda/hdac_bus.c 	err = snd_hdac_bus_exec_verb_unlocked(bus, addr, cmd, res);
res                92 sound/hda/hdac_bus.c 				    unsigned int cmd, unsigned int *res)
res               100 sound/hda/hdac_bus.c 	if (res)
res               101 sound/hda/hdac_bus.c 		*res = -1;
res               103 sound/hda/hdac_bus.c 		res = &tmp;
res               114 sound/hda/hdac_bus.c 	if (!err && res) {
res               115 sound/hda/hdac_bus.c 		err = bus->ops->get_response(bus, addr, res);
res               116 sound/hda/hdac_bus.c 		trace_hda_get_response(bus, addr, *res);
res               132 sound/hda/hdac_bus.c void snd_hdac_bus_queue_event(struct hdac_bus *bus, u32 res, u32 res_ex)
res               139 sound/hda/hdac_bus.c 	trace_hda_unsol_event(bus, res, res_ex);
res               144 sound/hda/hdac_bus.c 	bus->unsol_queue[wp] = res;
res               159 sound/hda/hdac_bus.c 	unsigned int rp, caddr, res;
res               165 sound/hda/hdac_bus.c 		res = bus->unsol_queue[rp];
res               174 sound/hda/hdac_bus.c 			drv->unsol_event(codec, res);
res                13 sound/hda/hdac_component.c static void hdac_acomp_release(struct device *dev, void *res)
res               189 sound/hda/hdac_controller.c 	u32 res, res_ex;
res               207 sound/hda/hdac_controller.c 		res = le32_to_cpu(bus->rirb.buf[rp]);
res               212 sound/hda/hdac_controller.c 				res, res_ex, bus->rirb.rp, wp);
res               215 sound/hda/hdac_controller.c 			snd_hdac_bus_queue_event(bus, res, res_ex);
res               217 sound/hda/hdac_controller.c 			bus->rirb.res[addr] = res;
res               222 sound/hda/hdac_controller.c 				res, res_ex, bus->last_cmd[addr]);
res               237 sound/hda/hdac_controller.c 			      unsigned int *res)
res               249 sound/hda/hdac_controller.c 			if (res)
res               250 sound/hda/hdac_controller.c 				*res = bus->rirb.res[addr]; /* the last value */
res               255 sound/hda/hdac_device.c 		       unsigned int flags, unsigned int *res)
res               258 sound/hda/hdac_device.c 		return codec->exec_verb(codec, cmd, flags, res);
res               259 sound/hda/hdac_device.c 	return snd_hdac_bus_exec_verb(codec->bus, codec->addr, cmd, res);
res               274 sound/hda/hdac_device.c 		  unsigned int verb, unsigned int parm, unsigned int *res)
res               278 sound/hda/hdac_device.c 	return snd_hdac_exec_verb(codec, cmd, 0, res);
res               288 sound/hda/hdac_device.c 			unsigned int *res)
res               293 sound/hda/hdac_device.c 	return snd_hdac_regmap_read_raw(codec, cmd, res);
res               985 sound/hda/hdac_device.c 	unsigned int res;
res               987 sound/hda/hdac_device.c 	if (snd_hdac_exec_verb(hdac, cmd, flags, &res))
res               990 sound/hda/hdac_device.c 	return res;
res               286 sound/hda/hdac_stream.c 	struct hdac_stream *res = NULL;
res               298 sound/hda/hdac_stream.c 			res = azx_dev;
res               301 sound/hda/hdac_stream.c 		if (!res || bus->reverse_assign)
res               302 sound/hda/hdac_stream.c 			res = azx_dev;
res               304 sound/hda/hdac_stream.c 	if (res) {
res               306 sound/hda/hdac_stream.c 		res->opened = 1;
res               307 sound/hda/hdac_stream.c 		res->running = 0;
res               308 sound/hda/hdac_stream.c 		res->assigned_key = key;
res               309 sound/hda/hdac_stream.c 		res->substream = substream;
res               312 sound/hda/hdac_stream.c 	return res;
res               340 sound/hda/hdac_sysfs.c 			   struct kobject **res)
res               357 sound/hda/hdac_sysfs.c 	*res = kobj;
res                41 sound/hda/local.h 		       unsigned int flags, unsigned int *res);
res                32 sound/hda/trace.h 	TP_PROTO(struct hdac_bus *bus, unsigned int addr, unsigned int res),
res                33 sound/hda/trace.h 	TP_ARGS(bus, addr, res),
res                38 sound/hda/trace.h 			 dev_name((bus)->dev), addr, res);
res                44 sound/hda/trace.h 	TP_PROTO(struct hdac_bus *bus, u32 res, u32 res_ex),
res                45 sound/hda/trace.h 	TP_ARGS(bus, res, res_ex),
res                50 sound/hda/trace.h 			 dev_name((bus)->dev), res_ex & 0x0f, res, res_ex);
res               265 sound/i2c/i2c.c 	int err, res = 0;
res               281 sound/i2c/i2c.c 		res++;
res               284 sound/i2c/i2c.c 	return res;
res               291 sound/i2c/i2c.c 	int err, res = 0;
res               308 sound/i2c/i2c.c 		res++;
res               311 sound/i2c/i2c.c 	return res;
res               526 sound/i2c/other/ak4113.c 	int res = 0;
res               597 sound/i2c/other/ak4113.c 	res = external_rate(rcs1);
res               599 sound/i2c/other/ak4113.c 			(runtime->rate != res)) {
res               607 sound/i2c/other/ak4113.c 			res = 1;
res               611 sound/i2c/other/ak4113.c 	return res;
res               557 sound/i2c/other/ak4114.c 	int res = 0;
res               587 sound/i2c/other/ak4114.c 	res = external_rate(rcs1);
res               588 sound/i2c/other/ak4114.c 	if (!(flags & AK4114_CHECK_NO_RATE) && runtime && runtime->rate != res) {
res               593 sound/i2c/other/ak4114.c 			res = 1;
res               597 sound/i2c/other/ak4114.c 	return res;
res               445 sound/i2c/other/ak4117.c 	int res = 0;
res               503 sound/i2c/other/ak4117.c 	res = external_rate(rcs1);
res               504 sound/i2c/other/ak4117.c 	if (!(flags & AK4117_CHECK_NO_RATE) && runtime && runtime->rate != res) {
res               510 sound/i2c/other/ak4117.c 			res = 1;
res               514 sound/i2c/other/ak4117.c 	return res;
res                47 sound/i2c/tea6330t.c 	int res;
res                50 sound/i2c/tea6330t.c 	res = snd_i2c_probeaddr(bus, TEA6330T_ADDR);
res                52 sound/i2c/tea6330t.c 	return res;
res               213 sound/isa/ad1816a/ad1816a.c 	int res;
res               218 sound/isa/ad1816a/ad1816a.c 		res = snd_card_ad1816a_probe(dev, card, id);
res               219 sound/isa/ad1816a/ad1816a.c 		if (res < 0)
res               220 sound/isa/ad1816a/ad1816a.c 			return res;
res               284 sound/isa/als100.c 	int res;
res               289 sound/isa/als100.c 		res = snd_card_als100_probe(dev, card, id);
res               290 sound/isa/als100.c 		if (res < 0)
res               291 sound/isa/als100.c 			return res;
res               261 sound/isa/azt2320.c 	int res;
res               266 sound/isa/azt2320.c 		res = snd_card_azt2320_probe(dev, card, id);
res               267 sound/isa/azt2320.c 		if (res < 0)
res               268 sound/isa/azt2320.c 			return res;
res               224 sound/isa/cmi8328.c 	struct resource *res;
res               379 sound/isa/cmi8328.c 	res = request_region(0x200, 8, "CMI8328 gameport");
res               380 sound/isa/cmi8328.c 	if (!res)
res               385 sound/isa/cmi8328.c 			release_and_free_resource(res);
res               391 sound/isa/cmi8328.c 			gameport_set_port_data(gp, res);
res               413 sound/isa/cmi8328.c 		struct resource *res = gameport_get_port_data(cmi->gameport);
res               415 sound/isa/cmi8328.c 		release_and_free_resource(res);
res               677 sound/isa/cmi8330.c 	int res;
res               686 sound/isa/cmi8330.c 	res = snd_cmi8330_card_new(&pcard->card->dev, dev, &card);
res               687 sound/isa/cmi8330.c 	if (res < 0)
res               688 sound/isa/cmi8330.c 		return res;
res               689 sound/isa/cmi8330.c 	if ((res = snd_cmi8330_pnp(dev, card->private_data, pcard, pid)) < 0) {
res               692 sound/isa/cmi8330.c 		return res;
res               694 sound/isa/cmi8330.c 	if ((res = snd_cmi8330_probe(card, dev)) < 0) {
res               696 sound/isa/cmi8330.c 		return res;
res               618 sound/isa/cs423x/cs4236.c 	int res;
res               627 sound/isa/cs423x/cs4236.c 	res = snd_cs423x_card_new(&pcard->card->dev, dev, &card);
res               628 sound/isa/cs423x/cs4236.c 	if (res < 0)
res               629 sound/isa/cs423x/cs4236.c 		return res;
res               630 sound/isa/cs423x/cs4236.c 	if ((res = snd_card_cs423x_pnpc(dev, card->private_data, pcard, pid)) < 0) {
res               634 sound/isa/cs423x/cs4236.c 		return res;
res               636 sound/isa/cs423x/cs4236.c 	if ((res = snd_cs423x_probe(card, dev)) < 0) {
res               638 sound/isa/cs423x/cs4236.c 		return res;
res              2329 sound/isa/es18xx.c 	int res;
res              2338 sound/isa/es18xx.c 	res = snd_es18xx_card_new(&pcard->card->dev, dev, &card);
res              2339 sound/isa/es18xx.c 	if (res < 0)
res              2340 sound/isa/es18xx.c 		return res;
res              2342 sound/isa/es18xx.c 	if ((res = snd_audiodrive_pnpc(dev, card->private_data, pcard, pid)) < 0) {
res              2344 sound/isa/es18xx.c 		return res;
res              2346 sound/isa/es18xx.c 	if ((res = snd_audiodrive_probe(card, dev)) < 0) {
res              2348 sound/isa/es18xx.c 		return res;
res               107 sound/isa/gus/gus_io.c 	unsigned int res;
res               109 sound/isa/gus/gus_io.c 	res = ((unsigned int) __snd_gf1_look16(gus, reg | 0x80) << 11) & 0xfff800;
res               110 sound/isa/gus/gus_io.c 	res |= ((unsigned int) __snd_gf1_look16(gus, (reg + 1) | 0x80) >> 5) & 0x0007ff;
res               112 sound/isa/gus/gus_io.c 		res |= (unsigned int) __snd_gf1_look8(gus, SNDRV_GF1_VB_UPPER_ADDRESS | 0x80) << 26;
res               114 sound/isa/gus/gus_io.c 			res = ((res << 1) & 0xffffffe0) | (res & 0x0000000f);
res               116 sound/isa/gus/gus_io.c 		res = ((res & 0x001ffff0) << 1) | (res & 0x00c0000f);
res               117 sound/isa/gus/gus_io.c 	return res;
res               201 sound/isa/gus/gus_io.c 	unsigned char res;
res               204 sound/isa/gus/gus_io.c 	res = __snd_gf1_look8(gus, reg);
res               206 sound/isa/gus/gus_io.c 	return res;
res               223 sound/isa/gus/gus_io.c 	unsigned short res;
res               226 sound/isa/gus/gus_io.c 	res = __snd_gf1_look16(gus, reg);
res               228 sound/isa/gus/gus_io.c 	return res;
res               260 sound/isa/gus/gus_io.c 	unsigned int res;
res               264 sound/isa/gus/gus_io.c 	res = __snd_gf1_read_addr(gus, reg, w_16bit);
res               266 sound/isa/gus/gus_io.c 	return res;
res               306 sound/isa/gus/gus_io.c 	unsigned char res;
res               317 sound/isa/gus/gus_io.c 	res = inb(gus->gf1.reg_dram);
res               319 sound/isa/gus/gus_io.c 	return res;
res               350 sound/isa/gus/gus_io.c 	unsigned short res;
res               367 sound/isa/gus/gus_io.c 	res = inw(gus->gf1.reg_data16);
res               369 sound/isa/gus/gus_io.c 	return res;
res               166 sound/isa/gus/interwave.c 	unsigned char res;
res               168 sound/isa/gus/interwave.c 	res = inb(port) & 1;
res               170 sound/isa/gus/interwave.c 	printk(KERN_DEBUG "i2c_getclockline - 0x%lx -> %i\n", port, res);
res               172 sound/isa/gus/interwave.c 	return res;
res               178 sound/isa/gus/interwave.c 	unsigned char res;
res               182 sound/isa/gus/interwave.c 	res = (inb(port) & 2) >> 1;
res               184 sound/isa/gus/interwave.c 	printk(KERN_DEBUG "i2c_getdataline - 0x%lx -> %i\n", port, res);
res               186 sound/isa/gus/interwave.c 	return res;
res               849 sound/isa/gus/interwave.c 	int res;
res               858 sound/isa/gus/interwave.c 	res = snd_interwave_card_new(&pcard->card->dev, dev, &card);
res               859 sound/isa/gus/interwave.c 	if (res < 0)
res               860 sound/isa/gus/interwave.c 		return res;
res               862 sound/isa/gus/interwave.c 	if ((res = snd_interwave_pnp(dev, card->private_data, pcard, pid)) < 0) {
res               864 sound/isa/gus/interwave.c 		return res;
res               866 sound/isa/gus/interwave.c 	if ((res = snd_interwave_probe(card, dev)) < 0) {
res               868 sound/isa/gus/interwave.c 		return res;
res                50 sound/isa/sb/emu8000.c 	unsigned short res;
res                57 sound/isa/sb/emu8000.c 	res = inw(port);	/* Read data */
res                59 sound/isa/sb/emu8000.c 	return res;
res                80 sound/isa/sb/emu8000.c 	unsigned int res;
res                88 sound/isa/sb/emu8000.c 	res = low + (inw(port+2) << 16);
res                90 sound/isa/sb/emu8000.c 	return res;
res               595 sound/isa/sb/sb16.c 	int res;
res               600 sound/isa/sb/sb16.c 		res = snd_sb16_card_new(&pcard->card->dev, dev, &card);
res               601 sound/isa/sb/sb16.c 		if (res < 0)
res               602 sound/isa/sb/sb16.c 			return res;
res               603 sound/isa/sb/sb16.c 		if ((res = snd_card_sb16_pnp(dev, card->private_data, pcard, pid)) < 0 ||
res               604 sound/isa/sb/sb16.c 		    (res = snd_sb16_probe(card, dev)) < 0) {
res               606 sound/isa/sb/sb16.c 			return res;
res               593 sound/isa/wavefront/wavefront.c 	int res;
res               602 sound/isa/wavefront/wavefront.c 	res = snd_wavefront_card_new(&pcard->card->dev, dev, &card);
res               603 sound/isa/wavefront/wavefront.c 	if (res < 0)
res               604 sound/isa/wavefront/wavefront.c 		return res;
res               614 sound/isa/wavefront/wavefront.c 	if ((res = snd_wavefront_probe(card, dev)) < 0)
res               615 sound/isa/wavefront/wavefront.c 		return res;
res               239 sound/isa/wss/wss_lib.c 		unsigned char res;
res               240 sound/isa/wss/wss_lib.c 		res = wss_inb(chip, CS4231P(REG));
res               242 sound/isa/wss/wss_lib.c 		       reg, res);
res               243 sound/isa/wss/wss_lib.c 		return res;
res              1079 sound/isa/wss/wss_lib.c 	unsigned char res;
res              1082 sound/isa/wss/wss_lib.c 	res = snd_wss_in(chip, CS4231_TEST_INIT);
res              1084 sound/isa/wss/wss_lib.c 	if (res & (0x08 | 0x02))	/* detect overrange only above 0dB; may be user selectable? */
res              1400 sound/oss/dmasound/dmasound_core.c 	int res ;
res              1409 sound/oss/dmasound/dmasound_core.c 	if ((res = sq_init()) < 0)
res              1410 sound/oss/dmasound/dmasound_core.c 		return res ;
res              1413 sound/oss/dmasound/dmasound_core.c 	if ((res = state_init()) < 0)
res              1414 sound/oss/dmasound/dmasound_core.c 		return res ;
res              1117 sound/pci/ac97/ac97_codec.c 	unsigned short mask, val, orig, res;
res              1123 sound/pci/ac97/ac97_codec.c 	res = snd_ac97_read(ac97, reg);
res              1125 sound/pci/ac97/ac97_codec.c 	return res == val;
res               284 sound/pci/ali5451/ali5451.c 	unsigned int res;
res               289 sound/pci/ali5451/ali5451.c 		res = snd_ali_5451_peek(codec,port);
res               290 sound/pci/ali5451/ali5451.c 		if (!(res & 0x8000))
res               297 sound/pci/ali5451/ali5451.c 	snd_ali_5451_poke(codec, port, res & ~0x8000);
res               225 sound/pci/atiixp_modem.c 	struct resource *res;		/* memory i/o */
res              1712 sound/pci/azt3328.c 	int res;
res              1718 sound/pci/azt3328.c 		res = 0;
res              1721 sound/pci/azt3328.c 		res = -1;
res              1727 sound/pci/azt3328.c 	snd_azf3328_gameport_axis_circuit_enable(chip, (res == 0));
res              1729 sound/pci/azt3328.c 	return res;
res              2001 sound/pci/cs46xx/cs46xx_lib.c 	int change, res;
res              2012 sound/pci/cs46xx/cs46xx_lib.c 		res = (change != (chip->dsp_spos_instance->spdif_status_out & DSP_SPDIF_STATUS_OUTPUT_ENABLED));
res              2024 sound/pci/cs46xx/cs46xx_lib.c 		res = (change != chip->dsp_spos_instance->spdif_status_in);
res              2027 sound/pci/cs46xx/cs46xx_lib.c 		res = -EINVAL;
res              2031 sound/pci/cs46xx/cs46xx_lib.c 	return res;
res              2499 sound/pci/emu10k1/emufx.c 	int res;
res              2509 sound/pci/emu10k1/emufx.c 	for (res = 0; res < 16; res++, fxbus++, extin++, extout++) {
res              2510 sound/pci/emu10k1/emufx.c 		copy_string(info->fxbus_names[res], fxbus_mask & (1 << res) ? *fxbus : NULL, "FXBUS", res);
res              2511 sound/pci/emu10k1/emufx.c 		copy_string(info->extin_names[res], extin_mask & (1 << res) ? *extin : NULL, "Unused", res);
res              2512 sound/pci/emu10k1/emufx.c 		copy_string(info->extout_names[res], extout_mask & (1 << res) ? *extout : NULL, "Unused", res);
res              2514 sound/pci/emu10k1/emufx.c 	for (res = 16; res < 32; res++, extout++)
res              2515 sound/pci/emu10k1/emufx.c 		copy_string(info->extout_names[res], extout_mask & (1 << res) ? *extout : NULL, "Unused", res);
res              2527 sound/pci/emu10k1/emufx.c 	int res;
res              2551 sound/pci/emu10k1/emufx.c 		res = snd_emu10k1_icode_poke(emu, icode, false);
res              2553 sound/pci/emu10k1/emufx.c 		return res;
res              2558 sound/pci/emu10k1/emufx.c 		res = snd_emu10k1_icode_peek(emu, icode);
res              2559 sound/pci/emu10k1/emufx.c 		if (res == 0 && copy_to_user(argp, icode, sizeof(*icode))) {
res              2564 sound/pci/emu10k1/emufx.c 		return res;
res              2569 sound/pci/emu10k1/emufx.c 		res = snd_emu10k1_ipcm_poke(emu, ipcm);
res              2571 sound/pci/emu10k1/emufx.c 		return res;
res              2576 sound/pci/emu10k1/emufx.c 		res = snd_emu10k1_ipcm_peek(emu, ipcm);
res              2577 sound/pci/emu10k1/emufx.c 		if (res == 0 && copy_to_user(argp, ipcm, sizeof(*ipcm))) {
res              2582 sound/pci/emu10k1/emufx.c 		return res;
res              2589 sound/pci/emu10k1/emufx.c 		res = snd_emu10k1_fx8010_tram_setup(emu, addr);
res              2591 sound/pci/emu10k1/emufx.c 		return res;
res               328 sound/pci/emu10k1/emuproc.c 	long res;
res               355 sound/pci/emu10k1/emuproc.c 		res = -EFAULT;
res               357 sound/pci/emu10k1/emuproc.c 		res = count;
res               359 sound/pci/emu10k1/emuproc.c 	return res;
res                38 sound/pci/hda/hda_codec.c 			   unsigned int flags, unsigned int *res)
res                53 sound/pci/hda/hda_codec.c 					      cmd, res);
res                57 sound/pci/hda/hda_codec.c 	if (!codec_in_pm(codec) && res && err == -EAGAIN) {
res               790 sound/pci/hda/hda_controller.c 				 unsigned int *res)
res               809 sound/pci/hda/hda_controller.c 			if (res)
res               810 sound/pci/hda/hda_controller.c 				*res = bus->rirb.res[addr]; /* the last value */
res               915 sound/pci/hda/hda_controller.c 			azx_bus(chip)->rirb.res[addr] = azx_readl(chip, IR);
res               923 sound/pci/hda/hda_controller.c 	azx_bus(chip)->rirb.res[addr] = -1;
res               957 sound/pci/hda/hda_controller.c 				   unsigned int *res)
res               959 sound/pci/hda/hda_controller.c 	if (res)
res               960 sound/pci/hda/hda_controller.c 		*res = bus->rirb.res[addr];
res               986 sound/pci/hda/hda_controller.c 			    unsigned int *res)
res               993 sound/pci/hda/hda_controller.c 		return azx_single_get_response(bus, addr, res);
res               995 sound/pci/hda/hda_controller.c 		return azx_rirb_get_response(bus, addr, res);
res              1195 sound/pci/hda/hda_controller.c 	unsigned int res = -1;
res              1200 sound/pci/hda/hda_controller.c 	err = azx_get_response(bus, addr, &res);
res              1203 sound/pci/hda/hda_controller.c 	if (err < 0 || res == -1)
res                24 sound/pci/hda/hda_hwdep.c 	u32 verb, res;
res                28 sound/pci/hda/hda_hwdep.c 	res = snd_hda_codec_read(codec, verb >> 24, 0,
res                30 sound/pci/hda/hda_hwdep.c 	if (put_user(res, &arg->res))
res                38 sound/pci/hda/hda_hwdep.c 	u32 verb, res;
res                46 sound/pci/hda/hda_hwdep.c 		res = 0;
res                50 sound/pci/hda/hda_hwdep.c 		res = codec->wcaps[verb];
res                52 sound/pci/hda/hda_hwdep.c 	if (put_user(res, &arg->res))
res               531 sound/pci/hda/hda_jack.c static void call_jack_callback(struct hda_codec *codec, unsigned int res,
res               538 sound/pci/hda/hda_jack.c 		cb->unsol_res = res;
res               547 sound/pci/hda/hda_jack.c 				cb->unsol_res = res;
res               559 sound/pci/hda/hda_jack.c void snd_hda_jack_unsol_event(struct hda_codec *codec, unsigned int res)
res               562 sound/pci/hda/hda_jack.c 	int tag = (res & AC_UNSOL_RES_TAG) >> AC_UNSOL_RES_TAG_SHIFT;
res               569 sound/pci/hda/hda_jack.c 	call_jack_callback(codec, res, event);
res                97 sound/pci/hda/hda_jack.h void snd_hda_jack_unsol_event(struct hda_codec *codec, unsigned int res);
res               240 sound/pci/hda/hda_tegra.c 	struct resource *res;
res               242 sound/pci/hda/hda_tegra.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               243 sound/pci/hda/hda_tegra.c 	hda->regs = devm_ioremap_resource(dev, res);
res               248 sound/pci/hda/hda_tegra.c 	bus->addr = res->start + HDA_BAR0;
res              1193 sound/pci/hda/patch_ca0132.c 		unsigned int verb, unsigned int parm, unsigned int *res)
res              1197 sound/pci/hda/patch_ca0132.c 	*res = response;
res              1203 sound/pci/hda/patch_ca0132.c 		unsigned short converter_format, unsigned int *res)
res              1206 sound/pci/hda/patch_ca0132.c 				converter_format & 0xffff, res);
res              1211 sound/pci/hda/patch_ca0132.c 				unsigned char channel, unsigned int *res)
res              1217 sound/pci/hda/patch_ca0132.c 				converter_stream_channel, res);
res              1225 sound/pci/hda/patch_ca0132.c 	unsigned int res;
res              1230 sound/pci/hda/patch_ca0132.c 		res = snd_hda_codec_read(codec, WIDGET_CHIP_CTRL, 0,
res              1232 sound/pci/hda/patch_ca0132.c 		if (res == VENDOR_STATUS_CHIPIO_OK)
res              1247 sound/pci/hda/patch_ca0132.c 	int res;
res              1253 sound/pci/hda/patch_ca0132.c 	res = chipio_send(codec, VENDOR_CHIPIO_ADDRESS_LOW,
res              1256 sound/pci/hda/patch_ca0132.c 	if (res != -EIO) {
res              1258 sound/pci/hda/patch_ca0132.c 		res = chipio_send(codec, VENDOR_CHIPIO_ADDRESS_HIGH,
res              1262 sound/pci/hda/patch_ca0132.c 	spec->curr_chip_addx = (res < 0) ? ~0U : chip_addx;
res              1264 sound/pci/hda/patch_ca0132.c 	return res;
res              1273 sound/pci/hda/patch_ca0132.c 	int res;
res              1276 sound/pci/hda/patch_ca0132.c 	res = chipio_send(codec, VENDOR_CHIPIO_DATA_LOW, data & 0xffff);
res              1278 sound/pci/hda/patch_ca0132.c 	if (res != -EIO) {
res              1280 sound/pci/hda/patch_ca0132.c 		res = chipio_send(codec, VENDOR_CHIPIO_DATA_HIGH,
res              1286 sound/pci/hda/patch_ca0132.c 	spec->curr_chip_addx = (res != -EIO) ?
res              1288 sound/pci/hda/patch_ca0132.c 	return res;
res              1318 sound/pci/hda/patch_ca0132.c 	int res;
res              1321 sound/pci/hda/patch_ca0132.c 	res = chipio_send(codec, VENDOR_CHIPIO_HIC_POST_READ, 0);
res              1323 sound/pci/hda/patch_ca0132.c 	if (res != -EIO) {
res              1325 sound/pci/hda/patch_ca0132.c 		res = chipio_send(codec, VENDOR_CHIPIO_STATUS, 0);
res              1328 sound/pci/hda/patch_ca0132.c 	if (res != -EIO) {
res              1337 sound/pci/hda/patch_ca0132.c 	spec->curr_chip_addx = (res != -EIO) ?
res              1339 sound/pci/hda/patch_ca0132.c 	return res;
res              1613 sound/pci/hda/patch_ca0132.c 	int res;
res              1618 sound/pci/hda/patch_ca0132.c 		res = snd_hda_codec_read(codec, WIDGET_DSP_CTRL, 0, reg, data);
res              1619 sound/pci/hda/patch_ca0132.c 		if ((res >= 0) && (res != VENDOR_STATUS_DSPIO_BUSY))
res              1620 sound/pci/hda/patch_ca0132.c 			return res;
res              2133 sound/pci/hda/patch_ca0132.c 	unsigned int res;
res              2138 sound/pci/hda/patch_ca0132.c 		res = dspio_send(codec, VENDOR_DSPIO_DSP_INIT, 0);
res              2140 sound/pci/hda/patch_ca0132.c 	} while (res == -EIO && retry);
res              2474 sound/pci/hda/patch_ca0132.c 	int res;
res              2497 sound/pci/hda/patch_ca0132.c 	res = snd_hda_codec_read(codec, WIDGET_CHIP_CTRL, 0,
res              2500 sound/pci/hda/patch_ca0132.c 	*port_map = res;
res              2502 sound/pci/hda/patch_ca0132.c 	return (res < 0) ? res : 0;
res               788 sound/pci/hda/patch_hdmi.c static void hdmi_intrinsic_event(struct hda_codec *codec, unsigned int res)
res               790 sound/pci/hda/patch_hdmi.c 	int tag = res >> AC_UNSOL_RES_TAG_SHIFT;
res               792 sound/pci/hda/patch_hdmi.c 	int dev_entry = (res & AC_UNSOL_RES_DE) >> AC_UNSOL_RES_DE_SHIFT;
res               807 sound/pci/hda/patch_hdmi.c 		codec->addr, jack->nid, dev_entry, !!(res & AC_UNSOL_RES_IA),
res               808 sound/pci/hda/patch_hdmi.c 		!!(res & AC_UNSOL_RES_PD), !!(res & AC_UNSOL_RES_ELDV));
res               814 sound/pci/hda/patch_hdmi.c static void hdmi_non_intrinsic_event(struct hda_codec *codec, unsigned int res)
res               816 sound/pci/hda/patch_hdmi.c 	int tag = res >> AC_UNSOL_RES_TAG_SHIFT;
res               817 sound/pci/hda/patch_hdmi.c 	int subtag = (res & AC_UNSOL_RES_SUBTAG) >> AC_UNSOL_RES_SUBTAG_SHIFT;
res               818 sound/pci/hda/patch_hdmi.c 	int cp_state = !!(res & AC_UNSOL_RES_CP_STATE);
res               819 sound/pci/hda/patch_hdmi.c 	int cp_ready = !!(res & AC_UNSOL_RES_CP_READY);
res               837 sound/pci/hda/patch_hdmi.c static void hdmi_unsol_event(struct hda_codec *codec, unsigned int res)
res               839 sound/pci/hda/patch_hdmi.c 	int tag = res >> AC_UNSOL_RES_TAG_SHIFT;
res               840 sound/pci/hda/patch_hdmi.c 	int subtag = (res & AC_UNSOL_RES_SUBTAG) >> AC_UNSOL_RES_SUBTAG_SHIFT;
res               851 sound/pci/hda/patch_hdmi.c 		hdmi_intrinsic_event(codec, res);
res               853 sound/pci/hda/patch_hdmi.c 		hdmi_non_intrinsic_event(codec, res);
res              2958 sound/pci/hda/patch_hdmi.c 				    unsigned int res)
res               335 sound/pci/hda/patch_realtek.c static void alc880_unsol_event(struct hda_codec *codec, unsigned int res)
res               339 sound/pci/hda/patch_realtek.c 	snd_hda_jack_unsol_event(codec, res >> 2);
res               126 sound/pci/ice1712/delta.c 	int res = count;
res               136 sound/pci/ice1712/delta.c 	return res;
res               143 sound/pci/ice1712/delta.c 	int res = count;
res               153 sound/pci/ice1712/delta.c 	return res;
res               327 sound/pci/ice1712/ice1712.c 	int res = 0;
res               346 sound/pci/ice1712/ice1712.c 			res = -EIO;
res               348 sound/pci/ice1712/ice1712.c 			res++;
res               352 sound/pci/ice1712/ice1712.c 	return res;
res               552 sound/pci/intel8x0.c 	unsigned short res;
res               560 sound/pci/intel8x0.c 		res = 0xffff;
res               562 sound/pci/intel8x0.c 		res = iagetword(chip, reg + ac97->num * 0x80);
res               571 sound/pci/intel8x0.c 			res = 0xffff;
res               574 sound/pci/intel8x0.c 	return res;
res               349 sound/pci/intel8x0m.c 	unsigned short res;
res               357 sound/pci/intel8x0m.c 		res = 0xffff;
res               359 sound/pci/intel8x0m.c 		res = iagetword(chip, reg + ac97->num * 0x80);
res               368 sound/pci/intel8x0m.c 			res = 0xffff;
res               373 sound/pci/intel8x0m.c 	return res;
res               103 sound/pci/lola/lola.c static void lola_queue_unsol_event(struct lola *chip, unsigned int res,
res               106 sound/pci/lola/lola.c 	lola_update_ext_clock_freq(chip, res);
res               113 sound/pci/lola/lola.c 	u32 res, res_ex;
res               126 sound/pci/lola/lola.c 		res = le32_to_cpu(chip->rirb.buf[rp]);
res               128 sound/pci/lola/lola.c 			lola_queue_unsol_event(chip, res, res_ex);
res               130 sound/pci/lola/lola.c 			chip->res = res;
res               152 sound/pci/lola/lola.c 			*val = chip->res;
res               156 sound/pci/lola/lola.c 				      chip->res, chip->res_ex);
res               326 sound/pci/lola/lola.h 	unsigned int res, res_ex;	/* last read values */
res               447 sound/pci/lola/lola.h #define LOLA_AFG_MIXER_WIDGET_PRESENT(res)	((res & (1 << 21)) != 0)
res               448 sound/pci/lola/lola.h #define LOLA_AFG_CLOCK_WIDGET_PRESENT(res)	((res & (1 << 20)) != 0)
res               449 sound/pci/lola/lola.h #define LOLA_AFG_INPUT_PIN_COUNT(res)		((res >> 10) & 0x2ff)
res               450 sound/pci/lola/lola.h #define LOLA_AFG_OUTPUT_PIN_COUNT(res)		((res) & 0x2ff)
res               453 sound/pci/lola/lola.h #define LOLA_AMP_MUTE_CAPABLE(res)		((res & (1 << 31)) != 0)
res               454 sound/pci/lola/lola.h #define LOLA_AMP_STEP_SIZE(res)			((res >> 24) & 0x7f)
res               455 sound/pci/lola/lola.h #define LOLA_AMP_NUM_STEPS(res)			((res >> 12) & 0x3ff)
res               456 sound/pci/lola/lola.h #define LOLA_AMP_OFFSET(res)			((res) & 0x3ff)
res               469 sound/pci/lola/lola.h #define LOLA_MIXER_SRC_INPUT_PLAY_SEPARATION(res)   ((res >> 2) & 0x1f)
res               470 sound/pci/lola/lola.h #define LOLA_MIXER_DEST_REC_OUTPUT_SEPARATION(res)  ((res >> 7) & 0x1f)
res               203 sound/pci/lola/lola_clock.c 	unsigned int res;
res               209 sound/pci/lola/lola_clock.c 			      0, &res, NULL);
res               212 sound/pci/lola/lola_clock.c 	if (res) {
res               214 sound/pci/lola/lola_clock.c 		       res);
res               222 sound/pci/lola/lola_clock.c 	unsigned int res;
res               228 sound/pci/lola/lola_clock.c 			      0, &res, NULL);
res               231 sound/pci/lola/lola_clock.c 	if (res) {
res               232 sound/pci/lola/lola_clock.c 		dev_warn(chip->card->dev, "error in set_clock %d\n", res);
res                31 sound/pci/mixart/mixart.h 	struct resource *res;
res               729 sound/pci/trident/trident_main.c 	unsigned int res = (rate * period_size) / 48000;
res               730 sound/pci/trident/trident_main.c 	if (res < 64)
res               731 sound/pci/trident/trident_main.c 		res = res / 2;
res               733 sound/pci/trident/trident_main.c 		res -= 32;
res               734 sound/pci/trident/trident_main.c 	return res;
res               775 sound/pci/via82xx.c 	unsigned int size, base, res;
res               779 sound/pci/via82xx.c 	res = base + size - count;
res               780 sound/pci/via82xx.c 	if (res >= viadev->bufsize)
res               781 sound/pci/via82xx.c 		res -= viadev->bufsize;
res               788 sound/pci/via82xx.c 		res = viadev->lastpos;
res               795 sound/pci/via82xx.c 			int delta = res - viadev->lastpos;
res               799 sound/pci/via82xx.c 				res = base;
res               801 sound/pci/via82xx.c 		if (check_invalid_pos(viadev, res)) {
res               811 sound/pci/via82xx.c 			res = base + size;
res               812 sound/pci/via82xx.c 			if (check_invalid_pos(viadev, res)) {
res               815 sound/pci/via82xx.c 				res = viadev->lastpos;
res               819 sound/pci/via82xx.c 	return res;
res               829 sound/pci/via82xx.c 	unsigned int idx, ptr, count, res;
res               846 sound/pci/via82xx.c 	res = calc_linear_pos(chip, viadev, idx, count);
res               847 sound/pci/via82xx.c 	viadev->lastpos = res; /* remember the last position */
res               850 sound/pci/via82xx.c 	return bytes_to_frames(substream->runtime, res);
res               860 sound/pci/via82xx.c 	unsigned int idx, count, res;
res               878 sound/pci/via82xx.c 		res = 0;
res               889 sound/pci/via82xx.c 			res = viadev->lastpos;
res               892 sound/pci/via82xx.c 			res = calc_linear_pos(chip, viadev, idx, count);
res               895 sound/pci/via82xx.c 		res = viadev->hwptr_done;
res               898 sound/pci/via82xx.c 				res = 0;
res               901 sound/pci/via82xx.c 					res += viadev->fragsize;
res               906 sound/pci/via82xx.c 	viadev->lastpos = res;
res               909 sound/pci/via82xx.c 	return bytes_to_frames(substream->runtime, res);
res               558 sound/pci/via82xx_modem.c 	unsigned int size, res;
res               561 sound/pci/via82xx_modem.c 	res = viadev->idx_table[idx].offset + size - count;
res               568 sound/pci/via82xx_modem.c 		res = viadev->lastpos;
res               569 sound/pci/via82xx_modem.c 	} else if (check_invalid_pos(viadev, res)) {
res               580 sound/pci/via82xx_modem.c 			res = viadev->lastpos;
res               584 sound/pci/via82xx_modem.c 				res = viadev->idx_table[idx].offset;
res               589 sound/pci/via82xx_modem.c 				res = viadev->idx_table[idx].offset + size;
res               590 sound/pci/via82xx_modem.c 			if (check_invalid_pos(viadev, res)) {
res               593 sound/pci/via82xx_modem.c 				res = viadev->lastpos;
res               597 sound/pci/via82xx_modem.c 	viadev->lastpos = res; /* remember the last position */
res               598 sound/pci/via82xx_modem.c 	if (res >= viadev->bufsize)
res               599 sound/pci/via82xx_modem.c 		res -= viadev->bufsize;
res               600 sound/pci/via82xx_modem.c 	return res;
res               610 sound/pci/via82xx_modem.c 	unsigned int idx, ptr, count, res;
res               628 sound/pci/via82xx_modem.c 	res = calc_linear_pos(chip, viadev, idx, count);
res               631 sound/pci/via82xx_modem.c 	return bytes_to_frames(substream->runtime, res);
res                23 sound/pcmcia/pdaudiocf/pdaudiocf_core.c 	unsigned char res;
res                45 sound/pcmcia/pdaudiocf/pdaudiocf_core.c 	res = (unsigned char)pdacf_reg_read(chip, PDAUDIOCF_REG_AK_IFR);
res                47 sound/pcmcia/pdaudiocf/pdaudiocf_core.c 	return res;
res               402 sound/ppc/pmac.c 	unsigned short req, res ;
res               424 sound/ppc/pmac.c 	res = le16_to_cpu(cp->res_count);
res               426 sound/ppc/pmac.c 	phy += (req - res);
res               427 sound/ppc/pmac.c 	cp->req_count = cpu_to_le16(res);
res               188 sound/soc/adi/axi-i2s.c 	struct resource *res;
res               201 sound/soc/adi/axi-i2s.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               202 sound/soc/adi/axi-i2s.c 	base = devm_ioremap_resource(&pdev->dev, res);
res               230 sound/soc/adi/axi-i2s.c 		i2s->playback_dma_data.addr = res->start + AXI_I2S_REG_TX_FIFO;
res               242 sound/soc/adi/axi-i2s.c 		i2s->capture_dma_data.addr = res->start + AXI_I2S_REG_RX_FIFO;
res               182 sound/soc/adi/axi-spdif.c 	struct resource *res;
res               192 sound/soc/adi/axi-spdif.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               193 sound/soc/adi/axi-spdif.c 	base = devm_ioremap_resource(&pdev->dev, res);
res               214 sound/soc/adi/axi-spdif.c 	spdif->dma_data.addr = res->start + AXI_SPDIF_REG_TX_FIFO;
res              1241 sound/soc/amd/acp-pcm-dma.c 	struct resource *res;
res              1271 sound/soc/amd/acp-pcm-dma.c 	res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
res              1272 sound/soc/amd/acp-pcm-dma.c 	if (!res) {
res              1277 sound/soc/amd/acp-pcm-dma.c 	status = devm_request_irq(&pdev->dev, res->start, dma_irq_handler,
res               621 sound/soc/amd/raven/acp3x-pcm-dma.c 	struct resource *res;
res               631 sound/soc/amd/raven/acp3x-pcm-dma.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               632 sound/soc/amd/raven/acp3x-pcm-dma.c 	if (!res) {
res               641 sound/soc/amd/raven/acp3x-pcm-dma.c 	adata->acp3x_base = devm_ioremap(&pdev->dev, res->start,
res               642 sound/soc/amd/raven/acp3x-pcm-dma.c 					 resource_size(res));
res               644 sound/soc/amd/raven/acp3x-pcm-dma.c 	res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
res               645 sound/soc/amd/raven/acp3x-pcm-dma.c 	if (!res) {
res               650 sound/soc/amd/raven/acp3x-pcm-dma.c 	adata->i2s_irq = res->start;
res                18 sound/soc/amd/raven/pci-acp3x.c 	struct resource *res;
res                70 sound/soc/amd/raven/pci-acp3x.c 		adata->res = devm_kzalloc(&pci->dev,
res                73 sound/soc/amd/raven/pci-acp3x.c 		if (!adata->res) {
res                78 sound/soc/amd/raven/pci-acp3x.c 		adata->res[0].name = "acp3x_i2s_iomem";
res                79 sound/soc/amd/raven/pci-acp3x.c 		adata->res[0].flags = IORESOURCE_MEM;
res                80 sound/soc/amd/raven/pci-acp3x.c 		adata->res[0].start = addr;
res                81 sound/soc/amd/raven/pci-acp3x.c 		adata->res[0].end = addr + (ACP3x_REG_END - ACP3x_REG_START);
res                83 sound/soc/amd/raven/pci-acp3x.c 		adata->res[1].name = "acp3x_i2s_irq";
res                84 sound/soc/amd/raven/pci-acp3x.c 		adata->res[1].flags = IORESOURCE_IRQ;
res                85 sound/soc/amd/raven/pci-acp3x.c 		adata->res[1].start = pci->irq;
res                86 sound/soc/amd/raven/pci-acp3x.c 		adata->res[1].end = pci->irq;
res                95 sound/soc/amd/raven/pci-acp3x.c 		pdevinfo.res = adata->res;
res               554 sound/soc/atmel/atmel-classd.c 	struct resource *res;
res               591 sound/soc/atmel/atmel-classd.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               592 sound/soc/atmel/atmel-classd.c 	io_base = devm_ioremap_resource(dev, res);
res               596 sound/soc/atmel/atmel-classd.c 	dd->phy_base = res->start;
res               596 sound/soc/atmel/atmel-pdmic.c 	struct resource *res;
res               641 sound/soc/atmel/atmel-pdmic.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               642 sound/soc/atmel/atmel-pdmic.c 	io_base = devm_ioremap_resource(dev, res);
res               646 sound/soc/atmel/atmel-pdmic.c 	dd->phy_base = res->start;
res               700 sound/soc/bcm/cygnus-pcm.c 	unsigned int res = 0, cur = 0, base = 0;
res               721 sound/soc/bcm/cygnus-pcm.c 	res = (cur & 0x7fffffff) - (base & 0x7fffffff);
res               723 sound/soc/bcm/cygnus-pcm.c 	return bytes_to_frames(substream->runtime, res);
res              1284 sound/soc/bcm/cygnus-ssp.c 	struct resource *res;
res              1296 sound/soc/bcm/cygnus-ssp.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "aud");
res              1297 sound/soc/bcm/cygnus-ssp.c 	cygaud->audio = devm_ioremap_resource(dev, res);
res              1301 sound/soc/bcm/cygnus-ssp.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "i2s_in");
res              1302 sound/soc/bcm/cygnus-ssp.c 	cygaud->i2s_in = devm_ioremap_resource(dev, res);
res              1353 sound/soc/codecs/88pm860x-codec.c 	struct resource *res;
res              1369 sound/soc/codecs/88pm860x-codec.c 		res = platform_get_resource(pdev, IORESOURCE_IRQ, i);
res              1370 sound/soc/codecs/88pm860x-codec.c 		if (!res) {
res              1374 sound/soc/codecs/88pm860x-codec.c 		pm860x->irq[i] = res->start + chip->irq_base;
res              1375 sound/soc/codecs/88pm860x-codec.c 		strncpy(pm860x->name[i], res->name, MAX_NAME_LEN);
res               220 sound/soc/codecs/cx2072x.h 		u32 res:1;
res               242 sound/soc/codecs/cx2072x.h 		u32 res:1;
res               470 sound/soc/codecs/sigmadsp.c static void devm_sigmadsp_release(struct device *dev, void *res)
res               472 sound/soc/codecs/sigmadsp.c 	sigmadsp_firmware_release((struct sigmadsp *)res);
res               540 sound/soc/dwc/dwc-i2s.c 				   struct resource *res,
res               559 sound/soc/dwc/dwc-i2s.c 	dev->play_dma_data.pd.addr = res->start + I2S_TXDMA;
res               560 sound/soc/dwc/dwc-i2s.c 	dev->capture_dma_data.pd.addr = res->start + I2S_RXDMA;
res               573 sound/soc/dwc/dwc-i2s.c 				   struct resource *res)
res               593 sound/soc/dwc/dwc-i2s.c 		dev->play_dma_data.dt.addr = res->start + I2S_TXDMA;
res               603 sound/soc/dwc/dwc-i2s.c 		dev->capture_dma_data.dt.addr = res->start + I2S_RXDMA;
res               618 sound/soc/dwc/dwc-i2s.c 	struct resource *res;
res               635 sound/soc/dwc/dwc-i2s.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               636 sound/soc/dwc/dwc-i2s.c 	dev->i2s_base = devm_ioremap_resource(&pdev->dev, res);
res               662 sound/soc/dwc/dwc-i2s.c 		ret = dw_configure_dai_by_pd(dev, dw_i2s_dai, res, pdata);
res               665 sound/soc/dwc/dwc-i2s.c 		ret = dw_configure_dai_by_dt(dev, dw_i2s_dai, res);
res               861 sound/soc/fsl/fsl_asrc.c 	struct resource *res;
res               873 sound/soc/fsl/fsl_asrc.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               874 sound/soc/fsl/fsl_asrc.c 	regs = devm_ioremap_resource(&pdev->dev, res);
res               878 sound/soc/fsl/fsl_asrc.c 	asrc_priv->paddr = res->start;
res               889 sound/soc/fsl/fsl_dma.c 	struct resource res;
res               900 sound/soc/fsl/fsl_dma.c 	ret = of_address_to_resource(ssi_np, 0, &res);
res               920 sound/soc/fsl/fsl_dma.c 	dma->ssi_stx_phys = res.start + REG_SSI_STX0;
res               921 sound/soc/fsl/fsl_dma.c 	dma->ssi_srx_phys = res.start + REG_SSI_SRX0;
res               107 sound/soc/fsl/fsl_dma.h 	u8 res[8];      	/* Reserved */
res               123 sound/soc/fsl/fsl_dma.h 	u8 res[4];      /* Reserved */
res               923 sound/soc/fsl/fsl_esai.c 	struct resource *res;
res               940 sound/soc/fsl/fsl_esai.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               941 sound/soc/fsl/fsl_esai.c 	regs = devm_ioremap_resource(&pdev->dev, res);
res              1001 sound/soc/fsl/fsl_esai.c 	esai_priv->dma_params_tx.addr = res->start + REG_ESAI_ETDR;
res              1002 sound/soc/fsl/fsl_esai.c 	esai_priv->dma_params_rx.addr = res->start + REG_ESAI_ERDR;
res               643 sound/soc/fsl/fsl_micfil.c 	struct resource *res;
res               672 sound/soc/fsl/fsl_micfil.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               673 sound/soc/fsl/fsl_micfil.c 	regs = devm_ioremap_resource(&pdev->dev, res);
res               735 sound/soc/fsl/fsl_micfil.c 	micfil->dma_params_rx.addr = res->start + REG_MICFIL_DATACH0;
res               900 sound/soc/fsl/fsl_sai.c 	struct resource *res;
res               915 sound/soc/fsl/fsl_sai.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               916 sound/soc/fsl/fsl_sai.c 	base = devm_ioremap_resource(&pdev->dev, res);
res              1010 sound/soc/fsl/fsl_sai.c 	sai->dma_params_rx.addr = res->start + FSL_SAI_RDR0;
res              1011 sound/soc/fsl/fsl_sai.c 	sai->dma_params_tx.addr = res->start + FSL_SAI_TDR0;
res              1220 sound/soc/fsl/fsl_spdif.c 	struct resource *res;
res              1238 sound/soc/fsl/fsl_spdif.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1239 sound/soc/fsl/fsl_spdif.c 	regs = devm_ioremap_resource(&pdev->dev, res);
res              1309 sound/soc/fsl/fsl_spdif.c 	spdif_priv->dma_params_tx.addr = res->start + REG_SPDIF_STL;
res              1310 sound/soc/fsl/fsl_spdif.c 	spdif_priv->dma_params_rx.addr = res->start + REG_SPDIF_SRL;
res              1464 sound/soc/fsl/fsl_ssi.c 	struct resource *res;
res              1489 sound/soc/fsl/fsl_ssi.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1490 sound/soc/fsl/fsl_ssi.c 	iomem = devm_ioremap_resource(dev, res);
res              1493 sound/soc/fsl/fsl_ssi.c 	ssi->ssi_phys = res->start;
res                33 sound/soc/fsl/fsl_utils.c 	struct resource res;
res                55 sound/soc/fsl/fsl_utils.c 	ret = of_address_to_resource(dma_channel_np, 0, &res);
res                61 sound/soc/fsl/fsl_utils.c 		 (unsigned long long) res.start, dma_channel_np);
res               505 sound/soc/fsl/imx-ssi.c 	struct resource *res;
res               537 sound/soc/fsl/imx-ssi.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               538 sound/soc/fsl/imx-ssi.c 	ssi->base = devm_ioremap_resource(&pdev->dev, res);
res               558 sound/soc/fsl/imx-ssi.c 	ssi->dma_params_rx.addr = res->start + SSI_SRX0;
res               559 sound/soc/fsl/imx-ssi.c 	ssi->dma_params_tx.addr = res->start + SSI_STX0;
res               567 sound/soc/fsl/imx-ssi.c 	res = platform_get_resource_byname(pdev, IORESOURCE_DMA, "tx0");
res               568 sound/soc/fsl/imx-ssi.c 	if (res) {
res               569 sound/soc/fsl/imx-ssi.c 		imx_pcm_dma_params_init_data(&ssi->filter_data_tx, res->start,
res               573 sound/soc/fsl/imx-ssi.c 	res = platform_get_resource_byname(pdev, IORESOURCE_DMA, "rx0");
res               574 sound/soc/fsl/imx-ssi.c 	if (res) {
res               575 sound/soc/fsl/imx-ssi.c 		imx_pcm_dma_params_init_data(&ssi->filter_data_rx, res->start,
res               374 sound/soc/fsl/mpc5200_dma.c 	struct resource res;
res               382 sound/soc/fsl/mpc5200_dma.c 	if (of_address_to_resource(op->dev.of_node, 0, &res)) {
res               386 sound/soc/fsl/mpc5200_dma.c 	regs = ioremap(res.start, resource_size(&res));
res               419 sound/soc/fsl/mpc5200_dma.c 	fifo = res.start + offsetof(struct mpc52xx_psc, buffer.buffer_32);
res               421 sound/soc/fsl/mpc8610_hpcd.c 	struct resource res;
res               427 sound/soc/fsl/mpc8610_hpcd.c 	if (of_address_to_resource(guts_np, 0, &res)) {
res               431 sound/soc/fsl/mpc8610_hpcd.c 	guts_phys = res.start;
res               431 sound/soc/fsl/p1022_ds.c 	struct resource res;
res               435 sound/soc/fsl/p1022_ds.c 	if (of_address_to_resource(guts_np, 0, &res)) {
res               440 sound/soc/fsl/p1022_ds.c 	guts_phys = res.start;
res               380 sound/soc/fsl/p1022_rdk.c 	struct resource res;
res               384 sound/soc/fsl/p1022_rdk.c 	if (of_address_to_resource(guts_np, 0, &res)) {
res               389 sound/soc/fsl/p1022_rdk.c 	guts_phys = res.start;
res               547 sound/soc/hisilicon/hi6210-i2s.c 	struct resource *res;
res               557 sound/soc/hisilicon/hi6210-i2s.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               558 sound/soc/hisilicon/hi6210-i2s.c 	i2s->base = devm_ioremap_resource(dev, res);
res               562 sound/soc/hisilicon/hi6210-i2s.c 	i2s->base_phys = (phys_addr_t)res->start;
res               420 sound/soc/img/img-i2s-in.c 	struct resource *res;
res               435 sound/soc/img/img-i2s-in.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               436 sound/soc/img/img-i2s-in.c 	base = devm_ioremap_resource(dev, res);
res               470 sound/soc/img/img-i2s-in.c 	i2s->dma_data.addr = res->start + IMG_I2S_IN_RX_FIFO;
res               426 sound/soc/img/img-i2s-out.c 	struct resource *res;
res               441 sound/soc/img/img-i2s-out.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               442 sound/soc/img/img-i2s-out.c 	base = devm_ioremap_resource(&pdev->dev, res);
res               509 sound/soc/img/img-i2s-out.c 	i2s->dma_data.addr = res->start + IMG_I2S_OUT_TX_FIFO;
res               210 sound/soc/img/img-parallel-out.c 	struct resource *res;
res               223 sound/soc/img/img-parallel-out.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               224 sound/soc/img/img-parallel-out.c 	base = devm_ioremap_resource(&pdev->dev, res);
res               265 sound/soc/img/img-parallel-out.c 	prl->dma_data.addr = res->start + IMG_PRL_OUT_TX_FIFO;
res               720 sound/soc/img/img-spdif-in.c 	struct resource *res;
res               735 sound/soc/img/img-spdif-in.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               736 sound/soc/img/img-spdif-in.c 	base = devm_ioremap_resource(&pdev->dev, res);
res               776 sound/soc/img/img-spdif-in.c 	spdif->dma_data.addr = res->start + IMG_SPDIF_IN_RX_FIFO_OFFSET;
res               325 sound/soc/img/img-spdif-out.c 	struct resource *res;
res               338 sound/soc/img/img-spdif-out.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               339 sound/soc/img/img-spdif-out.c 	base = devm_ioremap_resource(&pdev->dev, res);
res               384 sound/soc/img/img-spdif-out.c 	spdif->dma_data.addr = res->start + IMG_SPDIF_OUT_TX_FIFO;
res                72 sound/soc/intel/skylake/skl-debug.c 	struct skl_module_res *res = &module->resources[mconfig->res_idx];
res                87 sound/soc/intel/skylake/skl-debug.c 			res->cpc, res->ibs, res->obs);
res               449 sound/soc/intel/skylake/skl-messages.c 	struct skl_module_res *res = &module->resources[mconfig->res_idx];
res               469 sound/soc/intel/skylake/skl-messages.c 	base_cfg->cpc = res->cpc;
res               470 sound/soc/intel/skylake/skl-messages.c 	base_cfg->ibs = res->ibs;
res               471 sound/soc/intel/skylake/skl-messages.c 	base_cfg->obs = res->obs;
res               472 sound/soc/intel/skylake/skl-messages.c 	base_cfg->is_pages = res->is_pages;
res               560 sound/soc/intel/skylake/skl-messages.c 	struct skl_module_res *res;
res               571 sound/soc/intel/skylake/skl-messages.c 		res = &mconfig->module->resources[mconfig->res_idx];
res               572 sound/soc/intel/skylake/skl-messages.c 		cpr_mconfig->gtw_cfg.dma_buffer_size = res->dma_buffer_size;
res               575 sound/soc/intel/skylake/skl-messages.c 		res = &mconfig->module->resources[res_idx];
res               581 sound/soc/intel/skylake/skl-messages.c 			dma_io_buf =  res->ibs;
res               583 sound/soc/intel/skylake/skl-messages.c 			dma_io_buf =  res->obs;
res               588 sound/soc/intel/skylake/skl-messages.c 			dma_io_buf =  res->obs;
res               590 sound/soc/intel/skylake/skl-messages.c 			dma_io_buf =  res->ibs;
res               605 sound/soc/intel/skylake/skl-messages.c 			cpr_mconfig->gtw_cfg.dma_buffer_size = 2 * res->obs;
res               607 sound/soc/intel/skylake/skl-messages.c 			cpr_mconfig->gtw_cfg.dma_buffer_size = 2 * res->ibs;
res               236 sound/soc/intel/skylake/skl-topology.c 	struct skl_module_res *res;
res               241 sound/soc/intel/skylake/skl-topology.c 	res = &mcfg->module->resources[0];
res               248 sound/soc/intel/skylake/skl-topology.c 	res->ibs = DIV_ROUND_UP(in_fmt->s_freq, 1000) *
res               252 sound/soc/intel/skylake/skl-topology.c 	res->obs = DIV_ROUND_UP(out_fmt->s_freq, 1000) *
res              1537 sound/soc/intel/skylake/skl-topology.c 	struct skl_module_res *res = &mconfig->module->resources[0];
res              1580 sound/soc/intel/skylake/skl-topology.c 		res->ibs = (format->s_freq / 1000) *
res              1584 sound/soc/intel/skylake/skl-topology.c 		res->obs = (format->s_freq / 1000) *
res              2159 sound/soc/intel/skylake/skl-topology.c 		struct skl_module_res *res, int pin_idx, int dir)
res              2165 sound/soc/intel/skylake/skl-topology.c 		m_pin = &res->input[pin_idx];
res              2169 sound/soc/intel/skylake/skl-topology.c 		m_pin = &res->output[pin_idx];
res              2200 sound/soc/intel/skylake/skl-topology.c 		struct skl_module_res *res,
res              2205 sound/soc/intel/skylake/skl-topology.c 	if (!res)
res              2210 sound/soc/intel/skylake/skl-topology.c 		res->dma_buffer_size = tkn_elem->value;
res              2214 sound/soc/intel/skylake/skl-topology.c 		res->cpc = tkn_elem->value;
res              2218 sound/soc/intel/skylake/skl-topology.c 		res->is_pages = tkn_elem->value;
res              2222 sound/soc/intel/skylake/skl-topology.c 		res->obs = tkn_elem->value;
res              2226 sound/soc/intel/skylake/skl-topology.c 		res->ibs = tkn_elem->value;
res              2231 sound/soc/intel/skylake/skl-topology.c 		ret = skl_tplg_manifest_pin_res_tkn(dev, tkn_elem, res,
res              2264 sound/soc/intel/skylake/skl-topology.c 	struct skl_module_res *res = NULL;
res              2274 sound/soc/intel/skylake/skl-topology.c 		res = &mconfig->module->resources[res_idx];
res              2345 sound/soc/intel/skylake/skl-topology.c 		ret = skl_tplg_fill_res_tkn(dev, tkn_elem, res, pin_index, dir);
res              3175 sound/soc/intel/skylake/skl-topology.c 	struct skl_module_res *res = NULL;
res              3185 sound/soc/intel/skylake/skl-topology.c 		res = &mod->resources[res_val_idx];
res              3270 sound/soc/intel/skylake/skl-topology.c 		if (!res)
res              3273 sound/soc/intel/skylake/skl-topology.c 		res->id = tkn_elem->value;
res              3293 sound/soc/intel/skylake/skl-topology.c 		ret = skl_tplg_fill_res_tkn(dev, tkn_elem, res, pin_idx, dir);
res              3303 sound/soc/intel/skylake/skl-topology.c 		res->nr_input_pins = tkn_elem->value;
res              3310 sound/soc/intel/skylake/skl-topology.c 		res->nr_output_pins = tkn_elem->value;
res               698 sound/soc/intel/skylake/skl.c 	unsigned int res = -1;
res               708 sound/soc/intel/skylake/skl.c 	snd_hdac_bus_get_response(bus, addr, &res);
res               710 sound/soc/intel/skylake/skl.c 	if (res == -1)
res               712 sound/soc/intel/skylake/skl.c 	dev_dbg(bus->dev, "codec #%d probed OK: %x\n", addr, res);
res               728 sound/soc/intel/skylake/skl.c 	if ((res & 0xFFFF0000) != IDISP_INTEL_VENDOR_ID) {
res               231 sound/soc/qcom/apq8016_sbc.c 	struct resource *res;
res               247 sound/soc/qcom/apq8016_sbc.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "mic-iomux");
res               248 sound/soc/qcom/apq8016_sbc.c 	data->mic_iomux = devm_ioremap_resource(dev, res);
res               252 sound/soc/qcom/apq8016_sbc.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "spkr-iomux");
res               253 sound/soc/qcom/apq8016_sbc.c 	data->spkr_iomux = devm_ioremap_resource(dev, res);
res               420 sound/soc/qcom/lpass-cpu.c 	struct resource *res;
res               445 sound/soc/qcom/lpass-cpu.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "lpass-lpaif");
res               447 sound/soc/qcom/lpass-cpu.c 	drvdata->lpaif = devm_ioremap_resource(&pdev->dev, res);
res               748 sound/soc/qcom/qdsp6/q6afe.c 	struct aprv2_ibasic_rsp_result_t *res;
res               755 sound/soc/qcom/qdsp6/q6afe.c 	res = data->payload;
res               758 sound/soc/qcom/qdsp6/q6afe.c 		if (res->status) {
res               760 sound/soc/qcom/qdsp6/q6afe.c 				res->opcode, res->status);
res               762 sound/soc/qcom/qdsp6/q6afe.c 		switch (res->opcode) {
res               769 sound/soc/qcom/qdsp6/q6afe.c 				port->result = *res;
res               775 sound/soc/qcom/qdsp6/q6afe.c 			dev_err(afe->dev, "Unknown cmd 0x%x\n",	res->opcode);
res               583 sound/soc/rockchip/rockchip_i2s.c 	struct resource *res;
res               621 sound/soc/rockchip/rockchip_i2s.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               622 sound/soc/rockchip/rockchip_i2s.c 	regs = devm_ioremap_resource(&pdev->dev, res);
res               634 sound/soc/rockchip/rockchip_i2s.c 	i2s->playback_dma_data.addr = res->start + I2S_TXDR;
res               638 sound/soc/rockchip/rockchip_i2s.c 	i2s->capture_dma_data.addr = res->start + I2S_RXDR;
res               480 sound/soc/rockchip/rockchip_pdm.c 	struct resource *res;
res               498 sound/soc/rockchip/rockchip_pdm.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               499 sound/soc/rockchip/rockchip_pdm.c 	regs = devm_ioremap_resource(&pdev->dev, res);
res               508 sound/soc/rockchip/rockchip_pdm.c 	pdm->capture_dma_data.addr = res->start + PDM_RXFIFO_DATA;
res               283 sound/soc/rockchip/rockchip_spdif.c 	struct resource *res;
res               332 sound/soc/rockchip/rockchip_spdif.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               333 sound/soc/rockchip/rockchip_spdif.c 	regs = devm_ioremap_resource(&pdev->dev, res);
res               348 sound/soc/rockchip/rockchip_spdif.c 	spdif->playback_dma_data.addr = res->start + SPDIF_SMPDR;
res              1387 sound/soc/samsung/i2s.c 	struct resource *res;
res              1445 sound/soc/samsung/i2s.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1446 sound/soc/samsung/i2s.c 	priv->addr = devm_ioremap_resource(&pdev->dev, res);
res              1450 sound/soc/samsung/i2s.c 	regs_base = res->start;
res               224 sound/soc/samsung/idma.c 	unsigned long res;
res               229 sound/soc/samsung/idma.c 	res = src - prtd->start;
res               233 sound/soc/samsung/idma.c 	return bytes_to_frames(substream->runtime, res);
res               154 sound/soc/samsung/s3c2412-i2s.c 	struct resource *res;
res               162 sound/soc/samsung/s3c2412-i2s.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               163 sound/soc/samsung/s3c2412-i2s.c 	s3c2412_i2s.regs = devm_ioremap_resource(&pdev->dev, res);
res               167 sound/soc/samsung/s3c2412-i2s.c 	s3c2412_i2s_pcm_stereo_out.addr = res->start + S3C2412_IISTXD;
res               169 sound/soc/samsung/s3c2412-i2s.c 	s3c2412_i2s_pcm_stereo_in.addr = res->start + S3C2412_IISRXD;
res               432 sound/soc/samsung/s3c24xx-i2s.c 	struct resource *res;
res               435 sound/soc/samsung/s3c24xx-i2s.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               436 sound/soc/samsung/s3c24xx-i2s.c 	s3c24xx_i2s.regs = devm_ioremap_resource(&pdev->dev, res);
res               440 sound/soc/samsung/s3c24xx-i2s.c 	s3c24xx_i2s_pcm_stereo_out.addr = res->start + S3C2410_IISFIFO;
res               441 sound/soc/samsung/s3c24xx-i2s.c 	s3c24xx_i2s_pcm_stereo_in.addr = res->start + S3C2410_IISFIFO;
res              1921 sound/soc/sh/fsi.c 	struct resource *res;
res              1946 sound/soc/sh/fsi.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1948 sound/soc/sh/fsi.c 	if (!res || (int)irq <= 0) {
res              1958 sound/soc/sh/fsi.c 					    res->start, resource_size(res));
res              1971 sound/soc/sh/fsi.c 	fsi->phys	= res->start;
res              1984 sound/soc/sh/fsi.c 	fsi->phys	= res->start + 0x40;
res               822 sound/soc/sh/rcar/dma.c 	struct resource *res;
res               833 sound/soc/sh/rcar/dma.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "audmapp");
res               835 sound/soc/sh/rcar/dma.c 	if (!dmac || !res) {
res               841 sound/soc/sh/rcar/dma.c 	dmac->base = devm_ioremap_resource(dev, res);
res                25 sound/soc/sh/rcar/gen.c 	phys_addr_t res[RSND_BASE_MAX];
res               141 sound/soc/sh/rcar/gen.c 	return	gen->res[reg_id];
res               156 sound/soc/sh/rcar/gen.c 	struct resource *res;
res               170 sound/soc/sh/rcar/gen.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, name);
res               171 sound/soc/sh/rcar/gen.c 	if (!res)
res               172 sound/soc/sh/rcar/gen.c 		res = platform_get_resource(pdev, IORESOURCE_MEM, reg_id);
res               173 sound/soc/sh/rcar/gen.c 	if (!res)
res               176 sound/soc/sh/rcar/gen.c 	base = devm_ioremap_resource(dev, res);
res               187 sound/soc/sh/rcar/gen.c 	gen->res[reg_id] = res->start;
res               719 sound/soc/sh/siu_dai.c 	struct resource *res, *region;
res               741 sound/soc/sh/siu_dai.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               742 sound/soc/sh/siu_dai.c 	if (!res)
res               745 sound/soc/sh/siu_dai.c 	region = devm_request_mem_region(&pdev->dev, res->start,
res               746 sound/soc/sh/siu_dai.c 					 resource_size(res), pdev->name);
res               752 sound/soc/sh/siu_dai.c 	info->pram = devm_ioremap(&pdev->dev, res->start, PRAM_SIZE);
res               755 sound/soc/sh/siu_dai.c 	info->xram = devm_ioremap(&pdev->dev, res->start + XRAM_OFFSET,
res               759 sound/soc/sh/siu_dai.c 	info->yram = devm_ioremap(&pdev->dev, res->start + YRAM_OFFSET,
res               763 sound/soc/sh/siu_dai.c 	info->reg = devm_ioremap(&pdev->dev, res->start + REG_OFFSET,
res               764 sound/soc/sh/siu_dai.c 			    resource_size(res) - REG_OFFSET);
res                12 sound/soc/soc-devres.c static void devm_component_release(struct device *dev, void *res)
res                14 sound/soc/soc-devres.c 	snd_soc_unregister_component(*(struct device **)res);
res                50 sound/soc/soc-devres.c static void devm_card_release(struct device *dev, void *res)
res                52 sound/soc/soc-devres.c 	snd_soc_unregister_card(*(struct snd_soc_card **)res);
res                86 sound/soc/soc-devres.c static void devm_dmaengine_pcm_release(struct device *dev, void *res)
res                88 sound/soc/soc-devres.c 	snd_dmaengine_pcm_unregister(*(struct device **)res);
res               333 sound/soc/soc-jack.c static void jack_devres_free_gpios(struct device *dev, void *res)
res               335 sound/soc/soc-jack.c 	struct jack_gpio_tbl *tbl = res;
res               189 sound/soc/sof/imx/imx8.c 	struct resource res;
res               290 sound/soc/sof/imx/imx8.c 	ret = of_address_to_resource(res_node, 0, &res);
res               296 sound/soc/sof/imx/imx8.c 	sdev->bar[SOF_FW_BLK_TYPE_SRAM] = devm_ioremap_wc(sdev->dev, res.start,
res               297 sound/soc/sof/imx/imx8.c 							  res.end - res.start +
res                60 sound/soc/sof/intel/hda-dai.c 	struct hdac_ext_stream *res = NULL;
res                87 sound/soc/sof/intel/hda-dai.c 					res = hstream;
res                91 sound/soc/sof/intel/hda-dai.c 				res = hstream;
res               103 sound/soc/sof/intel/hda-dai.c 	if (res) {
res               108 sound/soc/sof/intel/hda-dai.c 		if (!res->decoupled)
res               109 sound/soc/sof/intel/hda-dai.c 			snd_hdac_ext_stream_decouple(bus, res, true);
res               111 sound/soc/sof/intel/hda-dai.c 		res->link_locked = 1;
res               112 sound/soc/sof/intel/hda-dai.c 		res->link_substream = substream;
res               116 sound/soc/sof/intel/hda-dai.c 	return res;
res               281 sound/soc/spear/spdif_out.c 	struct resource *res;
res               288 sound/soc/spear/spdif_out.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               289 sound/soc/spear/spdif_out.c 	host->io_base = devm_ioremap_resource(&pdev->dev, res);
res               300 sound/soc/spear/spdif_out.c 	host->dma_params.addr = res->start + SPDIF_OUT_FIFO_DATA;
res               915 sound/soc/sprd/sprd-mcdt.c 				 struct resource *res)
res               925 sound/soc/sprd/sprd-mcdt.c 			chan->fifo_phys = res->start + MCDT_CH0_RXD + i * 4;
res               929 sound/soc/sprd/sprd-mcdt.c 			chan->fifo_phys = res->start + MCDT_CH0_TXD +
res               945 sound/soc/sprd/sprd-mcdt.c 	struct resource *res;
res               952 sound/soc/sprd/sprd-mcdt.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               953 sound/soc/sprd/sprd-mcdt.c 	mcdt->base = devm_ioremap_resource(&pdev->dev, res);
res               972 sound/soc/sprd/sprd-mcdt.c 	sprd_mcdt_init_chans(mcdt, res);
res               812 sound/soc/stm/stm32_i2s.c 	struct resource *res;
res               824 sound/soc/stm/stm32_i2s.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               825 sound/soc/stm/stm32_i2s.c 	i2s->base = devm_ioremap_resource(&pdev->dev, res);
res               829 sound/soc/stm/stm32_i2s.c 	i2s->phys_addr = res->start;
res              1355 sound/soc/stm/stm32_sai_sub.c 	struct resource *res;
res              1363 sound/soc/stm/stm32_sai_sub.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1364 sound/soc/stm/stm32_sai_sub.c 	base = devm_ioremap_resource(&pdev->dev, res);
res              1368 sound/soc/stm/stm32_sai_sub.c 	sai->phys_addr = res->start;
res               897 sound/soc/stm/stm32_spdifrx.c 	struct resource *res;
res               909 sound/soc/stm/stm32_spdifrx.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               910 sound/soc/stm/stm32_spdifrx.c 	spdifrx->base = devm_ioremap_resource(&pdev->dev, res);
res               914 sound/soc/stm/stm32_spdifrx.c 	spdifrx->phys_addr = res->start;
res              1697 sound/soc/sunxi/sun4i-codec.c 	struct resource *res;
res              1707 sound/soc/sunxi/sun4i-codec.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1708 sound/soc/sunxi/sun4i-codec.c 	base = devm_ioremap_resource(&pdev->dev, res);
res              1786 sound/soc/sunxi/sun4i-codec.c 	scodec->playback_dma_data.addr = res->start + quirks->reg_dac_txdata;
res              1791 sound/soc/sunxi/sun4i-codec.c 	scodec->capture_dma_data.addr = res->start + quirks->reg_adc_rxdata;
res              1186 sound/soc/sunxi/sun4i-i2s.c 	struct resource *res;
res              1195 sound/soc/sunxi/sun4i-i2s.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res              1196 sound/soc/sunxi/sun4i-i2s.c 	regs = devm_ioremap_resource(&pdev->dev, res);
res              1246 sound/soc/sunxi/sun4i-i2s.c 	i2s->playback_dma_data.addr = res->start +
res              1250 sound/soc/sunxi/sun4i-i2s.c 	i2s->capture_dma_data.addr = res->start + SUN4I_I2S_FIFO_RX_REG;
res               503 sound/soc/sunxi/sun4i-spdif.c 	struct resource *res;
res               521 sound/soc/sunxi/sun4i-spdif.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               522 sound/soc/sunxi/sun4i-spdif.c 	base = devm_ioremap_resource(&pdev->dev, res);
res               549 sound/soc/sunxi/sun4i-spdif.c 	host->dma_params_tx.addr = res->start + quirks->reg_dac_txdata;
res               650 sound/soc/ti/davinci-i2s.c 	struct resource *mem, *res;
res               681 sound/soc/ti/davinci-i2s.c 	res = platform_get_resource(pdev, IORESOURCE_DMA, 0);
res               682 sound/soc/ti/davinci-i2s.c 	if (res) {
res               684 sound/soc/ti/davinci-i2s.c 		*dma = res->start;
res               696 sound/soc/ti/davinci-i2s.c 	res = platform_get_resource(pdev, IORESOURCE_DMA, 1);
res               697 sound/soc/ti/davinci-i2s.c 	if (res) {
res               699 sound/soc/ti/davinci-i2s.c 		*dma = res->start;
res              2104 sound/soc/ti/davinci-mcasp.c 	struct resource *mem, *res, *dat;
res              2249 sound/soc/ti/davinci-mcasp.c 	res = platform_get_resource(pdev, IORESOURCE_DMA, 0);
res              2250 sound/soc/ti/davinci-mcasp.c 	if (res)
res              2251 sound/soc/ti/davinci-mcasp.c 		*dma = res->start;
res              2271 sound/soc/ti/davinci-mcasp.c 		res = platform_get_resource(pdev, IORESOURCE_DMA, 1);
res              2272 sound/soc/ti/davinci-mcasp.c 		if (res)
res              2273 sound/soc/ti/davinci-mcasp.c 			*dma = res->start;
res               461 sound/soc/ti/omap-dmic.c 	struct resource *res;
res               480 sound/soc/ti/omap-dmic.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "dma");
res               481 sound/soc/ti/omap-dmic.c 	if (!res) {
res               485 sound/soc/ti/omap-dmic.c 	dmic->dma_data.addr = res->start + OMAP_DMIC_DATA_REG;
res               489 sound/soc/ti/omap-dmic.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "mpu");
res               490 sound/soc/ti/omap-dmic.c 	dmic->io_base = devm_ioremap_resource(&pdev->dev, res);
res               342 sound/soc/ti/omap-mcbsp-st.c 	struct resource *res;
res               345 sound/soc/ti/omap-mcbsp-st.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "sidetone");
res               346 sound/soc/ti/omap-mcbsp-st.c 	if (!res)
res               360 sound/soc/ti/omap-mcbsp-st.c 	st_data->io_base_st = devm_ioremap(mcbsp->dev, res->start,
res               361 sound/soc/ti/omap-mcbsp-st.c 					   resource_size(res));
res               620 sound/soc/ti/omap-mcbsp.c 	struct resource *res;
res               626 sound/soc/ti/omap-mcbsp.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "mpu");
res               627 sound/soc/ti/omap-mcbsp.c 	if (!res)
res               628 sound/soc/ti/omap-mcbsp.c 		res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               630 sound/soc/ti/omap-mcbsp.c 	mcbsp->io_base = devm_ioremap_resource(&pdev->dev, res);
res               634 sound/soc/ti/omap-mcbsp.c 	mcbsp->phys_base = res->start;
res               635 sound/soc/ti/omap-mcbsp.c 	mcbsp->reg_cache_size = resource_size(res);
res               637 sound/soc/ti/omap-mcbsp.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "dma");
res               638 sound/soc/ti/omap-mcbsp.c 	if (!res)
res               641 sound/soc/ti/omap-mcbsp.c 		mcbsp->phys_dma_base = res->start;
res               664 sound/soc/ti/omap-mcbsp.c 		res = platform_get_resource_byname(pdev, IORESOURCE_DMA, "tx");
res               665 sound/soc/ti/omap-mcbsp.c 		if (!res) {
res               669 sound/soc/ti/omap-mcbsp.c 		mcbsp->dma_req[0] = res->start;
res               672 sound/soc/ti/omap-mcbsp.c 		res = platform_get_resource_byname(pdev, IORESOURCE_DMA, "rx");
res               673 sound/soc/ti/omap-mcbsp.c 		if (!res) {
res               677 sound/soc/ti/omap-mcbsp.c 		mcbsp->dma_req[1] = res->start;
res               544 sound/soc/ti/omap-mcpdm.c 	struct resource *res;
res               555 sound/soc/ti/omap-mcpdm.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "dma");
res               556 sound/soc/ti/omap-mcpdm.c 	if (res == NULL)
res               559 sound/soc/ti/omap-mcpdm.c 	mcpdm->dma_data[0].addr = res->start + MCPDM_REG_DN_DATA;
res               560 sound/soc/ti/omap-mcpdm.c 	mcpdm->dma_data[1].addr = res->start + MCPDM_REG_UP_DATA;
res               565 sound/soc/ti/omap-mcpdm.c 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "mpu");
res               566 sound/soc/ti/omap-mcpdm.c 	mcpdm->io_base = devm_ioremap_resource(&pdev->dev, res);
res               435 sound/soc/ux500/ux500_msp_i2s.c 	int res;
res               484 sound/soc/ux500/ux500_msp_i2s.c 	res = enable_msp(msp, config);
res               485 sound/soc/ux500/ux500_msp_i2s.c 	if (res < 0) {
res               487 sound/soc/ux500/ux500_msp_i2s.c 			__func__, res);
res               677 sound/soc/ux500/ux500_msp_i2s.c 	struct resource *res = NULL;
res               703 sound/soc/ux500/ux500_msp_i2s.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               704 sound/soc/ux500/ux500_msp_i2s.c 	if (res == NULL) {
res               710 sound/soc/ux500/ux500_msp_i2s.c 	msp->playback_dma_data.tx_rx_addr = res->start + MSP_DR;
res               711 sound/soc/ux500/ux500_msp_i2s.c 	msp->capture_dma_data.tx_rx_addr = res->start + MSP_DR;
res               713 sound/soc/ux500/ux500_msp_i2s.c 	msp->registers = devm_ioremap(&pdev->dev, res->start,
res               714 sound/soc/ux500/ux500_msp_i2s.c 				      resource_size(res));
res               567 sound/soc/xilinx/xlnx_formatter_pcm.c 	struct resource *res;
res               587 sound/soc/xilinx/xlnx_formatter_pcm.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               588 sound/soc/xilinx/xlnx_formatter_pcm.c 	if (!res) {
res               593 sound/soc/xilinx/xlnx_formatter_pcm.c 	aud_drv_data->mmio = devm_ioremap_resource(dev, res);
res               240 sound/soc/xilinx/xlnx_spdif.c 	struct resource *res;
res               276 sound/soc/xilinx/xlnx_spdif.c 		res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
res               277 sound/soc/xilinx/xlnx_spdif.c 		if (!res) {
res               282 sound/soc/xilinx/xlnx_spdif.c 		ret = devm_request_irq(dev, res->start,
res               389 sound/soc/zte/zx-i2s.c 	struct resource *res;
res               409 sound/soc/zte/zx-i2s.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               410 sound/soc/zte/zx-i2s.c 	zx_i2s->mapbase = res->start;
res               411 sound/soc/zte/zx-i2s.c 	zx_i2s->reg_base = devm_ioremap_resource(&pdev->dev, res);
res               307 sound/soc/zte/zx-spdif.c 	struct resource *res;
res               321 sound/soc/zte/zx-spdif.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               322 sound/soc/zte/zx-spdif.c 	zx_spdif->mapbase = res->start;
res               323 sound/soc/zte/zx-spdif.c 	zx_spdif->reg_base = devm_ioremap_resource(&pdev->dev, res);
res               379 sound/soc/zte/zx-tdm.c 	struct resource *res;
res               401 sound/soc/zte/zx-tdm.c 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
res               402 sound/soc/zte/zx-tdm.c 	zx_tdm->phy_addr = res->start;
res               403 sound/soc/zte/zx-tdm.c 	zx_tdm->regbase = devm_ioremap_resource(&pdev->dev, res);
res               969 sound/sparc/cs4231.c 	unsigned char res;
res               972 sound/sparc/cs4231.c 	res = snd_cs4231_in(chip, CS4231_TEST_INIT);
res               976 sound/sparc/cs4231.c 	if (res & (0x08 | 0x02))
res               292 sound/usb/format.c 		int res = combine_quad(&data[10 + 12 * i]);
res               295 sound/usb/format.c 		if ((max < 0) || (min < 0) || (res < 0) || (max < min))
res               303 sound/usb/format.c 		if (res == 1) {
res               310 sound/usb/format.c 		for (rate = min; rate <= max; rate += res) {
res               332 sound/usb/format.c 			if (res == 0)
res               252 sound/usb/mixer.c 	if (!cval->res)
res               253 sound/usb/mixer.c 		cval->res = 1;
res               257 sound/usb/mixer.c 		return (cval->max - cval->min + cval->res - 1) / cval->res;
res               259 sound/usb/mixer.c 		return (val - cval->min) / cval->res;
res               266 sound/usb/mixer.c 	if (!cval->res)
res               267 sound/usb/mixer.c 		cval->res = 1;
res               268 sound/usb/mixer.c 	val *= cval->res;
res              1075 sound/usb/mixer.c 			cval->res = 0x00e6;
res              1087 sound/usb/mixer.c 			cval->res = 0x0073;
res              1094 sound/usb/mixer.c 			cval->res = 0x0073;
res              1105 sound/usb/mixer.c 			cval->res = 0x0100;
res              1149 sound/usb/mixer.c 			cval->res = 192;
res              1171 sound/usb/mixer.c 			cval->res = 384;
res              1179 sound/usb/mixer.c 			cval->res = 1;
res              1194 sound/usb/mixer.c 	cval->res = 1;
res              1220 sound/usb/mixer.c 				  &cval->res) < 0) {
res              1221 sound/usb/mixer.c 			cval->res = 1;
res              1223 sound/usb/mixer.c 			int last_valid_res = cval->res;
res              1225 sound/usb/mixer.c 			while (cval->res > 1) {
res              1228 sound/usb/mixer.c 								cval->res / 2) < 0)
res              1230 sound/usb/mixer.c 				cval->res /= 2;
res              1233 sound/usb/mixer.c 					  (cval->control << 8) | minchn, &cval->res) < 0)
res              1234 sound/usb/mixer.c 				cval->res = last_valid_res;
res              1236 sound/usb/mixer.c 		if (cval->res == 0)
res              1237 sound/usb/mixer.c 			cval->res = 1;
res              1245 sound/usb/mixer.c 		if (cval->min + cval->res < cval->max) {
res              1246 sound/usb/mixer.c 			int last_valid_res = cval->res;
res              1253 sound/usb/mixer.c 					test += cval->res;
res              1255 sound/usb/mixer.c 					test -= cval->res;
res              1259 sound/usb/mixer.c 					cval->res = last_valid_res;
res              1264 sound/usb/mixer.c 				cval->res *= 2;
res              1328 sound/usb/mixer.c 			(cval->max - cval->min + cval->res - 1) / cval->res;
res              1697 sound/usb/mixer.c 	range = (cval->max - cval->min) / cval->res;
res              1710 sound/usb/mixer.c 			       cval->min, cval->max, cval->res);
res              1715 sound/usb/mixer.c 		      cval->min, cval->max, cval->res);
res              2427 sound/usb/mixer.c 				cval->res = 1;
res              2442 sound/usb/mixer.c 			cval->res = 1;
res              2637 sound/usb/mixer.c 	cval->res = 1;
res                88 sound/usb/mixer.h 	int min, max, res;
res                80 sound/usb/mixer_quirks.c 	cval->res = 0;
res               119 sound/usb/proc.c 		int res = 16 - data_ep->freqshift;
res               121 sound/usb/proc.c 			    (sync_ep->syncmaxsize > 3 ? 32 : 24) - res, res);
res                64 tools/bpf/bpftool/feature.c 		   const char *define_name, bool res, const char *define_prefix)
res                67 tools/bpf/bpftool/feature.c 		jsonw_bool_field(json_wtr, feat_name, res);
res                70 tools/bpf/bpftool/feature.c 		       res ? "" : "NO_", define_name);
res                72 tools/bpf/bpftool/feature.c 		printf("%s is %savailable\n", plain_name, res ? "" : "NOT ");
res                78 tools/bpf/bpftool/feature.c 	int res;
res                88 tools/bpf/bpftool/feature.c 		res = strtol(value, &endptr, 0);
res                90 tools/bpf/bpftool/feature.c 			jsonw_int_field(json_wtr, name, res);
res               136 tools/bpf/bpftool/feature.c 	int res;
res               142 tools/bpf/bpftool/feature.c 	res = getline(&line, &len, fd);
res               144 tools/bpf/bpftool/feature.c 	if (res < 0)
res               148 tools/bpf/bpftool/feature.c 	res = strtol(line, &endptr, 10);
res               150 tools/bpf/bpftool/feature.c 		res = -1;
res               153 tools/bpf/bpftool/feature.c 	return res;
res               158 tools/bpf/bpftool/feature.c 	int res;
res               162 tools/bpf/bpftool/feature.c 	res = read_procfs("/proc/sys/kernel/unprivileged_bpf_disabled");
res               164 tools/bpf/bpftool/feature.c 		jsonw_int_field(json_wtr, "unprivileged_bpf_disabled", res);
res               166 tools/bpf/bpftool/feature.c 		switch (res) {
res               177 tools/bpf/bpftool/feature.c 			printf("bpf() syscall restriction has unknown value %d\n", res);
res               184 tools/bpf/bpftool/feature.c 	int res;
res               188 tools/bpf/bpftool/feature.c 	res = read_procfs("/proc/sys/net/core/bpf_jit_enable");
res               190 tools/bpf/bpftool/feature.c 		jsonw_int_field(json_wtr, "bpf_jit_enable", res);
res               192 tools/bpf/bpftool/feature.c 		switch (res) {
res               207 tools/bpf/bpftool/feature.c 			       res);
res               214 tools/bpf/bpftool/feature.c 	int res;
res               218 tools/bpf/bpftool/feature.c 	res = read_procfs("/proc/sys/net/core/bpf_jit_harden");
res               220 tools/bpf/bpftool/feature.c 		jsonw_int_field(json_wtr, "bpf_jit_harden", res);
res               222 tools/bpf/bpftool/feature.c 		switch (res) {
res               237 tools/bpf/bpftool/feature.c 			       res);
res               244 tools/bpf/bpftool/feature.c 	int res;
res               248 tools/bpf/bpftool/feature.c 	res = read_procfs("/proc/sys/net/core/bpf_jit_kallsyms");
res               250 tools/bpf/bpftool/feature.c 		jsonw_int_field(json_wtr, "bpf_jit_kallsyms", res);
res               252 tools/bpf/bpftool/feature.c 		switch (res) {
res               263 tools/bpf/bpftool/feature.c 			printf("JIT kallsyms exports status has unknown value %d\n", res);
res               270 tools/bpf/bpftool/feature.c 	int res;
res               274 tools/bpf/bpftool/feature.c 	res = read_procfs("/proc/sys/net/core/bpf_jit_limit");
res               276 tools/bpf/bpftool/feature.c 		jsonw_int_field(json_wtr, "bpf_jit_limit", res);
res               278 tools/bpf/bpftool/feature.c 		switch (res) {
res               283 tools/bpf/bpftool/feature.c 			printf("Global memory limit for JIT compiler for unprivileged users is %d bytes\n", res);
res               447 tools/bpf/bpftool/feature.c 	bool res;
res               450 tools/bpf/bpftool/feature.c 	res = (errno != ENOSYS);
res               455 tools/bpf/bpftool/feature.c 			   res, define_prefix);
res               457 tools/bpf/bpftool/feature.c 	return res;
res               467 tools/bpf/bpftool/feature.c 	bool res;
res               479 tools/bpf/bpftool/feature.c 	res = bpf_probe_prog_type(prog_type, ifindex);
res               481 tools/bpf/bpftool/feature.c 	supported_types[prog_type] |= res;
res               493 tools/bpf/bpftool/feature.c 	print_bool_feature(feat_name, plain_desc, define_name, res,
res               504 tools/bpf/bpftool/feature.c 	bool res;
res               506 tools/bpf/bpftool/feature.c 	res = bpf_probe_map_type(map_type, ifindex);
res               518 tools/bpf/bpftool/feature.c 	print_bool_feature(feat_name, plain_desc, define_name, res,
res               529 tools/bpf/bpftool/feature.c 	bool res;
res               552 tools/bpf/bpftool/feature.c 			res = false;
res               554 tools/bpf/bpftool/feature.c 			res = bpf_probe_helper(id, prog_type, ifindex);
res               557 tools/bpf/bpftool/feature.c 			if (res)
res               562 tools/bpf/bpftool/feature.c 			       res ? "1" : "0");
res               564 tools/bpf/bpftool/feature.c 			if (res)
res               757 tools/hv/hv_kvp_daemon.c 	unsigned int res = *w - ((*w >> 1) & 0x55555555);
res               758 tools/hv/hv_kvp_daemon.c 	res = (res & 0x33333333) + ((res >> 2) & 0x33333333);
res               759 tools/hv/hv_kvp_daemon.c 	res = (res + (res >> 4)) & 0x0F0F0F0F;
res               760 tools/hv/hv_kvp_daemon.c 	res = res + (res >> 8);
res               761 tools/hv/hv_kvp_daemon.c 	return (res + (res >> 16)) & 0x000000FF;
res               105 tools/include/linux/compiler.h static __always_inline void __read_once_size(const volatile void *p, void *res, int size)
res               108 tools/include/linux/compiler.h 	case 1: *(__u8_alias_t  *) res = *(volatile __u8_alias_t  *) p; break;
res               109 tools/include/linux/compiler.h 	case 2: *(__u16_alias_t *) res = *(volatile __u16_alias_t *) p; break;
res               110 tools/include/linux/compiler.h 	case 4: *(__u32_alias_t *) res = *(volatile __u32_alias_t *) p; break;
res               111 tools/include/linux/compiler.h 	case 8: *(__u64_alias_t *) res = *(volatile __u64_alias_t *) p; break;
res               114 tools/include/linux/compiler.h 		__builtin_memcpy((void *)res, (const void *)p, size);
res               119 tools/include/linux/compiler.h static __always_inline void __write_once_size(volatile void *p, void *res, int size)
res               122 tools/include/linux/compiler.h 	case 1: *(volatile  __u8_alias_t *) p = *(__u8_alias_t  *) res; break;
res               123 tools/include/linux/compiler.h 	case 2: *(volatile __u16_alias_t *) p = *(__u16_alias_t *) res; break;
res               124 tools/include/linux/compiler.h 	case 4: *(volatile __u32_alias_t *) p = *(__u32_alias_t *) res; break;
res               125 tools/include/linux/compiler.h 	case 8: *(volatile __u64_alias_t *) p = *(__u64_alias_t *) res; break;
res               128 tools/include/linux/compiler.h 		__builtin_memcpy((void *)p, (const void *)res, size);
res                13 tools/include/linux/string.h int strtobool(const char *s, bool *res);
res               261 tools/io_uring/io_uring-bench.c 			if (cqe->res != BS) {
res               262 tools/io_uring/io_uring-bench.c 				printf("io: unexpected ret=%d\n", cqe->res);
res               263 tools/io_uring/io_uring-bench.c 				if (polled && cqe->res == -EOPNOTSUPP)
res               188 tools/io_uring/io_uring-cp.c 			if (cqe->res < 0) {
res               189 tools/io_uring/io_uring-cp.c 				if (cqe->res == -EAGAIN) {
res               195 tools/io_uring/io_uring-cp.c 						strerror(-cqe->res));
res               197 tools/io_uring/io_uring-cp.c 			} else if ((size_t) cqe->res != data->iov.iov_len) {
res               199 tools/io_uring/io_uring-cp.c 				data->iov.iov_base += cqe->res;
res               200 tools/io_uring/io_uring-cp.c 				data->iov.iov_len -= cqe->res;
res               201 tools/io_uring/io_uring-cp.c 				data->offset += cqe->res;
res              1044 tools/lib/bpf/libbpf.c 			      const struct btf_member *m, __u32 *res) {
res              1068 tools/lib/bpf/libbpf.c 	*res = arr_info->nelems;
res               247 tools/lib/bpf/libbpf.h 				  struct bpf_prog_prep_result *res);
res               304 tools/lib/bpf/libbpf_probes.c 	bool res;
res               308 tools/lib/bpf/libbpf_probes.c 	res = !grep(buf, "invalid func ") && !grep(buf, "unknown func ");
res               313 tools/lib/bpf/libbpf_probes.c 			res = res && !grep(buf, "not supported by FW") &&
res               321 tools/lib/bpf/libbpf_probes.c 	return res;
res                20 tools/lib/hweight.c 	unsigned int res = w - ((w >> 1) & 0x55555555);
res                21 tools/lib/hweight.c 	res = (res & 0x33333333) + ((res >> 2) & 0x33333333);
res                22 tools/lib/hweight.c 	res = (res + (res >> 4)) & 0x0F0F0F0F;
res                23 tools/lib/hweight.c 	res = res + (res >> 8);
res                24 tools/lib/hweight.c 	return (res + (res >> 16)) & 0x000000FF;
res                30 tools/lib/hweight.c 	unsigned int res = w - ((w >> 1) & 0x5555);
res                31 tools/lib/hweight.c 	res = (res & 0x3333) + ((res >> 2) & 0x3333);
res                32 tools/lib/hweight.c 	res = (res + (res >> 4)) & 0x0F0F;
res                33 tools/lib/hweight.c 	return (res + (res >> 8)) & 0x00FF;
res                38 tools/lib/hweight.c 	unsigned int res = w - ((w >> 1) & 0x55);
res                39 tools/lib/hweight.c 	res = (res & 0x33) + ((res >> 2) & 0x33);
res                40 tools/lib/hweight.c 	return (res + (res >> 4)) & 0x0F;
res                55 tools/lib/hweight.c 	__u64 res = w - ((w >> 1) & 0x5555555555555555ul);
res                56 tools/lib/hweight.c 	res = (res & 0x3333333333333333ul) + ((res >> 2) & 0x3333333333333333ul);
res                57 tools/lib/hweight.c 	res = (res + (res >> 4)) & 0x0F0F0F0F0F0F0F0Ful;
res                58 tools/lib/hweight.c 	res = res + (res >> 8);
res                59 tools/lib/hweight.c 	res = res + (res >> 16);
res                60 tools/lib/hweight.c 	return (res + (res >> 32)) & 0x00000000000000FFul;
res                48 tools/lib/string.c int strtobool(const char *s, bool *res)
res                57 tools/lib/string.c 		*res = true;
res                62 tools/lib/string.c 		*res = false;
res                69 tools/lib/string.c 			*res = true;
res                73 tools/lib/string.c 			*res = false;
res                51 tools/lib/subcmd/parse-options.c 	const char *res;
res                54 tools/lib/subcmd/parse-options.c 		res = p->opt;
res                58 tools/lib/subcmd/parse-options.c 		res = (const char *)opt->defval;
res                61 tools/lib/subcmd/parse-options.c 		res = *++p->argv;
res                65 tools/lib/subcmd/parse-options.c 		*arg = res;
res              5718 tools/lib/traceevent/event-parse.c 	int res;
res              5720 tools/lib/traceevent/event-parse.c 	res = strcmp((*ea)->name, (*eb)->name);
res              5721 tools/lib/traceevent/event-parse.c 	if (res)
res              5722 tools/lib/traceevent/event-parse.c 		return res;
res              5724 tools/lib/traceevent/event-parse.c 	res = strcmp((*ea)->system, (*eb)->system);
res              5725 tools/lib/traceevent/event-parse.c 	if (res)
res              5726 tools/lib/traceevent/event-parse.c 		return res;
res              5735 tools/lib/traceevent/event-parse.c 	int res;
res              5737 tools/lib/traceevent/event-parse.c 	res = strcmp((*ea)->system, (*eb)->system);
res              5738 tools/lib/traceevent/event-parse.c 	if (res)
res              5739 tools/lib/traceevent/event-parse.c 		return res;
res              5741 tools/lib/traceevent/event-parse.c 	res = strcmp((*ea)->name, (*eb)->name);
res              5742 tools/lib/traceevent/event-parse.c 	if (res)
res              5743 tools/lib/traceevent/event-parse.c 		return res;
res                99 tools/perf/arch/x86/util/intel-pt.c 	u64 res = 0;
res               104 tools/perf/arch/x86/util/intel-pt.c 			res <<= 1;
res               106 tools/perf/arch/x86/util/intel-pt.c 				res |= 1;
res               112 tools/perf/arch/x86/util/intel-pt.c 	return res;
res               116 tools/perf/arch/x86/util/intel-pt.c 				struct evlist *evlist, u64 *res)
res               121 tools/perf/arch/x86/util/intel-pt.c 	*res = 0;
res               129 tools/perf/arch/x86/util/intel-pt.c 			*res = intel_pt_masked_bits(mask, evsel->core.attr.config);
res              1871 tools/perf/builtin-record.c 	struct timespec res;
res              1874 tools/perf/builtin-record.c 	if (!clock_getres(clk_id, &res))
res              1875 tools/perf/builtin-record.c 		*res_ns = res.tv_nsec + res.tv_sec * NSEC_PER_SEC;
res               881 tools/perf/pmu-events/jevents.c 	int res = 1;
res               892 tools/perf/pmu-events/jevents.c 			res = 0;
res               903 tools/perf/pmu-events/jevents.c 				res = 0;
res               911 tools/perf/pmu-events/jevents.c 	return res;
res                87 tools/perf/pmu-events/json.c 	jsmnerr_t res;
res                99 tools/perf/pmu-events/json.c 	res = jsmn_parse(&parser, *map, *size, tokens,
res               101 tools/perf/pmu-events/json.c 	if (res != JSMN_SUCCESS) {
res               102 tools/perf/pmu-events/json.c 		pr_err("%s: json error %s\n", fn, jsmn_strerror(res));
res               420 tools/perf/util/bpf-loader.c 		     struct bpf_prog_prep_result *res)
res               469 tools/perf/util/bpf-loader.c 	res->new_insn_ptr = buf;
res               470 tools/perf/util/bpf-loader.c 	res->new_insn_cnt = prologue_cnt + orig_insns_cnt;
res               471 tools/perf/util/bpf-loader.c 	res->pfd = NULL;
res               131 tools/perf/util/cpumap.c int cpu_map__build_map(struct perf_cpu_map *cpus, struct perf_cpu_map **res,
res               159 tools/perf/util/cpumap.c 	*res = c;
res                57 tools/perf/util/cpumap.h int cpu_map__build_map(struct perf_cpu_map *cpus, struct perf_cpu_map **res,
res                39 tools/perf/util/expr.y static int expr__lex(YYSTYPE *res, const char **pp);
res                96 tools/perf/util/expr.y static int expr__symbol(YYSTYPE *res, const char *p, const char **pp)
res                98 tools/perf/util/expr.y 	char *dst = res->id;
res               121 tools/perf/util/expr.y 	dst = res->id;
res               145 tools/perf/util/expr.y static int expr__lex(YYSTYPE *res, const char **pp)
res               158 tools/perf/util/expr.y 		return expr__symbol(res, p - 1, pp);
res               160 tools/perf/util/expr.y 		res->num = strtod(s, (char **)&p);
res               709 tools/perf/util/pmu.c 	bool res;
res               720 tools/perf/util/pmu.c 		res = false;
res               735 tools/perf/util/pmu.c 			res = false;
res               740 tools/perf/util/pmu.c 	res = true;
res               743 tools/perf/util/pmu.c 	return res;
res                39 tools/perf/util/strbuf.c 	char *res = sb->alloc ? sb->buf : NULL;
res                43 tools/perf/util/strbuf.c 	return res;
res                12 tools/testing/nvdimm/dax-dev.c 	struct resource *res = &dev_dax->region->res;
res                15 tools/testing/nvdimm/dax-dev.c 	addr = pgoff * PAGE_SIZE + res->start;
res                16 tools/testing/nvdimm/dax-dev.c 	if (addr >= res->start && addr <= res->end) {
res                17 tools/testing/nvdimm/dax-dev.c 		if (addr + size - 1 <= res->end) {
res                55 tools/testing/nvdimm/test/iomap.c 	struct nfit_test_resource *res;
res                58 tools/testing/nvdimm/test/iomap.c 	res = __get_nfit_res(resource);
res                61 tools/testing/nvdimm/test/iomap.c 	return res;
res                72 tools/testing/nvdimm/test/iomap.c 			- nfit_res->res.start;
res                83 tools/testing/nvdimm/test/iomap.c 			- nfit_res->res.start;
res                94 tools/testing/nvdimm/test/iomap.c 		return nfit_res->buf + offset - nfit_res->res.start;
res               129 tools/testing/nvdimm/test/iomap.c 	resource_size_t offset = pgmap->res.start;
res               155 tools/testing/nvdimm/test/iomap.c 	return nfit_res->buf + offset - nfit_res->res.start;
res               175 tools/testing/nvdimm/test/iomap.c 		return nfit_res->buf + offset - nfit_res->res.start;
res               227 tools/testing/nvdimm/test/iomap.c 	struct resource *res = *((struct resource **) data);
res               229 tools/testing/nvdimm/test/iomap.c 	WARN_ON(!nfit_test_release_region(NULL, &iomem_resource, res->start,
res               230 tools/testing/nvdimm/test/iomap.c 			resource_size(res)));
res               235 tools/testing/nvdimm/test/iomap.c 	struct resource *res = *((struct resource **) __res);
res               238 tools/testing/nvdimm/test/iomap.c 	return res->start == start;
res               250 tools/testing/nvdimm/test/iomap.c 			struct resource *res = NULL;
res               260 tools/testing/nvdimm/test/iomap.c 				if (req->res.start == start) {
res               261 tools/testing/nvdimm/test/iomap.c 					res = &req->res;
res               267 tools/testing/nvdimm/test/iomap.c 			WARN(!res || resource_size(res) != n,
res               269 tools/testing/nvdimm/test/iomap.c 						__func__, start, n, res);
res               270 tools/testing/nvdimm/test/iomap.c 			if (res)
res               288 tools/testing/nvdimm/test/iomap.c 			struct resource *res = NULL;
res               290 tools/testing/nvdimm/test/iomap.c 			if (start + n > nfit_res->res.start
res               291 tools/testing/nvdimm/test/iomap.c 					+ resource_size(&nfit_res->res)) {
res               294 tools/testing/nvdimm/test/iomap.c 						&nfit_res->res);
res               300 tools/testing/nvdimm/test/iomap.c 				if (start == req->res.start) {
res               301 tools/testing/nvdimm/test/iomap.c 					res = &req->res;
res               306 tools/testing/nvdimm/test/iomap.c 			if (res) {
res               307 tools/testing/nvdimm/test/iomap.c 				WARN(1, "%pr already busy\n", res);
res               315 tools/testing/nvdimm/test/iomap.c 			res = &req->res;
res               317 tools/testing/nvdimm/test/iomap.c 			res->start = start;
res               318 tools/testing/nvdimm/test/iomap.c 			res->end = start + n - 1;
res               319 tools/testing/nvdimm/test/iomap.c 			res->name = name;
res               320 tools/testing/nvdimm/test/iomap.c 			res->flags = resource_type(parent);
res               321 tools/testing/nvdimm/test/iomap.c 			res->flags |= IORESOURCE_BUSY | flags;
res               334 tools/testing/nvdimm/test/iomap.c 				*d = res;
res               338 tools/testing/nvdimm/test/iomap.c 			pr_debug("%s: %pr\n", __func__, res);
res               339 tools/testing/nvdimm/test/iomap.c 			return res;
res               355 tools/testing/nvdimm/test/iomap.c int __wrap_insert_resource(struct resource *parent, struct resource *res)
res               357 tools/testing/nvdimm/test/iomap.c 	if (get_nfit_res(res->start))
res               359 tools/testing/nvdimm/test/iomap.c 	return insert_resource(parent, res);
res               363 tools/testing/nvdimm/test/iomap.c int __wrap_remove_resource(struct resource *res)
res               365 tools/testing/nvdimm/test/iomap.c 	if (get_nfit_res(res->start))
res               367 tools/testing/nvdimm/test/iomap.c 	return remove_resource(res);
res              1421 tools/testing/nvdimm/test/nfit.c 	if (resource_size(&nfit_res->res) >= DIMM_SIZE)
res              1422 tools/testing/nvdimm/test/nfit.c 		gen_pool_free(nfit_pool, nfit_res->res.start,
res              1423 tools/testing/nvdimm/test/nfit.c 				resource_size(&nfit_res->res));
res              1445 tools/testing/nvdimm/test/nfit.c 	nfit_res->res.start = *dma;
res              1446 tools/testing/nvdimm/test/nfit.c 	nfit_res->res.end = *dma + size - 1;
res              1447 tools/testing/nvdimm/test/nfit.c 	nfit_res->res.name = "NFIT";
res              1491 tools/testing/nvdimm/test/nfit.c 			if (addr >= n->res.start && (addr < n->res.start
res              1492 tools/testing/nvdimm/test/nfit.c 						+ resource_size(&n->res))) {
res              1497 tools/testing/nvdimm/test/nfit.c 						+ resource_size(&n->res))) {
res                15 tools/testing/nvdimm/test/nfit_test.h 	struct resource res;
res                21 tools/testing/nvdimm/test/nfit_test.h 	struct resource res;
res               222 tools/testing/selftests/bpf/bpf_helpers.h 			 unsigned long long flags, long *res) =
res               225 tools/testing/selftests/bpf/bpf_helpers.h 			  unsigned long long flags, unsigned long *res) =
res                37 tools/testing/selftests/bpf/prog_tests/attach_probe.c 	int err, prog_fd, duration = 0, res;
res               120 tools/testing/selftests/bpf/prog_tests/attach_probe.c 	err = bpf_map_lookup_elem(results_map_fd, &kprobe_idx, &res);
res               124 tools/testing/selftests/bpf/prog_tests/attach_probe.c 	if (CHECK(res != kprobe_idx + 1, "check_kprobe_res",
res               125 tools/testing/selftests/bpf/prog_tests/attach_probe.c 		  "wrong kprobe res: %d\n", res))
res               128 tools/testing/selftests/bpf/prog_tests/attach_probe.c 	err = bpf_map_lookup_elem(results_map_fd, &kretprobe_idx, &res);
res               132 tools/testing/selftests/bpf/prog_tests/attach_probe.c 	if (CHECK(res != kretprobe_idx + 1, "check_kretprobe_res",
res               133 tools/testing/selftests/bpf/prog_tests/attach_probe.c 		  "wrong kretprobe res: %d\n", res))
res               139 tools/testing/selftests/bpf/prog_tests/attach_probe.c 	err = bpf_map_lookup_elem(results_map_fd, &uprobe_idx, &res);
res               143 tools/testing/selftests/bpf/prog_tests/attach_probe.c 	if (CHECK(res != uprobe_idx + 1, "check_uprobe_res",
res               144 tools/testing/selftests/bpf/prog_tests/attach_probe.c 		  "wrong uprobe res: %d\n", res))
res               147 tools/testing/selftests/bpf/prog_tests/attach_probe.c 	err = bpf_map_lookup_elem(results_map_fd, &uretprobe_idx, &res);
res               151 tools/testing/selftests/bpf/prog_tests/attach_probe.c 	if (CHECK(res != uretprobe_idx + 1, "check_uretprobe_res",
res               152 tools/testing/selftests/bpf/prog_tests/attach_probe.c 		  "wrong uretprobe res: %d\n", res))
res                60 tools/testing/selftests/bpf/test_tcpbpf_user.c 	int res;
res                64 tools/testing/selftests/bpf/test_tcpbpf_user.c 	rv = bpf_map_lookup_elem(sock_map_fd, &key, &res);
res                66 tools/testing/selftests/bpf/test_tcpbpf_user.c 	EXPECT_EQ(0, res, "d");
res                69 tools/testing/selftests/bpf/test_tcpbpf_user.c 	rv = bpf_map_lookup_elem(sock_map_fd, &key, &res);
res                71 tools/testing/selftests/bpf/test_tcpbpf_user.c 	EXPECT_EQ(1, res, "d");
res               205 tools/testing/selftests/bpf/test_verifier.c 	uint64_t res = 0;
res               213 tools/testing/selftests/bpf/test_verifier.c 		res ^= val;
res               223 tools/testing/selftests/bpf/test_verifier.c 	res ^= (res >> 32);
res               224 tools/testing/selftests/bpf/test_verifier.c 	self->retval = (uint32_t)res;
res                 1 tools/testing/selftests/bpf/verifier/wide_access.c #define BPF_SOCK_ADDR_STORE(field, off, res, err) \
res                10 tools/testing/selftests/bpf/verifier/wide_access.c 	.result = res, \
res                38 tools/testing/selftests/bpf/verifier/wide_access.c #define BPF_SOCK_ADDR_LOAD(field, off, res, err) \
res                47 tools/testing/selftests/bpf/verifier/wide_access.c 	.result = res, \
res                95 tools/testing/selftests/futex/functional/futex_requeue_pi_signal_restart.c 	int res;
res               102 tools/testing/selftests/futex/functional/futex_requeue_pi_signal_restart.c 	res = futex_wait_requeue_pi(&f1, old_val, &(f2), NULL,
res               106 tools/testing/selftests/futex/functional/futex_requeue_pi_signal_restart.c 		     res, strerror(errno));
res               108 tools/testing/selftests/futex/functional/futex_requeue_pi_signal_restart.c 		if (!res)
res               123 tools/testing/selftests/futex/functional/futex_requeue_pi_signal_restart.c 	int c, res, ret = RET_PASS;
res               158 tools/testing/selftests/futex/functional/futex_requeue_pi_signal_restart.c 	res = create_rt_thread(&waiter, waiterfn, NULL, SCHED_FIFO, 1);
res               159 tools/testing/selftests/futex/functional/futex_requeue_pi_signal_restart.c 	if (res) {
res               160 tools/testing/selftests/futex/functional/futex_requeue_pi_signal_restart.c 		error("Creating waiting thread failed", res);
res               182 tools/testing/selftests/futex/functional/futex_requeue_pi_signal_restart.c 		res = futex_cmp_requeue_pi(&f1, old_val, &(f2), 1, 0,
res               190 tools/testing/selftests/futex/functional/futex_requeue_pi_signal_restart.c 		if (res > 0) {
res               193 tools/testing/selftests/futex/functional/futex_requeue_pi_signal_restart.c 		} else if (res < 0) {
res                76 tools/testing/selftests/futex/functional/futex_wait_private_mapped_file.c 	int res;
res               112 tools/testing/selftests/futex/functional/futex_wait_private_mapped_file.c 	res = futex_wake(&val, 1, 0);
res               113 tools/testing/selftests/futex/functional/futex_wait_private_mapped_file.c 	info("futex_wake %d\n", res);
res               114 tools/testing/selftests/futex/functional/futex_wait_private_mapped_file.c 	if (res != 1) {
res                44 tools/testing/selftests/futex/functional/futex_wait_timeout.c 	int res, ret = RET_PASS;
res                78 tools/testing/selftests/futex/functional/futex_wait_timeout.c 	res = futex_wait(&f1, f1, &to, FUTEX_PRIVATE_FLAG);
res                79 tools/testing/selftests/futex/functional/futex_wait_timeout.c 	if (!res || errno != ETIMEDOUT) {
res                53 tools/testing/selftests/futex/functional/futex_wait_uninitialized_heap.c 	int res;
res                56 tools/testing/selftests/futex/functional/futex_wait_uninitialized_heap.c 	res = futex_wait(buf, 1, NULL, 0);
res                59 tools/testing/selftests/futex/functional/futex_wait_uninitialized_heap.c 	if (res != 0 && errno != EWOULDBLOCK) {
res                43 tools/testing/selftests/futex/functional/futex_wait_wouldblock.c 	int res, ret = RET_PASS;
res                69 tools/testing/selftests/futex/functional/futex_wait_wouldblock.c 	res = futex_wait(&f1, f1+1, &to, FUTEX_PRIVATE_FLAG);
res                70 tools/testing/selftests/futex/functional/futex_wait_wouldblock.c 	if (!res || errno != EWOULDBLOCK) {
res                72 tools/testing/selftests/futex/functional/futex_wait_wouldblock.c 		     res ? errno : res, res ? strerror(errno) : "");
res                33 tools/testing/selftests/kvm/x86_64/hyperv_cpuid.c 	bool res = 1;
res                40 tools/testing/selftests/kvm/x86_64/hyperv_cpuid.c 				res = 0;
res                45 tools/testing/selftests/kvm/x86_64/hyperv_cpuid.c 	return res;
res                42 tools/testing/selftests/kvm/x86_64/mmio_warning_test.c 	int res;
res                46 tools/testing/selftests/kvm/x86_64/mmio_warning_test.c 	res = ioctl(kvmcpu, KVM_RUN, 0);
res                48 tools/testing/selftests/kvm/x86_64/mmio_warning_test.c 		res, run->exit_reason, run->internal.suberror);
res               429 tools/testing/selftests/mqueue/mq_perf_tests.c 	struct timespec res, start, middle, end, send_total, recv_total;
res               442 tools/testing/selftests/mqueue/mq_perf_tests.c 	if (clock_getres(clock, &res))
res               446 tools/testing/selftests/mqueue/mq_perf_tests.c 	printf("\t\tClock resolution:\t\t%lu nsec%s\n", res.tv_nsec,
res               447 tools/testing/selftests/mqueue/mq_perf_tests.c 	       res.tv_nsec > 1 ? "s" : "");
res               104 tools/testing/selftests/net/ip_defrag.c 	uint16_t res;
res               110 tools/testing/selftests/net/ip_defrag.c 	res = 0xffff & ~sum;
res               111 tools/testing/selftests/net/ip_defrag.c 	if (res)
res               112 tools/testing/selftests/net/ip_defrag.c 		return htons(res);
res               120 tools/testing/selftests/net/ip_defrag.c 	uint16_t res;
res               127 tools/testing/selftests/net/ip_defrag.c 	res = 0xffff & ~sum;
res               128 tools/testing/selftests/net/ip_defrag.c 	if (res)
res               129 tools/testing/selftests/net/ip_defrag.c 		return htons(res);
res               138 tools/testing/selftests/net/ip_defrag.c 	int res;
res               194 tools/testing/selftests/net/ip_defrag.c 	res = sendto(fd_raw, ip_frame, frag_len, 0, addr, alen);
res               195 tools/testing/selftests/net/ip_defrag.c 	if (res < 0)
res               197 tools/testing/selftests/net/ip_defrag.c 	if (res != frag_len)
res               198 tools/testing/selftests/net/ip_defrag.c 		error(1, 0, "send_fragment: %d vs %d", res, frag_len);
res               208 tools/testing/selftests/net/ip_defrag.c 	int res;
res               315 tools/testing/selftests/net/ip_defrag.c 		res = sendto(fd_raw, ip_frame, frag_len, 0, addr, alen);
res               316 tools/testing/selftests/net/ip_defrag.c 		if (res < 0)
res               318 tools/testing/selftests/net/ip_defrag.c 		if (res != frag_len)
res               319 tools/testing/selftests/net/ip_defrag.c 			error(1, 0, "sendto overlap: %d vs %d", (int)res, frag_len);
res               156 tools/testing/selftests/net/tcp_mmap.c 			int res;
res               161 tools/testing/selftests/net/tcp_mmap.c 			res = getsockopt(fd, IPPROTO_TCP, TCP_ZEROCOPY_RECEIVE,
res               163 tools/testing/selftests/net/tcp_mmap.c 			if (res == -1)
res               284 tools/testing/selftests/net/tcp_mmap.c 		int fd, res;
res               291 tools/testing/selftests/net/tcp_mmap.c 		res = pthread_create(&th, NULL, child_thread,
res               293 tools/testing/selftests/net/tcp_mmap.c 		if (res) {
res               294 tools/testing/selftests/net/tcp_mmap.c 			errno = res;
res               824 tools/testing/selftests/net/tls.c 	int res = fork();
res               826 tools/testing/selftests/net/tls.c 	EXPECT_NE(res, -1);
res               828 tools/testing/selftests/net/tls.c 	if (res) {
res               836 tools/testing/selftests/net/tls.c 			int res = send(self->fd, buf,
res               839 tools/testing/selftests/net/tls.c 			EXPECT_GE(res, 0);
res               840 tools/testing/selftests/net/tls.c 			left -= res;
res               845 tools/testing/selftests/net/tls.c 		EXPECT_EQ(res, pid2);
res               852 tools/testing/selftests/net/tls.c 			int res = recv(self->cfd, buf,
res               855 tools/testing/selftests/net/tls.c 			EXPECT_GE(res, 0);
res               856 tools/testing/selftests/net/tls.c 			left -= res;
res               866 tools/testing/selftests/net/tls.c 	int res;
res               878 tools/testing/selftests/net/tls.c 	res = fork();
res               879 tools/testing/selftests/net/tls.c 	EXPECT_NE(res, -1);
res               881 tools/testing/selftests/net/tls.c 	if (res) {
res               890 tools/testing/selftests/net/tls.c 			int res = send(self->fd, buf,
res               893 tools/testing/selftests/net/tls.c 			if (res == -1 && errno == EAGAIN) {
res               898 tools/testing/selftests/net/tls.c 			EXPECT_GE(res, 0);
res               899 tools/testing/selftests/net/tls.c 			left -= res;
res               906 tools/testing/selftests/net/tls.c 		EXPECT_EQ(res, pid2);
res               914 tools/testing/selftests/net/tls.c 			int res = recv(self->cfd, buf,
res               917 tools/testing/selftests/net/tls.c 			if (res == -1 && errno == EAGAIN) {
res               922 tools/testing/selftests/net/tls.c 			EXPECT_GE(res, 0);
res               923 tools/testing/selftests/net/tls.c 			left -= res;
res               979 tools/testing/selftests/net/tls.c 			int res;
res               981 tools/testing/selftests/net/tls.c 			res = recv(self->cfd, rb,
res               984 tools/testing/selftests/net/tls.c 			EXPECT_GE(res, 0);
res               985 tools/testing/selftests/net/tls.c 			left -= res;
res               991 tools/testing/selftests/net/tls.c 			int res;
res               995 tools/testing/selftests/net/tls.c 				res = sendfile(self->fd, fd, NULL,
res               998 tools/testing/selftests/net/tls.c 				res = send(self->fd, buf,
res              1001 tools/testing/selftests/net/tls.c 			EXPECT_GE(res, 0);
res              1002 tools/testing/selftests/net/tls.c 			left -= res;
res               121 tools/testing/selftests/networking/timestamping/timestamping.c 	int res;
res               123 tools/testing/selftests/networking/timestamping/timestamping.c 	res = sendto(sock, sync, sizeof(sync), 0,
res               126 tools/testing/selftests/networking/timestamping/timestamping.c 	if (res < 0)
res               131 tools/testing/selftests/networking/timestamping/timestamping.c 		       res);
res               134 tools/testing/selftests/networking/timestamping/timestamping.c static void printpacket(struct msghdr *msg, int res,
res               150 tools/testing/selftests/networking/timestamping/timestamping.c 	       res,
res               213 tools/testing/selftests/networking/timestamping/timestamping.c 				if (res < sizeof(sync))
res               215 tools/testing/selftests/networking/timestamping/timestamping.c 				else if (!memcmp(sync, data + res - sizeof(sync),
res               270 tools/testing/selftests/networking/timestamping/timestamping.c 	int res;
res               282 tools/testing/selftests/networking/timestamping/timestamping.c 	res = recvmsg(sock, &msg, recvmsg_flags|MSG_DONTWAIT);
res               283 tools/testing/selftests/networking/timestamping/timestamping.c 	if (res < 0) {
res               289 tools/testing/selftests/networking/timestamping/timestamping.c 		printpacket(&msg, res, data,
res               462 tools/testing/selftests/networking/timestamping/timestamping.c 		int res;
res               480 tools/testing/selftests/networking/timestamping/timestamping.c 			res = select(sock + 1, &readfs, 0, &errorfs, &delta);
res               484 tools/testing/selftests/networking/timestamping/timestamping.c 			       res,
res               485 tools/testing/selftests/networking/timestamping/timestamping.c 			       res < 0 ? strerror(errno) : "success");
res               486 tools/testing/selftests/networking/timestamping/timestamping.c 			if (res > 0) {
res                79 tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c 	size_t res;
res               130 tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c 	res = read(break_fd, &breaks, sizeof(unsigned long long));
res               131 tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c 	assert(res == sizeof(unsigned long long));
res                56 tools/testing/selftests/powerpc/ptrace/ptrace-tm-gpr.c 		: [res] "=r" (result), [texasr] "=r" (texasr)
res                64 tools/testing/selftests/powerpc/ptrace/ptrace-tm-spd-gpr.c 		: [res] "=r" (result), [texasr] "=r" (texasr)
res                70 tools/testing/selftests/powerpc/ptrace/ptrace-tm-spd-tar.c 		: [res] "=r" (result), [texasr] "=r" (texasr)
res                75 tools/testing/selftests/powerpc/ptrace/ptrace-tm-spd-vsx.c 		: [res] "=r" (result), [texasr] "=r" (texasr)
res                72 tools/testing/selftests/powerpc/ptrace/ptrace-tm-spr.c 		: [tfhar] "=r" (tfhar), [res] "=r" (result),
res                60 tools/testing/selftests/powerpc/ptrace/ptrace-tm-tar.c 		: [res] "=r" (result), [texasr] "=r" (texasr)
res                63 tools/testing/selftests/powerpc/ptrace/ptrace-tm-vsx.c 		: [res] "=r" (result), [texasr] "=r" (texasr)
res                63 tools/testing/selftests/powerpc/tm/tm-tar.c 			: [res]"=r"(result)
res                82 tools/testing/selftests/powerpc/tm/tm-vmxcopy.c 		: [res]"=&r"(aborted)
res              1093 tools/testing/selftests/seccomp/seccomp_bpf.c 	pid_t parent, res = 0;
res              1113 tools/testing/selftests/seccomp/seccomp_bpf.c 	res = syscall(__NR_getppid);
res              1114 tools/testing/selftests/seccomp/seccomp_bpf.c 	EXPECT_EQ(parent, res);
res              1119 tools/testing/selftests/seccomp/seccomp_bpf.c 	pid_t parent, res = 0;
res              1139 tools/testing/selftests/seccomp/seccomp_bpf.c 	res = syscall(__NR_getppid);
res              1140 tools/testing/selftests/seccomp/seccomp_bpf.c 	EXPECT_EQ(parent, res);
res              1142 tools/testing/selftests/seccomp/seccomp_bpf.c 	res = syscall(__NR_getpid);
res              1143 tools/testing/selftests/seccomp/seccomp_bpf.c 	EXPECT_EQ(0, res);
res               617 tools/testing/selftests/x86/sigreturn.c 		greg_t req = requested_regs[i], res = resulting_regs[i];
res               638 tools/testing/selftests/x86/sigreturn.c 			if (res == req)
res               641 tools/testing/selftests/x86/sigreturn.c 			if (cs_bits != 64 && ((res ^ req) & 0xFFFFFFFF) == 0) {
res               644 tools/testing/selftests/x86/sigreturn.c 				       (unsigned long long)res);
res               682 tools/testing/selftests/x86/sigreturn.c 		if (i == REG_CX && req != res) {
res               685 tools/testing/selftests/x86/sigreturn.c 			       (unsigned long long)res);
res               690 tools/testing/selftests/x86/sigreturn.c 		if (req != res && !ignore_reg) {
res               693 tools/testing/selftests/x86/sigreturn.c 			       (unsigned long long)res);
res               315 tools/usb/ffs-aio-example/simple/device_app/aio_simple.c 					printf("ev=in; ret=%lu\n", e[i].res);
res               318 tools/usb/ffs-aio-example/simple/device_app/aio_simple.c 					printf("ev=out; ret=%lu\n", e[i].res);
res               263 tools/usb/usbip/src/usbip_network.c 	struct addrinfo hints, *res, *rp;
res               272 tools/usb/usbip/src/usbip_network.c 	ret = getaddrinfo(hostname, service, &hints, &res);
res               280 tools/usb/usbip/src/usbip_network.c 	for (rp = res; rp; rp = rp->ai_next) {
res               297 tools/usb/usbip/src/usbip_network.c 	freeaddrinfo(res);
res               150 tools/virtio/ringtest/main.h void __read_once_size(const volatile void *p, void *res, int size)
res               153 tools/virtio/ringtest/main.h         case 1: *(unsigned char *)res = *(volatile unsigned char *)p; break;              \
res               154 tools/virtio/ringtest/main.h         case 2: *(unsigned short *)res = *(volatile unsigned short *)p; break;            \
res               155 tools/virtio/ringtest/main.h         case 4: *(unsigned int *)res = *(volatile unsigned int *)p; break;            \
res               156 tools/virtio/ringtest/main.h         case 8: *(unsigned long long *)res = *(volatile unsigned long long *)p; break;            \
res               159 tools/virtio/ringtest/main.h                 __builtin_memcpy((void *)res, (const void *)p, size);   \
res               164 tools/virtio/ringtest/main.h static __always_inline void __write_once_size(volatile void *p, void *res, int size)
res               167 tools/virtio/ringtest/main.h 	case 1: *(volatile unsigned char *)p = *(unsigned char *)res; break;
res               168 tools/virtio/ringtest/main.h 	case 2: *(volatile unsigned short *)p = *(unsigned short *)res; break;
res               169 tools/virtio/ringtest/main.h 	case 4: *(volatile unsigned int *)p = *(unsigned int *)res; break;
res               170 tools/virtio/ringtest/main.h 	case 8: *(volatile unsigned long long *)p = *(unsigned long long *)res; break;
res               173 tools/virtio/ringtest/main.h 		__builtin_memcpy((void *)p, (const void *)res, size);