arch/alpha/include/asm/pci.h
24
struct resource *io_space;
arch/alpha/include/asm/pci.h
25
struct resource *mem_space;
arch/alpha/kernel/console.c
23
static struct resource alpha_vga = {
arch/alpha/kernel/core_cia.c
690
struct resource *hae_mem = alloc_resource();
arch/alpha/kernel/core_mcpcia.c
292
struct resource *io, *mem, *hae_mem;
arch/alpha/kernel/core_t2.c
409
struct resource *hae_mem;
arch/alpha/kernel/pci-sysfs.c
144
pcibios_resource_to_bus(pdev->bus, &bar, &pdev->resource[num]);
arch/alpha/kernel/pci-sysfs.c
168
res_attr->private = &pdev->resource[num];
arch/alpha/kernel/pci-sysfs.c
184
if (pdev->resource[num].flags & IORESOURCE_MEM) {
arch/alpha/kernel/pci-sysfs.c
71
struct resource *res = attr->private;
arch/alpha/kernel/pci-sysfs.c
77
if (res == &pdev->resource[i])
arch/alpha/kernel/pci.c
127
pcibios_align_resource(void *data, const struct resource *res,
arch/alpha/kernel/pci.c
291
struct resource *r;
arch/alpha/kernel/pci.c
402
struct resource * __init
arch/alpha/kernel/pci.c
405
return memblock_alloc_or_panic(sizeof(struct resource), SMP_CACHE_BYTES);
arch/alpha/kernel/pci.c
78
dev->resource[2].start = dev->resource[3].start = 0;
arch/alpha/kernel/pci.c
79
dev->resource[2].end = dev->resource[3].end = 0;
arch/alpha/kernel/pci.c
80
dev->resource[2].flags = dev->resource[3].flags = 0;
arch/alpha/kernel/pci.c
82
dev->resource[0].start = 0x170;
arch/alpha/kernel/pci.c
83
dev->resource[0].end = 0x177;
arch/alpha/kernel/pci.c
84
dev->resource[1].start = 0x376;
arch/alpha/kernel/pci.c
85
dev->resource[1].end = 0x376;
arch/alpha/kernel/pci_impl.h
173
extern struct resource *alloc_resource(void);
arch/alpha/kernel/setup.c
212
static struct resource standard_io_resources[] = {
arch/alpha/kernel/setup.c
223
struct resource *io = &ioport_resource;
arch/alpha/kernel/sys_nautilus.c
187
static struct resource irongate_mem = {
arch/alpha/kernel/sys_nautilus.c
191
static struct resource busn_resource = {
arch/arm/common/locomo.c
356
__locomo_probe(struct device *me, struct resource *mem, int irq)
arch/arm/common/locomo.c
488
struct resource *mem;
arch/arm/common/sa1111.c
1118
struct resource *mem;
arch/arm/common/sa1111.c
733
sa1111_init_one_child(struct sa1111 *sachip, struct resource *parent,
arch/arm/common/sa1111.c
792
static int __sa1111_probe(struct device *me, struct resource *mem, int irq)
arch/arm/common/scoop.c
182
struct resource *mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
arch/arm/include/asm/ecard.h
130
#define ecard_resource_start(ec,nr) ((ec)->resource[nr].start)
arch/arm/include/asm/ecard.h
131
#define ecard_resource_end(ec,nr) ((ec)->resource[nr].end)
arch/arm/include/asm/ecard.h
132
#define ecard_resource_len(ec,nr) ((ec)->resource[nr].end - \
arch/arm/include/asm/ecard.h
133
(ec)->resource[nr].start + 1)
arch/arm/include/asm/ecard.h
134
#define ecard_resource_flags(ec,nr) ((ec)->resource[nr].flags)
arch/arm/include/asm/ecard.h
143
struct resource resource[ECARD_NUM_RESOURCES];
arch/arm/include/asm/hardware/sa1111.h
388
struct resource res;
arch/arm/include/asm/io.h
181
struct resource;
arch/arm/include/asm/io.h
184
int pci_remap_iospace(const struct resource *res, phys_addr_t phys_addr);
arch/arm/include/asm/mach/pci.h
41
struct resource io_res;
arch/arm/kernel/bios32.c
134
dev->resource[0].end -= dev->resource[0].start;
arch/arm/kernel/bios32.c
135
dev->resource[0].start = 0;
arch/arm/kernel/bios32.c
147
struct resource *r;
arch/arm/kernel/bios32.c
165
struct resource *r;
arch/arm/kernel/bios32.c
222
dev->resource[0].start = 0;
arch/arm/kernel/bios32.c
223
dev->resource[0].end = 0;
arch/arm/kernel/bios32.c
224
dev->resource[0].flags = 0;
arch/arm/kernel/bios32.c
226
dev->resource[1].start = 0;
arch/arm/kernel/bios32.c
227
dev->resource[1].end = 0;
arch/arm/kernel/bios32.c
228
dev->resource[1].flags = 0;
arch/arm/kernel/bios32.c
562
resource_size_t pcibios_align_resource(void *data, const struct resource *res,
arch/arm/kernel/bios32.c
88
dev->resource[0].end -= dev->resource[0].start;
arch/arm/kernel/bios32.c
89
dev->resource[0].start = 0;
arch/arm/kernel/setup.c
1051
static struct resource crashk_boot_res = {
arch/arm/kernel/setup.c
163
static struct resource mem_res[] = {
arch/arm/kernel/setup.c
188
static struct resource io_res[] = {
arch/arm/kernel/setup.c
858
struct resource *res;
arch/arm/kernel/tcm.c
40
static struct resource dtcm_res = {
arch/arm/kernel/tcm.c
47
static struct resource itcm_res = {
arch/arm/mach-bcm/bcm_kona_smc.c
34
struct resource res;
arch/arm/mach-clps711x/board-dt.c
41
static const struct resource clps711x_cpuidle_res =
arch/arm/mach-davinci/da850.c
288
static struct resource da850_vpif_display_resource[] = {
arch/arm/mach-davinci/da850.c
303
.resource = da850_vpif_display_resource,
arch/arm/mach-davinci/da850.c
307
static struct resource da850_vpif_capture_resource[] = {
arch/arm/mach-davinci/da850.c
327
.resource = da850_vpif_capture_resource,
arch/arm/mach-dove/common.c
278
static struct resource dove_sdio0_resources[] = {
arch/arm/mach-dove/common.c
297
.resource = dove_sdio0_resources,
arch/arm/mach-dove/common.c
306
static struct resource dove_sdio1_resources[] = {
arch/arm/mach-dove/common.c
325
.resource = dove_sdio1_resources,
arch/arm/mach-dove/common.c
374
static struct resource orion_wdt_resource[] = {
arch/arm/mach-dove/common.c
383
.resource = orion_wdt_resource,
arch/arm/mach-dove/pcie.c
145
struct resource *r;
arch/arm/mach-dove/pcie.c
28
struct resource res;
arch/arm/mach-dove/pcie.c
38
struct resource realio;
arch/arm/mach-exynos/exynos.c
51
struct resource res;
arch/arm/mach-footbridge/dc21285.c
263
struct resource *res;
arch/arm/mach-footbridge/dc21285.c
265
res = kzalloc_objs(struct resource, 2);
arch/arm/mach-footbridge/dma-isa.c
137
static struct resource dma_resources[] = { {
arch/arm/mach-footbridge/isa-irq.c
105
static struct resource pic2_resource = {
arch/arm/mach-footbridge/isa-irq.c
99
static struct resource pic1_resource = {
arch/arm/mach-footbridge/isa.c
15
static struct resource rtc_resources[] = {
arch/arm/mach-footbridge/isa.c
31
.resource = rtc_resources,
arch/arm/mach-footbridge/isa.c
35
static struct resource serial_resources[] = {
arch/arm/mach-footbridge/isa.c
74
.resource = serial_resources,
arch/arm/mach-highbank/highbank.c
70
struct resource *res;
arch/arm/mach-hisi/platmcpm.c
268
struct resource fab_res;
arch/arm/mach-imx/pm-imx6.c
443
struct resource res;
arch/arm/mach-mv78xx0/pcie.c
101
struct resource realio;
arch/arm/mach-mv78xx0/pcie.c
189
struct resource *r;
arch/arm/mach-mv78xx0/pcie.c
30
struct resource res;
arch/arm/mach-mv78xx0/pcie.c
35
static struct resource pcie_io_space;
arch/arm/mach-mvebu/coherency.c
119
struct resource res;
arch/arm/mach-mvebu/cpu-reset.c
43
struct resource res;
arch/arm/mach-mvebu/kirkwood.c
27
static struct resource kirkwood_cpufreq_resources[] = {
arch/arm/mach-mvebu/kirkwood.c
39
.resource = kirkwood_cpufreq_resources,
arch/arm/mach-mvebu/kirkwood.c
47
static struct resource kirkwood_cpuidle_resource[] = {
arch/arm/mach-mvebu/kirkwood.c
58
.resource = kirkwood_cpuidle_resource,
arch/arm/mach-mvebu/platsmp.c
115
struct resource res;
arch/arm/mach-mvebu/pm.c
237
struct resource res;
arch/arm/mach-mvebu/pmsu.c
161
struct resource res;
arch/arm/mach-mvebu/system-controller.c
166
struct resource res;
arch/arm/mach-omap1/ams-delta-fiq.c
204
serio->resource[0].start = gpiod_to_irq(clk);
arch/arm/mach-omap1/ams-delta-fiq.c
205
serio->resource[0].end = serio->resource[0].start;
arch/arm/mach-omap1/board-ams-delta.c
168
static struct resource latch1_resources[] = {
arch/arm/mach-omap1/board-ams-delta.c
204
static struct resource latch2_resources[] = {
arch/arm/mach-omap1/board-ams-delta.c
358
static struct resource ams_delta_kp_resources[] = {
arch/arm/mach-omap1/board-ams-delta.c
385
.resource = ams_delta_kp_resources,
arch/arm/mach-omap1/board-ams-delta.c
475
static struct resource ams_delta_serio_resources[] = {
arch/arm/mach-omap1/board-ams-delta.c
500
.resource = ams_delta_serio_resources,
arch/arm/mach-omap1/board-nokia770.c
101
.resource = nokia770_kp_resources,
arch/arm/mach-omap1/board-nokia770.c
74
static struct resource nokia770_kp_resources[] = {
arch/arm/mach-omap1/board-osk.c
109
static struct resource osk_flash_resource = {
arch/arm/mach-omap1/board-osk.c
121
.resource = &osk_flash_resource,
arch/arm/mach-omap1/board-osk.c
130
static struct resource osk5912_smc91x_resources[] = {
arch/arm/mach-omap1/board-osk.c
148
.resource = osk5912_smc91x_resources,
arch/arm/mach-omap1/board-osk.c
151
static struct resource osk5912_cf_resources[] = {
arch/arm/mach-omap1/board-osk.c
164
.resource = osk5912_cf_resources,
arch/arm/mach-omap1/board-osk.c
295
struct resource *res = &osk5912_cf_resources[1];
arch/arm/mach-omap1/board-palmte.c
127
static struct resource palmte_rom_resource = {
arch/arm/mach-omap1/board-palmte.c
140
.resource = &palmte_rom_resource,
arch/arm/mach-omap1/board-palmte.c
81
static struct resource palmte_kp_resources[] = {
arch/arm/mach-omap1/board-palmte.c
96
.resource = palmte_kp_resources,
arch/arm/mach-omap1/board-sx1.c
195
static struct resource sx1_kp_resources[] = {
arch/arm/mach-omap1/board-sx1.c
222
.resource = sx1_kp_resources,
arch/arm/mach-omap1/board-sx1.c
266
static struct resource sx1_new_flash_resource = {
arch/arm/mach-omap1/board-sx1.c
279
.resource = &sx1_new_flash_resource,
arch/arm/mach-omap1/devices.c
127
struct resource res[OMAP_MMC_NR_RES];
arch/arm/mach-omap1/devices.c
134
memset(res, 0, OMAP_MMC_NR_RES * sizeof(struct resource));
arch/arm/mach-omap1/devices.c
226
static struct resource uwire_resources[] = {
arch/arm/mach-omap1/devices.c
238
.resource = uwire_resources,
arch/arm/mach-omap1/devices.c
260
static struct resource omap1_rng_resources[] = {
arch/arm/mach-omap1/devices.c
272
.resource = omap1_rng_resources,
arch/arm/mach-omap1/devices.c
327
static struct resource wdt_resources[] = {
arch/arm/mach-omap1/devices.c
33
static struct resource rtc_resources[] = {
arch/arm/mach-omap1/devices.c
339
.resource = wdt_resources,
arch/arm/mach-omap1/devices.c
53
.resource = rtc_resources,
arch/arm/mach-omap1/dma.c
79
static struct resource res[] __initdata = {
arch/arm/mach-omap1/fb.c
33
static struct resource omap_fb_resources[] = {
arch/arm/mach-omap1/fb.c
55
.resource = omap_fb_resources,
arch/arm/mach-omap1/gpio15xx.c
21
static struct resource omap15xx_mpu_gpio_resources[] = {
arch/arm/mach-omap1/gpio15xx.c
58
.resource = omap15xx_mpu_gpio_resources,
arch/arm/mach-omap1/gpio15xx.c
62
static struct resource omap15xx_gpio_resources[] = {
arch/arm/mach-omap1/gpio15xx.c
98
.resource = omap15xx_gpio_resources,
arch/arm/mach-omap1/gpio16xx.c
109
.resource = omap16xx_gpio1_resources,
arch/arm/mach-omap1/gpio16xx.c
113
static struct resource omap16xx_gpio2_resources[] = {
arch/arm/mach-omap1/gpio16xx.c
137
.resource = omap16xx_gpio2_resources,
arch/arm/mach-omap1/gpio16xx.c
141
static struct resource omap16xx_gpio3_resources[] = {
arch/arm/mach-omap1/gpio16xx.c
165
.resource = omap16xx_gpio3_resources,
arch/arm/mach-omap1/gpio16xx.c
169
static struct resource omap16xx_gpio4_resources[] = {
arch/arm/mach-omap1/gpio16xx.c
193
.resource = omap16xx_gpio4_resources,
arch/arm/mach-omap1/gpio16xx.c
213
struct resource *res;
arch/arm/mach-omap1/gpio16xx.c
28
static struct resource omap16xx_mpu_gpio_resources[] = {
arch/arm/mach-omap1/gpio16xx.c
65
.resource = omap16xx_mpu_gpio_resources,
arch/arm/mach-omap1/gpio16xx.c
69
static struct resource omap16xx_gpio1_resources[] = {
arch/arm/mach-omap1/i2c.c
20
static struct resource i2c_resources[2] = {
arch/arm/mach-omap1/i2c.c
36
struct resource *res;
arch/arm/mach-omap1/i2c.c
53
pdev->resource = res;
arch/arm/mach-omap1/mcbsp.c
192
struct resource omap16xx_mcbsp_res[][6] = {
arch/arm/mach-omap1/mcbsp.c
292
static void omap_mcbsp_register_board_cfg(struct resource *res, int res_count,
arch/arm/mach-omap1/mcbsp.c
92
struct resource omap15xx_mcbsp_res[][6] = {
arch/arm/mach-omap1/timer.c
113
memset(res, 0, 2 * sizeof(struct resource));
arch/arm/mach-omap1/timer.c
62
struct resource res[2];
arch/arm/mach-omap1/usb.c
160
static struct resource udc_resources[] = {
arch/arm/mach-omap1/usb.c
188
.resource = udc_resources,
arch/arm/mach-omap1/usb.c
207
static struct resource ohci_resources[] = {
arch/arm/mach-omap1/usb.c
227
.resource = ohci_resources,
arch/arm/mach-omap1/usb.c
241
static struct resource otg_resources[] = {
arch/arm/mach-omap1/usb.c
257
.resource = otg_resources,
arch/arm/mach-omap2/cm_common.c
315
struct resource res;
arch/arm/mach-omap2/devices.c
39
static struct resource omap_vout_resource[3 - CONFIG_FB_OMAP2_NUM_FBS] = {
arch/arm/mach-omap2/devices.c
42
static struct resource omap_vout_resource[2] = {
arch/arm/mach-omap2/devices.c
51
.resource = &omap_vout_resource[0],
arch/arm/mach-omap2/fb.c
31
static const struct resource omap2_vrfb_resources[] = {
arch/arm/mach-omap2/fb.c
39
static const struct resource omap3_vrfb_resources[] = {
arch/arm/mach-omap2/fb.c
58
const struct resource *res;
arch/arm/mach-omap2/omap_device.c
137
struct resource res;
arch/arm/mach-omap2/omap_device.c
189
struct resource *r = &pdev->resource[i];
arch/arm/mach-omap2/omap_hwmod.c
2166
struct resource *res)
arch/arm/mach-omap2/omap_hwmod.c
2194
struct resource *res)
arch/arm/mach-omap2/omap_hwmod.c
2244
struct resource res;
arch/arm/mach-omap2/omap_hwmod.c
733
struct resource res;
arch/arm/mach-omap2/omap_hwmod.h
620
struct resource *res);
arch/arm/mach-omap2/prm_common.c
705
struct resource res;
arch/arm/mach-omap2/usb-tusb6010.c
125
static struct resource tusb_resources[] = {
arch/arm/mach-omap2/usb-tusb6010.c
147
.resource = tusb_resources,
arch/arm/mach-orion5x/common.c
174
static struct resource orion_wdt_resource[] = {
arch/arm/mach-orion5x/common.c
183
.resource = orion_wdt_resource,
arch/arm/mach-orion5x/dns323-setup.c
153
static struct resource dns323_nor_flash_resource = {
arch/arm/mach-orion5x/dns323-setup.c
165
.resource = &dns323_nor_flash_resource,
arch/arm/mach-orion5x/kurobox_pro-setup.c
111
.resource = &kurobox_pro_nor_flash_resource,
arch/arm/mach-orion5x/kurobox_pro-setup.c
66
static struct resource kurobox_pro_nand_resource = {
arch/arm/mach-orion5x/kurobox_pro-setup.c
86
.resource = &kurobox_pro_nand_resource,
arch/arm/mach-orion5x/kurobox_pro-setup.c
98
static struct resource kurobox_pro_nor_flash_resource = {
arch/arm/mach-orion5x/mv2120-setup.c
63
static struct resource mv2120_nor_flash_resource = {
arch/arm/mach-orion5x/mv2120-setup.c
75
.resource = &mv2120_nor_flash_resource,
arch/arm/mach-orion5x/net2big-setup.c
64
static struct resource net2big_nor_flash_resource = {
arch/arm/mach-orion5x/net2big-setup.c
78
.resource = &net2big_nor_flash_resource,
arch/arm/mach-orion5x/pci.c
141
struct resource *res;
arch/arm/mach-orion5x/pci.c
142
struct resource realio;
arch/arm/mach-orion5x/pci.c
172
res = kzalloc_obj(struct resource);
arch/arm/mach-orion5x/pci.c
468
struct resource *res;
arch/arm/mach-orion5x/pci.c
469
struct resource realio;
arch/arm/mach-orion5x/pci.c
493
res = kzalloc_obj(struct resource);
arch/arm/mach-orion5x/pci.c
525
struct resource *r;
arch/arm/mach-orion5x/terastation_pro2-setup.c
54
static struct resource tsp2_nor_flash_resource = {
arch/arm/mach-orion5x/terastation_pro2-setup.c
67
.resource = &tsp2_nor_flash_resource,
arch/arm/mach-orion5x/ts209-setup.c
81
static struct resource qnap_ts209_nor_flash_resource = {
arch/arm/mach-orion5x/ts209-setup.c
93
.resource = &qnap_ts209_nor_flash_resource,
arch/arm/mach-orion5x/ts409-setup.c
102
static struct resource qnap_ts409_nor_flash_resource = {
arch/arm/mach-orion5x/ts409-setup.c
113
.resource = &qnap_ts409_nor_flash_resource,
arch/arm/mach-orion5x/ts78xx-setup.c
248
static struct resource ts78xx_ts_nand_resources
arch/arm/mach-orion5x/ts78xx-setup.c
257
.resource = &ts78xx_ts_nand_resources,
arch/arm/mach-orion5x/ts78xx-setup.c
287
static struct resource ts78xx_ts_rng_resource
arch/arm/mach-orion5x/ts78xx-setup.c
300
.resource = &ts78xx_ts_rng_resource,
arch/arm/mach-orion5x/ts78xx-setup.c
81
static struct resource ts78xx_ts_rtc_resources[] = {
arch/arm/mach-orion5x/ts78xx-setup.c
89
.resource = ts78xx_ts_rtc_resources,
arch/arm/mach-pxa/devices.c
108
.resource = pxa2xx_udc_resources,
arch/arm/mach-pxa/devices.c
119
.resource = pxa2xx_udc_resources,
arch/arm/mach-pxa/devices.c
127
static struct resource pxafb_resources[] = {
arch/arm/mach-pxa/devices.c
150
.resource = pxafb_resources,
arch/arm/mach-pxa/devices.c
159
static struct resource pxa_resource_ffuart[] = {
arch/arm/mach-pxa/devices.c
174
.resource = pxa_resource_ffuart,
arch/arm/mach-pxa/devices.c
183
static struct resource pxa_resource_btuart[] = {
arch/arm/mach-pxa/devices.c
198
.resource = pxa_resource_btuart,
arch/arm/mach-pxa/devices.c
207
static struct resource pxa_resource_stuart[] = {
arch/arm/mach-pxa/devices.c
222
.resource = pxa_resource_stuart,
arch/arm/mach-pxa/devices.c
231
static struct resource pxa_resource_hwuart[] = {
arch/arm/mach-pxa/devices.c
246
.resource = pxa_resource_hwuart,
arch/arm/mach-pxa/devices.c
258
static struct resource pxai2c_resources[] = {
arch/arm/mach-pxa/devices.c
273
.resource = pxai2c_resources,
arch/arm/mach-pxa/devices.c
283
static struct resource pxa27x_resources_i2c_power[] = {
arch/arm/mach-pxa/devices.c
298
.resource = pxa27x_resources_i2c_power,
arch/arm/mach-pxa/devices.c
303
static struct resource pxai2s_resources[] = {
arch/arm/mach-pxa/devices.c
318
.resource = pxai2s_resources,
arch/arm/mach-pxa/devices.c
347
static struct resource pxa_rtc_resources[] = {
arch/arm/mach-pxa/devices.c
371
.resource = pxa_rtc_resources,
arch/arm/mach-pxa/devices.c
378
.resource = pxa_rtc_resources,
arch/arm/mach-pxa/devices.c
38
static struct resource pxa_resource_pmu = {
arch/arm/mach-pxa/devices.c
383
static struct resource pxa25x_resource_pwm0[] = {
arch/arm/mach-pxa/devices.c
394
.resource = pxa25x_resource_pwm0,
arch/arm/mach-pxa/devices.c
398
static struct resource pxa25x_resource_pwm1[] = {
arch/arm/mach-pxa/devices.c
409
.resource = pxa25x_resource_pwm1,
arch/arm/mach-pxa/devices.c
415
static struct resource pxa25x_resource_ssp[] = {
arch/arm/mach-pxa/devices.c
435
.resource = pxa25x_resource_ssp,
arch/arm/mach-pxa/devices.c
441
static struct resource pxa25x_resource_nssp[] = {
arch/arm/mach-pxa/devices.c
461
.resource = pxa25x_resource_nssp,
arch/arm/mach-pxa/devices.c
467
static struct resource pxa25x_resource_assp[] = {
arch/arm/mach-pxa/devices.c
47
.resource = &pxa_resource_pmu,
arch/arm/mach-pxa/devices.c
488
.resource = pxa25x_resource_assp,
arch/arm/mach-pxa/devices.c
496
static struct resource pxa27x_resource_ohci[] = {
arch/arm/mach-pxa/devices.c
51
static const struct resource pxamci_resources[] = {
arch/arm/mach-pxa/devices.c
517
.resource = pxa27x_resource_ohci,
arch/arm/mach-pxa/devices.c
529
static struct resource pxa27x_resource_ssp1[] = {
arch/arm/mach-pxa/devices.c
549
.resource = pxa27x_resource_ssp1,
arch/arm/mach-pxa/devices.c
555
static struct resource pxa27x_resource_ssp2[] = {
arch/arm/mach-pxa/devices.c
575
.resource = pxa27x_resource_ssp2,
arch/arm/mach-pxa/devices.c
581
static struct resource pxa27x_resource_ssp3[] = {
arch/arm/mach-pxa/devices.c
601
.resource = pxa27x_resource_ssp3,
arch/arm/mach-pxa/devices.c
605
static struct resource pxa27x_resource_pwm0[] = {
arch/arm/mach-pxa/devices.c
616
.resource = pxa27x_resource_pwm0,
arch/arm/mach-pxa/devices.c
620
static struct resource pxa27x_resource_pwm1[] = {
arch/arm/mach-pxa/devices.c
631
.resource = pxa27x_resource_pwm1,
arch/arm/mach-pxa/devices.c
641
struct resource pxa_resource_gpio[] = {
arch/arm/mach-pxa/devices.c
673
.resource = pxa_resource_gpio,
arch/arm/mach-pxa/devices.c
683
.resource = pxa_resource_gpio,
arch/arm/mach-pxa/devices.c
690
static struct resource pxa_dma_resource[] = {
arch/arm/mach-pxa/devices.c
713
.resource = pxa_dma_resource,
arch/arm/mach-pxa/devices.c
723
struct resource res = DEFINE_RES_MEM(OST_PHYS, OST_LEN);
arch/arm/mach-pxa/devices.c
90
static struct resource pxa2xx_udc_resources[] = {
arch/arm/mach-pxa/gumstix.c
48
static struct resource flash_resource = {
arch/arm/mach-pxa/gumstix.c
80
.resource = &flash_resource,
arch/arm/mach-pxa/irq.c
240
struct resource res;
arch/arm/mach-pxa/spitz.c
152
static struct resource spitz_scoop_1_resources[] = {
arch/arm/mach-pxa/spitz.c
175
.resource = spitz_scoop_1_resources,
arch/arm/mach-pxa/spitz.c
179
static struct resource spitz_scoop_2_resources[] = {
arch/arm/mach-pxa/spitz.c
202
.resource = spitz_scoop_2_resources,
arch/arm/mach-pxa/spitz.c
900
static struct resource spitz_nand_resources[] = {
arch/arm/mach-pxa/spitz.c
911
.resource = spitz_nand_resources,
arch/arm/mach-pxa/spitz.c
949
static struct resource spitz_rom_resources[] = {
arch/arm/mach-pxa/spitz.c
960
.resource = spitz_rom_resources,
arch/arm/mach-rockchip/platsmp.c
170
struct resource res;
arch/arm/mach-rockchip/pm.c
227
struct resource res;
arch/arm/mach-rpc/ecard.c
122
struct resource *res;
arch/arm/mach-rpc/ecard.c
125
? &ec->resource[ECARD_RES_MEMC]
arch/arm/mach-rpc/ecard.c
127
? &ec->resource[ECARD_RES_EASI]
arch/arm/mach-rpc/ecard.c
128
: &ec->resource[ECARD_RES_IOCSYNC];
arch/arm/mach-rpc/ecard.c
142
ec->resource[ECARD_RES_MEMC].start;
arch/arm/mach-rpc/ecard.c
182
? &ec->resource[ECARD_RES_EASI]
arch/arm/mach-rpc/ecard.c
183
: &ec->resource[ECARD_RES_IOCSYNC])->start;
arch/arm/mach-rpc/ecard.c
672
(ec)->resource[nr].name = dev_name(&ec->dev); \
arch/arm/mach-rpc/ecard.c
673
(ec)->resource[nr].start = st; \
arch/arm/mach-rpc/ecard.c
674
(ec)->resource[nr].end = (st) + (sz) - 1; \
arch/arm/mach-rpc/ecard.c
675
(ec)->resource[nr].flags = IORESOURCE_MEM; \
arch/arm/mach-rpc/ecard.c
683
if (ec->resource[i].flags)
arch/arm/mach-rpc/ecard.c
684
release_resource(&ec->resource[i]);
arch/arm/mach-rpc/ecard.c
740
if (ec->resource[i].flags &&
arch/arm/mach-rpc/ecard.c
741
request_resource(&iomem_resource, &ec->resource[i])) {
arch/arm/mach-rpc/ecard.c
743
ec->resource[i].end -= ec->resource[i].start;
arch/arm/mach-rpc/ecard.c
744
ec->resource[i].start = 0;
arch/arm/mach-rpc/ecard.c
745
ec->resource[i].flags = 0;
arch/arm/mach-rpc/ecard.c
775
ec->resource[i].start,
arch/arm/mach-rpc/ecard.c
776
ec->resource[i].end,
arch/arm/mach-rpc/ecard.c
777
ec->resource[i].flags);
arch/arm/mach-rpc/ecard.c
781
static DEVICE_ATTR_RO(resource);
arch/arm/mach-rpc/riscpc.c
101
static struct resource acornfb_resources[] = {
arch/arm/mach-rpc/riscpc.c
114
.resource = acornfb_resources,
arch/arm/mach-rpc/riscpc.c
117
static struct resource iomd_resources[] = {
arch/arm/mach-rpc/riscpc.c
125
.resource = iomd_resources,
arch/arm/mach-rpc/riscpc.c
128
static struct resource iomd_kart_resources[] = {
arch/arm/mach-rpc/riscpc.c
140
.resource = iomd_kart_resources,
arch/arm/mach-rpc/riscpc.c
167
static struct resource pata_resources[] = {
arch/arm/mach-rpc/riscpc.c
177
.resource = pata_resources,
arch/arm/mach-s3c/dev-audio-s3c64xx.c
49
static struct resource s3c64xx_iis0_resource[] = {
arch/arm/mach-s3c/dev-audio-s3c64xx.c
61
.resource = s3c64xx_iis0_resource,
arch/arm/mach-s3c/dev-audio-s3c64xx.c
68
static struct resource s3c64xx_iis1_resource[] = {
arch/arm/mach-s3c/dev-audio-s3c64xx.c
80
.resource = s3c64xx_iis1_resource,
arch/arm/mach-s3c/dev-uart-s3c64xx.c
27
static struct resource s3c64xx_uart0_resource[] = {
arch/arm/mach-s3c/dev-uart-s3c64xx.c
32
static struct resource s3c64xx_uart1_resource[] = {
arch/arm/mach-s3c/dev-uart-s3c64xx.c
37
static struct resource s3c6xx_uart2_resource[] = {
arch/arm/mach-s3c/dev-uart-s3c64xx.c
42
static struct resource s3c64xx_uart3_resource[] = {
arch/arm/mach-s3c/devs.c
112
static struct resource s3c_hsmmc1_resource[] = {
arch/arm/mach-s3c/devs.c
127
.resource = s3c_hsmmc1_resource,
arch/arm/mach-s3c/devs.c
144
static struct resource s3c_hsmmc2_resource[] = {
arch/arm/mach-s3c/devs.c
159
.resource = s3c_hsmmc2_resource,
arch/arm/mach-s3c/devs.c
174
static struct resource s3c_hsmmc3_resource[] = {
arch/arm/mach-s3c/devs.c
189
.resource = s3c_hsmmc3_resource,
arch/arm/mach-s3c/devs.c
205
static struct resource s3c_i2c0_resource[] = {
arch/arm/mach-s3c/devs.c
214
.resource = s3c_i2c0_resource,
arch/arm/mach-s3c/devs.c
240
static struct resource s3c_i2c1_resource[] = {
arch/arm/mach-s3c/devs.c
249
.resource = s3c_i2c1_resource,
arch/arm/mach-s3c/devs.c
271
static struct resource samsung_keypad_resources[] = {
arch/arm/mach-s3c/devs.c
280
.resource = samsung_keypad_resources,
arch/arm/mach-s3c/devs.c
297
static struct resource samsung_pwm_resource[] = {
arch/arm/mach-s3c/devs.c
305
.resource = samsung_pwm_resource,
arch/arm/mach-s3c/devs.c
317
static struct resource s3c_usb_resource[] = {
arch/arm/mach-s3c/devs.c
326
.resource = s3c_usb_resource,
arch/arm/mach-s3c/devs.c
337
static struct resource s3c_usb_hsotg_resources[] = {
arch/arm/mach-s3c/devs.c
346
.resource = s3c_usb_hsotg_resources,
arch/arm/mach-s3c/devs.c
367
static struct resource s3c64xx_spi0_resource[] = {
arch/arm/mach-s3c/devs.c
376
.resource = s3c64xx_spi0_resource,
arch/arm/mach-s3c/devs.c
54
static struct resource s3c_fb_resource[] = {
arch/arm/mach-s3c/devs.c
65
.resource = s3c_fb_resource,
arch/arm/mach-s3c/devs.c
82
static struct resource s3c_hsmmc_resource[] = {
arch/arm/mach-s3c/devs.c
97
.resource = s3c_hsmmc_resource,
arch/arm/mach-s3c/devs.h
18
struct resource *resources;
arch/arm/mach-s3c/init.c
103
platdev->resource = resp->resources;
arch/arm/mach-s3c/mach-crag6410.c
232
static struct resource crag6410_dm9k_resource[] = {
arch/arm/mach-s3c/mach-crag6410.c
247
.resource = crag6410_dm9k_resource,
arch/arm/mach-s3c/mach-crag6410.c
251
static struct resource crag6410_mmgpio_resource[] = {
arch/arm/mach-sa1100/assabet.c
294
static struct resource assabet_flash_resources[] = {
arch/arm/mach-sa1100/assabet.c
406
static struct resource neponset_resources[] = {
arch/arm/mach-sa1100/collie.c
212
static struct resource locomo_resources[] = {
arch/arm/mach-sa1100/collie.c
228
.resource = locomo_resources,
arch/arm/mach-sa1100/collie.c
324
static struct resource collie_flash_resources[] = {
arch/arm/mach-sa1100/collie.c
56
static struct resource collie_scoop_resources[] = {
arch/arm/mach-sa1100/collie.c
73
.resource = collie_scoop_resources,
arch/arm/mach-sa1100/generic.c
118
static struct resource sa11x0udc_resources[] = {
arch/arm/mach-sa1100/generic.c
133
.resource = sa11x0udc_resources,
arch/arm/mach-sa1100/generic.c
136
static struct resource sa11x0uart1_resources[] = {
arch/arm/mach-sa1100/generic.c
145
.resource = sa11x0uart1_resources,
arch/arm/mach-sa1100/generic.c
148
static struct resource sa11x0uart3_resources[] = {
arch/arm/mach-sa1100/generic.c
157
.resource = sa11x0uart3_resources,
arch/arm/mach-sa1100/generic.c
160
static struct resource sa11x0mcp_resources[] = {
arch/arm/mach-sa1100/generic.c
176
.resource = sa11x0mcp_resources,
arch/arm/mach-sa1100/generic.c
194
static struct resource sa11x0ssp_resources[] = {
arch/arm/mach-sa1100/generic.c
209
.resource = sa11x0ssp_resources,
arch/arm/mach-sa1100/generic.c
212
static struct resource sa11x0fb_resources[] = {
arch/arm/mach-sa1100/generic.c
224
.resource = sa11x0fb_resources,
arch/arm/mach-sa1100/generic.c
245
struct resource *res, int nr)
arch/arm/mach-sa1100/generic.c
248
sa11x0mtd_device.resource = res;
arch/arm/mach-sa1100/generic.c
253
static struct resource sa1100_rtc_resources[] = {
arch/arm/mach-sa1100/generic.c
263
.resource = sa1100_rtc_resources,
arch/arm/mach-sa1100/generic.c
266
static struct resource sa11x0dma_resources[] = {
arch/arm/mach-sa1100/generic.c
286
.resource = sa11x0dma_resources,
arch/arm/mach-sa1100/generic.c
300
struct resource wdt_res = DEFINE_RES_MEM(0x90000000, 0x20);
arch/arm/mach-sa1100/generic.c
395
static struct resource irq_resource =
arch/arm/mach-sa1100/generic.h
28
struct resource;
arch/arm/mach-sa1100/generic.h
31
struct resource *res, int nr);
arch/arm/mach-sa1100/h3xxx.c
136
static struct resource egpio_resources[] = {
arch/arm/mach-sa1100/h3xxx.c
160
.resource = egpio_resources,
arch/arm/mach-sa1100/h3xxx.c
202
static struct resource h3xxx_micro_resources[] = {
arch/arm/mach-sa1100/h3xxx.c
211
.resource = h3xxx_micro_resources,
arch/arm/mach-sa1100/h3xxx.c
79
static struct resource h3xxx_flash_resource =
arch/arm/mach-sa1100/jornada720.c
174
static struct resource s1d13xxxfb_resources[] = {
arch/arm/mach-sa1100/jornada720.c
186
.resource = s1d13xxxfb_resources,
arch/arm/mach-sa1100/jornada720.c
200
static struct resource sa1111_resources[] = {
arch/arm/mach-sa1100/jornada720.c
220
.resource = sa1111_resources,
arch/arm/mach-sa1100/jornada720.c
228
static struct resource jornada_kbd_resources[] = {
arch/arm/mach-sa1100/jornada720.c
236
.resource = jornada_kbd_resources,
arch/arm/mach-sa1100/jornada720.c
359
static struct resource jornada720_flash_resource =
arch/arm/mach-sa1100/neponset.c
228
struct resource *nep_res, *sa1111_res, *smc91x_res;
arch/arm/mach-sa1100/neponset.c
229
struct resource sa1111_resources[] = {
arch/arm/mach-sa1100/neponset.c
243
struct resource smc91x_resources[] = {
arch/arm/mach-shmobile/platsmp-apmu.c
186
static void apmu_init_cpu(struct resource *res, int cpu, int bit)
arch/arm/mach-shmobile/platsmp-apmu.c
209
static void apmu_parse_dt(void (*fn)(struct resource *res, int cpu, int bit))
arch/arm/mach-shmobile/platsmp-apmu.c
212
struct resource res;
arch/arm/mach-shmobile/pm-rcar-gen2.c
52
struct resource res;
arch/arm/mach-shmobile/pm-rcar-gen2.c
70
res = (struct resource)DEFINE_RES_MEM(ICRAM1,
arch/arm/mach-sunxi/mc_smp.c
783
struct resource res;
arch/arm/mach-ux500/cpu-db8500.c
81
struct resource r;
arch/arm/mm/cache-l2x0.c
1766
struct resource res;
arch/arm/mm/ioremap.c
484
int pci_remap_iospace(const struct resource *res, phys_addr_t phys_addr)
arch/arm/plat-orion/common.c
118
static struct resource orion_uart0_resources[2];
arch/arm/plat-orion/common.c
146
static struct resource orion_uart1_resources[2];
arch/arm/plat-orion/common.c
174
static struct resource orion_uart2_resources[2];
arch/arm/plat-orion/common.c
202
static struct resource orion_uart3_resources[2];
arch/arm/plat-orion/common.c
221
static struct resource orion_rtc_resource[2];
arch/arm/plat-orion/common.c
241
struct resource *orion_ge_resource, unsigned long irq,
arch/arm/plat-orion/common.c
263
static struct resource orion_ge00_shared_resources[] = {
arch/arm/plat-orion/common.c
277
static struct resource orion_ge_mvmdio_resources[] = {
arch/arm/plat-orion/common.c
290
static struct resource orion_ge00_resources[] = {
arch/arm/plat-orion/common.c
301
.resource = orion_ge00_resources,
arch/arm/plat-orion/common.c
329
static struct resource orion_ge01_shared_resources[] = {
arch/arm/plat-orion/common.c
343
static struct resource orion_ge01_resources[] = {
arch/arm/plat-orion/common.c
354
.resource = orion_ge01_resources,
arch/arm/plat-orion/common.c
379
static struct resource orion_ge10_shared_resources[] = {
arch/arm/plat-orion/common.c
393
static struct resource orion_ge10_resources[] = {
arch/arm/plat-orion/common.c
404
.resource = orion_ge10_resources,
arch/arm/plat-orion/common.c
427
static struct resource orion_ge11_shared_resources[] = {
arch/arm/plat-orion/common.c
441
static struct resource orion_ge11_resources[] = {
arch/arm/plat-orion/common.c
452
.resource = orion_ge11_resources,
arch/arm/plat-orion/common.c
478
static struct resource orion_i2c_resources[2];
arch/arm/plat-orion/common.c
493
static struct resource orion_i2c_1_resources[2];
arch/arm/plat-orion/common.c
526
static struct resource orion_spi_resources;
arch/arm/plat-orion/common.c
53
struct resource *resources,
arch/arm/plat-orion/common.c
533
static struct resource orion_spi_1_resources;
arch/arm/plat-orion/common.c
565
static struct resource orion_xor0_shared_resources[] = {
arch/arm/plat-orion/common.c
57
device->resource = resources;
arch/arm/plat-orion/common.c
591
.resource = orion_xor0_shared_resources,
arch/arm/plat-orion/common.c
626
static struct resource orion_xor1_shared_resources[] = {
arch/arm/plat-orion/common.c
65
struct resource *resources,
arch/arm/plat-orion/common.c
652
.resource = orion_xor1_shared_resources,
arch/arm/plat-orion/common.c
694
static struct resource orion_ehci_resources[2];
arch/arm/plat-orion/common.c
720
static struct resource orion_ehci_1_resources[2];
arch/arm/plat-orion/common.c
744
static struct resource orion_ehci_2_resources[2];
arch/arm/plat-orion/common.c
768
static struct resource orion_sata_resources[2] = {
arch/arm/plat-orion/common.c
798
static struct resource orion_crypto_resources[] = {
arch/arm/plat-orion/common.c
90
struct resource *resources,
arch/arm/xen/enlighten.c
310
static struct resource xen_resource = {
arch/arm/xen/enlighten.c
314
int __init arch_xen_unpopulated_init(struct resource **res)
arch/arm/xen/enlighten.c
317
struct resource *regs, *tmp_res;
arch/arm/xen/enlighten.c
416
struct resource res;
arch/arm64/kernel/setup.c
213
struct resource *res;
arch/arm64/kernel/setup.c
251
struct resource *mem = &standard_resources[i];
arch/arm64/kernel/setup.c
59
static struct resource *standard_resources;
arch/arm64/kernel/setup.c
67
static struct resource mem_res[] = {
arch/hexagon/kernel/time.c
167
struct resource *resource = NULL;
arch/hexagon/kernel/time.c
173
resource = rtos_timer_device.resource;
arch/hexagon/kernel/time.c
176
rtos_timer = ioremap(resource->start, resource_size(resource));
arch/hexagon/kernel/time.c
179
release_mem_region(resource->start, resource_size(resource));
arch/hexagon/kernel/time.c
46
static struct resource rtos_timer_resources[] = {
arch/hexagon/kernel/time.c
58
.resource = rtos_timer_resources,
arch/loongarch/kernel/setup.c
425
struct resource *res;
arch/loongarch/kernel/setup.c
546
struct resource *mem = &standard_resources[i];
arch/loongarch/kernel/setup.c
79
static struct resource *standard_resources;
arch/loongarch/kernel/setup.c
81
static struct resource code_resource = { .name = "Kernel code", };
arch/loongarch/kernel/setup.c
82
static struct resource data_resource = { .name = "Kernel data", };
arch/loongarch/kernel/setup.c
83
static struct resource bss_resource = { .name = "Kernel bss", };
arch/loongarch/pci/acpi.c
161
struct resource cfgres;
arch/loongarch/pci/acpi.c
162
struct resource *bus_res = &root->secondary;
arch/loongarch/pci/acpi.c
95
struct resource *cfgres, struct resource *busr, const struct pci_ecam_ops *ops)
arch/loongarch/pci/acpi.c
98
struct resource *conflict;
arch/m68k/amiga/amisound.c
52
static struct resource beep_res = { .name = "Beep" };
arch/m68k/amiga/chipram.c
27
static struct resource chipram_res = {
arch/m68k/amiga/chipram.c
47
struct resource *res;
arch/m68k/amiga/chipram.c
50
res = kzalloc_obj(struct resource);
arch/m68k/amiga/chipram.c
73
void *amiga_chip_alloc_res(unsigned long size, struct resource *res)
arch/m68k/amiga/chipram.c
97
struct resource *res;
arch/m68k/amiga/config.c
118
struct resource _ciab, _ciaa, _custom, _kickstart;
arch/m68k/amiga/config.c
134
static struct resource ram_resource[NUM_MEMINFO];
arch/m68k/amiga/config.c
388
request_resource(&iomem_resource, &((struct resource *)&mb_resources)[i]);
arch/m68k/amiga/config.c
488
static struct resource sched_res = {
arch/m68k/amiga/platform.c
101
static const struct resource a1200_ide_resource __initconst = {
arch/m68k/amiga/platform.c
114
static const struct resource a4000_ide_resource __initconst = {
arch/m68k/amiga/platform.c
127
static const struct resource amiga_rtc_resource __initconst = {
arch/m68k/amiga/platform.c
21
static const struct resource zorro_resources[] __initconst = {
arch/m68k/amiga/platform.c
87
static const struct resource a3000_scsi_resource __initconst = {
arch/m68k/amiga/platform.c
94
static const struct resource a4000t_scsi_resource __initconst = {
arch/m68k/atari/config.c
667
static struct resource smc91x_resources[] = {
arch/m68k/atari/config.c
686
.resource = smc91x_resources,
arch/m68k/atari/config.c
696
static struct resource isp1160_resources[] = {
arch/m68k/atari/config.c
739
.resource = isp1160_resources,
arch/m68k/atari/config.c
761
static struct resource rtl8019_resources[] = {
arch/m68k/atari/config.c
780
.resource = rtl8019_resources,
arch/m68k/atari/config.c
791
static struct resource netusbee_resources[] = {
arch/m68k/atari/config.c
834
.resource = netusbee_resources,
arch/m68k/atari/config.c
847
static const struct resource atari_scsi_st_rsrc[] __initconst = {
arch/m68k/atari/config.c
855
static const struct resource atari_scsi_tt_rsrc[] __initconst = {
arch/m68k/atari/config.c
870
static const struct resource atari_falconide_rsrc[] __initconst = {
arch/m68k/atari/stram.c
156
struct resource *res;
arch/m68k/atari/stram.c
164
res = kzalloc_obj(struct resource);
arch/m68k/atari/stram.c
187
struct resource *res;
arch/m68k/atari/stram.c
44
static struct resource stram_pool = {
arch/m68k/coldfire/amcore.c
106
static struct resource flash_resource = {
arch/m68k/coldfire/amcore.c
115
.resource = &flash_resource,
arch/m68k/coldfire/amcore.c
34
static struct resource dm9000_resources[] = {
arch/m68k/coldfire/amcore.c
66
.resource = dm9000_resources,
arch/m68k/coldfire/device.c
114
static struct resource mcf_fec0_resources[] = {
arch/m68k/coldfire/device.c
141
.resource = mcf_fec0_resources,
arch/m68k/coldfire/device.c
151
static struct resource mcf_fec1_resources[] = {
arch/m68k/coldfire/device.c
178
.resource = mcf_fec1_resources,
arch/m68k/coldfire/device.c
192
static struct resource mcf_qspi_resources[] = {
arch/m68k/coldfire/device.c
337
.resource = mcf_qspi_resources,
arch/m68k/coldfire/device.c
343
static struct resource mcf_i2c0_resources[] = {
arch/m68k/coldfire/device.c
360
.resource = mcf_i2c0_resources,
arch/m68k/coldfire/device.c
364
static struct resource mcf_i2c1_resources[] = {
arch/m68k/coldfire/device.c
381
.resource = mcf_i2c1_resources,
arch/m68k/coldfire/device.c
388
static struct resource mcf_i2c2_resources[] = {
arch/m68k/coldfire/device.c
405
.resource = mcf_i2c2_resources,
arch/m68k/coldfire/device.c
412
static struct resource mcf_i2c3_resources[] = {
arch/m68k/coldfire/device.c
429
.resource = mcf_i2c3_resources,
arch/m68k/coldfire/device.c
436
static struct resource mcf_i2c4_resources[] = {
arch/m68k/coldfire/device.c
453
.resource = mcf_i2c4_resources,
arch/m68k/coldfire/device.c
460
static struct resource mcf_i2c5_resources[] = {
arch/m68k/coldfire/device.c
477
.resource = mcf_i2c5_resources,
arch/m68k/coldfire/device.c
510
static struct resource mcf_edma_resources[] = {
arch/m68k/coldfire/device.c
548
.resource = mcf_edma_resources,
arch/m68k/coldfire/device.c
563
static struct resource mcf_esdhc_resources[] = {
arch/m68k/coldfire/device.c
579
.resource = mcf_esdhc_resources,
arch/m68k/coldfire/device.c
593
static struct resource mcf5441x_flexcan0_resource[] = {
arch/m68k/coldfire/device.c
620
.resource = mcf5441x_flexcan0_resource,
arch/m68k/coldfire/firebee.c
61
static struct resource firebee_flash_resource = {
arch/m68k/coldfire/firebee.c
74
.resource = &firebee_flash_resource,
arch/m68k/coldfire/m5249.c
44
static struct resource m5249_smc91x_resources[] = {
arch/m68k/coldfire/m5249.c
61
.resource = m5249_smc91x_resources,
arch/m68k/coldfire/mcf8390.c
18
static struct resource mcf8390_resources[] = {
arch/m68k/coldfire/nettel.c
43
static struct resource nettel_smc91x_0_resources[] = {
arch/m68k/coldfire/nettel.c
56
static struct resource nettel_smc91x_1_resources[] = {
arch/m68k/coldfire/nettel.c
74
.resource = nettel_smc91x_0_resources,
arch/m68k/coldfire/nettel.c
80
.resource = nettel_smc91x_1_resources,
arch/m68k/coldfire/pci.c
132
static struct resource mcf_pci_mem = {
arch/m68k/coldfire/pci.c
139
static struct resource mcf_pci_io = {
arch/m68k/coldfire/pci.c
146
static struct resource busn_resource = {
arch/m68k/coldfire/pci.c
250
rootbus->resource[0] = &mcf_pci_io;
arch/m68k/coldfire/pci.c
251
rootbus->resource[1] = &mcf_pci_mem;
arch/m68k/coldfire/stmark2.c
64
static struct resource dspi_spi0_resource[] = {
arch/m68k/coldfire/stmark2.c
89
.resource = dspi_spi0_resource,
arch/m68k/include/asm/amigahw.h
259
void *amiga_chip_alloc_res(unsigned long size, struct resource *res);
arch/m68k/kernel/pcibios.c
29
resource_size_t pcibios_align_resource(void *data, const struct resource *res,
arch/m68k/mac/config.c
758
static struct resource scc_a_rsrcs[] = {
arch/m68k/mac/config.c
763
static struct resource scc_b_rsrcs[] = {
arch/m68k/mac/config.c
806
scc_a_pdev.resource = scc_a_rsrcs;
arch/m68k/mac/config.c
811
scc_b_pdev.resource = scc_b_rsrcs;
arch/m68k/mac/config.c
873
static const struct resource mac_scsi_iifx_rsrc[] __initconst = {
arch/m68k/mac/config.c
889
static const struct resource mac_scsi_duo_rsrc[] __initconst = {
arch/m68k/mac/config.c
897
static const struct resource mac_scsi_old_rsrc[] __initconst = {
arch/m68k/mac/config.c
913
static const struct resource mac_scsi_ccl_rsrc[] __initconst = {
arch/m68k/mac/config.c
929
static const struct resource mac_pata_quadra_rsrc[] __initconst = {
arch/m68k/mac/config.c
935
static const struct resource mac_pata_pb_rsrc[] __initconst = {
arch/m68k/mac/config.c
941
static const struct resource mac_pata_baboon_rsrc[] __initconst = {
arch/m68k/mac/config.c
982
struct resource swim_rsrc = {
arch/m68k/mvme147/config.c
88
static struct resource m48t59_rsrc[] = {
arch/m68k/mvme16x/config.c
309
static struct resource m48t59_rsrc[] = {
arch/m68k/q40/config.c
280
static const struct resource q40_pata_rsrc_0[] __initconst = {
arch/m68k/q40/config.c
288
static const struct resource q40_pata_rsrc_1[] __initconst = {
arch/m68k/sun3/config.c
166
static const struct resource sun3_scsi_vme_rsrc[] __initconst = {
arch/m68k/sun3/config.c
190
static const struct resource sun3_scsi_rsrc[] __initconst = {
arch/m68k/virt/config.c
116
ctrlres = (struct resource)
arch/m68k/virt/config.c
19
static struct resource ctrlres;
arch/m68k/virt/ints.c
139
picres[i] = (struct resource)
arch/m68k/virt/ints.c
23
static struct resource picres[6];
arch/m68k/virt/platform.c
13
const struct resource res[] = {
arch/m68k/virt/platform.c
24
const struct resource goldfish_tty_res[] = {
arch/m68k/virt/platform.c
29
const struct resource goldfish_rtc_res[] = {
arch/microblaze/include/asm/pci-bridge.h
35
struct resource io_resource;
arch/mips/alchemy/board-gpr.c
146
static struct resource gpr_mtd_resource = {
arch/mips/alchemy/board-gpr.c
158
.resource = &gpr_mtd_resource,
arch/mips/alchemy/board-gpr.c
233
static struct resource alchemy_pci_host_res[] = {
arch/mips/alchemy/board-gpr.c
267
.resource = alchemy_pci_host_res,
arch/mips/alchemy/board-gpr.c
80
static struct resource gpr_wdt_resource[] = {
arch/mips/alchemy/board-gpr.c
93
.resource = gpr_wdt_resource,
arch/mips/alchemy/board-mtx1.c
239
static struct resource mtx1_mtd_resource = {
arch/mips/alchemy/board-mtx1.c
251
.resource = &mtx1_mtd_resource,
arch/mips/alchemy/board-mtx1.c
254
static struct resource alchemy_pci_host_res[] = {
arch/mips/alchemy/board-mtx1.c
313
.resource = alchemy_pci_host_res,
arch/mips/alchemy/board-xxs1500.c
74
static struct resource xxs1500_pcmcia_res[] = {
arch/mips/alchemy/board-xxs1500.c
99
.resource = xxs1500_pcmcia_res,
arch/mips/alchemy/common/platform.c
203
static int __init _new_usbres(struct resource **r, struct platform_device **d)
arch/mips/alchemy/common/platform.c
205
*r = kzalloc_objs(struct resource, 2);
arch/mips/alchemy/common/platform.c
216
(*d)->resource = *r;
arch/mips/alchemy/common/platform.c
223
struct resource *res;
arch/mips/alchemy/common/platform.c
310
static struct resource au1xxx_eth0_resources[][MAC_RES_COUNT] __initdata = {
arch/mips/alchemy/common/platform.c
352
static struct resource au1xxx_eth1_resources[][MAC_RES_COUNT] __initdata = {
arch/mips/alchemy/common/platform.c
406
struct resource *macres;
arch/mips/alchemy/common/platform.c
418
au1xxx_eth0_device.resource = macres;
arch/mips/alchemy/common/platform.c
439
au1xxx_eth1_device.resource = macres;
arch/mips/alchemy/devboards/db1000.c
120
.resource = au1100_lcd_resources,
arch/mips/alchemy/devboards/db1000.c
123
static struct resource alchemy_ac97c_res[] = {
arch/mips/alchemy/devboards/db1000.c
144
.resource = alchemy_ac97c_res,
arch/mips/alchemy/devboards/db1000.c
305
static struct resource au1100_mmc0_resources[] = {
arch/mips/alchemy/devboards/db1000.c
337
.resource = au1100_mmc0_resources,
arch/mips/alchemy/devboards/db1000.c
340
static struct resource au1100_mmc1_res[] = {
arch/mips/alchemy/devboards/db1000.c
372
.resource = au1100_mmc1_res,
arch/mips/alchemy/devboards/db1000.c
74
static struct resource alchemy_pci_host_res[] = {
arch/mips/alchemy/devboards/db1000.c
91
.resource = alchemy_pci_host_res,
arch/mips/alchemy/devboards/db1000.c
99
static struct resource au1100_lcd_resources[] = {
arch/mips/alchemy/devboards/db1200.c
241
static struct resource db1200_nand_res[] = {
arch/mips/alchemy/devboards/db1200.c
252
.resource = db1200_nand_res,
arch/mips/alchemy/devboards/db1200.c
267
static struct resource db1200_eth_res[] = {
arch/mips/alchemy/devboards/db1200.c
287
.resource = db1200_eth_res,
arch/mips/alchemy/devboards/db1200.c
297
static struct resource db1200_ide_res[] = {
arch/mips/alchemy/devboards/db1200.c
324
.resource = db1200_ide_res,
arch/mips/alchemy/devboards/db1200.c
519
static struct resource au1200_mmc0_resources[] = {
arch/mips/alchemy/devboards/db1200.c
551
.resource = au1200_mmc0_resources,
arch/mips/alchemy/devboards/db1200.c
554
static struct resource au1200_mmc1_res[] = {
arch/mips/alchemy/devboards/db1200.c
586
.resource = au1200_mmc1_res,
arch/mips/alchemy/devboards/db1200.c
619
static struct resource au1200_lcd_res[] = {
arch/mips/alchemy/devboards/db1200.c
641
.resource = au1200_lcd_res,
arch/mips/alchemy/devboards/db1200.c
646
static struct resource au1200_psc0_res[] = {
arch/mips/alchemy/devboards/db1200.c
673
.resource = au1200_psc0_res,
arch/mips/alchemy/devboards/db1200.c
699
.resource = au1200_psc0_res,
arch/mips/alchemy/devboards/db1200.c
702
static struct resource au1200_psc1_res[] = {
arch/mips/alchemy/devboards/db1200.c
730
.resource = au1200_psc1_res,
arch/mips/alchemy/devboards/db1300.c
206
static struct resource db1300_nand_res[] = {
arch/mips/alchemy/devboards/db1300.c
217
.resource = db1300_nand_res,
arch/mips/alchemy/devboards/db1300.c
226
static struct resource db1300_eth_res[] = {
arch/mips/alchemy/devboards/db1300.c
250
.resource = db1300_eth_res,
arch/mips/alchemy/devboards/db1300.c
258
static struct resource au1300_psc1_res[] = {
arch/mips/alchemy/devboards/db1300.c
285
.resource = au1300_psc1_res,
arch/mips/alchemy/devboards/db1300.c
290
static struct resource au1300_psc2_res[] = {
arch/mips/alchemy/devboards/db1300.c
317
.resource = au1300_psc2_res,
arch/mips/alchemy/devboards/db1300.c
322
static struct resource au1300_psc3_res[] = {
arch/mips/alchemy/devboards/db1300.c
349
.resource = au1300_psc3_res,
arch/mips/alchemy/devboards/db1300.c
422
static struct resource db1300_ide_res[] = {
arch/mips/alchemy/devboards/db1300.c
447
.resource = db1300_ide_res,
arch/mips/alchemy/devboards/db1300.c
535
static struct resource au1300_sd1_res[] = {
arch/mips/alchemy/devboards/db1300.c
566
.resource = au1300_sd1_res,
arch/mips/alchemy/devboards/db1300.c
602
static struct resource au1300_sd0_res[] = {
arch/mips/alchemy/devboards/db1300.c
633
.resource = au1300_sd0_res,
arch/mips/alchemy/devboards/db1300.c
700
static struct resource au1300_lcd_res[] = {
arch/mips/alchemy/devboards/db1300.c
723
.resource = au1300_lcd_res,
arch/mips/alchemy/devboards/db1550.c
185
static struct resource db1550_nand_res[] = {
arch/mips/alchemy/devboards/db1550.c
196
.resource = db1550_nand_res,
arch/mips/alchemy/devboards/db1550.c
212
.resource = db1550_nand_res,
arch/mips/alchemy/devboards/db1550.c
238
static struct resource au1550_psc0_res[] = {
arch/mips/alchemy/devboards/db1550.c
285
.resource = au1550_psc0_res,
arch/mips/alchemy/devboards/db1550.c
290
static struct resource au1550_psc1_res[] = {
arch/mips/alchemy/devboards/db1550.c
317
.resource = au1550_psc1_res,
arch/mips/alchemy/devboards/db1550.c
321
static struct resource au1550_psc2_res[] = {
arch/mips/alchemy/devboards/db1550.c
348
.resource = au1550_psc2_res,
arch/mips/alchemy/devboards/db1550.c
353
static struct resource au1550_psc3_res[] = {
arch/mips/alchemy/devboards/db1550.c
380
.resource = au1550_psc3_res,
arch/mips/alchemy/devboards/db1550.c
466
static struct resource alchemy_pci_host_res[] = {
arch/mips/alchemy/devboards/db1550.c
483
.resource = alchemy_pci_host_res,
arch/mips/alchemy/devboards/platform.c
136
pd->resource = sr;
arch/mips/alchemy/devboards/platform.c
158
struct resource *res;
arch/mips/alchemy/devboards/platform.c
169
res = kzalloc_obj(struct resource);
arch/mips/alchemy/devboards/platform.c
232
pd->resource = res;
arch/mips/alchemy/devboards/platform.c
81
struct resource *sr;
arch/mips/alchemy/devboards/platform.c
90
sr = kzalloc_objs(struct resource, cnt);
arch/mips/ath25/ar2315.c
305
static struct resource ar2315_pci_res[] = {
arch/mips/ath25/ar5312.c
166
static struct resource ar5312_flash_resource = {
arch/mips/ath25/ar5312.c
176
.resource = &ar5312_flash_resource,
arch/mips/ath25/devices.c
16
static struct resource ath25_wmac0_res[] = {
arch/mips/ath25/devices.c
27
static struct resource ath25_wmac1_res[] = {
arch/mips/ath25/devices.c
42
.resource = ath25_wmac0_res,
arch/mips/ath25/devices.c
49
.resource = ath25_wmac1_res,
arch/mips/ath25/devices.c
94
struct resource *res;
arch/mips/ath25/devices.c
97
res = &ath25_wmac[nr].resource[0];
arch/mips/bcm63xx/dev-enet.c
101
.resource = enet0_res,
arch/mips/bcm63xx/dev-enet.c
109
static struct resource enet1_res[] = {
arch/mips/bcm63xx/dev-enet.c
135
.resource = enet1_res,
arch/mips/bcm63xx/dev-enet.c
143
static struct resource enetsw_res[] = {
arch/mips/bcm63xx/dev-enet.c
163
.resource = enetsw_res,
arch/mips/bcm63xx/dev-enet.c
46
static struct resource shared_res[] = {
arch/mips/bcm63xx/dev-enet.c
68
.resource = shared_res,
arch/mips/bcm63xx/dev-enet.c
75
static struct resource enet0_res[] = {
arch/mips/bcm63xx/dev-flash.c
41
static struct resource mtd_resources[] = {
arch/mips/bcm63xx/dev-flash.c
51
.resource = mtd_resources,
arch/mips/bcm63xx/dev-hsspi.c
17
static struct resource spi_resources[] = {
arch/mips/bcm63xx/dev-hsspi.c
33
.resource = spi_resources,
arch/mips/bcm63xx/dev-pcmcia.c
19
static struct resource pcmcia_resources[] = {
arch/mips/bcm63xx/dev-pcmcia.c
63
.resource = pcmcia_resources,
arch/mips/bcm63xx/dev-rng.c
14
static struct resource rng_resources[] = {
arch/mips/bcm63xx/dev-rng.c
26
.resource = rng_resources,
arch/mips/bcm63xx/dev-spi.c
21
static struct resource spi_resources[] = {
arch/mips/bcm63xx/dev-spi.c
36
.resource = spi_resources,
arch/mips/bcm63xx/dev-uart.c
15
static struct resource uart0_resources[] = {
arch/mips/bcm63xx/dev-uart.c
26
static struct resource uart1_resources[] = {
arch/mips/bcm63xx/dev-uart.c
42
.resource = uart0_resources,
arch/mips/bcm63xx/dev-uart.c
49
.resource = uart1_resources,
arch/mips/bcm63xx/dev-usb-usbd.c
21
static struct resource usbd_resources[NUM_MMIO + NUM_IRQ];
arch/mips/bcm63xx/dev-usb-usbd.c
29
.resource = usbd_resources,
arch/mips/bcm63xx/dev-usb-usbd.c
56
struct resource *r = &usbd_resources[NUM_MMIO + i];
arch/mips/bcm63xx/dev-wdt.c
15
static struct resource wdt_resources[] = {
arch/mips/bcm63xx/dev-wdt.c
31
.resource = wdt_resources,
arch/mips/cavium-octeon/octeon-irq.c
2293
struct resource res;
arch/mips/cavium-octeon/octeon-irq.c
2880
struct resource res;
arch/mips/cavium-octeon/octeon-platform.c
413
struct resource rng_resources[] = {
arch/mips/cobalt/buttons.c
12
static struct resource cobalt_buttons_resource __initdata = {
arch/mips/cobalt/lcd.c
12
static struct resource cobalt_lcd_resource __initdata = {
arch/mips/cobalt/led.c
14
static struct resource cobalt_led_resource __initdata = {
arch/mips/cobalt/mtd.c
26
static struct resource cobalt_mtd_resource = {
arch/mips/cobalt/mtd.c
38
.resource = &cobalt_mtd_resource,
arch/mips/cobalt/pci.c
19
static struct resource cobalt_mem_resource = {
arch/mips/cobalt/pci.c
26
static struct resource cobalt_io_resource = {
arch/mips/cobalt/rtc.c
13
static struct resource cobalt_rtc_resource[] __initdata = {
arch/mips/cobalt/serial.c
16
static struct resource cobalt_uart_resource[] __initdata = {
arch/mips/cobalt/setup.c
46
static struct resource cobalt_reserved_resources[] = {
arch/mips/dec/platform.c
13
static struct resource dec_rtc_resources[] = {
arch/mips/dec/platform.c
29
.resource = dec_rtc_resources,
arch/mips/include/asm/cdmm.h
25
struct resource res;
arch/mips/include/asm/gio_device.h
11
struct resource resource;
arch/mips/include/asm/mach-loongson64/boot_param.h
151
struct resource_loongson resource[MAX_RESOURCE_NUMBER];
arch/mips/include/asm/mach-loongson64/boot_param.h
161
struct resource_loongson resource[MAX_RESOURCE_NUMBER];
arch/mips/include/asm/pci.h
36
struct resource *mem_resource;
arch/mips/include/asm/pci.h
38
struct resource *io_resource;
arch/mips/include/asm/pci/bridge.h
804
struct resource busn;
arch/mips/include/asm/txx9/generic.h
14
extern struct resource txx9_ce_res[];
arch/mips/include/asm/txx9/generic.h
96
void __init txx9_sramc_init(struct resource *r);
arch/mips/jazz/setup.c
111
static struct resource jazz_esp_rsrc[] = {
arch/mips/jazz/setup.c
134
.resource = jazz_esp_rsrc,
arch/mips/jazz/setup.c
141
static struct resource jazz_sonic_rsrc[] = {
arch/mips/jazz/setup.c
159
.resource = jazz_sonic_rsrc,
arch/mips/jazz/setup.c
166
static struct resource jazz_cmos_rsrc[] = {
arch/mips/jazz/setup.c
182
.resource = jazz_cmos_rsrc
arch/mips/jazz/setup.c
28
static struct resource jazz_io_resources[] = {
arch/mips/kernel/mips-cpc.c
25
struct resource res;
arch/mips/kernel/setup.c
490
static void __init request_crashkernel(struct resource *res)
arch/mips/kernel/setup.c
695
struct resource *res;
arch/mips/kernel/setup.c
697
res = memblock_alloc_or_panic(sizeof(struct resource), SMP_CACHE_BYTES);
arch/mips/kernel/setup.c
83
static struct resource code_resource = { .name = "Kernel code", };
arch/mips/kernel/setup.c
84
static struct resource data_resource = { .name = "Kernel data", };
arch/mips/kernel/setup.c
85
static struct resource bss_resource = { .name = "Kernel bss", };
arch/mips/lantiq/falcon/sysctrl.c
193
struct resource res_status, res_ebu, res_sys[3];
arch/mips/lantiq/irq.c
343
struct resource res;
arch/mips/lantiq/xway/gptu.c
72
static struct resource irqres[6];
arch/mips/lantiq/xway/sysctrl.c
445
struct resource res_pmu, res_cgu, res_ebu;
arch/mips/loongson2ef/common/pci.c
11
static struct resource loongson_pci_mem_resource = {
arch/mips/loongson2ef/common/pci.c
18
static struct resource loongson_pci_io_resource = {
arch/mips/loongson2ef/common/rtc.c
13
static struct resource loongson_rtc_resources[] = {
arch/mips/loongson2ef/common/rtc.c
28
.resource = loongson_rtc_resources,
arch/mips/loongson64/vbios_quirk.c
8
struct resource *res = &pdev->resource[PCI_ROM_RESOURCE];
arch/mips/mti-malta/malta-setup.c
33
static struct resource standard_io_resources[] = {
arch/mips/n64/init.c
87
struct resource res[3];
arch/mips/n64/init.c
92
memset(res, 0, sizeof(struct resource) * 3);
arch/mips/pci/ops-bcm63xx.c
417
struct resource *r;
arch/mips/pci/pci-alchemy.c
372
struct resource *r;
arch/mips/pci/pci-alchemy.c
58
static struct resource alchemy_pci_def_memres = {
arch/mips/pci/pci-alchemy.c
65
static struct resource alchemy_pci_def_iores = {
arch/mips/pci/pci-ar2315.c
163
struct resource mem_res;
arch/mips/pci/pci-ar2315.c
164
struct resource io_res;
arch/mips/pci/pci-ar2315.c
413
struct resource *res;
arch/mips/pci/pci-ar71xx.c
331
struct resource *res;
arch/mips/pci/pci-ar71xx.c
53
struct resource io_res;
arch/mips/pci/pci-ar71xx.c
54
struct resource mem_res;
arch/mips/pci/pci-ar724x.c
363
struct resource *res;
arch/mips/pci/pci-ar724x.c
52
struct resource io_res;
arch/mips/pci/pci-ar724x.c
53
struct resource mem_res;
arch/mips/pci/pci-bcm1480.c
167
static struct resource bcm1480_mem_resource = {
arch/mips/pci/pci-bcm1480.c
174
static struct resource bcm1480_io_resource = {
arch/mips/pci/pci-bcm1480ht.c
161
static struct resource bcm1480ht_mem_resource = {
arch/mips/pci/pci-bcm1480ht.c
168
static struct resource bcm1480ht_io_resource = {
arch/mips/pci/pci-bcm63xx.c
27
static struct resource bcm_pci_mem_resource = {
arch/mips/pci/pci-bcm63xx.c
34
static struct resource bcm_pci_io_resource = {
arch/mips/pci/pci-bcm63xx.c
57
static struct resource bcm_cb_mem_resource = {
arch/mips/pci/pci-bcm63xx.c
64
static struct resource bcm_cb_io_resource = {
arch/mips/pci/pci-bcm63xx.c
78
static struct resource bcm_pcie_mem_resource = {
arch/mips/pci/pci-bcm63xx.c
85
static struct resource bcm_pcie_io_resource = {
arch/mips/pci/pci-generic.c
24
resource_size_t pcibios_align_resource(void *data, const struct resource *res,
arch/mips/pci/pci-generic.c
51
int pci_remap_iospace(const struct resource *res, phys_addr_t phys_addr)
arch/mips/pci/pci-ip32.c
101
static struct resource mace_pci_mem_resource = {
arch/mips/pci/pci-ip32.c
107
static struct resource mace_pci_io_resource = {
arch/mips/pci/pci-ip32.c
87
static struct resource mace_pci_mem_resource = {
arch/mips/pci/pci-ip32.c
93
static struct resource mace_pci_io_resource = {
arch/mips/pci/pci-lantiq.c
67
static struct resource pci_io_resource;
arch/mips/pci/pci-lantiq.c
68
static struct resource pci_mem_resource;
arch/mips/pci/pci-legacy.c
156
struct resource *res = NULL;
arch/mips/pci/pci-legacy.c
191
struct resource *parent;
arch/mips/pci/pci-legacy.c
54
pcibios_align_resource(void *data, const struct resource *res,
arch/mips/pci/pci-malta.c
23
static struct resource bonito64_mem_resource = {
arch/mips/pci/pci-malta.c
28
static struct resource bonito64_io_resource = {
arch/mips/pci/pci-malta.c
35
static struct resource gt64120_mem_resource = {
arch/mips/pci/pci-malta.c
40
static struct resource gt64120_io_resource = {
arch/mips/pci/pci-malta.c
45
static struct resource msc_mem_resource = {
arch/mips/pci/pci-malta.c
50
static struct resource msc_io_resource = {
arch/mips/pci/pci-mt7620.c
210
static struct resource mt7620_res_pci_mem1;
arch/mips/pci/pci-mt7620.c
211
static struct resource mt7620_res_pci_io1;
arch/mips/pci/pci-octeon.c
327
static struct resource octeon_pci_mem_resource = {
arch/mips/pci/pci-octeon.c
338
static struct resource octeon_pci_io_resource = {
arch/mips/pci/pci-rc32434.c
48
static struct resource rc32434_res_pci_mem1;
arch/mips/pci/pci-rc32434.c
49
static struct resource rc32434_res_pci_mem2;
arch/mips/pci/pci-rc32434.c
51
static struct resource rc32434_res_pci_mem1 = {
arch/mips/pci/pci-rc32434.c
60
static struct resource rc32434_res_pci_mem2 = {
arch/mips/pci/pci-rc32434.c
70
static struct resource rc32434_res_pci_io1 = {
arch/mips/pci/pci-rt2880.c
124
static struct resource rt2880_pci_mem_resource = {
arch/mips/pci/pci-rt2880.c
131
static struct resource rt2880_pci_io_resource = {
arch/mips/pci/pci-rt3883.c
66
struct resource io_res;
arch/mips/pci/pci-rt3883.c
67
struct resource mem_res;
arch/mips/pci/pci-sb1250.c
176
static struct resource sb1250_mem_resource = {
arch/mips/pci/pci-sb1250.c
183
static struct resource sb1250_io_resource = {
arch/mips/pci/pci.c
48
const struct resource *rsrc, resource_size_t *start,
arch/mips/pci/pcie-octeon.c
1794
static struct resource octeon_pcie0_mem_resource = {
arch/mips/pci/pcie-octeon.c
1799
static struct resource octeon_pcie0_io_resource = {
arch/mips/pci/pcie-octeon.c
1815
static struct resource octeon_pcie1_mem_resource = {
arch/mips/pci/pcie-octeon.c
1820
static struct resource octeon_pcie1_io_resource = {
arch/mips/pci/pcie-octeon.c
1836
static struct resource octeon_dummy_mem_resource = {
arch/mips/pci/pcie-octeon.c
1841
static struct resource octeon_dummy_io_resource = {
arch/mips/pic32/pic32mzda/init.c
93
struct resource res;
arch/mips/ralink/irq.c
150
struct resource res;
arch/mips/ralink/of.c
58
struct resource res;
arch/mips/rb532/devices.c
104
static struct resource cf_slot0_res[] = {
arch/mips/rb532/devices.c
128
.resource = cf_slot0_res,
arch/mips/rb532/devices.c
155
static struct resource nand_slot0_res[] = {
arch/mips/rb532/devices.c
170
.resource = nand_slot0_res,
arch/mips/rb532/devices.c
197
static struct resource rb532_wdt_res[] = {
arch/mips/rb532/devices.c
209
.resource = rb532_wdt_res,
arch/mips/rb532/devices.c
60
static struct resource korina_dev0_res[] = {
arch/mips/rb532/devices.c
97
.resource = korina_dev0_res,
arch/mips/rb532/gpio.c
204
struct resource *r;
arch/mips/rb532/gpio.c
55
static struct resource rb532_gpio_reg0_res[] = {
arch/mips/rb532/prom.c
27
static struct resource ddr_reg[] = {
arch/mips/rb532/setup.c
20
static struct resource pci0_res[] = {
arch/mips/sgi-ip22/ip22-gio.c
370
gio_dev->resource.start = addr;
arch/mips/sgi-ip22/ip22-gio.c
371
gio_dev->resource.end = addr + 0x3fffff;
arch/mips/sgi-ip22/ip22-gio.c
372
gio_dev->resource.flags = IORESOURCE_MEM;
arch/mips/sgi-ip22/ip22-gio.c
391
static struct resource gio_bus_resource = {
arch/mips/sgi-ip22/ip22-platform.c
114
.resource = sgiseeq_0_resources,
arch/mips/sgi-ip22/ip22-platform.c
122
static struct resource sgiseeq_1_resources[] = {
arch/mips/sgi-ip22/ip22-platform.c
137
.resource = sgiseeq_1_resources,
arch/mips/sgi-ip22/ip22-platform.c
15
static struct resource sgiwd93_0_resources[] = {
arch/mips/sgi-ip22/ip22-platform.c
212
struct resource res;
arch/mips/sgi-ip22/ip22-platform.c
229
static struct resource sgi_zilog_resources[] = {
arch/mips/sgi-ip22/ip22-platform.c
246
.resource = sgi_zilog_resources,
arch/mips/sgi-ip22/ip22-platform.c
35
.resource = sgiwd93_0_resources,
arch/mips/sgi-ip22/ip22-platform.c
43
static struct resource sgiwd93_1_resources[] = {
arch/mips/sgi-ip22/ip22-platform.c
63
.resource = sgiwd93_1_resources,
arch/mips/sgi-ip22/ip22-platform.c
97
static struct resource sgiseeq_0_resources[] = {
arch/mips/sgi-ip27/ip27-xtalk.c
32
struct resource w1_res;
arch/mips/sgi-ip30/ip30-xtalk.c
45
struct resource w1_res;
arch/mips/sgi-ip32/ip32-platform.c
130
.resource = ip32_rtc_resources,
arch/mips/sgi-ip32/ip32-platform.c
98
static struct resource ip32_rtc_resources[] = {
arch/mips/sibyte/swarm/platform.c
21
static struct resource swarm_pata_resource[] = {
arch/mips/sibyte/swarm/platform.c
43
.resource = swarm_pata_resource,
arch/mips/sibyte/swarm/platform.c
55
struct resource *r;
arch/mips/sibyte/swarm/platform.c
89
static struct resource sb1250_res##num = { \
arch/mips/sibyte/swarm/platform.c
98
.resource = &sb1250_res##num, \
arch/mips/sni/a20r.c
105
.resource = snirm_53c710_rsrc
arch/mips/sni/a20r.c
108
static struct resource sc26xx_rsrc[] = {
arch/mips/sni/a20r.c
139
.resource = sc26xx_rsrc,
arch/mips/sni/a20r.c
43
static struct resource a20r_ds1216_rsrc[] = {
arch/mips/sni/a20r.c
54
.resource = a20r_ds1216_rsrc
arch/mips/sni/a20r.c
57
static struct resource snirm_82596_rsrc[] = {
arch/mips/sni/a20r.c
86
.resource = snirm_82596_rsrc
arch/mips/sni/a20r.c
89
static struct resource snirm_53c710_rsrc[] = {
arch/mips/sni/pcimt.c
109
.resource = pcimt_cmos_rsrc
arch/mips/sni/pcimt.c
113
static struct resource sni_io_resource = {
arch/mips/sni/pcimt.c
120
static struct resource pcimt_io_resources[] = {
arch/mips/sni/pcimt.c
154
static struct resource pcimt_mem_resources[] = {
arch/mips/sni/pcimt.c
167
static struct resource sni_mem_resource = {
arch/mips/sni/pcimt.c
93
static struct resource pcimt_cmos_rsrc[] = {
arch/mips/sni/pcit.c
144
static struct resource sni_mem_resource = {
arch/mips/sni/pcit.c
61
static struct resource pcit_cmos_rsrc[] = {
arch/mips/sni/pcit.c
77
.resource = pcit_cmos_rsrc
arch/mips/sni/pcit.c
85
static struct resource sni_io_resource = {
arch/mips/sni/pcit.c
92
static struct resource pcit_io_resources[] = {
arch/mips/sni/rm200.c
112
.resource = snirm_53c710_rm200_rsrc
arch/mips/sni/rm200.c
360
static struct resource sni_rm200_pic1_resource = {
arch/mips/sni/rm200.c
367
static struct resource sni_rm200_pic2_resource = {
arch/mips/sni/rm200.c
50
static struct resource rm200_ds1216_rsrc[] = {
arch/mips/sni/rm200.c
61
.resource = rm200_ds1216_rsrc
arch/mips/sni/rm200.c
64
static struct resource snirm_82596_rm200_rsrc[] = {
arch/mips/sni/rm200.c
93
.resource = snirm_82596_rm200_rsrc
arch/mips/sni/rm200.c
96
static struct resource snirm_53c710_rm200_rsrc[] = {
arch/mips/txx9/generic/pci.c
117
struct resource r_mem[2];
arch/mips/txx9/generic/pci.c
118
struct resource r_io;
arch/mips/txx9/generic/pci.c
88
static struct resource primary_pci_mem_res[2] = {
arch/mips/txx9/generic/pci.c
92
static struct resource primary_pci_io_res = { .name = "PCI IO" };
arch/mips/txx9/generic/setup.c
322
struct resource res = {
arch/mips/txx9/generic/setup.c
347
struct resource res[] = {
arch/mips/txx9/generic/setup.c
46
struct resource txx9_ce_res[8];
arch/mips/txx9/generic/setup.c
52
static struct resource txx9_reg_res = {
arch/mips/txx9/generic/setup.c
533
struct resource res = {
arch/mips/txx9/generic/setup.c
571
struct resource res = {
arch/mips/txx9/generic/setup.c
710
struct resource res[] = {
arch/mips/txx9/generic/setup.c
723
struct resource chan_res[] = {
arch/mips/txx9/generic/setup.c
816
void __init txx9_sramc_init(struct resource *r)
arch/mips/txx9/generic/setup_tx4927.c
86
static struct resource tx4927_sdram_resource[4];
arch/mips/txx9/generic/setup_tx4938.c
336
struct resource res[] = {
arch/mips/txx9/generic/setup_tx4938.c
88
static struct resource tx4938_sdram_resource[4];
arch/mips/txx9/generic/setup_tx4938.c
89
static struct resource tx4938_sram_resource;
arch/mips/txx9/rbtx4927/setup.c
289
struct resource res = {
arch/mips/txx9/rbtx4927/setup.c
299
struct resource res[] = {
arch/parisc/include/asm/eisa_bus.h
14
struct resource *io_parent,
arch/parisc/include/asm/eisa_bus.h
15
struct resource *mem_parent);
arch/parisc/include/asm/parisc-device.h
8
struct resource hpa; /* Hard Physical Address */
arch/parisc/include/asm/pci.h
47
struct resource bus_num; /* PCI bus numbers */
arch/parisc/include/asm/pci.h
48
struct resource io_space; /* PIOP */
arch/parisc/include/asm/pci.h
49
struct resource lmmio_space; /* bus addresses < 4Gb */
arch/parisc/include/asm/pci.h
50
struct resource elmmio_space; /* additional bus addresses < 4Gb */
arch/parisc/include/asm/pci.h
51
struct resource gmmio_space; /* bus addresses > 4Gb */
arch/parisc/include/asm/processor.h
322
struct resource;
arch/parisc/include/asm/processor.h
323
extern void sba_distributed_lmmio(struct parisc_device *, struct resource *);
arch/parisc/include/asm/processor.h
324
extern void sba_directed_lmmio(struct parisc_device *, struct resource *);
arch/parisc/include/asm/ropes.h
82
struct resource chip_resv; /* MMIO reserved for chip */
arch/parisc/include/asm/ropes.h
83
struct resource iommu_resv; /* MMIO reserved for iommu */
arch/parisc/kernel/inventory.c
661
struct resource res[3] = {0,};
arch/parisc/kernel/pci.c
198
resource_size_t pcibios_align_resource(void *data, const struct resource *res,
arch/parisc/kernel/setup.c
175
static struct resource central_bus = {
arch/parisc/kernel/setup.c
182
static struct resource local_broadcast = {
arch/parisc/kernel/setup.c
189
static struct resource global_broadcast = {
arch/parisc/mm/init.c
167
struct resource *res = &sysram_resources[i];
arch/parisc/mm/init.c
328
struct resource *res = &sysram_resources[i];
arch/parisc/mm/init.c
49
static struct resource data_resource = {
arch/parisc/mm/init.c
54
static struct resource code_resource = {
arch/parisc/mm/init.c
59
static struct resource pdcdata_resource = {
arch/parisc/mm/init.c
66
static struct resource sysram_resources[MAX_PHYSMEM_RANGES] __ro_after_init;
arch/powerpc/include/asm/macio.h
46
struct resource resource[MACIO_DEV_COUNT_RESOURCES];
arch/powerpc/include/asm/macio.h
48
struct resource interrupt[MACIO_DEV_COUNT_IRQS];
arch/powerpc/include/asm/macio.h
68
return dev->resource[resource_no].start;
arch/powerpc/include/asm/macio.h
73
return dev->resource[resource_no].end;
arch/powerpc/include/asm/macio.h
78
struct resource *res = &dev->resource[resource_no];
arch/powerpc/include/asm/pci-bridge.h
119
struct resource io_resource;
arch/powerpc/include/asm/pci-bridge.h
120
struct resource mem_resources[3];
arch/powerpc/include/asm/pci-bridge.h
231
struct resource holes[PCI_SRIOV_NUM_BARS];
arch/powerpc/include/asm/pci-bridge.h
69
struct resource busn;
arch/powerpc/include/asm/plpar_wrappers.h
258
static inline long plpar_set_mode(unsigned long mflags, unsigned long resource,
arch/powerpc/include/asm/plpar_wrappers.h
261
return plpar_hcall_norets(H_SET_MODE, mflags, resource, value1, value2);
arch/powerpc/include/asm/rtas-types.h
102
u8 resource;
arch/powerpc/include/asm/syscalls.h
78
long compat_sys_old_getrlimit(unsigned int resource,
arch/powerpc/kernel/eeh.c
1576
struct resource *bar = NULL;
arch/powerpc/kernel/eeh.c
1583
struct resource *r = &pdev->resource[i];
arch/powerpc/kernel/pci-common.c
1000
struct resource *res;
arch/powerpc/kernel/pci-common.c
1134
resource_size_t pcibios_align_resource(void *data, const struct resource *res,
arch/powerpc/kernel/pci-common.c
1155
static int reparent_resources(struct resource *parent,
arch/powerpc/kernel/pci-common.c
1156
struct resource *res)
arch/powerpc/kernel/pci-common.c
1158
struct resource *p, **pp;
arch/powerpc/kernel/pci-common.c
1159
struct resource **firstpp = NULL;
arch/powerpc/kernel/pci-common.c
1223
struct resource *res, *pr;
arch/powerpc/kernel/pci-common.c
1292
struct resource *pr, *r = &dev->resource[idx];
arch/powerpc/kernel/pci-common.c
1316
struct resource *r;
arch/powerpc/kernel/pci-common.c
1321
r = &dev->resource[idx];
arch/powerpc/kernel/pci-common.c
1340
r = &dev->resource[PCI_ROM_RESOURCE];
arch/powerpc/kernel/pci-common.c
1362
struct resource *res, *pres;
arch/powerpc/kernel/pci-common.c
1371
res = kzalloc_obj(struct resource);
arch/powerpc/kernel/pci-common.c
1399
res = kzalloc_obj(struct resource);
arch/powerpc/kernel/pci-common.c
1455
struct resource *r;
arch/powerpc/kernel/pci-common.c
1531
struct resource *res;
arch/powerpc/kernel/pci-common.c
1710
struct resource *r;
arch/powerpc/kernel/pci-common.c
529
struct resource *found = NULL;
arch/powerpc/kernel/pci-common.c
539
struct resource *rp = &pdev->resource[i];
arch/powerpc/kernel/pci-common.c
572
struct resource *rp = &hose->io_resource;
arch/powerpc/kernel/pci-common.c
612
struct resource *rp = &hose->io_resource;
arch/powerpc/kernel/pci-common.c
661
struct resource *rp;
arch/powerpc/kernel/pci-common.c
706
const struct resource *rsrc,
arch/powerpc/kernel/pci-common.c
713
(struct resource *) rsrc);
arch/powerpc/kernel/pci-common.c
758
struct resource *res;
arch/powerpc/kernel/pci-common.c
882
struct resource *res;
arch/powerpc/kernel/pci-common.c
933
struct resource *res)
arch/powerpc/kernel/pci_32.c
233
struct resource *res = &hose->io_resource;
arch/powerpc/kernel/pci_32.c
58
dev->resource[0].start = dev->resource[0].end = 0;
arch/powerpc/kernel/pci_32.c
59
dev->resource[0].flags = 0;
arch/powerpc/kernel/pci_32.c
60
dev->resource[1].start = dev->resource[1].end = 0;
arch/powerpc/kernel/pci_32.c
61
dev->resource[1].flags = 0;
arch/powerpc/kernel/pci_64.c
206
bus->resource[0]->start + _IO_BASE,
arch/powerpc/kernel/pci_64.c
207
bus->resource[0]->end + _IO_BASE);
arch/powerpc/kernel/pci_64.c
96
struct resource *res = bus->resource[0];
arch/powerpc/kernel/pci_of_scan.c
122
struct resource *res;
arch/powerpc/kernel/pci_of_scan.c
151
res = &dev->resource[(i - PCI_BASE_ADDRESS_0) >> 2];
arch/powerpc/kernel/pci_of_scan.c
153
res = &dev->resource[PCI_ROM_RESOURCE];
arch/powerpc/kernel/pci_of_scan.c
265
struct resource *res;
arch/powerpc/kernel/pci_of_scan.c
304
res = &dev->resource[PCI_BRIDGE_RESOURCES];
arch/powerpc/kernel/pci_of_scan.c
307
bus->resource[i] = res;
arch/powerpc/kernel/pci_of_scan.c
317
res = bus->resource[0];
arch/powerpc/kernel/pci_of_scan.c
329
res = bus->resource[i];
arch/powerpc/kernel/rtas_pci.c
157
struct resource registers;
arch/powerpc/kernel/rtas_pci.c
202
struct resource r;
arch/powerpc/kvm/book3s_hv.c
911
unsigned long resource, unsigned long value1,
arch/powerpc/kvm/book3s_hv.c
914
switch (resource) {
arch/powerpc/kvm/book3s_hv_uvmem.c
1162
struct resource *res;
arch/powerpc/kvm/book3s_pr_papr.c
287
unsigned long resource = kvmppc_get_gpr(vcpu, 5);
arch/powerpc/kvm/book3s_pr_papr.c
289
if (resource == H_SET_MODE_RESOURCE_ADDR_TRANS_MODE) {
arch/powerpc/mm/mem.c
333
struct resource *res;
arch/powerpc/mm/mem.c
335
res = kzalloc_obj(struct resource);
arch/powerpc/mm/numa.c
1289
struct resource res;
arch/powerpc/platforms/44x/hsta_msi.c
125
struct resource *mem;
arch/powerpc/platforms/44x/pci.c
1684
struct resource *res = &hose->mem_resources[i];
arch/powerpc/platforms/44x/pci.c
1733
struct resource *res)
arch/powerpc/platforms/44x/pci.c
1806
struct resource dma_window;
arch/powerpc/platforms/44x/pci.c
255
struct resource *res = &hose->mem_resources[i];
arch/powerpc/platforms/44x/pci.c
293
const struct resource *res)
arch/powerpc/platforms/44x/pci.c
318
struct resource rsrc_cfg;
arch/powerpc/platforms/44x/pci.c
319
struct resource rsrc_reg;
arch/powerpc/platforms/44x/pci.c
320
struct resource dma_window;
arch/powerpc/platforms/44x/pci.c
454
struct resource *res = &hose->mem_resources[i];
arch/powerpc/platforms/44x/pci.c
492
const struct resource *res,
arch/powerpc/platforms/44x/pci.c
522
struct resource rsrc_cfg;
arch/powerpc/platforms/44x/pci.c
523
struct resource rsrc_reg;
arch/powerpc/platforms/44x/pci.c
524
struct resource dma_window;
arch/powerpc/platforms/44x/pci.c
60
struct resource *r;
arch/powerpc/platforms/44x/pci.c
638
struct resource cfg_space;
arch/powerpc/platforms/44x/pci.c
639
struct resource utl_regs;
arch/powerpc/platforms/44x/pci.c
94
struct resource *res)
arch/powerpc/platforms/512x/clock-commonclk.c
1031
struct resource res;
arch/powerpc/platforms/512x/mpc512x_lpbfifo.c
411
struct resource r;
arch/powerpc/platforms/52xx/lite5200_pm.c
57
struct resource res;
arch/powerpc/platforms/52xx/mpc52xx_pci.c
242
struct resource *res;
arch/powerpc/platforms/52xx/mpc52xx_pci.c
330
struct resource *res;
arch/powerpc/platforms/52xx/mpc52xx_pci.c
349
struct resource *res = &dev->resource[1];
arch/powerpc/platforms/52xx/mpc52xx_pci.c
361
struct resource rsrc;
arch/powerpc/platforms/52xx/mpc52xx_pm.c
70
struct resource res;
arch/powerpc/platforms/82xx/ep8248e.c
112
struct resource res;
arch/powerpc/platforms/83xx/km83xx.c
49
struct resource res;
arch/powerpc/platforms/83xx/mpc832x_rdb.c
54
struct resource res[2];
arch/powerpc/platforms/83xx/suspend.c
347
struct resource res;
arch/powerpc/platforms/83xx/usb_831x.c
27
struct resource res;
arch/powerpc/platforms/85xx/ge_imp3a.c
85
struct resource rsrc;
arch/powerpc/platforms/85xx/mpc85xx_mds.c
287
struct resource res;
arch/powerpc/platforms/85xx/xes_mpc85xx.c
85
struct resource r[2];
arch/powerpc/platforms/8xx/cpm1-ic.c
86
struct resource *res;
arch/powerpc/platforms/8xx/pic.c
129
struct resource res;
arch/powerpc/platforms/chrp/pci.c
137
struct resource r;
arch/powerpc/platforms/chrp/pci.c
168
struct resource r;
arch/powerpc/platforms/chrp/pci.c
217
struct resource r;
arch/powerpc/platforms/chrp/pegasos_eth.c
100
.resource = mv643xx_eth_port1_resources,
arch/powerpc/platforms/chrp/pegasos_eth.c
37
static struct resource mv643xx_eth_shared_resources[] = {
arch/powerpc/platforms/chrp/pegasos_eth.c
51
.resource = mv643xx_eth_shared_resources,
arch/powerpc/platforms/chrp/pegasos_eth.c
57
static struct resource mv643xx_eth_mvmdio_resources[] = {
arch/powerpc/platforms/chrp/pegasos_eth.c
70
.resource = mv643xx_eth_mvmdio_resources,
arch/powerpc/platforms/chrp/pegasos_eth.c
73
static struct resource mv643xx_eth_port1_resources[] = {
arch/powerpc/platforms/chrp/setup.c
387
struct resource r;
arch/powerpc/platforms/chrp/time.c
44
struct resource r;
arch/powerpc/platforms/embedded6xx/flipper-pic.c
127
struct resource res;
arch/powerpc/platforms/embedded6xx/hlwd-pic.c
159
struct resource res;
arch/powerpc/platforms/embedded6xx/holly.c
208
struct resource res;
arch/powerpc/platforms/embedded6xx/ls_uart.c
118
struct resource res;
arch/powerpc/platforms/embedded6xx/wii.c
61
struct resource res;
arch/powerpc/platforms/fsl_uli1575.c
224
struct resource *res;
arch/powerpc/platforms/pasemi/dma_lib.c
504
struct resource res;
arch/powerpc/platforms/pasemi/pci.c
109
struct resource res;
arch/powerpc/platforms/pasemi/setup.c
76
static struct resource rtc_resource[] = {{
arch/powerpc/platforms/powermac/feature.c
2548
struct resource res;
arch/powerpc/platforms/powermac/nvram.c
560
struct resource r1, r2;
arch/powerpc/platforms/powermac/pci.c
1027
dev->resource[0].flags = 0;
arch/powerpc/platforms/powermac/pci.c
1157
dev->resource[i].start = dev->resource[i].end = 0;
arch/powerpc/platforms/powermac/pci.c
1158
dev->resource[i].flags = 0;
arch/powerpc/platforms/powermac/pci.c
1167
dev->resource[i].start = dev->resource[i].end = 0;
arch/powerpc/platforms/powermac/pci.c
1168
dev->resource[i].flags = 0;
arch/powerpc/platforms/powermac/pci.c
1197
struct resource *region = NULL;
arch/powerpc/platforms/powermac/pci.c
1207
struct resource *r = &host->mem_resources[i];
arch/powerpc/platforms/powermac/pci.c
205
struct resource *addr)
arch/powerpc/platforms/powermac/pci.c
603
struct resource *addr)
arch/powerpc/platforms/powermac/pci.c
612
struct resource *addr)
arch/powerpc/platforms/powermac/pci.c
705
struct resource cfg_res, self_res;
arch/powerpc/platforms/powermac/pci.c
776
struct resource rsrc;
arch/powerpc/platforms/powermac/pic.c
289
struct resource r;
arch/powerpc/platforms/powermac/time.c
174
struct resource rsrc;
arch/powerpc/platforms/powernv/opal-irqchip.c
224
opal_irqs = kzalloc_objs(struct resource, opal_irq_count);
arch/powerpc/platforms/powernv/opal-irqchip.c
234
struct resource *r = &opal_irqs[i];
arch/powerpc/platforms/powernv/opal-irqchip.c
270
struct resource *r = &opal_irqs[i];
arch/powerpc/platforms/powernv/opal-irqchip.c
39
static struct resource *opal_irqs;
arch/powerpc/platforms/powernv/pci-ioda.c
1915
struct resource *res)
arch/powerpc/platforms/powernv/pci-ioda.c
1991
pnv_ioda_setup_pe_res(pe, &pdev->resource[i]);
arch/powerpc/platforms/powernv/pci-ioda.c
2002
&pdev->resource[PCI_BRIDGE_RESOURCES + i]);
arch/powerpc/platforms/powernv/pci-ioda.c
202
struct resource *r;
arch/powerpc/platforms/powernv/pci-ioda.c
2179
struct resource *r, *w;
arch/powerpc/platforms/powernv/pci-ioda.c
2190
r = &bridge->resource[PCI_BRIDGE_RESOURCES + i];
arch/powerpc/platforms/powernv/pci-ioda.c
2503
struct resource r;
arch/powerpc/platforms/powernv/pci-ioda.c
256
struct resource *r;
arch/powerpc/platforms/powernv/pci-ioda.c
263
r = &pdev->resource[i];
arch/powerpc/platforms/powernv/pci-ioda.c
356
struct resource *res;
arch/powerpc/platforms/powernv/pci-sriov.c
146
struct resource *res;
arch/powerpc/platforms/powernv/pci-sriov.c
159
res = &pdev->resource[i + PCI_IOV_RESOURCES];
arch/powerpc/platforms/powernv/pci-sriov.c
217
res = &pdev->resource[i + PCI_IOV_RESOURCES];
arch/powerpc/platforms/powernv/pci-sriov.c
420
struct resource *res;
arch/powerpc/platforms/powernv/pci-sriov.c
430
res = &pdev->resource[i + PCI_IOV_RESOURCES];
arch/powerpc/platforms/powernv/pci-sriov.c
505
struct resource *res, res2;
arch/powerpc/platforms/powernv/pci-sriov.c
525
res = &dev->resource[i + PCI_IOV_RESOURCES];
arch/powerpc/platforms/powernv/pci-sriov.c
558
res = &dev->resource[i + PCI_IOV_RESOURCES];
arch/powerpc/platforms/powernv/pci.h
186
static inline bool pnv_pci_is_m64(struct pnv_phb *phb, struct resource *r)
arch/powerpc/platforms/powernv/pci.h
251
struct resource holes[PCI_SRIOV_NUM_BARS];
arch/powerpc/platforms/powernv/rng.c
120
struct resource res;
arch/powerpc/platforms/powernv/vas.c
102
res = &pdev->resource[3];
arch/powerpc/platforms/powernv/vas.c
56
struct resource *res;
arch/powerpc/platforms/powernv/vas.c
93
res = &pdev->resource[0];
arch/powerpc/platforms/powernv/vas.c
96
res = &pdev->resource[1];
arch/powerpc/platforms/powernv/vas.c
99
res = &pdev->resource[2];
arch/powerpc/platforms/pseries/dlpar.c
593
switch (hp_elog->resource) {
arch/powerpc/platforms/pseries/dlpar.c
609
hp_elog->resource);
arch/powerpc/platforms/pseries/dlpar.c
655
hp_elog->resource = PSERIES_HP_ELOG_RESOURCE_MEM;
arch/powerpc/platforms/pseries/dlpar.c
657
hp_elog->resource = PSERIES_HP_ELOG_RESOURCE_CPU;
arch/powerpc/platforms/pseries/dlpar.c
659
hp_elog->resource = PSERIES_HP_ELOG_RESOURCE_DT;
arch/powerpc/platforms/pseries/hotplug-memory.c
269
struct resource res;
arch/powerpc/platforms/pseries/hotplug-memory.c
875
struct resource res;
arch/powerpc/platforms/pseries/papr_scm.c
67
struct resource res;
arch/powerpc/platforms/pseries/pci.c
214
struct resource *r;
arch/powerpc/platforms/pseries/pci.c
81
struct resource *res;
arch/powerpc/platforms/pseries/pci.c
93
res = &pdev->resource[i + PCI_IOV_RESOURCES];
arch/powerpc/platforms/pseries/pci_dlpar.c
72
struct resource *res;
arch/powerpc/platforms/pseries/ras.c
312
if (hp_elog->resource == PSERIES_HP_ELOG_RESOURCE_MEM ||
arch/powerpc/platforms/pseries/ras.c
313
hp_elog->resource == PSERIES_HP_ELOG_RESOURCE_CPU ||
arch/powerpc/platforms/pseries/ras.c
314
hp_elog->resource == PSERIES_HP_ELOG_RESOURCE_PMEM)
arch/powerpc/platforms/pseries/setup.c
699
struct resource *res;
arch/powerpc/platforms/pseries/setup.c
707
res = &dev->resource[r + PCI_IOV_RESOURCES];
arch/powerpc/platforms/pseries/setup.c
721
struct resource *res, *root, *conflict;
arch/powerpc/platforms/pseries/setup.c
733
res = &dev->resource[r + PCI_IOV_RESOURCES];
arch/powerpc/platforms/pseries/setup.c
760
pdev->resource[i + PCI_IOV_RESOURCES].flags = 0;
arch/powerpc/sysdev/dart_iommu.c
263
struct resource r;
arch/powerpc/sysdev/fsl_msi.c
396
struct resource res, msiir;
arch/powerpc/sysdev/fsl_pci.c
1048
struct resource *res;
arch/powerpc/sysdev/fsl_pci.c
1329
pdev->resource,
arch/powerpc/sysdev/fsl_pci.c
146
unsigned int index, const struct resource *res,
arch/powerpc/sysdev/fsl_pci.c
504
struct resource *res = bus->resource[i];
arch/powerpc/sysdev/fsl_pci.c
505
struct resource *par;
arch/powerpc/sysdev/fsl_pci.c
526
struct resource rsrc;
arch/powerpc/sysdev/fsl_pci.c
764
struct resource *reg)
arch/powerpc/sysdev/fsl_pci.c
814
struct resource rsrc_reg;
arch/powerpc/sysdev/fsl_pci.c
815
struct resource rsrc_cfg;
arch/powerpc/sysdev/fsl_rio.c
565
struct resource res;
arch/powerpc/sysdev/fsl_soc.c
48
struct resource res;
arch/powerpc/sysdev/i8259.c
140
static struct resource pic1_iores = {
arch/powerpc/sysdev/i8259.c
147
static struct resource pic2_iores = {
arch/powerpc/sysdev/i8259.c
154
static struct resource pic_edgectrl_iores = {
arch/powerpc/sysdev/ipic.c
703
struct resource res;
arch/powerpc/sysdev/mmio_nvram.c
101
struct resource r;
arch/powerpc/sysdev/mpic.c
1256
struct resource r;
arch/powerpc/sysdev/mpic_msgr.c
171
struct resource rsrc;
arch/powerpc/sysdev/of_rtc.c
34
struct resource *res;
arch/powerpc/sysdev/rtc_cmos_setup.c
24
struct resource res[2];
arch/powerpc/sysdev/tsi108_dev.c
48
struct resource res;
arch/powerpc/sysdev/tsi108_dev.c
68
struct resource res;
arch/powerpc/sysdev/tsi108_dev.c
72
struct resource r[2];
arch/powerpc/sysdev/tsi108_pci.c
188
struct resource rsrc;
arch/powerpc/sysdev/xics/icp-native.c
272
struct resource r;
arch/powerpc/sysdev/xive/native.c
560
struct resource r;
arch/powerpc/sysdev/xive/spapr.c
816
struct resource r;
arch/riscv/include/asm/irq.h
45
int __init acpi_rintc_get_imsic_mmio_info(u32 index, struct resource *res);
arch/riscv/include/asm/irq.h
76
static inline int __init acpi_rintc_get_imsic_mmio_info(u32 index, struct resource *res)
arch/riscv/kernel/machine_kexec_file.c
39
static int get_nr_ram_ranges_callback(struct resource *res, void *arg)
arch/riscv/kernel/machine_kexec_file.c
47
static int prepare_elf64_ram_headers_callback(struct resource *res, void *arg)
arch/riscv/kernel/setup.c
145
struct resource *res = NULL;
arch/riscv/kernel/setup.c
146
struct resource *mem_res = NULL;
arch/riscv/kernel/setup.c
239
struct resource *mem = &standard_resources[i];
arch/riscv/kernel/setup.c
63
static struct resource kimage_res = { .name = "Kernel image", };
arch/riscv/kernel/setup.c
64
static struct resource code_res = { .name = "Kernel code", };
arch/riscv/kernel/setup.c
65
static struct resource data_res = { .name = "Kernel data", };
arch/riscv/kernel/setup.c
66
static struct resource rodata_res = { .name = "Kernel rodata", };
arch/riscv/kernel/setup.c
67
static struct resource bss_res = { .name = "Kernel bss", };
arch/riscv/kernel/setup.c
69
static struct resource elfcorehdr_res = { .name = "ELF Core hdr", };
arch/riscv/kernel/setup.c
73
static struct resource *standard_resources;
arch/riscv/kernel/setup.c
75
static int __init add_resource(struct resource *parent,
arch/riscv/kernel/setup.c
76
struct resource *res)
arch/s390/include/asm/pci.h
112
struct resource bus_resource;
arch/s390/include/asm/pci.h
95
struct resource *res; /* bus resource */
arch/s390/kernel/setup.c
469
static struct resource code_resource = {
arch/s390/kernel/setup.c
474
static struct resource data_resource = {
arch/s390/kernel/setup.c
479
static struct resource bss_resource = {
arch/s390/kernel/setup.c
484
static struct resource __initdata *standard_resources[] = {
arch/s390/kernel/setup.c
492
struct resource *res, *std_res, *sub_res;
arch/s390/mm/extmem.c
320
seg->res = kzalloc_obj(struct resource);
arch/s390/mm/extmem.c
74
struct resource *res;
arch/s390/pci/pci.c
268
resource_size_t pcibios_align_resource(void *data, const struct resource *res,
arch/s390/pci/pci.c
441
pdev->resource[i].start =
arch/s390/pci/pci.c
444
pdev->resource[i].start = (resource_size_t __force)
arch/s390/pci/pci.c
446
pdev->resource[i].end = pdev->resource[i].start + len - 1;
arch/s390/pci/pci.c
466
pdev->resource[i].start);
arch/s390/pci/pci.c
521
static struct resource *__alloc_res(struct zpci_dev *zdev, unsigned long start,
arch/s390/pci/pci.c
524
struct resource *r;
arch/s390/pci/pci.c
545
struct resource *res;
arch/s390/pci/pci.c
586
struct resource *res;
arch/s390/pci/pci.c
608
struct resource *res;
arch/s390/pci/pci.c
619
res = &pdev->resource[i];
arch/s390/pci/pci_iov.c
17
static struct resource iov_res = {
arch/s390/pci/pci_iov.c
35
pdev->resource[bar].parent = &iov_res;
arch/sh/boards/board-apsh4a3a.c
100
.resource = smsc911x_resources,
arch/sh/boards/board-apsh4a3a.c
51
static struct resource nor_flash_resources[] = {
arch/sh/boards/board-apsh4a3a.c
65
.resource = nor_flash_resources,
arch/sh/boards/board-apsh4a3a.c
74
static struct resource smsc911x_resources[] = {
arch/sh/boards/board-apsh4ad0a.c
26
static struct resource smsc911x_resources[] = {
arch/sh/boards/board-apsh4ad0a.c
52
.resource = smsc911x_resources,
arch/sh/boards/board-edosk7705.c
37
static struct resource smc91x_res[] = {
arch/sh/boards/board-edosk7705.c
54
.resource = smc91x_res,
arch/sh/boards/board-edosk7760.c
101
.resource = sh7760_i2c1_res,
arch/sh/boards/board-edosk7760.c
105
static struct resource sh7760_i2c0_res[] = {
arch/sh/boards/board-edosk7760.c
123
.resource = sh7760_i2c0_res,
arch/sh/boards/board-edosk7760.c
132
static struct resource smc91x_res[] = {
arch/sh/boards/board-edosk7760.c
149
.resource = smc91x_res,
arch/sh/boards/board-edosk7760.c
59
static struct resource edosk7760_nor_flash_resources[] = {
arch/sh/boards/board-edosk7760.c
70
.resource = edosk7760_nor_flash_resources,
arch/sh/boards/board-edosk7760.c
82
static struct resource sh7760_i2c1_res[] = {
arch/sh/boards/board-espt.c
42
static struct resource espt_nor_flash_resources[] = {
arch/sh/boards/board-espt.c
53
.resource = espt_nor_flash_resources,
arch/sh/boards/board-espt.c
61
static struct resource sh_eth_resources[] = {
arch/sh/boards/board-espt.c
84
.resource = sh_eth_resources,
arch/sh/boards/board-magicpanelr2.c
248
static struct resource smsc911x_resources[] = {
arch/sh/boards/board-magicpanelr2.c
272
.resource = smsc911x_resources,
arch/sh/boards/board-magicpanelr2.c
278
static struct resource heartbeat_resources[] = {
arch/sh/boards/board-magicpanelr2.c
297
.resource = heartbeat_resources,
arch/sh/boards/board-magicpanelr2.c
328
static struct resource flash_resource = {
arch/sh/boards/board-magicpanelr2.c
337
.resource = &flash_resource,
arch/sh/boards/board-polaris.c
34
static struct resource smsc911x_resources[] = {
arch/sh/boards/board-polaris.c
60
.resource = smsc911x_resources,
arch/sh/boards/board-polaris.c
73
static struct resource heartbeat_resource = {
arch/sh/boards/board-polaris.c
86
.resource = &heartbeat_resource,
arch/sh/boards/board-sh2007.c
101
.resource = cf_resources,
arch/sh/boards/board-sh2007.c
33
static struct resource smsc9118_0_resources[] = {
arch/sh/boards/board-sh2007.c
46
static struct resource smsc9118_1_resources[] = {
arch/sh/boards/board-sh2007.c
63
.resource = smsc9118_0_resources,
arch/sh/boards/board-sh2007.c
73
.resource = smsc9118_1_resources,
arch/sh/boards/board-sh2007.c
79
static struct resource cf_resources[] = {
arch/sh/boards/board-sh7757lcr.c
108
.resource = sh_eth1_resources,
arch/sh/boards/board-sh7757lcr.c
127
static struct resource sh_eth_giga0_resources[] = {
arch/sh/boards/board-sh7757lcr.c
152
.resource = sh_eth_giga0_resources,
arch/sh/boards/board-sh7757lcr.c
160
static struct resource sh_eth_giga1_resources[] = {
arch/sh/boards/board-sh7757lcr.c
185
.resource = sh_eth_giga1_resources,
arch/sh/boards/board-sh7757lcr.c
203
static struct resource sh_mmcif_resources[] = {
arch/sh/boards/board-sh7757lcr.c
235
.resource = sh_mmcif_resources,
arch/sh/boards/board-sh7757lcr.c
245
static struct resource sdhi_resources[] = {
arch/sh/boards/board-sh7757lcr.c
26
static struct resource heartbeat_resource = {
arch/sh/boards/board-sh7757lcr.c
260
.resource = sdhi_resources,
arch/sh/boards/board-sh7757lcr.c
281
static struct resource usb0_resources[] = {
arch/sh/boards/board-sh7757lcr.c
301
.resource = usb0_resources,
arch/sh/boards/board-sh7757lcr.c
47
.resource = &heartbeat_resource,
arch/sh/boards/board-sh7757lcr.c
62
static struct resource sh_eth0_resources[] = {
arch/sh/boards/board-sh7757lcr.c
81
.resource = sh_eth0_resources,
arch/sh/boards/board-sh7757lcr.c
89
static struct resource sh_eth1_resources[] = {
arch/sh/boards/board-sh7785lcr.c
100
static struct resource r8a66597_usb_host_resources[] = {
arch/sh/boards/board-sh7785lcr.c
122
.resource = r8a66597_usb_host_resources,
arch/sh/boards/board-sh7785lcr.c
125
static struct resource sm501_resources[] = {
arch/sh/boards/board-sh7785lcr.c
215
.resource = sm501_resources,
arch/sh/boards/board-sh7785lcr.c
218
static struct resource i2c_proto_resources[] = {
arch/sh/boards/board-sh7785lcr.c
231
static struct resource i2c_resources[] = {
arch/sh/boards/board-sh7785lcr.c
264
.resource = i2c_resources,
arch/sh/boards/board-sh7785lcr.c
287
i2c_device.resource = i2c_proto_resources;
arch/sh/boards/board-sh7785lcr.c
36
static struct resource heartbeat_resource = {
arch/sh/boards/board-sh7785lcr.c
46
.resource = &heartbeat_resource,
arch/sh/boards/board-sh7785lcr.c
78
static struct resource nor_flash_resources[] = {
arch/sh/boards/board-sh7785lcr.c
92
.resource = nor_flash_resources,
arch/sh/boards/board-urquell.c
125
static struct resource nor_flash_resources[] = {
arch/sh/boards/board-urquell.c
139
.resource = nor_flash_resources,
arch/sh/boards/board-urquell.c
53
static struct resource heartbeat_resource = {
arch/sh/boards/board-urquell.c
63
.resource = &heartbeat_resource,
arch/sh/boards/board-urquell.c
71
static struct resource smc91x_eth_resources[] = {
arch/sh/boards/board-urquell.c
87
.resource = smc91x_eth_resources,
arch/sh/boards/mach-ap325rxa/setup.c
118
static struct resource ap325rxa_nor_flash_resources[] = {
arch/sh/boards/mach-ap325rxa/setup.c
129
.resource = ap325rxa_nor_flash_resources,
arch/sh/boards/mach-ap325rxa/setup.c
144
static struct resource nand_flash_resources[] = {
arch/sh/boards/mach-ap325rxa/setup.c
161
.resource = nand_flash_resources,
arch/sh/boards/mach-ap325rxa/setup.c
241
static struct resource lcdc_resources[] = {
arch/sh/boards/mach-ap325rxa/setup.c
257
.resource = lcdc_resources,
arch/sh/boards/mach-ap325rxa/setup.c
284
static struct resource ceu_resources[] = {
arch/sh/boards/mach-ap325rxa/setup.c
301
.resource = ceu_resources,
arch/sh/boards/mach-ap325rxa/setup.c
316
static struct resource sdhi0_cn3_resources[] = {
arch/sh/boards/mach-ap325rxa/setup.c
337
.resource = sdhi0_cn3_resources,
arch/sh/boards/mach-ap325rxa/setup.c
343
static struct resource sdhi1_cn7_resources[] = {
arch/sh/boards/mach-ap325rxa/setup.c
364
.resource = sdhi1_cn7_resources,
arch/sh/boards/mach-ap325rxa/setup.c
59
static struct resource smsc9118_resources[] = {
arch/sh/boards/mach-ap325rxa/setup.c
76
.resource = smsc9118_resources,
arch/sh/boards/mach-ecovec24/setup.c
1006
.resource = sh_mmcif_resources,
arch/sh/boards/mach-ecovec24/setup.c
110
.resource = &heartbeat_resource,
arch/sh/boards/mach-ecovec24/setup.c
133
static struct resource nor_flash_resources[] = {
arch/sh/boards/mach-ecovec24/setup.c
144
.resource = nor_flash_resources,
arch/sh/boards/mach-ecovec24/setup.c
153
static struct resource sh_eth_resources[] = {
arch/sh/boards/mach-ecovec24/setup.c
178
.resource = sh_eth_resources,
arch/sh/boards/mach-ecovec24/setup.c
192
static struct resource usb0_host_resources[] = {
arch/sh/boards/mach-ecovec24/setup.c
214
.resource = usb0_host_resources,
arch/sh/boards/mach-ecovec24/setup.c
228
static struct resource usb1_common_resources[] = {
arch/sh/boards/mach-ecovec24/setup.c
250
.resource = usb1_common_resources,
arch/sh/boards/mach-ecovec24/setup.c
285
static struct resource usbhs_resources[] = {
arch/sh/boards/mach-ecovec24/setup.c
307
.resource = usbhs_resources,
arch/sh/boards/mach-ecovec24/setup.c
353
static struct resource lcdc_resources[] = {
arch/sh/boards/mach-ecovec24/setup.c
369
.resource = lcdc_resources,
arch/sh/boards/mach-ecovec24/setup.c
422
static struct resource ceu0_resources[] = {
arch/sh/boards/mach-ecovec24/setup.c
439
.resource = ceu0_resources,
arch/sh/boards/mach-ecovec24/setup.c
459
static struct resource ceu1_resources[] = {
arch/sh/boards/mach-ecovec24/setup.c
476
.resource = ceu1_resources,
arch/sh/boards/mach-ecovec24/setup.c
566
static struct resource keysc_resources[] = {
arch/sh/boards/mach-ecovec24/setup.c
583
.resource = keysc_resources,
arch/sh/boards/mach-ecovec24/setup.c
723
static struct resource sdhi0_resources[] = {
arch/sh/boards/mach-ecovec24/setup.c
739
.resource = sdhi0_resources,
arch/sh/boards/mach-ecovec24/setup.c
764
static struct resource sdhi1_resources[] = {
arch/sh/boards/mach-ecovec24/setup.c
780
.resource = sdhi1_resources,
arch/sh/boards/mach-ecovec24/setup.c
831
static struct resource msiof0_resources[] = {
arch/sh/boards/mach-ecovec24/setup.c
851
.resource = msiof0_resources,
arch/sh/boards/mach-ecovec24/setup.c
865
static struct resource fsi_resources[] = {
arch/sh/boards/mach-ecovec24/setup.c
882
.resource = fsi_resources,
arch/sh/boards/mach-ecovec24/setup.c
910
static struct resource irda_resources[] = {
arch/sh/boards/mach-ecovec24/setup.c
926
.resource = irda_resources,
arch/sh/boards/mach-ecovec24/setup.c
948
static struct resource sh_vou_resources[] = {
arch/sh/boards/mach-ecovec24/setup.c
964
.resource = sh_vou_resources,
arch/sh/boards/mach-ecovec24/setup.c
97
static struct resource heartbeat_resource = {
arch/sh/boards/mach-ecovec24/setup.c
972
static struct resource sh_mmcif_resources[] = {
arch/sh/boards/mach-highlander/psw.c
105
.resource = psw_resources,
arch/sh/boards/mach-highlander/psw.c
50
static struct resource psw_resources[] = {
arch/sh/boards/mach-highlander/psw.c
69
.resource = psw_resources,
arch/sh/boards/mach-highlander/psw.c
87
.resource = psw_resources,
arch/sh/boards/mach-highlander/setup.c
120
.resource = cf_ide_resources,
arch/sh/boards/mach-highlander/setup.c
126
static struct resource heartbeat_resources[] = {
arch/sh/boards/mach-highlander/setup.c
154
.resource = heartbeat_resources,
arch/sh/boards/mach-highlander/setup.c
164
static struct resource ax88796_resources[] = {
arch/sh/boards/mach-highlander/setup.c
191
.resource = ax88796_resources,
arch/sh/boards/mach-highlander/setup.c
224
static struct resource nor_flash_resources[] = {
arch/sh/boards/mach-highlander/setup.c
238
.resource = nor_flash_resources,
arch/sh/boards/mach-highlander/setup.c
241
static struct resource smbus_resources[] = {
arch/sh/boards/mach-highlander/setup.c
258
.resource = smbus_resources,
arch/sh/boards/mach-highlander/setup.c
284
.resource = cf_ide_resources,
arch/sh/boards/mach-highlander/setup.c
38
static struct resource r8a66597_usb_host_resources[] = {
arch/sh/boards/mach-highlander/setup.c
60
.resource = r8a66597_usb_host_resources,
arch/sh/boards/mach-highlander/setup.c
68
static struct resource m66592_usb_peripheral_resources[] = {
arch/sh/boards/mach-highlander/setup.c
92
.resource = m66592_usb_peripheral_resources,
arch/sh/boards/mach-highlander/setup.c
95
static struct resource cf_ide_resources[] = {
arch/sh/boards/mach-hp6xx/setup.c
25
static struct resource cf_ide_resources[] = {
arch/sh/boards/mach-hp6xx/setup.c
46
.resource = cf_ide_resources,
arch/sh/boards/mach-kfr2r09/setup.c
101
.resource = kfr2r09_nand_flash_resources,
arch/sh/boards/mach-kfr2r09/setup.c
119
static struct resource kfr2r09_sh_keysc_resources[] = {
arch/sh/boards/mach-kfr2r09/setup.c
136
.resource = kfr2r09_sh_keysc_resources,
arch/sh/boards/mach-kfr2r09/setup.c
182
static struct resource kfr2r09_sh_lcdc_resources[] = {
arch/sh/boards/mach-kfr2r09/setup.c
198
.resource = kfr2r09_sh_lcdc_resources,
arch/sh/boards/mach-kfr2r09/setup.c
219
static struct resource kfr2r09_usb0_gadget_resources[] = {
arch/sh/boards/mach-kfr2r09/setup.c
241
.resource = kfr2r09_usb0_gadget_resources,
arch/sh/boards/mach-kfr2r09/setup.c
257
static struct resource kfr2r09_ceu_resources[] = {
arch/sh/boards/mach-kfr2r09/setup.c
275
.resource = kfr2r09_ceu_resources,
arch/sh/boards/mach-kfr2r09/setup.c
308
static struct resource kfr2r09_sh_sdhi0_resources[] = {
arch/sh/boards/mach-kfr2r09/setup.c
331
.resource = kfr2r09_sh_sdhi0_resources,
arch/sh/boards/mach-kfr2r09/setup.c
72
static struct resource kfr2r09_nor_flash_resources[] = {
arch/sh/boards/mach-kfr2r09/setup.c
83
.resource = kfr2r09_nor_flash_resources,
arch/sh/boards/mach-kfr2r09/setup.c
90
static struct resource kfr2r09_nand_flash_resources[] = {
arch/sh/boards/mach-landisk/psw.c
103
.resource = psw_usl5p_resources,
arch/sh/boards/mach-landisk/psw.c
113
.resource = psw_usl5p_resources,
arch/sh/boards/mach-landisk/psw.c
123
.resource = psw_usl5p_resources,
arch/sh/boards/mach-landisk/psw.c
47
static struct resource psw_power_resources[] = {
arch/sh/boards/mach-landisk/psw.c
54
static struct resource psw_usl5p_resources[] = {
arch/sh/boards/mach-landisk/psw.c
93
.resource = psw_power_resources,
arch/sh/boards/mach-landisk/setup.c
26
static struct resource cf_ide_resources[3];
arch/sh/boards/mach-landisk/setup.c
36
.resource = cf_ide_resources,
arch/sh/boards/mach-lboxre2/setup.c
18
static struct resource cf_ide_resources[] = {
arch/sh/boards/mach-lboxre2/setup.c
39
.resource = cf_ide_resources,
arch/sh/boards/mach-migor/setup.c
106
.resource = sh_keysc_resources,
arch/sh/boards/mach-migor/setup.c
138
static struct resource migor_nor_flash_resources[] = {
arch/sh/boards/mach-migor/setup.c
149
.resource = migor_nor_flash_resources,
arch/sh/boards/mach-migor/setup.c
201
static struct resource migor_nand_flash_resources[] = {
arch/sh/boards/mach-migor/setup.c
212
.resource = migor_nand_flash_resources,
arch/sh/boards/mach-migor/setup.c
283
static struct resource migor_lcdc_resources[] = {
arch/sh/boards/mach-migor/setup.c
299
.resource = migor_lcdc_resources,
arch/sh/boards/mach-migor/setup.c
325
static struct resource migor_ceu_resources[] = {
arch/sh/boards/mach-migor/setup.c
342
.resource = migor_ceu_resources,
arch/sh/boards/mach-migor/setup.c
373
static struct resource sdhi_cn9_resources[] = {
arch/sh/boards/mach-migor/setup.c
395
.resource = sdhi_cn9_resources,
arch/sh/boards/mach-migor/setup.c
55
static struct resource smc91x_eth_resources[] = {
arch/sh/boards/mach-migor/setup.c
71
.resource = smc91x_eth_resources,
arch/sh/boards/mach-migor/setup.c
90
static struct resource sh_keysc_resources[] = {
arch/sh/boards/mach-r2d/setup.c
108
.resource = heartbeat_resources,
arch/sh/boards/mach-r2d/setup.c
111
static struct resource sm501_resources[] = {
arch/sh/boards/mach-r2d/setup.c
181
.resource = sm501_resources,
arch/sh/boards/mach-r2d/setup.c
212
static struct resource flash_resource = {
arch/sh/boards/mach-r2d/setup.c
221
.resource = &flash_resource,
arch/sh/boards/mach-r2d/setup.c
240
.resource = cf_ide_resources,
arch/sh/boards/mach-r2d/setup.c
26
static struct resource cf_ide_resources[] = {
arch/sh/boards/mach-r2d/setup.c
53
.resource = cf_ide_resources,
arch/sh/boards/mach-r2d/setup.c
78
static struct resource spi_sh_sci_resources[] = {
arch/sh/boards/mach-r2d/setup.c
90
.resource = spi_sh_sci_resources,
arch/sh/boards/mach-r2d/setup.c
96
static struct resource heartbeat_resources[] = {
arch/sh/boards/mach-rsk/devices-rsk7203.c
27
static struct resource smsc911x_resources[] = {
arch/sh/boards/mach-rsk/devices-rsk7203.c
44
.resource = smsc911x_resources,
arch/sh/boards/mach-rsk/devices-rsk7264.c
23
static struct resource smsc911x_resources[] = {
arch/sh/boards/mach-rsk/devices-rsk7264.c
40
.resource = smsc911x_resources,
arch/sh/boards/mach-rsk/devices-rsk7269.c
25
static struct resource smsc911x_resources[] = {
arch/sh/boards/mach-rsk/devices-rsk7269.c
42
.resource = smsc911x_resources,
arch/sh/boards/mach-rsk/setup.c
50
static struct resource flash_resource = {
arch/sh/boards/mach-rsk/setup.c
59
.resource = &flash_resource,
arch/sh/boards/mach-sdk7780/setup.c
21
static struct resource heartbeat_resource = {
arch/sh/boards/mach-sdk7780/setup.c
31
.resource = &heartbeat_resource,
arch/sh/boards/mach-sdk7780/setup.c
35
static struct resource smc91x_eth_resources[] = {
arch/sh/boards/mach-sdk7780/setup.c
57
.resource = smc91x_eth_resources,
arch/sh/boards/mach-sdk7786/setup.c
101
.resource = &smbus_pcie_resource,
arch/sh/boards/mach-sdk7786/setup.c
27
static struct resource heartbeat_resource = {
arch/sh/boards/mach-sdk7786/setup.c
37
.resource = &heartbeat_resource,
arch/sh/boards/mach-sdk7786/setup.c
46
static struct resource smsc911x_resources[] = {
arch/sh/boards/mach-sdk7786/setup.c
72
.resource = smsc911x_resources,
arch/sh/boards/mach-sdk7786/setup.c
78
static struct resource smbus_fpga_resource = {
arch/sh/boards/mach-sdk7786/setup.c
88
.resource = &smbus_fpga_resource,
arch/sh/boards/mach-sdk7786/setup.c
91
static struct resource smbus_pcie_resource = {
arch/sh/boards/mach-se/7206/setup.c
19
static struct resource smc91x_resources[] = {
arch/sh/boards/mach-se/7206/setup.c
46
.resource = smc91x_resources,
arch/sh/boards/mach-se/7206/setup.c
56
static struct resource heartbeat_resource = {
arch/sh/boards/mach-se/7206/setup.c
69
.resource = &heartbeat_resource,
arch/sh/boards/mach-se/7343/setup.c
103
static struct resource usb_resources[] = {
arch/sh/boards/mach-se/7343/setup.c
133
.resource = usb_resources,
arch/sh/boards/mach-se/7343/setup.c
16
static struct resource heartbeat_resource = {
arch/sh/boards/mach-se/7343/setup.c
26
.resource = &heartbeat_resource,
arch/sh/boards/mach-se/7343/setup.c
53
static struct resource nor_flash_resources[] = {
arch/sh/boards/mach-se/7343/setup.c
67
.resource = nor_flash_resources,
arch/sh/boards/mach-se/770x/setup.c
100
static struct resource heartbeat_resource = {
arch/sh/boards/mach-se/770x/setup.c
113
.resource = &heartbeat_resource,
arch/sh/boards/mach-se/770x/setup.c
124
static struct resource sh_eth0_resources[] = {
arch/sh/boards/mach-se/770x/setup.c
149
.resource = sh_eth0_resources,
arch/sh/boards/mach-se/770x/setup.c
152
static struct resource sh_eth1_resources[] = {
arch/sh/boards/mach-se/770x/setup.c
177
.resource = sh_eth1_resources,
arch/sh/boards/mach-se/770x/setup.c
69
static struct resource cf_ide_resources[] = {
arch/sh/boards/mach-se/770x/setup.c
90
.resource = cf_ide_resources,
arch/sh/boards/mach-se/7721/setup.c
24
static struct resource heartbeat_resource = {
arch/sh/boards/mach-se/7721/setup.c
37
.resource = &heartbeat_resource,
arch/sh/boards/mach-se/7721/setup.c
40
static struct resource cf_ide_resources[] = {
arch/sh/boards/mach-se/7721/setup.c
61
.resource = cf_ide_resources,
arch/sh/boards/mach-se/7722/setup.c
109
static struct resource sh_keysc_resources[] = {
arch/sh/boards/mach-se/7722/setup.c
125
.resource = sh_keysc_resources,
arch/sh/boards/mach-se/7722/setup.c
27
static struct resource heartbeat_resource = {
arch/sh/boards/mach-se/7722/setup.c
37
.resource = &heartbeat_resource,
arch/sh/boards/mach-se/7722/setup.c
45
static struct resource smc91x_eth_resources[] = {
arch/sh/boards/mach-se/7722/setup.c
67
.resource = smc91x_eth_resources,
arch/sh/boards/mach-se/7722/setup.c
70
static struct resource cf_ide_resources[] = {
arch/sh/boards/mach-se/7722/setup.c
91
.resource = cf_ide_resources,
arch/sh/boards/mach-se/7724/setup.c
111
.resource = smc91x_eth_resources,
arch/sh/boards/mach-se/7724/setup.c
141
static struct resource nor_flash_resources[] = {
arch/sh/boards/mach-se/7724/setup.c
152
.resource = nor_flash_resources,
arch/sh/boards/mach-se/7724/setup.c
203
static struct resource lcdc_resources[] = {
arch/sh/boards/mach-se/7724/setup.c
219
.resource = lcdc_resources,
arch/sh/boards/mach-se/7724/setup.c
230
static struct resource ceu0_resources[] = {
arch/sh/boards/mach-se/7724/setup.c
247
.resource = ceu0_resources,
arch/sh/boards/mach-se/7724/setup.c
258
static struct resource ceu1_resources[] = {
arch/sh/boards/mach-se/7724/setup.c
275
.resource = ceu1_resources,
arch/sh/boards/mach-se/7724/setup.c
283
static struct resource fsi_resources[] = {
arch/sh/boards/mach-se/7724/setup.c
300
.resource = fsi_resources,
arch/sh/boards/mach-se/7724/setup.c
340
static struct resource keysc_resources[] = {
arch/sh/boards/mach-se/7724/setup.c
357
.resource = keysc_resources,
arch/sh/boards/mach-se/7724/setup.c
364
static struct resource sh_eth_resources[] = {
arch/sh/boards/mach-se/7724/setup.c
388
.resource = sh_eth_resources,
arch/sh/boards/mach-se/7724/setup.c
395
static struct resource sh7724_usb0_host_resources[] = {
arch/sh/boards/mach-se/7724/setup.c
417
.resource = sh7724_usb0_host_resources,
arch/sh/boards/mach-se/7724/setup.c
424
static struct resource sh7724_usb1_gadget_resources[] = {
arch/sh/boards/mach-se/7724/setup.c
446
.resource = sh7724_usb1_gadget_resources,
arch/sh/boards/mach-se/7724/setup.c
458
static struct resource sdhi0_cn7_resources[] = {
arch/sh/boards/mach-se/7724/setup.c
481
.resource = sdhi0_cn7_resources,
arch/sh/boards/mach-se/7724/setup.c
487
static struct resource sdhi1_cn8_resources[] = {
arch/sh/boards/mach-se/7724/setup.c
510
.resource = sdhi1_cn8_resources,
arch/sh/boards/mach-se/7724/setup.c
517
static struct resource irda_resources[] = {
arch/sh/boards/mach-se/7724/setup.c
533
.resource = irda_resources,
arch/sh/boards/mach-se/7724/setup.c
556
static struct resource sh_vou_resources[] = {
arch/sh/boards/mach-se/7724/setup.c
572
.resource = sh_vou_resources,
arch/sh/boards/mach-se/7724/setup.c
77
static struct resource heartbeat_resource = {
arch/sh/boards/mach-se/7724/setup.c
87
.resource = &heartbeat_resource,
arch/sh/boards/mach-se/7724/setup.c
95
static struct resource smc91x_eth_resources[] = {
arch/sh/boards/mach-se/7751/setup.c
26
static struct resource heartbeat_resources[] = {
arch/sh/boards/mach-se/7751/setup.c
41
.resource = heartbeat_resources,
arch/sh/boards/mach-se/7780/setup.c
17
static struct resource heartbeat_resource = {
arch/sh/boards/mach-se/7780/setup.c
27
.resource = &heartbeat_resource,
arch/sh/boards/mach-se/7780/setup.c
31
static struct resource smc91x_eth_resources[] = {
arch/sh/boards/mach-se/7780/setup.c
53
.resource = smc91x_eth_resources,
arch/sh/boards/mach-sh03/setup.c
25
static struct resource cf_ide_resources[] = {
arch/sh/boards/mach-sh03/setup.c
46
.resource = cf_ide_resources,
arch/sh/boards/mach-sh03/setup.c
49
static struct resource heartbeat_resources[] = {
arch/sh/boards/mach-sh03/setup.c
61
.resource = heartbeat_resources,
arch/sh/boards/mach-sh7763rdp/setup.c
100
static struct resource sh7763rdp_fb_resources[] = {
arch/sh/boards/mach-sh7763rdp/setup.c
140
.resource = sh7763rdp_fb_resources,
arch/sh/boards/mach-sh7763rdp/setup.c
46
static struct resource sh7763rdp_nor_flash_resources[] = {
arch/sh/boards/mach-sh7763rdp/setup.c
57
.resource = sh7763rdp_nor_flash_resources,
arch/sh/boards/mach-sh7763rdp/setup.c
70
static struct resource sh_eth_resources[] = {
arch/sh/boards/mach-sh7763rdp/setup.c
92
.resource = sh_eth_resources,
arch/sh/boards/mach-x3proto/setup.c
100
static struct resource m66592_usb_peripheral_resources[] = {
arch/sh/boards/mach-x3proto/setup.c
123
.resource = m66592_usb_peripheral_resources,
arch/sh/boards/mach-x3proto/setup.c
25
static struct resource heartbeat_resources[] = {
arch/sh/boards/mach-x3proto/setup.c
37
.resource = heartbeat_resources,
arch/sh/boards/mach-x3proto/setup.c
44
static struct resource smc91x_resources[] = {
arch/sh/boards/mach-x3proto/setup.c
59
.resource = smc91x_resources,
arch/sh/boards/mach-x3proto/setup.c
71
static struct resource r8a66597_usb_host_resources[] = {
arch/sh/boards/mach-x3proto/setup.c
92
.resource = r8a66597_usb_host_resources,
arch/sh/drivers/heartbeat.c
76
struct resource *res;
arch/sh/drivers/pci/fixups-dreamcast.c
31
struct resource res;
arch/sh/drivers/pci/fixups-dreamcast.c
41
dev->resource[1].start = p->resources[0].start + 0x100;
arch/sh/drivers/pci/fixups-dreamcast.c
42
dev->resource[1].end = dev->resource[1].start + 0x200 - 1;
arch/sh/drivers/pci/fixups-dreamcast.c
48
dev->resource[1].flags |= IORESOURCE_PCI_FIXED;
arch/sh/drivers/pci/pci-dreamcast.c
25
static struct resource gapspci_resources[] = {
arch/sh/drivers/pci/pci-sh7751.c
45
static struct resource sh7751_pci_resources[] = {
arch/sh/drivers/pci/pci-sh7780.c
28
static struct resource sh7785_pci_resources[] = {
arch/sh/drivers/pci/pci-sh7780.c
346
struct resource *res = chan->resources + i;
arch/sh/drivers/pci/pci.c
101
struct resource *res = hose->resources + i;
arch/sh/drivers/pci/pci.c
170
resource_size_t pcibios_align_resource(void *data, const struct resource *res,
arch/sh/drivers/pci/pci.c
36
struct resource *res;
arch/sh/drivers/pci/pcie-sh7786.c
142
struct resource *r;
arch/sh/drivers/pci/pcie-sh7786.c
42
static struct resource sh7786_pci0_resources[] = {
arch/sh/drivers/pci/pcie-sh7786.c
441
struct resource *res = chan->resources + i;
arch/sh/drivers/pci/pcie-sh7786.c
66
static struct resource sh7786_pci1_resources[] = {
arch/sh/drivers/pci/pcie-sh7786.c
90
static struct resource sh7786_pci2_resources[] = {
arch/sh/include/asm/io_trapped.h
13
struct resource *resource;
arch/sh/include/asm/pci.h
21
struct resource *resources;
arch/sh/include/cpu-common/cpu/pfc.h
13
struct resource;
arch/sh/include/cpu-common/cpu/pfc.h
16
struct resource *resource, u32 num_resources);
arch/sh/kernel/cpu/pfc.c
18
struct resource *resource, u32 num_resources)
arch/sh/kernel/cpu/pfc.c
22
sh_pfc_device.resource = resource;
arch/sh/kernel/cpu/sh2/setup-sh7619.c
106
static struct resource scif2_resources[] = {
arch/sh/kernel/cpu/sh2/setup-sh7619.c
114
.resource = scif2_resources,
arch/sh/kernel/cpu/sh2/setup-sh7619.c
126
static struct resource eth_resources[] = {
arch/sh/kernel/cpu/sh2/setup-sh7619.c
146
.resource = eth_resources,
arch/sh/kernel/cpu/sh2/setup-sh7619.c
153
static struct resource cmt_resources[] = {
arch/sh/kernel/cpu/sh2/setup-sh7619.c
165
.resource = cmt_resources,
arch/sh/kernel/cpu/sh2/setup-sh7619.c
66
static struct resource scif0_resources[] = {
arch/sh/kernel/cpu/sh2/setup-sh7619.c
74
.resource = scif0_resources,
arch/sh/kernel/cpu/sh2/setup-sh7619.c
86
static struct resource scif1_resources[] = {
arch/sh/kernel/cpu/sh2/setup-sh7619.c
94
.resource = scif1_resources,
arch/sh/kernel/cpu/sh2a/pinmux-sh7203.c
14
static struct resource sh7203_pfc_resources[] = {
arch/sh/kernel/cpu/sh2a/pinmux-sh7264.c
14
static struct resource sh7264_pfc_resources[] = {
arch/sh/kernel/cpu/sh2a/pinmux-sh7269.c
15
static struct resource sh7269_pfc_resources[] = {
arch/sh/kernel/cpu/sh2a/setup-mxg.c
115
static struct resource mtu2_resources[] = {
arch/sh/kernel/cpu/sh2a/setup-mxg.c
125
.resource = mtu2_resources,
arch/sh/kernel/cpu/sh2a/setup-mxg.c
134
static struct resource scif0_resources[] = {
arch/sh/kernel/cpu/sh2a/setup-mxg.c
142
.resource = scif0_resources,
arch/sh/kernel/cpu/sh2a/setup-sh7201.c
183
static struct resource scif0_resources[] = {
arch/sh/kernel/cpu/sh2a/setup-sh7201.c
191
.resource = scif0_resources,
arch/sh/kernel/cpu/sh2a/setup-sh7201.c
203
static struct resource scif1_resources[] = {
arch/sh/kernel/cpu/sh2a/setup-sh7201.c
211
.resource = scif1_resources,
arch/sh/kernel/cpu/sh2a/setup-sh7201.c
223
static struct resource scif2_resources[] = {
arch/sh/kernel/cpu/sh2a/setup-sh7201.c
231
.resource = scif2_resources,
arch/sh/kernel/cpu/sh2a/setup-sh7201.c
243
static struct resource scif3_resources[] = {
arch/sh/kernel/cpu/sh2a/setup-sh7201.c
251
.resource = scif3_resources,
arch/sh/kernel/cpu/sh2a/setup-sh7201.c
263
static struct resource scif4_resources[] = {
arch/sh/kernel/cpu/sh2a/setup-sh7201.c
271
.resource = scif4_resources,
arch/sh/kernel/cpu/sh2a/setup-sh7201.c
283
static struct resource scif5_resources[] = {
arch/sh/kernel/cpu/sh2a/setup-sh7201.c
291
.resource = scif5_resources,
arch/sh/kernel/cpu/sh2a/setup-sh7201.c
303
static struct resource scif6_resources[] = {
arch/sh/kernel/cpu/sh2a/setup-sh7201.c
311
.resource = scif6_resources,
arch/sh/kernel/cpu/sh2a/setup-sh7201.c
323
static struct resource scif7_resources[] = {
arch/sh/kernel/cpu/sh2a/setup-sh7201.c
331
.resource = scif7_resources,
arch/sh/kernel/cpu/sh2a/setup-sh7201.c
338
static struct resource rtc_resources[] = {
arch/sh/kernel/cpu/sh2a/setup-sh7201.c
355
.resource = rtc_resources,
arch/sh/kernel/cpu/sh2a/setup-sh7201.c
358
static struct resource mtu2_resources[] = {
arch/sh/kernel/cpu/sh2a/setup-sh7201.c
368
.resource = mtu2_resources,
arch/sh/kernel/cpu/sh2a/setup-sh7203.c
180
static struct resource scif0_resources[] = {
arch/sh/kernel/cpu/sh2a/setup-sh7203.c
188
.resource = scif0_resources,
arch/sh/kernel/cpu/sh2a/setup-sh7203.c
201
static struct resource scif1_resources[] = {
arch/sh/kernel/cpu/sh2a/setup-sh7203.c
209
.resource = scif1_resources,
arch/sh/kernel/cpu/sh2a/setup-sh7203.c
222
static struct resource scif2_resources[] = {
arch/sh/kernel/cpu/sh2a/setup-sh7203.c
230
.resource = scif2_resources,
arch/sh/kernel/cpu/sh2a/setup-sh7203.c
243
static struct resource scif3_resources[] = {
arch/sh/kernel/cpu/sh2a/setup-sh7203.c
251
.resource = scif3_resources,
arch/sh/kernel/cpu/sh2a/setup-sh7203.c
262
static struct resource cmt_resources[] = {
arch/sh/kernel/cpu/sh2a/setup-sh7203.c
274
.resource = cmt_resources,
arch/sh/kernel/cpu/sh2a/setup-sh7203.c
278
static struct resource mtu2_resources[] = {
arch/sh/kernel/cpu/sh2a/setup-sh7203.c
287
.resource = mtu2_resources,
arch/sh/kernel/cpu/sh2a/setup-sh7203.c
291
static struct resource rtc_resources[] = {
arch/sh/kernel/cpu/sh2a/setup-sh7203.c
308
.resource = rtc_resources,
arch/sh/kernel/cpu/sh2a/setup-sh7206.c
139
static struct resource scif0_resources[] = {
arch/sh/kernel/cpu/sh2a/setup-sh7206.c
147
.resource = scif0_resources,
arch/sh/kernel/cpu/sh2a/setup-sh7206.c
159
static struct resource scif1_resources[] = {
arch/sh/kernel/cpu/sh2a/setup-sh7206.c
167
.resource = scif1_resources,
arch/sh/kernel/cpu/sh2a/setup-sh7206.c
179
static struct resource scif2_resources[] = {
arch/sh/kernel/cpu/sh2a/setup-sh7206.c
187
.resource = scif2_resources,
arch/sh/kernel/cpu/sh2a/setup-sh7206.c
199
static struct resource scif3_resources[] = {
arch/sh/kernel/cpu/sh2a/setup-sh7206.c
207
.resource = scif3_resources,
arch/sh/kernel/cpu/sh2a/setup-sh7206.c
218
static struct resource cmt_resources[] = {
arch/sh/kernel/cpu/sh2a/setup-sh7206.c
230
.resource = cmt_resources,
arch/sh/kernel/cpu/sh2a/setup-sh7206.c
234
static struct resource mtu2_resources[] = {
arch/sh/kernel/cpu/sh2a/setup-sh7206.c
244
.resource = mtu2_resources,
arch/sh/kernel/cpu/sh2a/setup-sh7264.c
232
static struct resource scif0_resources[] = {
arch/sh/kernel/cpu/sh2a/setup-sh7264.c
243
.resource = scif0_resources,
arch/sh/kernel/cpu/sh2a/setup-sh7264.c
256
static struct resource scif1_resources[] = {
arch/sh/kernel/cpu/sh2a/setup-sh7264.c
267
.resource = scif1_resources,
arch/sh/kernel/cpu/sh2a/setup-sh7264.c
280
static struct resource scif2_resources[] = {
arch/sh/kernel/cpu/sh2a/setup-sh7264.c
291
.resource = scif2_resources,
arch/sh/kernel/cpu/sh2a/setup-sh7264.c
304
static struct resource scif3_resources[] = {
arch/sh/kernel/cpu/sh2a/setup-sh7264.c
315
.resource = scif3_resources,
arch/sh/kernel/cpu/sh2a/setup-sh7264.c
328
static struct resource scif4_resources[] = {
arch/sh/kernel/cpu/sh2a/setup-sh7264.c
339
.resource = scif4_resources,
arch/sh/kernel/cpu/sh2a/setup-sh7264.c
352
static struct resource scif5_resources[] = {
arch/sh/kernel/cpu/sh2a/setup-sh7264.c
363
.resource = scif5_resources,
arch/sh/kernel/cpu/sh2a/setup-sh7264.c
376
static struct resource scif6_resources[] = {
arch/sh/kernel/cpu/sh2a/setup-sh7264.c
387
.resource = scif6_resources,
arch/sh/kernel/cpu/sh2a/setup-sh7264.c
400
static struct resource scif7_resources[] = {
arch/sh/kernel/cpu/sh2a/setup-sh7264.c
411
.resource = scif7_resources,
arch/sh/kernel/cpu/sh2a/setup-sh7264.c
422
static struct resource cmt_resources[] = {
arch/sh/kernel/cpu/sh2a/setup-sh7264.c
434
.resource = cmt_resources,
arch/sh/kernel/cpu/sh2a/setup-sh7264.c
438
static struct resource mtu2_resources[] = {
arch/sh/kernel/cpu/sh2a/setup-sh7264.c
447
.resource = mtu2_resources,
arch/sh/kernel/cpu/sh2a/setup-sh7264.c
451
static struct resource rtc_resources[] = {
arch/sh/kernel/cpu/sh2a/setup-sh7264.c
468
.resource = rtc_resources,
arch/sh/kernel/cpu/sh2a/setup-sh7264.c
483
static struct resource r8a66597_usb_host_resources[] = {
arch/sh/kernel/cpu/sh2a/setup-sh7264.c
505
.resource = r8a66597_usb_host_resources,
arch/sh/kernel/cpu/sh2a/setup-sh7269.c
254
static struct resource scif0_resources[] = {
arch/sh/kernel/cpu/sh2a/setup-sh7269.c
265
.resource = scif0_resources,
arch/sh/kernel/cpu/sh2a/setup-sh7269.c
278
static struct resource scif1_resources[] = {
arch/sh/kernel/cpu/sh2a/setup-sh7269.c
289
.resource = scif1_resources,
arch/sh/kernel/cpu/sh2a/setup-sh7269.c
302
static struct resource scif2_resources[] = {
arch/sh/kernel/cpu/sh2a/setup-sh7269.c
313
.resource = scif2_resources,
arch/sh/kernel/cpu/sh2a/setup-sh7269.c
326
static struct resource scif3_resources[] = {
arch/sh/kernel/cpu/sh2a/setup-sh7269.c
337
.resource = scif3_resources,
arch/sh/kernel/cpu/sh2a/setup-sh7269.c
350
static struct resource scif4_resources[] = {
arch/sh/kernel/cpu/sh2a/setup-sh7269.c
361
.resource = scif4_resources,
arch/sh/kernel/cpu/sh2a/setup-sh7269.c
374
static struct resource scif5_resources[] = {
arch/sh/kernel/cpu/sh2a/setup-sh7269.c
385
.resource = scif5_resources,
arch/sh/kernel/cpu/sh2a/setup-sh7269.c
398
static struct resource scif6_resources[] = {
arch/sh/kernel/cpu/sh2a/setup-sh7269.c
409
.resource = scif6_resources,
arch/sh/kernel/cpu/sh2a/setup-sh7269.c
422
static struct resource scif7_resources[] = {
arch/sh/kernel/cpu/sh2a/setup-sh7269.c
433
.resource = scif7_resources,
arch/sh/kernel/cpu/sh2a/setup-sh7269.c
444
static struct resource cmt_resources[] = {
arch/sh/kernel/cpu/sh2a/setup-sh7269.c
456
.resource = cmt_resources,
arch/sh/kernel/cpu/sh2a/setup-sh7269.c
460
static struct resource mtu2_resources[] = {
arch/sh/kernel/cpu/sh2a/setup-sh7269.c
469
.resource = mtu2_resources,
arch/sh/kernel/cpu/sh2a/setup-sh7269.c
473
static struct resource rtc_resources[] = {
arch/sh/kernel/cpu/sh2a/setup-sh7269.c
490
.resource = rtc_resources,
arch/sh/kernel/cpu/sh2a/setup-sh7269.c
499
static struct resource r8a66597_usb_host_resources[] = {
arch/sh/kernel/cpu/sh2a/setup-sh7269.c
521
.resource = r8a66597_usb_host_resources,
arch/sh/kernel/cpu/sh3/pinmux-sh7720.c
14
static struct resource sh7720_pfc_resources[] = {
arch/sh/kernel/cpu/sh3/setup-sh7705.c
106
.resource = scif1_resources,
arch/sh/kernel/cpu/sh3/setup-sh7705.c
113
static struct resource rtc_resources[] = {
arch/sh/kernel/cpu/sh3/setup-sh7705.c
133
.resource = rtc_resources,
arch/sh/kernel/cpu/sh3/setup-sh7705.c
143
static struct resource tmu0_resources[] = {
arch/sh/kernel/cpu/sh3/setup-sh7705.c
156
.resource = tmu0_resources,
arch/sh/kernel/cpu/sh3/setup-sh7705.c
77
static struct resource scif0_resources[] = {
arch/sh/kernel/cpu/sh3/setup-sh7705.c
85
.resource = scif0_resources,
arch/sh/kernel/cpu/sh3/setup-sh7705.c
98
static struct resource scif1_resources[] = {
arch/sh/kernel/cpu/sh3/setup-sh770x.c
106
.resource = rtc_resources,
arch/sh/kernel/cpu/sh3/setup-sh770x.c
114
static struct resource scif0_resources[] = {
arch/sh/kernel/cpu/sh3/setup-sh770x.c
122
.resource = scif0_resources,
arch/sh/kernel/cpu/sh3/setup-sh770x.c
137
static struct resource scif1_resources[] = {
arch/sh/kernel/cpu/sh3/setup-sh770x.c
145
.resource = scif1_resources,
arch/sh/kernel/cpu/sh3/setup-sh770x.c
159
static struct resource scif2_resources[] = {
arch/sh/kernel/cpu/sh3/setup-sh770x.c
167
.resource = scif2_resources,
arch/sh/kernel/cpu/sh3/setup-sh770x.c
179
static struct resource tmu0_resources[] = {
arch/sh/kernel/cpu/sh3/setup-sh770x.c
192
.resource = tmu0_resources,
arch/sh/kernel/cpu/sh3/setup-sh770x.c
90
static struct resource rtc_resources[] = {
arch/sh/kernel/cpu/sh3/setup-sh7710.c
103
static struct resource scif0_resources[] = {
arch/sh/kernel/cpu/sh3/setup-sh7710.c
111
.resource = scif0_resources,
arch/sh/kernel/cpu/sh3/setup-sh7710.c
123
static struct resource scif1_resources[] = {
arch/sh/kernel/cpu/sh3/setup-sh7710.c
131
.resource = scif1_resources,
arch/sh/kernel/cpu/sh3/setup-sh7710.c
142
static struct resource tmu0_resources[] = {
arch/sh/kernel/cpu/sh3/setup-sh7710.c
155
.resource = tmu0_resources,
arch/sh/kernel/cpu/sh3/setup-sh7710.c
72
static struct resource rtc_resources[] = {
arch/sh/kernel/cpu/sh3/setup-sh7710.c
92
.resource = rtc_resources,
arch/sh/kernel/cpu/sh3/setup-sh7720.c
120
.resource = usb_ohci_resources,
arch/sh/kernel/cpu/sh3/setup-sh7720.c
123
static struct resource usbf_resources[] = {
arch/sh/kernel/cpu/sh3/setup-sh7720.c
146
.resource = usbf_resources,
arch/sh/kernel/cpu/sh3/setup-sh7720.c
153
static struct resource cmt_resources[] = {
arch/sh/kernel/cpu/sh3/setup-sh7720.c
164
.resource = cmt_resources,
arch/sh/kernel/cpu/sh3/setup-sh7720.c
172
static struct resource tmu0_resources[] = {
arch/sh/kernel/cpu/sh3/setup-sh7720.c
185
.resource = tmu0_resources,
arch/sh/kernel/cpu/sh3/setup-sh7720.c
25
static struct resource rtc_resources[] = {
arch/sh/kernel/cpu/sh3/setup-sh7720.c
46
.resource = rtc_resources,
arch/sh/kernel/cpu/sh3/setup-sh7720.c
58
static struct resource scif0_resources[] = {
arch/sh/kernel/cpu/sh3/setup-sh7720.c
66
.resource = scif0_resources,
arch/sh/kernel/cpu/sh3/setup-sh7720.c
79
static struct resource scif1_resources[] = {
arch/sh/kernel/cpu/sh3/setup-sh7720.c
87
.resource = scif1_resources,
arch/sh/kernel/cpu/sh3/setup-sh7720.c
94
static struct resource usb_ohci_resources[] = {
arch/sh/kernel/cpu/sh4/setup-sh7750.c
107
static struct resource tmu1_resources[] = {
arch/sh/kernel/cpu/sh4/setup-sh7750.c
119
.resource = tmu1_resources,
arch/sh/kernel/cpu/sh4/setup-sh7750.c
18
static struct resource rtc_resources[] = {
arch/sh/kernel/cpu/sh4/setup-sh7750.c
35
.resource = rtc_resources,
arch/sh/kernel/cpu/sh4/setup-sh7750.c
42
static struct resource sci_resources[] = {
arch/sh/kernel/cpu/sh4/setup-sh7750.c
50
.resource = sci_resources,
arch/sh/kernel/cpu/sh4/setup-sh7750.c
62
static struct resource scif_resources[] = {
arch/sh/kernel/cpu/sh4/setup-sh7750.c
70
.resource = scif_resources,
arch/sh/kernel/cpu/sh4/setup-sh7750.c
81
static struct resource tmu0_resources[] = {
arch/sh/kernel/cpu/sh4/setup-sh7750.c
94
.resource = tmu0_resources,
arch/sh/kernel/cpu/sh4/setup-sh7760.c
134
static struct resource scif0_resources[] = {
arch/sh/kernel/cpu/sh4/setup-sh7760.c
145
.resource = scif0_resources,
arch/sh/kernel/cpu/sh4/setup-sh7760.c
158
static struct resource scif1_resources[] = {
arch/sh/kernel/cpu/sh4/setup-sh7760.c
169
.resource = scif1_resources,
arch/sh/kernel/cpu/sh4/setup-sh7760.c
182
static struct resource scif2_resources[] = {
arch/sh/kernel/cpu/sh4/setup-sh7760.c
193
.resource = scif2_resources,
arch/sh/kernel/cpu/sh4/setup-sh7760.c
211
static struct resource scif3_resources[] = {
arch/sh/kernel/cpu/sh4/setup-sh7760.c
221
.resource = scif3_resources,
arch/sh/kernel/cpu/sh4/setup-sh7760.c
232
static struct resource tmu0_resources[] = {
arch/sh/kernel/cpu/sh4/setup-sh7760.c
245
.resource = tmu0_resources,
arch/sh/kernel/cpu/sh4a/pinmux-sh7722.c
8
static struct resource sh7722_pfc_resources[] = {
arch/sh/kernel/cpu/sh4a/pinmux-sh7723.c
14
static struct resource sh7723_pfc_resources[] = {
arch/sh/kernel/cpu/sh4a/pinmux-sh7724.c
19
static struct resource sh7724_pfc_resources[] = {
arch/sh/kernel/cpu/sh4a/pinmux-sh7734.c
14
static struct resource sh7734_pfc_resources[] = {
arch/sh/kernel/cpu/sh4a/pinmux-sh7757.c
19
static struct resource sh7757_pfc_resources[] = {
arch/sh/kernel/cpu/sh4a/pinmux-sh7785.c
14
static struct resource sh7785_pfc_resources[] = {
arch/sh/kernel/cpu/sh4a/pinmux-sh7786.c
19
static struct resource sh7786_pfc_resources[] = {
arch/sh/kernel/cpu/sh4a/pinmux-shx3.c
13
static struct resource shx3_pfc_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7343.c
116
.resource = iic0_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7343.c
119
static struct resource iic1_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7343.c
137
.resource = iic1_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7343.c
146
static struct resource vpu_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7343.c
164
.resource = vpu_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7343.c
174
static struct resource veu_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7343.c
192
.resource = veu_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7343.c
202
static struct resource jpu_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7343.c
220
.resource = jpu_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7343.c
228
static struct resource cmt_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7343.c
23
static struct resource scif0_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7343.c
239
.resource = cmt_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7343.c
247
static struct resource tmu0_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7343.c
260
.resource = tmu0_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7343.c
31
.resource = scif0_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7343.c
43
static struct resource scif1_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7343.c
51
.resource = scif1_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7343.c
63
static struct resource scif2_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7343.c
71
.resource = scif2_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7343.c
83
static struct resource scif3_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7343.c
91
.resource = scif3_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7343.c
98
static struct resource iic0_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7366.c
114
.resource = vpu_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7366.c
124
static struct resource veu0_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7366.c
142
.resource = veu0_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7366.c
152
static struct resource veu1_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7366.c
170
.resource = veu1_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7366.c
178
static struct resource cmt_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7366.c
189
.resource = cmt_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7366.c
197
static struct resource tmu0_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7366.c
210
.resource = tmu0_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7366.c
25
static struct resource scif0_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7366.c
33
.resource = scif0_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7366.c
40
static struct resource iic_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7366.c
58
.resource = iic_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7366.c
65
static struct resource usb_host_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7366.c
87
.resource = usb_host_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7366.c
96
static struct resource vpu_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7722.c
135
static struct resource sh7722_dmae_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7722.c
171
.resource = sh7722_dmae_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7722.c
186
static struct resource scif0_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7722.c
194
.resource = scif0_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7722.c
208
static struct resource scif1_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7722.c
216
.resource = scif1_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7722.c
230
static struct resource scif2_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7722.c
238
.resource = scif2_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7722.c
245
static struct resource rtc_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7722.c
272
.resource = rtc_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7722.c
279
static struct resource usbf_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7722.c
302
.resource = usbf_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7722.c
305
static struct resource iic_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7722.c
323
.resource = iic_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7722.c
332
static struct resource vpu_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7722.c
350
.resource = vpu_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7722.c
360
static struct resource veu_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7722.c
378
.resource = veu_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7722.c
388
static struct resource jpu_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7722.c
406
.resource = jpu_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7722.c
414
static struct resource cmt_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7722.c
425
.resource = cmt_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7722.c
433
static struct resource tmu0_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7722.c
446
.resource = tmu0_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7722.c
457
static struct resource siu_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7722.c
475
.resource = siu_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7723.c
102
.resource = scif3_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7723.c
114
static struct resource scif4_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7723.c
122
.resource = scif4_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7723.c
134
static struct resource scif5_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7723.c
142
.resource = scif5_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7723.c
155
static struct resource vpu_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7723.c
173
.resource = vpu_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7723.c
183
static struct resource veu0_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7723.c
201
.resource = veu0_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7723.c
211
static struct resource veu1_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7723.c
229
.resource = veu1_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7723.c
237
static struct resource cmt_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7723.c
248
.resource = cmt_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7723.c
256
static struct resource tmu0_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7723.c
269
.resource = tmu0_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7723.c
277
static struct resource tmu1_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7723.c
290
.resource = tmu1_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7723.c
294
static struct resource rtc_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7723.c
32
static struct resource scif0_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7723.c
321
.resource = rtc_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7723.c
328
static struct resource sh7723_usb_host_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7723.c
350
.resource = sh7723_usb_host_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7723.c
353
static struct resource iic_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7723.c
371
.resource = iic_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7723.c
40
.resource = scif0_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7723.c
53
static struct resource scif1_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7723.c
61
.resource = scif1_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7723.c
74
static struct resource scif2_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7723.c
82
.resource = scif2_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7723.c
94
static struct resource scif3_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7724.c
203
static struct resource sh7724_dmae0_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7724.c
237
static struct resource sh7724_dmae1_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7724.c
273
.resource = sh7724_dmae0_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7724.c
283
.resource = sh7724_dmae1_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7724.c
297
static struct resource scif0_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7724.c
305
.resource = scif0_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7724.c
318
static struct resource scif1_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7724.c
326
.resource = scif1_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7724.c
339
static struct resource scif2_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7724.c
347
.resource = scif2_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7724.c
359
static struct resource scif3_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7724.c
367
.resource = scif3_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7724.c
379
static struct resource scif4_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7724.c
387
.resource = scif4_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7724.c
399
static struct resource scif5_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7724.c
407
.resource = scif5_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7724.c
415
static struct resource rtc_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7724.c
442
.resource = rtc_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7724.c
446
static struct resource iic0_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7724.c
464
.resource = iic0_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7724.c
468
static struct resource iic1_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7724.c
486
.resource = iic1_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7724.c
496
static struct resource vpu_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7724.c
514
.resource = vpu_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7724.c
525
static struct resource veu0_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7724.c
543
.resource = veu0_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7724.c
554
static struct resource veu1_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7724.c
572
.resource = veu1_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7724.c
583
static struct resource beu0_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7724.c
601
.resource = beu0_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7724.c
612
static struct resource beu1_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7724.c
630
.resource = beu1_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7724.c
638
static struct resource cmt_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7724.c
649
.resource = cmt_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7724.c
657
static struct resource tmu0_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7724.c
670
.resource = tmu0_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7724.c
678
static struct resource tmu1_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7724.c
691
.resource = tmu1_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7724.c
702
static struct resource jpu_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7724.c
720
.resource = jpu_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7724.c
731
static struct resource spu0_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7724.c
749
.resource = spu0_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7724.c
760
static struct resource spu1_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7724.c
778
.resource = spu1_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7734.c
102
.resource = scif3_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7734.c
115
static struct resource scif4_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7734.c
123
.resource = scif4_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7734.c
136
static struct resource scif5_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7734.c
144
.resource = scif5_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7734.c
152
static struct resource rtc_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7734.c
169
.resource = rtc_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7734.c
173
static struct resource i2c0_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7734.c
190
.resource = i2c0_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7734.c
198
static struct resource tmu0_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7734.c
211
.resource = tmu0_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7734.c
219
static struct resource tmu1_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7734.c
232
.resource = tmu1_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7734.c
240
static struct resource tmu2_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7734.c
253
.resource = tmu2_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7734.c
31
static struct resource scif0_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7734.c
39
.resource = scif0_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7734.c
52
static struct resource scif1_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7734.c
60
.resource = scif1_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7734.c
73
static struct resource scif2_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7734.c
81
.resource = scif2_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7734.c
94
static struct resource scif3_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7757.c
103
.resource = tmu0_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7757.c
107
static struct resource spi0_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7757.c
32
static struct resource scif2_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7757.c
40
.resource = scif2_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7757.c
443
static struct resource sh7757_dmae0_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7757.c
465
static struct resource sh7757_dmae1_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7757.c
52
static struct resource scif3_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7757.c
535
static struct resource sh7757_dmae2_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7757.c
569
static struct resource sh7757_dmae3_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7757.c
60
.resource = scif3_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7757.c
605
.resource = sh7757_dmae0_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7757.c
615
.resource = sh7757_dmae1_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7757.c
625
.resource = sh7757_dmae2_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7757.c
635
.resource = sh7757_dmae3_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7757.c
650
.resource = spi0_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7757.c
653
static struct resource spi1_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7757.c
669
.resource = spi1_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7757.c
672
static struct resource rspi_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7757.c
688
.resource = rspi_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7757.c
691
static struct resource usb_ehci_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7757.c
712
.resource = usb_ehci_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7757.c
715
static struct resource usb_ohci_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7757.c
72
static struct resource scif4_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7757.c
739
.resource = usb_ohci_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7757.c
80
.resource = scif4_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7757.c
91
static struct resource tmu0_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7763.c
102
static struct resource usb_ohci_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7763.c
128
.resource = usb_ohci_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7763.c
131
static struct resource usbf_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7763.c
152
.resource = usbf_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7763.c
159
static struct resource tmu0_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7763.c
172
.resource = tmu0_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7763.c
180
static struct resource tmu1_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7763.c
193
.resource = tmu1_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7763.c
25
static struct resource scif0_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7763.c
33
.resource = scif0_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7763.c
46
static struct resource scif1_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7763.c
54
.resource = scif1_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7763.c
67
static struct resource scif2_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7763.c
75
.resource = scif2_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7763.c
82
static struct resource rtc_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7763.c
99
.resource = rtc_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7770.c
101
static struct resource scif4_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7770.c
109
.resource = scif4_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7770.c
121
static struct resource scif5_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7770.c
129
.resource = scif5_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7770.c
141
static struct resource scif6_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7770.c
149
.resource = scif6_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7770.c
161
static struct resource scif7_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7770.c
169
.resource = scif7_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7770.c
181
static struct resource scif8_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7770.c
189
.resource = scif8_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7770.c
201
static struct resource scif9_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7770.c
209
.resource = scif9_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7770.c
21
static struct resource scif0_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7770.c
220
static struct resource tmu0_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7770.c
233
.resource = tmu0_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7770.c
241
static struct resource tmu1_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7770.c
254
.resource = tmu1_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7770.c
262
static struct resource tmu2_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7770.c
275
.resource = tmu2_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7770.c
29
.resource = scif0_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7770.c
41
static struct resource scif1_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7770.c
49
.resource = scif1_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7770.c
61
static struct resource scif2_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7770.c
69
.resource = scif2_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7770.c
81
static struct resource scif3_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7770.c
89
.resource = scif3_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7780.c
102
static struct resource rtc_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7780.c
119
.resource = rtc_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7780.c
193
static struct resource sh7780_dmae0_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7780.c
218
static struct resource sh7780_dmae1_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7780.c
24
static struct resource scif0_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7780.c
241
.resource = sh7780_dmae0_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7780.c
251
.resource = sh7780_dmae1_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7780.c
32
.resource = scif0_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7780.c
45
static struct resource scif1_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7780.c
53
.resource = scif1_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7780.c
64
static struct resource tmu0_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7780.c
77
.resource = tmu0_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7780.c
85
static struct resource tmu1_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7780.c
98
.resource = tmu1_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7785.c
110
static struct resource scif4_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7785.c
118
.resource = scif4_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7785.c
131
static struct resource scif5_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7785.c
139
.resource = scif5_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7785.c
150
static struct resource tmu0_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7785.c
163
.resource = tmu0_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7785.c
171
static struct resource tmu1_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7785.c
184
.resource = tmu1_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7785.c
259
static struct resource sh7785_dmae0_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7785.c
26
static struct resource scif0_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7785.c
284
static struct resource sh7785_dmae1_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7785.c
307
.resource = sh7785_dmae0_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7785.c
317
.resource = sh7785_dmae1_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7785.c
34
.resource = scif0_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7785.c
47
static struct resource scif1_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7785.c
55
.resource = scif1_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7785.c
68
static struct resource scif2_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7785.c
76
.resource = scif2_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7785.c
89
static struct resource scif3_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7785.c
97
.resource = scif3_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7786.c
112
static struct resource scif3_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7786.c
120
.resource = scif3_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7786.c
133
static struct resource scif4_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7786.c
141
.resource = scif4_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7786.c
154
static struct resource scif5_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7786.c
162
.resource = scif5_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7786.c
173
static struct resource tmu0_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7786.c
186
.resource = tmu0_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7786.c
194
static struct resource tmu1_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7786.c
207
.resource = tmu1_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7786.c
215
static struct resource tmu2_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7786.c
228
.resource = tmu2_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7786.c
236
static struct resource tmu3_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7786.c
249
.resource = tmu3_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7786.c
296
static struct resource dmac0_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7786.c
323
.resource = dmac0_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7786.c
333
static struct resource usb_ehci_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7786.c
34
static struct resource scif0_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7786.c
354
.resource = usb_ehci_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7786.c
357
static struct resource usb_ohci_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7786.c
381
.resource = usb_ohci_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7786.c
45
.resource = scif0_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7786.c
61
static struct resource scif1_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7786.c
66
static struct resource scif1_demux_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7786.c
78
.resource = scif1_resources,
arch/sh/kernel/cpu/sh4a/setup-sh7786.c
809
scif1_device.resource = scif1_demux_resources;
arch/sh/kernel/cpu/sh4a/setup-sh7786.c
91
static struct resource scif2_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-sh7786.c
99
.resource = scif2_resources,
arch/sh/kernel/cpu/sh4a/setup-shx3.c
101
static struct resource tmu0_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-shx3.c
114
.resource = tmu0_resources,
arch/sh/kernel/cpu/sh4a/setup-shx3.c
122
static struct resource tmu1_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-shx3.c
135
.resource = tmu1_resources,
arch/sh/kernel/cpu/sh4a/setup-shx3.c
33
static struct resource scif0_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-shx3.c
44
.resource = scif0_resources,
arch/sh/kernel/cpu/sh4a/setup-shx3.c
56
static struct resource scif1_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-shx3.c
67
.resource = scif1_resources,
arch/sh/kernel/cpu/sh4a/setup-shx3.c
79
static struct resource scif2_resources[] = {
arch/sh/kernel/cpu/sh4a/setup-shx3.c
90
.resource = scif2_resources,
arch/sh/kernel/io_trapped.c
112
struct resource *res;
arch/sh/kernel/io_trapped.c
120
res = tiop->resource + k;
arch/sh/kernel/io_trapped.c
168
struct resource *res;
arch/sh/kernel/io_trapped.c
174
res = tiop->resource + k;
arch/sh/kernel/io_trapped.c
43
struct resource *res;
arch/sh/kernel/io_trapped.c
56
res = tiop->resource + k;
arch/sh/kernel/io_trapped.c
79
res = tiop->resource + k;
arch/sh/kernel/setup.c
100
static struct resource mem_resources[MAX_NUMNODES];
arch/sh/kernel/setup.c
196
struct resource *res = &mem_resources[nid];
arch/sh/kernel/setup.c
79
static struct resource code_resource = {
arch/sh/kernel/setup.c
84
static struct resource data_resource = {
arch/sh/kernel/setup.c
89
static struct resource bss_resource = {
arch/sh/mm/consistent.c
40
struct resource *r;
arch/sh/mm/consistent.c
44
r = pdev->resource + pdev->num_resources - 1;
arch/sparc/include/asm/device.h
24
struct resource resource[PROMREG_MAX];
arch/sparc/include/asm/floppy_32.h
276
struct resource r;
arch/sparc/include/asm/floppy_64.h
601
auxio_reg = (void __iomem *) op->resource[2].start;
arch/sparc/include/asm/floppy_64.h
610
op->resource[1].start;
arch/sparc/include/asm/floppy_64.h
624
sun_fdc = (struct sun_flpy_controller *) op->resource[0].start;
arch/sparc/include/asm/floppy_64.h
668
config = ecpp_op->resource[1].start;
arch/sparc/include/asm/floppy_64.h
728
(op->resource[0].start +
arch/sparc/include/asm/floppy_64.h
729
((op->resource[0].flags & 0x1ffUL) << 32UL));
arch/sparc/include/asm/leon_pci.h
14
struct resource io_space;
arch/sparc/include/asm/leon_pci.h
15
struct resource mem_space;
arch/sparc/include/asm/leon_pci.h
16
struct resource busn;
arch/sparc/include/asm/parport_64.h
113
unsigned long base = op->resource[0].start;
arch/sparc/include/asm/parport_64.h
114
unsigned long config = op->resource[1].start;
arch/sparc/include/asm/parport_64.h
115
unsigned long d_base = op->resource[2].start;
arch/sparc/include/asm/parport_64.h
142
d_len = (op->resource[2].end - d_base) + 1UL;
arch/sparc/include/asm/parport_64.h
144
of_ioremap(&op->resource[2], 0, d_len, "ECPP DMA");
arch/sparc/include/asm/parport_64.h
191
of_iounmap(&op->resource[2], sparc_ebus_dmas[slot].info.regs, d_len);
arch/sparc/include/asm/parport_64.h
208
unsigned long d_base = op->resource[2].start;
arch/sparc/include/asm/parport_64.h
211
d_len = (op->resource[2].end - d_base) + 1UL;
arch/sparc/include/asm/parport_64.h
215
of_iounmap(&op->resource[2],
arch/sparc/include/asm/pcic.h
24
struct resource pcic_res_regs;
arch/sparc/include/asm/pcic.h
25
struct resource pcic_res_io;
arch/sparc/include/asm/pcic.h
26
struct resource pcic_res_cfg_addr;
arch/sparc/include/asm/pcic.h
27
struct resource pcic_res_cfg_data;
arch/sparc/include/asm/pgalloc_32.h
18
extern struct resource sparc_iomap;
arch/sparc/include/asm/prom.h
47
struct resource;
arch/sparc/include/asm/prom.h
48
void __iomem *of_ioremap(struct resource *res, unsigned long offset, unsigned long size, char *name);
arch/sparc/include/asm/prom.h
49
void of_iounmap(struct resource *res, void __iomem *base, unsigned long size);
arch/sparc/kernel/apc.c
146
regs = of_ioremap(&op->resource[0], 0,
arch/sparc/kernel/apc.c
147
resource_size(&op->resource[0]), APC_OBPNAME);
arch/sparc/kernel/apc.c
75
of_iounmap(&op->resource[0], regs, resource_size(&op->resource[0]));
arch/sparc/kernel/auxio_32.c
115
struct resource r;
arch/sparc/kernel/auxio_32.c
33
struct resource r;
arch/sparc/kernel/auxio_64.c
122
auxio_register = of_ioremap(&dev->resource[0], 0, size, "auxio");
arch/sparc/kernel/central.c
109
p->leds_pdev.resource = &p->leds_resource;
arch/sparc/kernel/central.c
129
of_iounmap(&op->resource[2], p->clock_ver_reg,
arch/sparc/kernel/central.c
130
resource_size(&op->resource[2]));
arch/sparc/kernel/central.c
133
of_iounmap(&op->resource[1], p->clock_regs,
arch/sparc/kernel/central.c
134
resource_size(&op->resource[1]));
arch/sparc/kernel/central.c
137
of_iounmap(&op->resource[0], p->clock_freq_regs,
arch/sparc/kernel/central.c
138
resource_size(&op->resource[0]));
arch/sparc/kernel/central.c
174
p->pregs = of_ioremap(&op->resource[0], 0,
arch/sparc/kernel/central.c
175
resource_size(&op->resource[0]),
arch/sparc/kernel/central.c
203
p->leds_pdev.resource = &p->leds_resource;
arch/sparc/kernel/central.c
24
struct resource leds_resource;
arch/sparc/kernel/central.c
242
of_iounmap(&op->resource[0], p->pregs, resource_size(&op->resource[0]));
arch/sparc/kernel/central.c
33
struct resource leds_resource;
arch/sparc/kernel/central.c
74
p->clock_freq_regs = of_ioremap(&op->resource[0], 0,
arch/sparc/kernel/central.c
75
resource_size(&op->resource[0]),
arch/sparc/kernel/central.c
82
p->clock_regs = of_ioremap(&op->resource[1], 0,
arch/sparc/kernel/central.c
83
resource_size(&op->resource[1]),
arch/sparc/kernel/central.c
90
if (op->resource[2].flags) {
arch/sparc/kernel/central.c
91
p->clock_ver_reg = of_ioremap(&op->resource[2], 0,
arch/sparc/kernel/central.c
92
resource_size(&op->resource[2]),
arch/sparc/kernel/chmc.c
446
p->regs = of_ioremap(&op->resource[0], 0, JBUSMC_REGS_SIZE, "jbusmc");
arch/sparc/kernel/chmc.c
480
of_iounmap(&op->resource[0], p->regs, JBUSMC_REGS_SIZE);
arch/sparc/kernel/chmc.c
734
p->regs = of_ioremap(&op->resource[0], 0, 0x48, "chmc");
arch/sparc/kernel/chmc.c
780
of_iounmap(&op->resource[0], p->regs, 0x48);
arch/sparc/kernel/chmc.c
787
of_iounmap(&op->resource[0], p->regs, JBUSMC_REGS_SIZE);
arch/sparc/kernel/ioport.c
128
struct resource *res;
arch/sparc/kernel/ioport.c
148
void __iomem *of_ioremap(struct resource *res, unsigned long offset,
arch/sparc/kernel/ioport.c
157
void of_iounmap(struct resource *res, void __iomem *base, unsigned long size)
arch/sparc/kernel/ioport.c
171
struct resource *res;
arch/sparc/kernel/ioport.c
187
tack = kmalloc(sizeof (struct resource) + tlen + 1, GFP_KERNEL);
arch/sparc/kernel/ioport.c
189
memset(tack, 0, sizeof(struct resource));
arch/sparc/kernel/ioport.c
190
res = (struct resource *) tack;
arch/sparc/kernel/ioport.c
191
tack += sizeof (struct resource);
arch/sparc/kernel/ioport.c
205
_sparc_ioremap(struct resource *res, u32 bus, u32 pa, int sz)
arch/sparc/kernel/ioport.c
227
static void _sparc_free_io(struct resource *res)
arch/sparc/kernel/ioport.c
239
struct resource *res;
arch/sparc/kernel/ioport.c
259
struct resource *res;
arch/sparc/kernel/ioport.c
322
struct resource *root = m->private, *r;
arch/sparc/kernel/ioport.c
55
static void __iomem *_sparc_ioremap(struct resource *res, u32 bus, u32 pa, int sz);
arch/sparc/kernel/ioport.c
58
static void _sparc_free_io(struct resource *res);
arch/sparc/kernel/ioport.c
63
static struct resource _sparc_dvma = {
arch/sparc/kernel/ioport.c
67
/*ext*/ struct resource sparc_iomap = {
arch/sparc/kernel/ioport.c
81
struct resource xres; /* Must be first */
arch/sparc/kernel/leon_pci_grpci1.c
519
struct resource *res;
arch/sparc/kernel/leon_pci_grpci1.c
574
priv->pci_area = ofdev->resource[1].start;
arch/sparc/kernel/leon_pci_grpci1.c
575
priv->pci_area_end = ofdev->resource[1].end+1;
arch/sparc/kernel/leon_pci_grpci1.c
576
priv->pci_io = ofdev->resource[2].start;
arch/sparc/kernel/leon_pci_grpci1.c
577
priv->pci_conf = ofdev->resource[2].start + 0x10000;
arch/sparc/kernel/leon_pci_grpci2.c
705
regs = of_ioremap(&ofdev->resource[0], 0,
arch/sparc/kernel/leon_pci_grpci2.c
706
resource_size(&ofdev->resource[0]),
arch/sparc/kernel/leon_pci_grpci2.c
760
priv->pci_area = ofdev->resource[1].start;
arch/sparc/kernel/leon_pci_grpci2.c
761
priv->pci_area_end = ofdev->resource[1].end+1;
arch/sparc/kernel/leon_pci_grpci2.c
762
priv->pci_io = ofdev->resource[2].start;
arch/sparc/kernel/leon_pci_grpci2.c
763
priv->pci_conf = ofdev->resource[2].start + 0x10000;
arch/sparc/kernel/leon_pci_grpci2.c
784
memset(&priv->info.io_space, 0, sizeof(struct resource));
arch/sparc/kernel/leon_pci_grpci2.c
794
memset(&priv->info.mem_space, 0, sizeof(struct resource));
arch/sparc/kernel/leon_pci_grpci2.c
887
of_iounmap(&ofdev->resource[0], regs,
arch/sparc/kernel/leon_pci_grpci2.c
888
resource_size(&ofdev->resource[0]));
arch/sparc/kernel/of_device_32.c
272
op->resource = op->archdata.resource;
arch/sparc/kernel/of_device_32.c
275
struct resource *r = &op->resource[index];
arch/sparc/kernel/of_device_64.c
18
void __iomem *of_ioremap(struct resource *res, unsigned long offset, unsigned long size, char *name)
arch/sparc/kernel/of_device_64.c
21
struct resource *r;
arch/sparc/kernel/of_device_64.c
34
void of_iounmap(struct resource *res, void __iomem *base, unsigned long size)
arch/sparc/kernel/of_device_64.c
350
op->resource = op->archdata.resource;
arch/sparc/kernel/of_device_64.c
353
struct resource *r = &op->resource[index];
arch/sparc/kernel/of_device_common.c
28
struct resource *r)
arch/sparc/kernel/of_device_common.c
35
memcpy(r, &op->archdata.resource[index], sizeof(*r));
arch/sparc/kernel/of_device_common.c
43
struct resource *r;
arch/sparc/kernel/of_device_common.c
48
r = &op->archdata.resource[index];
arch/sparc/kernel/pci.c
185
struct resource *res)
arch/sparc/kernel/pci.c
232
struct resource *op_res;
arch/sparc/kernel/pci.c
242
op_res = &op->resource[0];
arch/sparc/kernel/pci.c
244
struct resource *res;
arch/sparc/kernel/pci.c
257
res = &dev->resource[(i - PCI_BASE_ADDRESS_0) >> 2];
arch/sparc/kernel/pci.c
259
res = &dev->resource[PCI_ROM_RESOURCE];
arch/sparc/kernel/pci.c
420
struct resource *res;
arch/sparc/kernel/pci.c
426
res = bus->resource[0];
arch/sparc/kernel/pci.c
434
res = bus->resource[1];
arch/sparc/kernel/pci.c
455
struct resource *res;
arch/sparc/kernel/pci.c
499
res = &dev->resource[PCI_BRIDGE_RESOURCES];
arch/sparc/kernel/pci.c
502
bus->resource[i] = res;
arch/sparc/kernel/pci.c
538
res = bus->resource[0];
arch/sparc/kernel/pci.c
550
res = bus->resource[i];
arch/sparc/kernel/pci.c
655
struct resource *p, *root, *conflict;
arch/sparc/kernel/pci.c
697
struct resource *r;
arch/sparc/kernel/pci.c
851
const struct resource *rp, resource_size_t *start,
arch/sparc/kernel/pci.c
863
pcibios_resource_to_bus(pdev->bus, ®ion, (struct resource *) rp);
arch/sparc/kernel/pci_common.c
339
struct resource *rp = kzalloc_obj(*rp);
arch/sparc/kernel/pci_common.c
376
memset(&pbm->mem64_space, 0, sizeof(struct resource));
arch/sparc/kernel/pci_impl.h
100
struct resource mem64_space;
arch/sparc/kernel/pci_impl.h
101
struct resource busn;
arch/sparc/kernel/pci_impl.h
98
struct resource io_space;
arch/sparc/kernel/pci_impl.h
99
struct resource mem_space;
arch/sparc/kernel/pcic.c
487
address = dev->resource[j].start;
arch/sparc/kernel/pcic.c
489
flags = dev->resource[j].flags;
arch/sparc/kernel/pcic.c
509
dev->resource[j].start =
arch/sparc/kernel/pcic.c
511
dev->resource[j].end = 1; /* XXX */
arch/sparc/kernel/pcic.c
512
dev->resource[j].flags =
arch/sparc/kernel/pmc.c
59
regs = of_ioremap(&op->resource[0], 0,
arch/sparc/kernel/pmc.c
60
resource_size(&op->resource[0]), PMC_OBPNAME);
arch/sparc/kernel/power.c
40
struct resource *res = &op->resource[0];
arch/sparc/kernel/prom_irqtrans.c
725
struct resource *res;
arch/sparc/kernel/prom_irqtrans.c
730
res = ¢ral_op->resource[5];
arch/sparc/kernel/prom_irqtrans.c
732
res = ¢ral_op->resource[4];
arch/sparc/kernel/prom_irqtrans.c
734
res = ¢ral_op->resource[3];
arch/sparc/kernel/sun4d_irq.c
421
struct resource res;
arch/sparc/kernel/time_32.c
283
m48t59_rtc.resource = &op->resource[0];
arch/sparc/kernel/time_32.c
286
m48t59_data.ioaddr = of_ioremap(&op->resource[0], 0,
arch/sparc/kernel/time_32.c
290
m48t59_data.ioaddr = of_ioremap(&op->resource[0], 0,
arch/sparc/kernel/time_64.c
436
static struct resource rtc_cmos_resource;
arch/sparc/kernel/time_64.c
441
.resource = &rtc_cmos_resource,
arch/sparc/kernel/time_64.c
447
struct resource *r;
arch/sparc/kernel/time_64.c
450
op->dev.of_node, op->resource[0].start);
arch/sparc/kernel/time_64.c
460
r->name = op->resource[0].name;
arch/sparc/kernel/time_64.c
461
r->start = op->resource[0].start;
arch/sparc/kernel/time_64.c
462
r->end = op->resource[0].end;
arch/sparc/kernel/time_64.c
464
cmos_regs = op->resource[0].start;
arch/sparc/kernel/time_64.c
506
op->dev.of_node, op->resource[0].start);
arch/sparc/kernel/time_64.c
508
rtc_bq4802_device.resource = &op->resource[0];
arch/sparc/kernel/time_64.c
531
void __iomem *regs = (void __iomem *) pdev->resource[0].start;
arch/sparc/kernel/time_64.c
539
void __iomem *regs = (void __iomem *) pdev->resource[0].start;
arch/sparc/kernel/time_64.c
571
dp, op->resource[0].start);
arch/sparc/kernel/time_64.c
573
m48t59_rtc.resource = &op->resource[0];
arch/sparc/mm/init_64.c
3035
static struct resource code_resource = {
arch/sparc/mm/init_64.c
3040
static struct resource data_resource = {
arch/sparc/mm/init_64.c
3045
static struct resource bss_resource = {
arch/sparc/mm/init_64.c
3068
struct resource *res;
arch/sparc/mm/init_64.c
3073
res = kzalloc_obj(struct resource);
arch/sparc/mm/io-unit.c
60
xpt = of_ioremap(&op->resource[2], 0, PAGE_SIZE * 16, "XPT");
arch/sparc/mm/iommu.c
73
iommu->regs = of_ioremap(&op->resource[0], 0, PAGE_SIZE * 3,
arch/sparc/mm/srmmu.c
60
extern struct resource sparc_iomap;
arch/um/drivers/virt-pci.c
240
static struct resource virt_cfgspace_resource = {
arch/um/drivers/virt-pci.c
268
static struct resource virt_iomem_resource = {
arch/um/drivers/virt-pci.c
294
struct resource *r = &pdev->resource[i];
arch/um/drivers/virt-pci.c
423
static struct resource busn_resource = {
arch/um/drivers/virt-pci.c
463
static struct resource virt_platform_resource = {
arch/x86/include/asm/amd/nb.h
18
extern struct resource *amd_get_mmconfig_range(struct resource *res);
arch/x86/include/asm/pci_x86.h
171
struct resource res;
arch/x86/kernel/acpi/boot.c
895
static struct resource *hpet_res __initdata;
arch/x86/kernel/amd_nb.c
142
struct resource *amd_get_mmconfig_range(struct resource *res)
arch/x86/kernel/apic/apic.c
172
static struct resource lapic_resource = {
arch/x86/kernel/apic/io_apic.c
118
struct resource *iomem_res;
arch/x86/kernel/apic/io_apic.c
2500
static struct resource *ioapic_resources;
arch/x86/kernel/apic/io_apic.c
2502
static struct resource * __init ioapic_setup_resources(void)
arch/x86/kernel/apic/io_apic.c
2504
struct resource *res;
arch/x86/kernel/apic/io_apic.c
2512
n = IOAPIC_RESOURCE_NAME_SIZE + sizeof(struct resource);
arch/x86/kernel/apic/io_apic.c
2518
mem += sizeof(struct resource) * nr_ioapics;
arch/x86/kernel/apic/io_apic.c
2554
struct resource *ioapic_res;
arch/x86/kernel/apic/io_apic.c
2591
struct resource *r = ioapic_resources;
arch/x86/kernel/crash.c
147
static int get_nr_ram_ranges_callback(struct resource *res, void *arg)
arch/x86/kernel/crash.c
224
static int prepare_elf64_ram_headers_callback(struct resource *res, void *arg)
arch/x86/kernel/crash.c
281
static int memmap_entry_callback(struct resource *res, void *arg)
arch/x86/kernel/devicetree.c
113
struct resource r;
arch/x86/kernel/devicetree.c
149
struct resource r;
arch/x86/kernel/devicetree.c
241
struct resource r;
arch/x86/kernel/e820.c
1074
__initdata static struct resource *e820_res;
arch/x86/kernel/e820.c
1080
__init static bool e820_device_region(enum e820_type type, struct resource *res)
arch/x86/kernel/e820.c
1112
struct resource *res;
arch/x86/kernel/e820.c
1181
struct resource *res = e820_res + idx;
arch/x86/kernel/early-quirks.c
563
struct resource intel_graphics_stolen_res __ro_after_init = DEFINE_RES_MEM(0, 0);
arch/x86/kernel/machine_kexec_64.c
44
static int mem_region_callback(struct resource *res, void *arg)
arch/x86/kernel/pmem.c
10
static int found(struct resource *res, void *data)
arch/x86/kernel/probe_roms.c
115
static struct resource *find_oprom(struct pci_dev *pdev)
arch/x86/kernel/probe_roms.c
117
struct resource *oprom = NULL;
arch/x86/kernel/probe_roms.c
121
struct resource *res = &adapter_rom_resources[i];
arch/x86/kernel/probe_roms.c
157
struct resource *oprom = find_oprom(pdev);
arch/x86/kernel/probe_roms.c
174
struct resource *oprom = find_oprom(pdev);
arch/x86/kernel/probe_roms.c
26
static struct resource system_rom_resource = {
arch/x86/kernel/probe_roms.c
33
static struct resource extension_rom_resource = {
arch/x86/kernel/probe_roms.c
40
static struct resource adapter_rom_resources[] = { {
arch/x86/kernel/probe_roms.c
72
static struct resource video_rom_resource = {
arch/x86/kernel/resource.c
28
static void remove_e820_regions(struct resource *avail)
arch/x86/kernel/resource.c
33
struct resource orig = *avail;
arch/x86/kernel/resource.c
60
void arch_remove_reservations(struct resource *avail)
arch/x86/kernel/resource.c
7
static void resource_clip(struct resource *res, resource_size_t start,
arch/x86/kernel/rtc.c
114
static struct resource rtc_resources[] = {
arch/x86/kernel/rtc.c
130
.resource = rtc_resources,
arch/x86/kernel/setup.c
101
static struct resource code_resource = {
arch/x86/kernel/setup.c
108
static struct resource bss_resource = {
arch/x86/kernel/setup.c
1283
static struct resource video_ram_resource = {
arch/x86/kernel/setup.c
632
static struct resource standard_io_resources[] = {
arch/x86/kernel/setup.c
87
static struct resource rodata_resource = {
arch/x86/kernel/setup.c
94
static struct resource data_resource = {
arch/x86/mm/ioremap.c
133
static int __ioremap_collect_map_flags(struct resource *res, void *arg)
arch/x86/mm/ioremap.c
71
static unsigned int __ioremap_check_ram(struct resource *res)
arch/x86/mm/ioremap.c
94
static unsigned int __ioremap_check_encrypted(struct resource *res)
arch/x86/pci/acpi.c
494
static bool resource_is_pcicfg_ioport(struct resource *res)
arch/x86/pci/amd_bus.c
85
struct resource fam10h_mmconf_res, *fam10h_mmconf;
arch/x86/pci/broadcom_bus.c
22
struct resource res;
arch/x86/pci/bus_numa.c
98
struct resource *res;
arch/x86/pci/bus_numa.h
10
struct resource res;
arch/x86/pci/bus_numa.h
17
struct resource busn;
arch/x86/pci/common.c
129
struct resource *rom_r = &dev->resource[PCI_ROM_RESOURCE];
arch/x86/pci/common.c
130
struct resource *bar_r;
arch/x86/pci/common.c
140
bar_r = &dev->resource[bar];
arch/x86/pci/fixup.c
359
struct resource *res;
arch/x86/pci/fixup.c
384
res = &pdev->resource[PCI_ROM_RESOURCE];
arch/x86/pci/fixup.c
536
dev->resource[0].flags |= IORESOURCE_PCI_FIXED;
arch/x86/pci/fixup.c
572
struct resource *r = &dev->resource[1];
arch/x86/pci/fixup.c
65
d->resource[i].flags |= PCI_BASE_ADDRESS_SPACE_IO;
arch/x86/pci/fixup.c
665
struct resource *res;
arch/x86/pci/fixup.c
698
struct resource *r = &dev->resource[4];
arch/x86/pci/fixup.c
738
struct resource *res, *conflict;
arch/x86/pci/i386.c
155
pcibios_align_resource(void *data, const struct resource *res,
arch/x86/pci/i386.c
212
struct resource *r;
arch/x86/pci/i386.c
215
r = &dev->resource[idx];
arch/x86/pci/i386.c
253
struct resource *r;
arch/x86/pci/i386.c
265
r = &dev->resource[idx];
arch/x86/pci/i386.c
293
r = &dev->resource[PCI_ROM_RESOURCE];
arch/x86/pci/i386.c
323
struct resource *r;
arch/x86/pci/i386.c
330
r = &dev->resource[PCI_ROM_RESOURCE];
arch/x86/pci/intel_mid.c
402
dev->resource[i].end = dev->resource[i].start + size - 1;
arch/x86/pci/intel_mid.c
403
dev->resource[i].flags |= IORESOURCE_PCI_FIXED;
arch/x86/pci/mmconfig-shared.c
381
struct resource *mcfg_res = data;
arch/x86/pci/mmconfig-shared.c
418
struct resource *mcfg_res = context;
arch/x86/pci/mmconfig-shared.c
431
struct resource mcfg_res;
arch/x86/pci/mmconfig-shared.c
446
static bool is_efi_mmio(struct resource *res)
arch/x86/pci/mmconfig-shared.c
520
struct resource *conflict;
arch/x86/pci/mmconfig-shared.c
75
struct resource *res;
arch/x86/pci/mmconfig-shared.c
787
struct resource *tmp = NULL;
arch/x86/platform/iris/iris.c
79
static struct resource iris_resources[] = {
arch/x86/platform/olpc/olpc-xo1-pm.c
121
struct resource *res;
arch/x86/platform/olpc/olpc-xo1-rtc.c
27
static struct resource rtc_platform_resource[] = {
arch/x86/platform/olpc/olpc-xo1-rtc.c
53
.resource = rtc_platform_resource,
arch/x86/platform/olpc/olpc-xo1-sci.c
531
struct resource *res;
arch/x86/platform/ts5500/ts5500.c
209
static struct resource ts5500_dio1_resource[] = {
arch/x86/platform/ts5500/ts5500.c
216
.resource = ts5500_dio1_resource,
arch/x86/platform/ts5500/ts5500.c
220
static struct resource ts5500_dio2_resource[] = {
arch/x86/platform/ts5500/ts5500.c
227
.resource = ts5500_dio2_resource,
arch/x86/video/video-common.c
33
struct resource res[SCREEN_INFO_MAX_RESOURCES];
arch/x86/xen/enlighten.c
443
int __init arch_xen_unpopulated_init(struct resource **res)
arch/xtensa/include/asm/pci-bridge.h
49
struct resource io_resource;
arch/xtensa/include/asm/pci-bridge.h
50
struct resource mem_resources[3];
arch/xtensa/include/asm/pci-bridge.h
64
static inline void pcibios_init_resource(struct resource *res,
arch/xtensa/kernel/pci.c
41
pcibios_align_resource(void *data, const struct resource *res,
arch/xtensa/kernel/pci.c
50
pci_name(dev), dev->resource - res,
arch/xtensa/platforms/xt2000/setup.c
119
static struct resource xt2000_sonic_res[] = {
arch/xtensa/platforms/xt2000/setup.c
135
.resource = xt2000_sonic_res,
arch/xtensa/platforms/xtfpga/setup.c
162
static struct resource ethoc_res[] = {
arch/xtensa/platforms/xtfpga/setup.c
195
.resource = ethoc_res,
arch/xtensa/platforms/xtfpga/setup.c
205
static struct resource c67x00_res[] = {
arch/xtensa/platforms/xtfpga/setup.c
227
.resource = c67x00_res,
arch/xtensa/platforms/xtfpga/setup.c
237
static struct resource serial_resource = {
arch/xtensa/platforms/xtfpga/setup.c
263
.resource = &serial_resource,
drivers/accel/ivpu/ivpu_drv.c
515
struct resource *bar0 = &pdev->resource[0];
drivers/accel/ivpu/ivpu_drv.c
516
struct resource *bar4 = &pdev->resource[4];
drivers/accel/qaic/qaic_drv.c
506
qdev->bar_mhi = devm_ioremap_resource(&pdev->dev, &pdev->resource[config->mhi_bar_idx]);
drivers/accel/qaic/qaic_drv.c
510
qdev->bar_dbc = devm_ioremap_resource(&pdev->dev, &pdev->resource[config->dbc_bar_idx]);
drivers/accessibility/speakup/synth.c
409
static struct resource synth_res;
drivers/accessibility/speakup/synth.c
413
struct resource *parent = &ioport_resource;
drivers/acpi/acpi_extlog.c
298
struct resource *r;
drivers/acpi/acpi_memhotplug.c
61
acpi_memory_get_resource(struct acpi_resource *resource, void *context)
drivers/acpi/acpi_memhotplug.c
68
status = acpi_resource_to_address64(resource, &address64);
drivers/acpi/acpi_platform.c
117
struct resource *resources = NULL;
drivers/acpi/acpi_platform.c
75
const struct resource *src, struct resource *dest)
drivers/acpi/acpi_watchdog.c
109
struct resource *resources;
drivers/acpi/acpi_watchdog.c
132
struct resource res = {};
drivers/acpi/acpica/acresrc.h
214
acpi_rs_convert_resources_to_aml(struct acpi_resource *resource,
drivers/acpi/acpica/acresrc.h
222
struct acpi_resource *resource);
drivers/acpi/acpica/acresrc.h
225
acpi_rs_get_address_common(struct acpi_resource *resource,
drivers/acpi/acpica/acresrc.h
232
acpi_rs_convert_aml_to_resource(struct acpi_resource *resource,
drivers/acpi/acpica/acresrc.h
237
acpi_rs_convert_resource_to_aml(struct acpi_resource *resource,
drivers/acpi/acpica/acresrc.h
276
void acpi_rs_dump_resource_list(struct acpi_resource *resource);
drivers/acpi/acpica/amlresrc.h
569
union aml_resource *resource,
drivers/acpi/acpica/amlresrc.h
574
union aml_resource *resource, char *device_name);
drivers/acpi/acpica/dbcmds.c
30
acpi_db_resource_callback(struct acpi_resource *resource, void *context);
drivers/acpi/acpica/dbcmds.c
733
acpi_db_resource_callback(struct acpi_resource *resource, void *context)
drivers/acpi/acpica/rsaddr.c
272
acpi_rs_get_address_common(struct acpi_resource *resource,
drivers/acpi/acpica/rsaddr.c
287
(void)acpi_rs_convert_aml_to_resource(resource, aml,
drivers/acpi/acpica/rsaddr.c
292
if (resource->data.address.resource_type == ACPI_MEMORY_RANGE) {
drivers/acpi/acpica/rsaddr.c
293
(void)acpi_rs_convert_aml_to_resource(resource, aml,
drivers/acpi/acpica/rsaddr.c
295
} else if (resource->data.address.resource_type == ACPI_IO_RANGE) {
drivers/acpi/acpica/rsaddr.c
296
(void)acpi_rs_convert_aml_to_resource(resource, aml,
drivers/acpi/acpica/rsaddr.c
301
resource->data.address.info.type_specific =
drivers/acpi/acpica/rsaddr.c
324
struct acpi_resource *resource)
drivers/acpi/acpica/rsaddr.c
330
(void)acpi_rs_convert_resource_to_aml(resource, aml,
drivers/acpi/acpica/rsaddr.c
335
if (resource->data.address.resource_type == ACPI_MEMORY_RANGE) {
drivers/acpi/acpica/rsaddr.c
336
(void)acpi_rs_convert_resource_to_aml(resource, aml,
drivers/acpi/acpica/rsaddr.c
338
} else if (resource->data.address.resource_type == ACPI_IO_RANGE) {
drivers/acpi/acpica/rsaddr.c
339
(void)acpi_rs_convert_resource_to_aml(resource, aml,
drivers/acpi/acpica/rsaddr.c
345
resource->data.address.info.type_specific;
drivers/acpi/acpica/rscalc.c
154
acpi_rs_get_aml_length(struct acpi_resource *resource,
drivers/acpi/acpica/rscalc.c
166
ACPI_ADD_PTR(struct acpi_resource, resource, resource_list_size);
drivers/acpi/acpica/rscalc.c
167
while (resource < resource_end) {
drivers/acpi/acpica/rscalc.c
171
if (resource->type > ACPI_RESOURCE_TYPE_MAX) {
drivers/acpi/acpica/rscalc.c
177
if (!resource->length) {
drivers/acpi/acpica/rscalc.c
183
total_size = acpi_gbl_aml_resource_sizes[resource->type];
drivers/acpi/acpica/rscalc.c
189
switch (resource->type) {
drivers/acpi/acpica/rscalc.c
194
if (resource->data.irq.descriptor_length == 2) {
drivers/acpi/acpica/rscalc.c
203
if (resource->data.irq.descriptor_length == 0) {
drivers/acpi/acpica/rscalc.c
215
if (resource->data.vendor.byte_length > 7) {
drivers/acpi/acpica/rscalc.c
226
(total_size + resource->data.vendor.byte_length);
drivers/acpi/acpica/rscalc.c
247
(&resource->data.
drivers/acpi/acpica/rscalc.c
259
(&resource->data.
drivers/acpi/acpica/rscalc.c
271
(&resource->data.
drivers/acpi/acpica/rscalc.c
283
((resource->data.
drivers/acpi/acpica/rscalc.c
289
(&resource->data.
drivers/acpi/acpica/rscalc.c
297
(resource->data.gpio.
drivers/acpi/acpica/rscalc.c
299
resource->data.gpio.
drivers/acpi/acpica/rscalc.c
302
resource->data.gpio.
drivers/acpi/acpica/rscalc.c
310
(resource->data.
drivers/acpi/acpica/rscalc.c
313
resource->data.
drivers/acpi/acpica/rscalc.c
317
resource->data.
drivers/acpi/acpica/rscalc.c
326
resource->data.
drivers/acpi/acpica/rscalc.c
336
acpi_gbl_aml_resource_serial_bus_sizes[resource->
drivers/acpi/acpica/rscalc.c
342
resource->data.
drivers/acpi/acpica/rscalc.c
346
resource->data.
drivers/acpi/acpica/rscalc.c
355
(resource->data.
drivers/acpi/acpica/rscalc.c
358
resource->data.pin_config.
drivers/acpi/acpica/rscalc.c
361
resource->data.pin_config.
drivers/acpi/acpica/rscalc.c
369
(resource->data.pin_group.
drivers/acpi/acpica/rscalc.c
371
resource->data.pin_group.
drivers/acpi/acpica/rscalc.c
374
resource->data.pin_group.
drivers/acpi/acpica/rscalc.c
382
resource->data.
drivers/acpi/acpica/rscalc.c
386
resource->data.
drivers/acpi/acpica/rscalc.c
390
resource->data.
drivers/acpi/acpica/rscalc.c
399
resource->data.
drivers/acpi/acpica/rscalc.c
403
resource->data.
drivers/acpi/acpica/rscalc.c
407
resource->data.
drivers/acpi/acpica/rscalc.c
424
resource =
drivers/acpi/acpica/rscalc.c
425
ACPI_ADD_PTR(struct acpi_resource, resource,
drivers/acpi/acpica/rscalc.c
426
resource->length);
drivers/acpi/acpica/rscreate.c
111
void *resource;
drivers/acpi/acpica/rscreate.c
144
resource = output_buffer->pointer;
drivers/acpi/acpica/rscreate.c
147
&resource);
drivers/acpi/acpica/rscreate.c
36
void *resource;
drivers/acpi/acpica/rscreate.c
60
resource = ACPI_ALLOCATE_ZEROED(list_size_needed);
drivers/acpi/acpica/rscreate.c
61
current_resource_ptr = resource;
drivers/acpi/acpica/rscreate.c
62
if (!resource) {
drivers/acpi/acpica/rscreate.c
75
ACPI_FREE(resource);
drivers/acpi/acpica/rscreate.c
77
*resource_ptr = resource;
drivers/acpi/acpica/rsdump.c
180
acpi_rs_dump_descriptor(void *resource, struct acpi_rsdump_info *table)
drivers/acpi/acpica/rsdump.c
193
target = ACPI_ADD_PTR(u8, resource, table->offset);
drivers/acpi/acpica/rsdump.c
450
static void acpi_rs_dump_address_common(union acpi_resource_data *resource)
drivers/acpi/acpica/rsdump.c
456
switch (resource->address.resource_type) {
drivers/acpi/acpica/rsdump.c
459
acpi_rs_dump_descriptor(resource, acpi_rs_dump_memory_flags);
drivers/acpi/acpica/rsdump.c
46
static void acpi_rs_dump_address_common(union acpi_resource_data *resource);
drivers/acpi/acpica/rsdump.c
464
acpi_rs_dump_descriptor(resource, acpi_rs_dump_io_flags);
drivers/acpi/acpica/rsdump.c
475
(u8) resource->address.resource_type);
drivers/acpi/acpica/rsdump.c
481
acpi_rs_dump_descriptor(resource, acpi_rs_dump_general_flags);
drivers/acpi/acpica/rsdump.c
49
acpi_rs_dump_descriptor(void *resource, struct acpi_rsdump_info *table);
drivers/acpi/acpica/rslist.c
100
resource->length));
drivers/acpi/acpica/rslist.c
104
*resource_ptr = ACPI_NEXT_RESOURCE(resource);
drivers/acpi/acpica/rslist.c
128
acpi_rs_convert_resources_to_aml(struct acpi_resource *resource,
drivers/acpi/acpica/rslist.c
144
if (resource->type > ACPI_RESOURCE_TYPE_MAX) {
drivers/acpi/acpica/rslist.c
147
resource->type));
drivers/acpi/acpica/rslist.c
153
if (!resource->length) {
drivers/acpi/acpica/rslist.c
161
if (resource->type == ACPI_RESOURCE_TYPE_SERIAL_BUS) {
drivers/acpi/acpica/rslist.c
162
if (resource->data.common_serial_bus.type >
drivers/acpi/acpica/rslist.c
170
[resource->data.common_serial_bus.type];
drivers/acpi/acpica/rslist.c
174
acpi_gbl_set_resource_dispatch[resource->type];
drivers/acpi/acpica/rslist.c
180
resource->type));
drivers/acpi/acpica/rslist.c
184
status = acpi_rs_convert_resource_to_aml(resource,
drivers/acpi/acpica/rslist.c
192
resource->type));
drivers/acpi/acpica/rslist.c
208
if (resource->type == ACPI_RESOURCE_TYPE_END_TAG) {
drivers/acpi/acpica/rslist.c
223
resource = ACPI_NEXT_RESOURCE(resource);
drivers/acpi/acpica/rslist.c
36
struct acpi_resource *resource;
drivers/acpi/acpica/rslist.c
47
resource = *resource_ptr;
drivers/acpi/acpica/rslist.c
48
if (ACPI_IS_MISALIGNED(resource)) {
drivers/acpi/acpica/rslist.c
50
"Misaligned resource pointer %p", resource));
drivers/acpi/acpica/rslist.c
83
acpi_rs_convert_aml_to_resource(resource, aml_resource,
drivers/acpi/acpica/rslist.c
92
if (!resource->length) {
drivers/acpi/acpica/rsmisc.c
138
resource->length = resource->length +
drivers/acpi/acpica/rsmisc.c
147
resource->length = resource->length +
drivers/acpi/acpica/rsmisc.c
156
resource->length = resource->length + item_count;
drivers/acpi/acpica/rsmisc.c
166
resource->length =
drivers/acpi/acpica/rsmisc.c
167
resource->length + (info->value * item_count);
drivers/acpi/acpica/rsmisc.c
191
resource->length = resource->length + item_count;
drivers/acpi/acpica/rsmisc.c
200
resource->length = resource->length + item_count;
drivers/acpi/acpica/rsmisc.c
211
resource->length = resource->length + item_count;
drivers/acpi/acpica/rsmisc.c
217
resource->length = resource->length + info->value;
drivers/acpi/acpica/rsmisc.c
239
target = (char *)ACPI_ADD_PTR(void, resource,
drivers/acpi/acpica/rsmisc.c
240
(resource->length -
drivers/acpi/acpica/rsmisc.c
255
target = (char *)ACPI_ADD_PTR(void, resource,
drivers/acpi/acpica/rsmisc.c
256
(resource->length -
drivers/acpi/acpica/rsmisc.c
271
target = (char *)ACPI_ADD_PTR(void, resource,
drivers/acpi/acpica/rsmisc.c
272
(resource->length -
drivers/acpi/acpica/rsmisc.c
287
target = (char *)ACPI_ADD_PTR(void, resource,
drivers/acpi/acpica/rsmisc.c
288
(resource->length -
drivers/acpi/acpica/rsmisc.c
308
target = ACPI_ADD_PTR(char, resource, info->value);
drivers/acpi/acpica/rsmisc.c
316
if (!acpi_rs_get_address_common(resource, aml)) {
drivers/acpi/acpica/rsmisc.c
326
resource->length +=
drivers/acpi/acpica/rsmisc.c
337
target = ACPI_ADD_PTR(char, resource,
drivers/acpi/acpica/rsmisc.c
341
resource->length +=
drivers/acpi/acpica/rsmisc.c
35
acpi_rs_convert_aml_to_resource(struct acpi_resource *resource,
drivers/acpi/acpica/rsmisc.c
359
resource->length += (item_count - 1);
drivers/acpi/acpica/rsmisc.c
362
target = ACPI_ADD_PTR(char, resource, info->value);
drivers/acpi/acpica/rsmisc.c
375
resource->length += (item_count - 1);
drivers/acpi/acpica/rsmisc.c
378
target = ACPI_ADD_PTR(char, resource, info->value);
drivers/acpi/acpica/rsmisc.c
424
resource->length = (u32)
drivers/acpi/acpica/rsmisc.c
425
ACPI_ROUND_UP_TO_NATIVE_WORD(resource->length);
drivers/acpi/acpica/rsmisc.c
446
acpi_rs_convert_resource_to_aml(struct acpi_resource *resource,
drivers/acpi/acpica/rsmisc.c
475
source = ACPI_ADD_PTR(void, resource, info->resource_offset);
drivers/acpi/acpica/rsmisc.c
54
if (((acpi_size)resource) & 0x3) {
drivers/acpi/acpica/rsmisc.c
60
resource, resource->type, resource->length));
drivers/acpi/acpica/rsmisc.c
667
acpi_rs_set_address_common(aml, resource);
drivers/acpi/acpica/rsmisc.c
699
resource,
drivers/acpi/acpica/rsmisc.c
710
*ACPI_ADD_PTR(u8, resource,
drivers/acpi/acpica/rsmisc.c
731
if (*ACPI_ADD_PTR(u8, resource,
drivers/acpi/acpica/rsmisc.c
750
if (*ACPI_ADD_PTR(u8, resource,
drivers/acpi/acpica/rsmisc.c
778
if (resource->data.start_dpf.performance_robustness >= 3) {
drivers/acpi/acpica/rsmisc.c
794
resource->data.extended_irq.interrupt_count = temp8;
drivers/acpi/acpica/rsmisc.c
802
if (resource->data.dma.transfer == 0x03) {
drivers/acpi/acpica/rsmisc.c
81
ACPI_ADD_PTR(void, resource, info->resource_offset);
drivers/acpi/acpica/rsmisc.c
88
memset(resource, 0, INIT_RESOURCE_LENGTH(info));
drivers/acpi/acpica/rsmisc.c
89
resource->type = INIT_RESOURCE_TYPE(info);
drivers/acpi/acpica/rsmisc.c
90
resource->length = INIT_RESOURCE_LENGTH(info);
drivers/acpi/acpica/rsxface.c
332
acpi_resource_to_address64(struct acpi_resource *resource,
drivers/acpi/acpica/rsxface.c
338
if (!resource || !out) {
drivers/acpi/acpica/rsxface.c
344
switch (resource->type) {
drivers/acpi/acpica/rsxface.c
349
&resource->data);
drivers/acpi/acpica/rsxface.c
35
acpi_rs_match_vendor_resource(struct acpi_resource *resource, void *context);
drivers/acpi/acpica/rsxface.c
357
&resource->data);
drivers/acpi/acpica/rsxface.c
365
memcpy(out, &resource->data,
drivers/acpi/acpica/rsxface.c
442
acpi_rs_match_vendor_resource(struct acpi_resource *resource, void *context)
drivers/acpi/acpica/rsxface.c
451
if (resource->type != ACPI_RESOURCE_TYPE_VENDOR) {
drivers/acpi/acpica/rsxface.c
455
vendor = &resource->data.vendor_typed;
drivers/acpi/acpica/rsxface.c
473
status = acpi_ut_initialize_buffer(buffer, resource->length);
drivers/acpi/acpica/rsxface.c
480
memcpy(buffer->pointer, resource, resource->length);
drivers/acpi/acpica/rsxface.c
481
buffer->length = resource->length;
drivers/acpi/acpica/rsxface.c
511
struct acpi_resource *resource;
drivers/acpi/acpica/rsxface.c
524
resource = ACPI_CAST_PTR(struct acpi_resource, buffer->pointer);
drivers/acpi/acpica/rsxface.c
530
while (resource < resource_end) {
drivers/acpi/acpica/rsxface.c
534
if (resource->type > ACPI_RESOURCE_TYPE_MAX) {
drivers/acpi/acpica/rsxface.c
541
if (!resource->length) {
drivers/acpi/acpica/rsxface.c
547
status = user_function(resource, context);
drivers/acpi/acpica/rsxface.c
560
if (resource->type == ACPI_RESOURCE_TYPE_END_TAG) {
drivers/acpi/acpica/rsxface.c
566
resource = ACPI_NEXT_RESOURCE(resource);
drivers/acpi/apei/apei-base.c
465
struct resource *r;
drivers/acpi/apei/einj-core.c
413
struct resource *r;
drivers/acpi/apei/erst.c
1193
struct resource *r;
drivers/acpi/arm64/apmt.c
26
static int __init apmt_init_resources(struct resource *res,
drivers/acpi/arm64/apmt.c
80
struct resource res[DEV_MAX_RESOURCE_COUNT];
drivers/acpi/arm64/gtdt.c
319
struct resource res[] = {
drivers/acpi/arm64/iort.c
1561
struct resource *res)
drivers/acpi/arm64/iort.c
1632
static void __init arm_smmu_v3_init_resources(struct resource *res,
drivers/acpi/arm64/iort.c
1740
static void __init arm_smmu_init_resources(struct resource *res,
drivers/acpi/arm64/iort.c
1807
static void __init arm_smmu_v3_pmcg_init_resources(struct resource *res,
drivers/acpi/arm64/iort.c
1874
void (*dev_init_resources)(struct resource *res,
drivers/acpi/arm64/iort.c
1930
struct resource *r;
drivers/acpi/arm64/mpam.c
134
struct acpi_mpam_resource_node *resource;
drivers/acpi/arm64/mpam.c
141
if (ptr + sizeof(*resource) > table_end)
drivers/acpi/arm64/mpam.c
144
resource = (struct acpi_mpam_resource_node *)ptr;
drivers/acpi/arm64/mpam.c
148
if (resource->num_functional_deps > max_deps) {
drivers/acpi/arm64/mpam.c
153
err = acpi_mpam_parse_resource(msc, resource);
drivers/acpi/arm64/mpam.c
157
ptr += sizeof(*resource);
drivers/acpi/arm64/mpam.c
158
ptr += resource->num_functional_deps * sizeof(struct acpi_mpam_func_deps);
drivers/acpi/arm64/mpam.c
226
struct resource res[3] = { 0 };
drivers/acpi/arm64/mpam.c
80
struct resource *res, int *res_idx)
drivers/acpi/ec.c
1412
ec_parse_io_ports(struct acpi_resource *resource, void *context);
drivers/acpi/ec.c
1776
ec_parse_io_ports(struct acpi_resource *resource, void *context)
drivers/acpi/ec.c
1780
if (resource->type != ACPI_RESOURCE_TYPE_IO)
drivers/acpi/ec.c
1789
ec->data_addr = resource->data.io.minimum;
drivers/acpi/ec.c
1791
ec->command_addr = resource->data.io.minimum;
drivers/acpi/evged.c
79
struct resource r;
drivers/acpi/ioapic.c
104
struct resource *res = NULL, *pci_res = NULL, *crs_res;
drivers/acpi/ioapic.c
144
pci_res = &dev->resource[0];
drivers/acpi/ioapic.c
33
struct resource res;
drivers/acpi/ioapic.c
43
struct resource *res = data;
drivers/acpi/irq.c
276
int acpi_irq_get(acpi_handle handle, unsigned int index, struct resource *res)
drivers/acpi/nfit/core.c
1098
sizeof(struct resource),
drivers/acpi/nfit/core.c
1103
struct resource *res = &nfit_mem->flush_wpq[i];
drivers/acpi/nfit/core.c
2521
struct resource *res = data;
drivers/acpi/nfit/core.c
2529
struct resource *res, *nd_res = ndr_desc->res;
drivers/acpi/nfit/core.c
2611
struct resource res;
drivers/acpi/nfit/nfit.h
223
struct resource *flush_wpq;
drivers/acpi/numa/hmat.c
1011
struct resource *res, *res_next;
drivers/acpi/numa/hmat.c
119
int hmat_get_extended_linear_cache_size(struct resource *backing_res, int nid,
drivers/acpi/numa/hmat.c
125
struct resource *res;
drivers/acpi/numa/hmat.c
225
target->memregions = (struct resource) {
drivers/acpi/numa/hmat.c
71
struct resource memregions;
drivers/acpi/numa/hmat.c
861
struct resource *res;
drivers/acpi/osl.c
1486
int acpi_check_resource_conflict(const struct resource *res)
drivers/acpi/osl.c
1518
struct resource res = DEFINE_RES_IO_NAMED(start, n, name);
drivers/acpi/pci_link.c
123
&resource->data.extended_irq;
drivers/acpi/pci_link.c
148
resource->type);
drivers/acpi/pci_link.c
173
static acpi_status acpi_pci_link_check_current(struct acpi_resource *resource,
drivers/acpi/pci_link.c
178
switch (resource->type) {
drivers/acpi/pci_link.c
184
struct acpi_resource_irq *p = &resource->data.irq;
drivers/acpi/pci_link.c
199
&resource->data.extended_irq;
drivers/acpi/pci_link.c
214
resource->type);
drivers/acpi/pci_link.c
282
} *resource;
drivers/acpi/pci_link.c
291
resource = kzalloc(sizeof(*resource) + 1, irqs_disabled() ? GFP_ATOMIC: GFP_KERNEL);
drivers/acpi/pci_link.c
292
if (!resource)
drivers/acpi/pci_link.c
295
buffer.length = sizeof(*resource) + 1;
drivers/acpi/pci_link.c
296
buffer.pointer = resource;
drivers/acpi/pci_link.c
300
resource->res.type = ACPI_RESOURCE_TYPE_IRQ;
drivers/acpi/pci_link.c
301
resource->res.length = sizeof(struct acpi_resource);
drivers/acpi/pci_link.c
302
resource->res.data.irq.triggering = link->irq.triggering;
drivers/acpi/pci_link.c
303
resource->res.data.irq.polarity =
drivers/acpi/pci_link.c
306
resource->res.data.irq.shareable =
drivers/acpi/pci_link.c
309
resource->res.data.irq.shareable = ACPI_SHARED;
drivers/acpi/pci_link.c
310
resource->res.data.irq.interrupt_count = 1;
drivers/acpi/pci_link.c
311
resource->res.data.irq.interrupts[0] = irq;
drivers/acpi/pci_link.c
315
resource->res.type = ACPI_RESOURCE_TYPE_EXTENDED_IRQ;
drivers/acpi/pci_link.c
316
resource->res.length = sizeof(struct acpi_resource);
drivers/acpi/pci_link.c
317
resource->res.data.extended_irq.producer_consumer =
drivers/acpi/pci_link.c
319
resource->res.data.extended_irq.triggering =
drivers/acpi/pci_link.c
321
resource->res.data.extended_irq.polarity =
drivers/acpi/pci_link.c
324
resource->res.data.extended_irq.shareable =
drivers/acpi/pci_link.c
327
resource->res.data.extended_irq.shareable = ACPI_SHARED;
drivers/acpi/pci_link.c
328
resource->res.data.extended_irq.interrupt_count = 1;
drivers/acpi/pci_link.c
329
resource->res.data.extended_irq.interrupts[0] = irq;
drivers/acpi/pci_link.c
339
resource->end.type = ACPI_RESOURCE_TYPE_END_TAG;
drivers/acpi/pci_link.c
340
resource->end.length = sizeof(struct acpi_resource);
drivers/acpi/pci_link.c
384
kfree(resource);
drivers/acpi/pci_link.c
84
static acpi_status acpi_pci_link_check_possible(struct acpi_resource *resource,
drivers/acpi/pci_link.c
91
switch (resource->type) {
drivers/acpi/pci_link.c
97
struct acpi_resource_irq *p = &resource->data.irq;
drivers/acpi/pci_mcfg.c
204
struct resource *bus_range)
drivers/acpi/pci_mcfg.c
219
struct resource *cfgres,
drivers/acpi/pci_mcfg.c
224
struct resource *bus_range = &root->secondary;
drivers/acpi/pci_mcfg.c
245
int pci_mcfg_lookup(struct acpi_pci_root *root, struct resource *cfgres,
drivers/acpi/pci_mcfg.c
249
struct resource *bus_res = &root->secondary;
drivers/acpi/pci_mcfg.c
252
struct resource res;
drivers/acpi/pci_mcfg.c
31
struct resource bus_range;
drivers/acpi/pci_mcfg.c
33
struct resource cfgres;
drivers/acpi/pci_root.c
103
struct resource *res)
drivers/acpi/pci_root.c
805
struct resource *res1, *res2, *root = NULL;
drivers/acpi/pci_root.c
83
get_root_bridge_busnr_callback(struct acpi_resource *resource, void *data)
drivers/acpi/pci_root.c
85
struct resource *res = data;
drivers/acpi/pci_root.c
865
struct resource *res = entry->res;
drivers/acpi/pci_root.c
89
status = acpi_resource_to_address64(resource, &address);
drivers/acpi/pci_root.c
933
struct resource *res, *conflict, *root = NULL;
drivers/acpi/pci_root.c
963
struct resource *res;
drivers/acpi/pci_root.c
982
struct resource *res;
drivers/acpi/power.c
101
struct acpi_power_resource *resource = acpi_power_get_context(handle);
drivers/acpi/power.c
1011
static void acpi_resume_on_eb_gp12pxp(struct acpi_power_resource *resource)
drivers/acpi/power.c
1013
acpi_handle_notice(resource->device.handle,
drivers/acpi/power.c
1016
__acpi_power_off(resource);
drivers/acpi/power.c
1017
__acpi_power_on(resource);
drivers/acpi/power.c
1033
struct acpi_power_resource *resource;
drivers/acpi/power.c
1037
list_for_each_entry(resource, &acpi_power_resource_list, list_node) {
drivers/acpi/power.c
104
if (!resource || !list)
drivers/acpi/power.c
1041
mutex_lock(&resource->resource_lock);
drivers/acpi/power.c
1043
resource->state = ACPI_POWER_RESOURCE_STATE_UNKNOWN;
drivers/acpi/power.c
1044
result = acpi_power_get_state(resource, &state);
drivers/acpi/power.c
1046
mutex_unlock(&resource->resource_lock);
drivers/acpi/power.c
1051
&& resource->ref_count) {
drivers/acpi/power.c
1053
resource_is_gp12pxp(resource->device.handle)) {
drivers/acpi/power.c
1054
acpi_resume_on_eb_gp12pxp(resource);
drivers/acpi/power.c
1056
acpi_handle_debug(resource->device.handle,
drivers/acpi/power.c
1058
__acpi_power_on(resource);
drivers/acpi/power.c
1062
mutex_unlock(&resource->resource_lock);
drivers/acpi/power.c
111
entry->resource = resource;
drivers/acpi/power.c
1137
struct acpi_power_resource *resource;
drivers/acpi/power.c
1144
list_for_each_entry_reverse(resource, &acpi_power_resource_list, list_node) {
drivers/acpi/power.c
1145
mutex_lock(&resource->resource_lock);
drivers/acpi/power.c
1147
if (!resource->ref_count &&
drivers/acpi/power.c
1148
resource->state == ACPI_POWER_RESOURCE_STATE_ON) {
drivers/acpi/power.c
1149
acpi_handle_debug(resource->device.handle, "Turning OFF\n");
drivers/acpi/power.c
1150
__acpi_power_off(resource);
drivers/acpi/power.c
1153
mutex_unlock(&resource->resource_lock);
drivers/acpi/power.c
116
if (e->resource->order > resource->order) {
drivers/acpi/power.c
211
static int acpi_power_get_state(struct acpi_power_resource *resource, u8 *state)
drivers/acpi/power.c
213
if (resource->state == ACPI_POWER_RESOURCE_STATE_UNKNOWN) {
drivers/acpi/power.c
216
ret = __get_state(resource->device.handle, &resource->state);
drivers/acpi/power.c
221
*state = resource->state;
drivers/acpi/power.c
235
struct acpi_power_resource *resource = entry->resource;
drivers/acpi/power.c
238
mutex_lock(&resource->resource_lock);
drivers/acpi/power.c
239
result = acpi_power_get_state(resource, &cur_state);
drivers/acpi/power.c
240
mutex_unlock(&resource->resource_lock);
drivers/acpi/power.c
255
acpi_power_resource_add_dependent(struct acpi_power_resource *resource,
drivers/acpi/power.c
261
mutex_lock(&resource->resource_lock);
drivers/acpi/power.c
262
list_for_each_entry(dep, &resource->dependents, node) {
drivers/acpi/power.c
275
list_add_tail(&dep->node, &resource->dependents);
drivers/acpi/power.c
277
resource_dev_name(resource));
drivers/acpi/power.c
280
mutex_unlock(&resource->resource_lock);
drivers/acpi/power.c
285
acpi_power_resource_remove_dependent(struct acpi_power_resource *resource,
drivers/acpi/power.c
290
mutex_lock(&resource->resource_lock);
drivers/acpi/power.c
291
list_for_each_entry(dep, &resource->dependents, node) {
drivers/acpi/power.c
296
resource_dev_name(resource));
drivers/acpi/power.c
300
mutex_unlock(&resource->resource_lock);
drivers/acpi/power.c
330
ret = acpi_power_resource_add_dependent(entry->resource, dev);
drivers/acpi/power.c
339
acpi_power_resource_remove_dependent(entry->resource, dev);
drivers/acpi/power.c
364
acpi_power_resource_remove_dependent(entry->resource, dev);
drivers/acpi/power.c
367
static int __acpi_power_on(struct acpi_power_resource *resource)
drivers/acpi/power.c
369
acpi_handle handle = resource->device.handle;
drivers/acpi/power.c
375
resource->state = ACPI_POWER_RESOURCE_STATE_UNKNOWN;
drivers/acpi/power.c
379
resource->state = ACPI_POWER_RESOURCE_STATE_ON;
drivers/acpi/power.c
388
if (list_empty(&resource->dependents) ||
drivers/acpi/power.c
389
list_is_singular(&resource->dependents))
drivers/acpi/power.c
392
list_for_each_entry(dep, &resource->dependents, node) {
drivers/acpi/power.c
394
resource_dev_name(resource));
drivers/acpi/power.c
401
static int acpi_power_on_unlocked(struct acpi_power_resource *resource)
drivers/acpi/power.c
405
if (resource->ref_count++) {
drivers/acpi/power.c
406
acpi_handle_debug(resource->device.handle,
drivers/acpi/power.c
409
result = __acpi_power_on(resource);
drivers/acpi/power.c
411
resource->ref_count--;
drivers/acpi/power.c
416
static int acpi_power_on(struct acpi_power_resource *resource)
drivers/acpi/power.c
420
mutex_lock(&resource->resource_lock);
drivers/acpi/power.c
421
result = acpi_power_on_unlocked(resource);
drivers/acpi/power.c
422
mutex_unlock(&resource->resource_lock);
drivers/acpi/power.c
426
static int __acpi_power_off(struct acpi_power_resource *resource)
drivers/acpi/power.c
428
acpi_handle handle = resource->device.handle;
drivers/acpi/power.c
433
resource->state = ACPI_POWER_RESOURCE_STATE_UNKNOWN;
drivers/acpi/power.c
437
resource->state = ACPI_POWER_RESOURCE_STATE_OFF;
drivers/acpi/power.c
444
static int acpi_power_off_unlocked(struct acpi_power_resource *resource)
drivers/acpi/power.c
448
if (!resource->ref_count) {
drivers/acpi/power.c
449
acpi_handle_debug(resource->device.handle,
drivers/acpi/power.c
454
if (--resource->ref_count) {
drivers/acpi/power.c
455
acpi_handle_debug(resource->device.handle,
drivers/acpi/power.c
458
result = __acpi_power_off(resource);
drivers/acpi/power.c
460
resource->ref_count++;
drivers/acpi/power.c
465
static int acpi_power_off(struct acpi_power_resource *resource)
drivers/acpi/power.c
469
mutex_lock(&resource->resource_lock);
drivers/acpi/power.c
470
result = acpi_power_off_unlocked(resource);
drivers/acpi/power.c
471
mutex_unlock(&resource->resource_lock);
drivers/acpi/power.c
481
result = acpi_power_off(entry->resource);
drivers/acpi/power.c
489
acpi_power_on(entry->resource);
drivers/acpi/power.c
500
result = acpi_power_on(entry->resource);
drivers/acpi/power.c
508
acpi_power_off(entry->resource);
drivers/acpi/power.c
551
struct acpi_device *res_dev = &entry->resource->device;
drivers/acpi/power.c
575
struct acpi_device *res_dev = &entry->resource->device;
drivers/acpi/power.c
622
struct acpi_power_resource *resource = entry->resource;
drivers/acpi/power.c
625
mutex_lock(&resource->resource_lock);
drivers/acpi/power.c
631
if (!resource->ref_count &&
drivers/acpi/power.c
632
!acpi_power_get_state(resource, &state) &&
drivers/acpi/power.c
634
__acpi_power_off(resource);
drivers/acpi/power.c
636
if (system_level > resource->system_level)
drivers/acpi/power.c
637
system_level = resource->system_level;
drivers/acpi/power.c
639
mutex_unlock(&resource->resource_lock);
drivers/acpi/power.c
64
struct acpi_power_resource *resource;
drivers/acpi/power.c
793
ret = acpi_power_off(entry->resource);
drivers/acpi/power.c
888
struct acpi_power_resource *resource;
drivers/acpi/power.c
890
resource = container_of(device, struct acpi_power_resource, device);
drivers/acpi/power.c
893
list_del(&resource->list_node);
drivers/acpi/power.c
897
kfree(resource);
drivers/acpi/power.c
904
struct acpi_power_resource *resource;
drivers/acpi/power.c
906
resource = to_power_resource(to_acpi_device(dev));
drivers/acpi/power.c
907
return sprintf(buf, "%u\n", !!resource->ref_count);
drivers/acpi/power.c
916
static void acpi_power_add_resource_to_list(struct acpi_power_resource *resource)
drivers/acpi/power.c
924
if (r->order > resource->order) {
drivers/acpi/power.c
925
list_add_tail(&resource->list_node, &r->list_node);
drivers/acpi/power.c
929
list_add_tail(&resource->list_node, &acpi_power_resource_list);
drivers/acpi/power.c
938
struct acpi_power_resource *resource;
drivers/acpi/power.c
948
resource = kzalloc_obj(*resource);
drivers/acpi/power.c
949
if (!resource)
drivers/acpi/power.c
952
device = &resource->device;
drivers/acpi/power.c
955
mutex_init(&resource->resource_lock);
drivers/acpi/power.c
956
INIT_LIST_HEAD(&resource->list_node);
drivers/acpi/power.c
957
INIT_LIST_HEAD(&resource->dependents);
drivers/acpi/power.c
968
resource->system_level = acpi_object.power_resource.system_level;
drivers/acpi/power.c
969
resource->order = acpi_object.power_resource.resource_order;
drivers/acpi/power.c
970
resource->state = ACPI_POWER_RESOURCE_STATE_UNKNOWN;
drivers/acpi/power.c
973
if (acpi_power_get_state(resource, &state_dummy))
drivers/acpi/power.c
974
__acpi_power_on(resource);
drivers/acpi/power.c
989
acpi_power_add_resource_to_list(resource);
drivers/acpi/pptt.c
100
ref += resource;
drivers/acpi/pptt.c
185
int resource = 0;
drivers/acpi/pptt.c
190
while ((res = acpi_get_pptt_resource(table_hdr, cpu_node, resource))) {
drivers/acpi/pptt.c
191
resource++;
drivers/acpi/pptt.c
92
int resource)
drivers/acpi/pptt.c
96
if (resource >= node->number_of_priv_resources)
drivers/acpi/property.c
1728
struct resource res;
drivers/acpi/resource.c
1012
struct resource *res = &win.res;
drivers/acpi/resource.c
107
bool acpi_dev_resource_memory(struct acpi_resource *ares, struct resource *res)
drivers/acpi/resource.c
1119
static int acpi_dev_consumes_res(struct acpi_device *adev, struct resource *res)
drivers/acpi/resource.c
1145
struct resource *res = context;
drivers/acpi/resource.c
1168
struct acpi_device *acpi_resource_consumer(struct resource *res)
drivers/acpi/resource.c
141
static void acpi_dev_ioresource_flags(struct resource *res, u64 len,
drivers/acpi/resource.c
158
static void acpi_dev_get_ioresource(struct resource *res, u64 start, u64 len,
drivers/acpi/resource.c
180
bool acpi_dev_resource_io(struct acpi_resource *ares, struct resource *res)
drivers/acpi/resource.c
215
struct resource *res = &win->res;
drivers/acpi/resource.c
24
static inline bool acpi_iospace_resource_valid(struct resource *res)
drivers/acpi/resource.c
37
acpi_iospace_resource_valid(struct resource *res) { return true; }
drivers/acpi/resource.c
73
static void acpi_dev_memresource_flags(struct resource *res, u64 len,
drivers/acpi/resource.c
761
static void acpi_dev_get_irqresource(struct resource *res, u32 gsi,
drivers/acpi/resource.c
829
struct resource *res)
drivers/acpi/resource.c
85
static void acpi_dev_get_memresource(struct resource *res, u64 start, u64 len,
drivers/acpi/resource.c
913
struct resource *res = &win.res;
drivers/acpi/riscv/rimt.c
87
struct resource *res;
drivers/acpi/scan.c
1921
struct resource *res = context;
drivers/acpi/scan.c
1932
struct resource res;
drivers/acpi/scan.c
2641
struct resource *res = rentry->res;
drivers/acpi/scan.c
2642
struct resource *r;
drivers/acpi/viot.c
112
struct resource res = {
drivers/acpi/viot.c
344
struct resource *mem;
drivers/amba/bus.c
122
amba_attr_func(resource, "\t%016llx\t%016llx\t%016lx\n",
drivers/amba/bus.c
555
int amba_device_add(struct amba_device *dev, struct resource *parent)
drivers/amba/bus.c
635
int amba_device_register(struct amba_device *dev, struct resource *parent)
drivers/amba/tegra-ahb.c
242
struct resource *res;
drivers/ata/ahci_da850.c
165
struct resource *res;
drivers/ata/ahci_qoriq.c
264
struct resource *res;
drivers/ata/ahci_tegra.c
517
struct resource *res;
drivers/ata/ahci_xgene.c
732
struct resource *res;
drivers/ata/pata_arasan_cf.c
801
struct resource *res;
drivers/ata/pata_buddha.c
165
board = z->resource.start;
drivers/ata/pata_ep93xx.c
919
struct resource *mem_res;
drivers/ata/pata_falcon.c
126
struct resource *base_mem_res, *ctl_mem_res;
drivers/ata/pata_falcon.c
127
struct resource *base_res, *ctl_res, *irq_res;
drivers/ata/pata_ftide010.c
458
struct resource *res;
drivers/ata/pata_gayle.c
129
struct resource *res;
drivers/ata/pata_imx.c
132
struct resource *io_res;
drivers/ata/pata_ixp4xx_cf.c
235
struct resource *cmd, *ctl;
drivers/ata/pata_mpc52xx.c
675
struct resource res_mem;
drivers/ata/pata_octeon_cf.c
804
struct resource *res_cs0, *res_cs1;
drivers/ata/pata_octeon_cf.c
848
struct resource *res_dma;
drivers/ata/pata_of_platform.c
26
struct resource io_res;
drivers/ata/pata_of_platform.c
27
struct resource ctl_res;
drivers/ata/pata_of_platform.c
28
struct resource irq_res;
drivers/ata/pata_pcmcia.c
159
if ((pdev->resource[0]->flags & IO_DATA_PATH_WIDTH)
drivers/ata/pata_pcmcia.c
161
pdev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH;
drivers/ata/pata_pcmcia.c
162
pdev->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO;
drivers/ata/pata_pcmcia.c
164
pdev->resource[1]->flags &= ~IO_DATA_PATH_WIDTH;
drivers/ata/pata_pcmcia.c
165
pdev->resource[1]->flags |= IO_DATA_PATH_WIDTH_8;
drivers/ata/pata_pcmcia.c
167
if (pdev->resource[1]->end) {
drivers/ata/pata_pcmcia.c
168
pdev->resource[0]->end = 8;
drivers/ata/pata_pcmcia.c
169
pdev->resource[1]->end = (*is_kme) ? 2 : 1;
drivers/ata/pata_pcmcia.c
171
if (pdev->resource[0]->end < 16)
drivers/ata/pata_pcmcia.c
211
io_base = pdev->resource[0]->start;
drivers/ata/pata_pcmcia.c
212
if (pdev->resource[1]->end)
drivers/ata/pata_pcmcia.c
213
ctl_base = pdev->resource[1]->start;
drivers/ata/pata_pcmcia.c
215
ctl_base = pdev->resource[0]->start + 0x0e;
drivers/ata/pata_pcmcia.c
238
if (resource_size(pdev->resource[0]) >= 0x20)
drivers/ata/pata_platform.c
187
struct resource *io_res;
drivers/ata/pata_platform.c
188
struct resource *ctl_res;
drivers/ata/pata_platform.c
189
struct resource *irq_res;
drivers/ata/pata_platform.c
97
int __pata_platform_probe(struct device *dev, struct resource *io_res,
drivers/ata/pata_platform.c
98
struct resource *ctl_res, struct resource *irq_res,
drivers/ata/pata_pxa.c
164
struct resource *cmd_res;
drivers/ata/pata_pxa.c
165
struct resource *ctl_res;
drivers/ata/pata_pxa.c
166
struct resource *dma_res;
drivers/ata/pata_rb532_cf.c
106
struct resource *res;
drivers/ata/sata_dwc_460ex.c
1138
struct resource *res;
drivers/ata/sata_highbank.c
458
struct resource *mem;
drivers/ata/sata_mv.c
4019
struct resource *res;
drivers/atm/fore200e.c
2538
fore200e->phys_base = op->resource[0].start;
drivers/atm/fore200e.c
673
fore200e->regs.sba.hcr = of_ioremap(&op->resource[0], 0, SBA200E_HCR_LENGTH, "SBA HCR");
drivers/atm/fore200e.c
674
fore200e->regs.sba.bsr = of_ioremap(&op->resource[1], 0, SBA200E_BSR_LENGTH, "SBA BSR");
drivers/atm/fore200e.c
675
fore200e->regs.sba.isr = of_ioremap(&op->resource[2], 0, SBA200E_ISR_LENGTH, "SBA ISR");
drivers/atm/fore200e.c
676
fore200e->virt_base = of_ioremap(&op->resource[3], 0, SBA200E_RAM_LENGTH, "SBA RAM");
drivers/atm/fore200e.c
701
of_iounmap(&op->resource[0], fore200e->regs.sba.hcr, SBA200E_HCR_LENGTH);
drivers/atm/fore200e.c
702
of_iounmap(&op->resource[1], fore200e->regs.sba.bsr, SBA200E_BSR_LENGTH);
drivers/atm/fore200e.c
703
of_iounmap(&op->resource[2], fore200e->regs.sba.isr, SBA200E_ISR_LENGTH);
drivers/atm/fore200e.c
704
of_iounmap(&op->resource[3], fore200e->virt_base, SBA200E_RAM_LENGTH);
drivers/atm/lanai.c
2135
raw_base = lanai->pci->resource[0].start;
drivers/base/platform.c
100
unsigned int index, struct resource **res)
drivers/base/platform.c
1019
struct resource *res, unsigned int n_res,
drivers/base/platform.c
102
struct resource *r;
drivers/base/platform.c
145
struct resource *res;
drivers/base/platform.c
194
struct resource *r;
drivers/base/platform.c
341
struct resource *r;
drivers/base/platform.c
461
struct resource *platform_get_resource_byname(struct platform_device *dev,
drivers/base/platform.c
468
struct resource *r = &dev->resource[i];
drivers/base/platform.c
483
struct resource *r;
drivers/base/platform.c
55
struct resource *platform_get_resource(struct platform_device *dev,
drivers/base/platform.c
605
kfree(pa->pdev.resource);
drivers/base/platform.c
61
struct resource *r = &dev->resource[i];
drivers/base/platform.c
646
const struct resource *res, unsigned int num)
drivers/base/platform.c
648
struct resource *r = NULL;
drivers/base/platform.c
656
kfree(pdev->resource);
drivers/base/platform.c
657
pdev->resource = r;
drivers/base/platform.c
70
struct resource *platform_get_mem_or_io(struct platform_device *dev,
drivers/base/platform.c
731
struct resource *p, *r = &pdev->resource[i];
drivers/base/platform.c
76
struct resource *r = &dev->resource[i];
drivers/base/platform.c
769
struct resource *r = &pdev->resource[i];
drivers/base/platform.c
799
struct resource *r = &pdev->resource[i];
drivers/bcma/driver_chipcommon_pflash.c
20
static struct resource bcma_pflash_resource = {
drivers/bcma/driver_chipcommon_pflash.c
30
.resource = &bcma_pflash_resource,
drivers/bcma/driver_chipcommon_sflash.c
13
static struct resource bcma_sflash_resource = {
drivers/bcma/driver_chipcommon_sflash.c
160
bcma_sflash_dev.resource[0].end = bcma_sflash_dev.resource[0].start +
drivers/bcma/driver_chipcommon_sflash.c
22
.resource = &bcma_sflash_resource,
drivers/bcma/driver_pci_host.c
556
struct resource *res;
drivers/bcma/driver_pci_host.c
569
res = &dev->resource[pos];
drivers/bcma/main.c
150
struct resource res;
drivers/block/drbd/drbd_bitmap.c
1106
spin_lock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_bitmap.c
1108
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_bitmap.c
929
spin_lock_irqsave(&ctx->device->resource->req_lock, flags);
drivers/block/drbd/drbd_bitmap.c
931
spin_unlock_irqrestore(&ctx->device->resource->req_lock, flags);
drivers/block/drbd/drbd_debugfs.c
128
static void seq_print_resource_pending_meta_io(struct seq_file *m, struct drbd_resource *resource, unsigned long now)
drivers/block/drbd/drbd_debugfs.c
135
idr_for_each_entry(&resource->devices, device, i) {
drivers/block/drbd/drbd_debugfs.c
156
static void seq_print_waiting_for_AL(struct seq_file *m, struct drbd_resource *resource, unsigned long now)
drivers/block/drbd/drbd_debugfs.c
163
idr_for_each_entry(&resource->devices, device, i) {
drivers/block/drbd/drbd_debugfs.c
168
spin_lock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_debugfs.c
177
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_debugfs.c
197
spin_lock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_debugfs.c
206
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_debugfs.c
216
static void seq_print_resource_pending_bitmap_io(struct seq_file *m, struct drbd_resource *resource, unsigned long now)
drivers/block/drbd/drbd_debugfs.c
223
idr_for_each_entry(&resource->devices, device, i) {
drivers/block/drbd/drbd_debugfs.c
275
spin_lock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_debugfs.c
279
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_debugfs.c
288
struct drbd_resource *resource, unsigned long now)
drivers/block/drbd/drbd_debugfs.c
294
idr_for_each_entry(&resource->devices, device, i) {
drivers/block/drbd/drbd_debugfs.c
301
struct drbd_resource *resource,
drivers/block/drbd/drbd_debugfs.c
310
spin_lock_irq(&resource->req_lock);
drivers/block/drbd/drbd_debugfs.c
320
spin_unlock_irq(&resource->req_lock);
drivers/block/drbd/drbd_debugfs.c
322
spin_lock_irq(&resource->req_lock);
drivers/block/drbd/drbd_debugfs.c
356
spin_unlock_irq(&resource->req_lock);
drivers/block/drbd/drbd_debugfs.c
362
struct drbd_resource *resource = m->private;
drivers/block/drbd/drbd_debugfs.c
366
connection = first_connection(resource);
drivers/block/drbd/drbd_debugfs.c
376
seq_print_resource_pending_bitmap_io(m, resource, jif);
drivers/block/drbd/drbd_debugfs.c
380
seq_print_resource_pending_meta_io(m, resource, jif);
drivers/block/drbd/drbd_debugfs.c
399
seq_print_resource_pending_peer_requests(m, resource, jif);
drivers/block/drbd/drbd_debugfs.c
403
seq_print_waiting_for_AL(m, resource, jif);
drivers/block/drbd/drbd_debugfs.c
407
seq_print_resource_transfer_log_summary(m, resource, connection, jif);
drivers/block/drbd/drbd_debugfs.c
445
struct drbd_resource *resource = inode->i_private;
drivers/block/drbd/drbd_debugfs.c
446
return drbd_single_open(file, in_flight_summary_show, resource,
drivers/block/drbd/drbd_debugfs.c
447
&resource->kref, drbd_destroy_resource);
drivers/block/drbd/drbd_debugfs.c
452
struct drbd_resource *resource = inode->i_private;
drivers/block/drbd/drbd_debugfs.c
453
kref_put(&resource->kref, drbd_destroy_resource);
drivers/block/drbd/drbd_debugfs.c
465
void drbd_debugfs_resource_add(struct drbd_resource *resource)
drivers/block/drbd/drbd_debugfs.c
469
dentry = debugfs_create_dir(resource->name, drbd_debugfs_resources);
drivers/block/drbd/drbd_debugfs.c
470
resource->debugfs_res = dentry;
drivers/block/drbd/drbd_debugfs.c
472
dentry = debugfs_create_dir("volumes", resource->debugfs_res);
drivers/block/drbd/drbd_debugfs.c
473
resource->debugfs_res_volumes = dentry;
drivers/block/drbd/drbd_debugfs.c
475
dentry = debugfs_create_dir("connections", resource->debugfs_res);
drivers/block/drbd/drbd_debugfs.c
476
resource->debugfs_res_connections = dentry;
drivers/block/drbd/drbd_debugfs.c
479
resource->debugfs_res, resource,
drivers/block/drbd/drbd_debugfs.c
481
resource->debugfs_res_in_flight_summary = dentry;
drivers/block/drbd/drbd_debugfs.c
490
void drbd_debugfs_resource_cleanup(struct drbd_resource *resource)
drivers/block/drbd/drbd_debugfs.c
493
drbd_debugfs_remove(&resource->debugfs_res_in_flight_summary);
drivers/block/drbd/drbd_debugfs.c
494
drbd_debugfs_remove(&resource->debugfs_res_connections);
drivers/block/drbd/drbd_debugfs.c
495
drbd_debugfs_remove(&resource->debugfs_res_volumes);
drivers/block/drbd/drbd_debugfs.c
496
drbd_debugfs_remove(&resource->debugfs_res);
drivers/block/drbd/drbd_debugfs.c
582
spin_lock_irq(&connection->resource->req_lock);
drivers/block/drbd/drbd_debugfs.c
594
spin_unlock_irq(&connection->resource->req_lock);
drivers/block/drbd/drbd_debugfs.c
622
struct dentry *conns_dir = connection->resource->debugfs_res_connections;
drivers/block/drbd/drbd_debugfs.c
693
struct drbd_resource *resource = device->resource;
drivers/block/drbd/drbd_debugfs.c
702
spin_lock_irq(&resource->req_lock);
drivers/block/drbd/drbd_debugfs.c
714
spin_unlock_irq(&resource->req_lock);
drivers/block/drbd/drbd_debugfs.c
773
struct dentry *vols_dir = device->resource->debugfs_res_volumes;
drivers/block/drbd/drbd_debugfs.c
788
device->resource->name, device->vnr);
drivers/block/drbd/drbd_debugfs.h
12
void drbd_debugfs_resource_add(struct drbd_resource *resource);
drivers/block/drbd/drbd_debugfs.h
13
void drbd_debugfs_resource_cleanup(struct drbd_resource *resource);
drivers/block/drbd/drbd_debugfs.h
28
static inline void drbd_debugfs_resource_add(struct drbd_resource *resource) { }
drivers/block/drbd/drbd_debugfs.h
29
static inline void drbd_debugfs_resource_cleanup(struct drbd_resource *resource) { }
drivers/block/drbd/drbd_int.h
1358
extern void drbd_free_resource(struct drbd_resource *resource);
drivers/block/drbd/drbd_int.h
1360
extern int set_resource_options(struct drbd_resource *resource, struct res_opts *res_opts);
drivers/block/drbd/drbd_int.h
1505
void drbd_bump_write_ordering(struct drbd_resource *resource, struct drbd_backing_dev *bdev,
drivers/block/drbd/drbd_int.h
1598
struct drbd_resource *resource = device->resource;
drivers/block/drbd/drbd_int.h
1602
rv.susp = resource->susp;
drivers/block/drbd/drbd_int.h
1603
rv.susp_nod = resource->susp_nod;
drivers/block/drbd/drbd_int.h
1604
rv.susp_fen = resource->susp_fen;
drivers/block/drbd/drbd_int.h
168
struct drbd_resource *resource;
drivers/block/drbd/drbd_int.h
1686
spin_lock_irqsave(&device->resource->req_lock, flags);
drivers/block/drbd/drbd_int.h
1688
spin_unlock_irqrestore(&device->resource->req_lock, flags);
drivers/block/drbd/drbd_int.h
2115
struct drbd_resource *resource = device->resource;
drivers/block/drbd/drbd_int.h
2117
return resource->susp || resource->susp_fen || resource->susp_nod;
drivers/block/drbd/drbd_int.h
2150
spin_lock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_int.h
2154
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_int.h
2216
static inline struct drbd_connection *first_connection(struct drbd_resource *resource)
drivers/block/drbd/drbd_int.h
2218
return list_first_entry_or_null(&resource->connections,
drivers/block/drbd/drbd_int.h
621
struct drbd_resource *resource;
drivers/block/drbd/drbd_int.h
748
struct drbd_resource *resource;
drivers/block/drbd/drbd_int.h
936
struct drbd_resource *resource;
drivers/block/drbd/drbd_int.h
956
#define for_each_resource(resource, _resources) \
drivers/block/drbd/drbd_int.h
957
list_for_each_entry(resource, _resources, resources)
drivers/block/drbd/drbd_int.h
959
#define for_each_resource_rcu(resource, _resources) \
drivers/block/drbd/drbd_int.h
960
list_for_each_entry_rcu(resource, _resources, resources)
drivers/block/drbd/drbd_int.h
962
#define for_each_resource_safe(resource, tmp, _resources) \
drivers/block/drbd/drbd_int.h
963
list_for_each_entry_safe(resource, tmp, _resources, resources)
drivers/block/drbd/drbd_int.h
965
#define for_each_connection(connection, resource) \
drivers/block/drbd/drbd_int.h
966
list_for_each_entry(connection, &resource->connections, connections)
drivers/block/drbd/drbd_int.h
968
#define for_each_connection_rcu(connection, resource) \
drivers/block/drbd/drbd_int.h
969
list_for_each_entry_rcu(connection, &resource->connections, connections)
drivers/block/drbd/drbd_int.h
971
#define for_each_connection_safe(connection, tmp, resource) \
drivers/block/drbd/drbd_int.h
972
list_for_each_entry_safe(connection, tmp, &resource->connections, connections)
drivers/block/drbd/drbd_main.c
168
spin_lock_irq(&connection->resource->req_lock);
drivers/block/drbd/drbd_main.c
1882
spin_lock_irqsave(&device->resource->req_lock, flags);
drivers/block/drbd/drbd_main.c
1895
spin_unlock_irqrestore(&device->resource->req_lock, flags);
drivers/block/drbd/drbd_main.c
2162
struct drbd_resource *resource = device->resource;
drivers/block/drbd/drbd_main.c
2201
kref_put(&resource->kref, drbd_destroy_resource);
drivers/block/drbd/drbd_main.c
2285
struct drbd_resource *resource =
drivers/block/drbd/drbd_main.c
2288
idr_destroy(&resource->devices);
drivers/block/drbd/drbd_main.c
2289
free_cpumask_var(resource->cpu_mask);
drivers/block/drbd/drbd_main.c
2290
kfree(resource->name);
drivers/block/drbd/drbd_main.c
2291
kfree(resource);
drivers/block/drbd/drbd_main.c
2294
void drbd_free_resource(struct drbd_resource *resource)
drivers/block/drbd/drbd_main.c
2298
for_each_connection_safe(connection, tmp, resource) {
drivers/block/drbd/drbd_main.c
230
spin_unlock_irq(&connection->resource->req_lock);
drivers/block/drbd/drbd_main.c
2303
drbd_debugfs_resource_cleanup(resource);
drivers/block/drbd/drbd_main.c
2304
kref_put(&resource->kref, drbd_destroy_resource);
drivers/block/drbd/drbd_main.c
2311
struct drbd_resource *resource, *tmp;
drivers/block/drbd/drbd_main.c
2333
for_each_resource_safe(resource, tmp, &drbd_resources) {
drivers/block/drbd/drbd_main.c
2334
list_del(&resource->resources);
drivers/block/drbd/drbd_main.c
2335
drbd_free_resource(resource);
drivers/block/drbd/drbd_main.c
235
spin_unlock_irq(&connection->resource->req_lock);
drivers/block/drbd/drbd_main.c
2381
struct drbd_resource *resource;
drivers/block/drbd/drbd_main.c
2387
for_each_resource_rcu(resource, &drbd_resources) {
drivers/block/drbd/drbd_main.c
2388
if (!strcmp(resource->name, name)) {
drivers/block/drbd/drbd_main.c
2389
kref_get(&resource->kref);
drivers/block/drbd/drbd_main.c
2393
resource = NULL;
drivers/block/drbd/drbd_main.c
2396
return resource;
drivers/block/drbd/drbd_main.c
2402
struct drbd_resource *resource;
drivers/block/drbd/drbd_main.c
2406
for_each_resource_rcu(resource, &drbd_resources) {
drivers/block/drbd/drbd_main.c
2407
for_each_connection_rcu(connection, resource) {
drivers/block/drbd/drbd_main.c
2461
int set_resource_options(struct drbd_resource *resource, struct res_opts *res_opts)
drivers/block/drbd/drbd_main.c
2480
drbd_warn(resource, "Overflow in bitmap_parse(%.12s%s), truncating to %u bits\n",
drivers/block/drbd/drbd_main.c
2489
drbd_warn(resource, "bitmap_parse() failed with %d\n", err);
drivers/block/drbd/drbd_main.c
2494
resource->res_opts = *res_opts;
drivers/block/drbd/drbd_main.c
2497
if (!cpumask_equal(resource->cpu_mask, new_cpu_mask)) {
drivers/block/drbd/drbd_main.c
2498
cpumask_copy(resource->cpu_mask, new_cpu_mask);
drivers/block/drbd/drbd_main.c
2499
for_each_connection_rcu(connection, resource) {
drivers/block/drbd/drbd_main.c
2515
struct drbd_resource *resource;
drivers/block/drbd/drbd_main.c
2517
resource = kzalloc_obj(struct drbd_resource);
drivers/block/drbd/drbd_main.c
2518
if (!resource)
drivers/block/drbd/drbd_main.c
2520
resource->name = kstrdup(name, GFP_KERNEL);
drivers/block/drbd/drbd_main.c
2521
if (!resource->name)
drivers/block/drbd/drbd_main.c
2523
if (!zalloc_cpumask_var(&resource->cpu_mask, GFP_KERNEL))
drivers/block/drbd/drbd_main.c
2525
kref_init(&resource->kref);
drivers/block/drbd/drbd_main.c
2526
idr_init(&resource->devices);
drivers/block/drbd/drbd_main.c
2527
INIT_LIST_HEAD(&resource->connections);
drivers/block/drbd/drbd_main.c
2528
resource->write_ordering = WO_BDEV_FLUSH;
drivers/block/drbd/drbd_main.c
2529
list_add_tail_rcu(&resource->resources, &drbd_resources);
drivers/block/drbd/drbd_main.c
2530
mutex_init(&resource->conf_update);
drivers/block/drbd/drbd_main.c
2531
mutex_init(&resource->adm_mutex);
drivers/block/drbd/drbd_main.c
2532
spin_lock_init(&resource->req_lock);
drivers/block/drbd/drbd_main.c
2533
drbd_debugfs_resource_add(resource);
drivers/block/drbd/drbd_main.c
2534
return resource;
drivers/block/drbd/drbd_main.c
2537
kfree(resource->name);
drivers/block/drbd/drbd_main.c
2539
kfree(resource);
drivers/block/drbd/drbd_main.c
2547
struct drbd_resource *resource;
drivers/block/drbd/drbd_main.c
2573
resource = drbd_create_resource(name);
drivers/block/drbd/drbd_main.c
2574
if (!resource)
drivers/block/drbd/drbd_main.c
2586
drbd_thread_init(resource, &connection->receiver, drbd_receiver, "receiver");
drivers/block/drbd/drbd_main.c
2588
drbd_thread_init(resource, &connection->worker, drbd_worker, "worker");
drivers/block/drbd/drbd_main.c
2590
drbd_thread_init(resource, &connection->ack_receiver, drbd_ack_receiver, "ack_recv");
drivers/block/drbd/drbd_main.c
2595
connection->resource = resource;
drivers/block/drbd/drbd_main.c
2597
if (set_resource_options(resource, res_opts))
drivers/block/drbd/drbd_main.c
2600
kref_get(&resource->kref);
drivers/block/drbd/drbd_main.c
2601
list_add_tail_rcu(&connection->connections, &resource->connections);
drivers/block/drbd/drbd_main.c
2606
list_del(&resource->resources);
drivers/block/drbd/drbd_main.c
2607
drbd_free_resource(resource);
drivers/block/drbd/drbd_main.c
2619
struct drbd_resource *resource = connection->resource;
drivers/block/drbd/drbd_main.c
262
spin_lock_irq(&connection->resource->req_lock);
drivers/block/drbd/drbd_main.c
2632
kref_put(&resource->kref, drbd_destroy_resource);
drivers/block/drbd/drbd_main.c
264
spin_unlock_irq(&connection->resource->req_lock);
drivers/block/drbd/drbd_main.c
2651
struct drbd_resource *resource = adm_ctx->resource;
drivers/block/drbd/drbd_main.c
2678
kref_get(&resource->kref);
drivers/block/drbd/drbd_main.c
2679
device->resource = resource;
drivers/block/drbd/drbd_main.c
2721
id = idr_alloc(&resource->devices, device, vnr, vnr + 1, GFP_KERNEL);
drivers/block/drbd/drbd_main.c
2731
for_each_connection(connection, resource) {
drivers/block/drbd/drbd_main.c
2761
device->state.conn = first_connection(resource)->cstate;
drivers/block/drbd/drbd_main.c
2775
for_each_connection_safe(connection, n, resource) {
drivers/block/drbd/drbd_main.c
2784
idr_remove(&resource->devices, vnr);
drivers/block/drbd/drbd_main.c
2795
kref_put(&resource->kref, drbd_destroy_resource);
drivers/block/drbd/drbd_main.c
2802
struct drbd_resource *resource = device->resource;
drivers/block/drbd/drbd_main.c
2810
for_each_connection(connection, resource) {
drivers/block/drbd/drbd_main.c
2814
idr_remove(&resource->devices, device->vnr);
drivers/block/drbd/drbd_main.c
289
spin_lock_irq(&connection->resource->req_lock);
drivers/block/drbd/drbd_main.c
297
spin_unlock_irq(&connection->resource->req_lock);
drivers/block/drbd/drbd_main.c
303
struct drbd_resource *resource = thi->resource;
drivers/block/drbd/drbd_main.c
309
resource->name);
drivers/block/drbd/drbd_main.c
3256
spin_lock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_main.c
3263
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_main.c
329
drbd_info(resource, "Restarting %s thread\n", thi->name);
drivers/block/drbd/drbd_main.c
341
drbd_info(resource, "Terminating %s\n", current->comm);
drivers/block/drbd/drbd_main.c
347
kref_put(&resource->kref, drbd_destroy_resource);
drivers/block/drbd/drbd_main.c
3497
spin_lock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_main.c
3506
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_main.c
352
static void drbd_thread_init(struct drbd_resource *resource, struct drbd_thread *thi,
drivers/block/drbd/drbd_main.c
359
thi->resource = resource;
drivers/block/drbd/drbd_main.c
366
struct drbd_resource *resource = thi->resource;
drivers/block/drbd/drbd_main.c
3669
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_main.c
3672
spin_lock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_main.c
3682
struct drbd_resource *resource;
drivers/block/drbd/drbd_main.c
3687
for_each_resource(resource, &drbd_resources)
drivers/block/drbd/drbd_main.c
3688
spin_lock_nested(&resource->req_lock, i++);
drivers/block/drbd/drbd_main.c
3693
struct drbd_resource *resource;
drivers/block/drbd/drbd_main.c
3695
for_each_resource(resource, &drbd_resources)
drivers/block/drbd/drbd_main.c
3696
spin_unlock(&resource->req_lock);
drivers/block/drbd/drbd_main.c
376
drbd_info(resource, "Starting %s thread (from %s [%d])\n",
drivers/block/drbd/drbd_main.c
381
drbd_err(resource, "Failed to get module reference in drbd_thread_start\n");
drivers/block/drbd/drbd_main.c
386
kref_get(&resource->kref);
drivers/block/drbd/drbd_main.c
397
"drbd_%c_%s", thi->name[0], thi->resource->name);
drivers/block/drbd/drbd_main.c
400
drbd_err(resource, "Couldn't start thread\n");
drivers/block/drbd/drbd_main.c
404
kref_put(&resource->kref, drbd_destroy_resource);
drivers/block/drbd/drbd_main.c
416
drbd_info(resource, "Restarting %s thread (from %s [%d])\n",
drivers/block/drbd/drbd_main.c
479
struct drbd_resource *resource;
drivers/block/drbd/drbd_main.c
483
for_each_resource_rcu(resource, &drbd_resources) {
drivers/block/drbd/drbd_main.c
484
for_each_cpu(cpu, resource->cpu_mask)
drivers/block/drbd/drbd_main.c
512
struct drbd_resource *resource = thi->resource;
drivers/block/drbd/drbd_main.c
518
set_cpus_allowed_ptr(p, resource->cpu_mask);
drivers/block/drbd/drbd_nl.c
1374
spin_lock_irq(&connection->resource->req_lock);
drivers/block/drbd/drbd_nl.c
1377
spin_unlock_irq(&connection->resource->req_lock);
drivers/block/drbd/drbd_nl.c
1397
spin_lock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_nl.c
1400
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_nl.c
1530
mutex_lock(&adm_ctx.resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
1545
mutex_lock(&device->resource->conf_update);
drivers/block/drbd/drbd_nl.c
1602
mutex_unlock(&device->resource->conf_update);
drivers/block/drbd/drbd_nl.c
1615
drbd_bump_write_ordering(device->resource, NULL, WO_BDEV_FLUSH);
drivers/block/drbd/drbd_nl.c
1636
mutex_unlock(&device->resource->conf_update);
drivers/block/drbd/drbd_nl.c
1643
mutex_unlock(&adm_ctx.resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
1761
mutex_lock(&adm_ctx.resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
1994
drbd_bump_write_ordering(device->resource, device->ldev, WO_BDEV_FLUSH);
drivers/block/drbd/drbd_nl.c
2003
!(device->state.role == R_PRIMARY && device->resource->susp_nod))
drivers/block/drbd/drbd_nl.c
2063
spin_lock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_nl.c
2115
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_nl.c
2133
mutex_unlock(&adm_ctx.resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
2153
mutex_unlock(&adm_ctx.resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
2197
mutex_lock(&adm_ctx.resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
2199
mutex_unlock(&adm_ctx.resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
234
adm_ctx->resource = drbd_find_resource(adm_ctx->resource_name);
drivers/block/drbd/drbd_nl.c
2391
mutex_lock(&adm_ctx.resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
2402
mutex_lock(&connection->resource->conf_update);
drivers/block/drbd/drbd_nl.c
241
if (!adm_ctx->resource && (flags & DRBD_ADM_NEED_RESOURCE)) {
drivers/block/drbd/drbd_nl.c
2466
mutex_unlock(&connection->resource->conf_update);
drivers/block/drbd/drbd_nl.c
2481
mutex_unlock(&connection->resource->conf_update);
drivers/block/drbd/drbd_nl.c
2488
mutex_unlock(&adm_ctx.resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
249
if (adm_ctx->resource) {
drivers/block/drbd/drbd_nl.c
2523
struct drbd_resource *resource;
drivers/block/drbd/drbd_nl.c
2545
for_each_resource(resource, &drbd_resources) {
drivers/block/drbd/drbd_nl.c
2546
for_each_connection(connection, resource) {
drivers/block/drbd/drbd_nl.c
2563
mutex_lock(&adm_ctx.resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
2564
connection = first_connection(adm_ctx.resource);
drivers/block/drbd/drbd_nl.c
2600
mutex_lock(&adm_ctx.resource->conf_update);
drivers/block/drbd/drbd_nl.c
2604
mutex_unlock(&adm_ctx.resource->conf_update);
drivers/block/drbd/drbd_nl.c
2636
mutex_unlock(&adm_ctx.resource->conf_update);
drivers/block/drbd/drbd_nl.c
2649
mutex_unlock(&adm_ctx.resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
2658
mutex_unlock(&adm_ctx.resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
2687
spin_lock_irq(&connection->resource->req_lock);
drivers/block/drbd/drbd_nl.c
2689
spin_unlock_irq(&connection->resource->req_lock);
drivers/block/drbd/drbd_nl.c
269
if (adm_ctx->device && adm_ctx->resource &&
drivers/block/drbd/drbd_nl.c
270
adm_ctx->device->resource != adm_ctx->resource) {
drivers/block/drbd/drbd_nl.c
272
adm_ctx->minor, adm_ctx->resource->name,
drivers/block/drbd/drbd_nl.c
273
adm_ctx->device->resource->name);
drivers/block/drbd/drbd_nl.c
2756
mutex_lock(&adm_ctx.resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
2758
mutex_unlock(&adm_ctx.resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
2804
mutex_lock(&adm_ctx.resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
282
adm_ctx->device->vnr, adm_ctx->device->resource->name);
drivers/block/drbd/drbd_nl.c
2876
mutex_lock(&device->resource->conf_update);
drivers/block/drbd/drbd_nl.c
288
if (!adm_ctx->resource) {
drivers/block/drbd/drbd_nl.c
2881
mutex_unlock(&device->resource->conf_update);
drivers/block/drbd/drbd_nl.c
289
adm_ctx->resource = adm_ctx->device ? adm_ctx->device->resource
drivers/block/drbd/drbd_nl.c
290
: adm_ctx->connection ? adm_ctx->connection->resource : NULL;
drivers/block/drbd/drbd_nl.c
291
if (adm_ctx->resource)
drivers/block/drbd/drbd_nl.c
2910
mutex_unlock(&adm_ctx.resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
292
kref_get(&adm_ctx->resource->kref);
drivers/block/drbd/drbd_nl.c
2934
res_opts = adm_ctx.resource->res_opts;
drivers/block/drbd/drbd_nl.c
2945
mutex_lock(&adm_ctx.resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
2946
err = set_resource_options(adm_ctx.resource, &res_opts);
drivers/block/drbd/drbd_nl.c
2952
mutex_unlock(&adm_ctx.resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
2977
mutex_lock(&adm_ctx.resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
3000
mutex_unlock(&adm_ctx.resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
3019
mutex_lock(&adm_ctx.resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
3021
mutex_unlock(&adm_ctx.resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
3055
mutex_lock(&adm_ctx.resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
3081
mutex_unlock(&adm_ctx.resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
3099
mutex_lock(&adm_ctx.resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
3102
mutex_unlock(&adm_ctx.resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
3120
mutex_lock(&adm_ctx.resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
3130
mutex_unlock(&adm_ctx.resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
314
if (adm_ctx->resource) {
drivers/block/drbd/drbd_nl.c
315
kref_put(&adm_ctx->resource->kref, drbd_destroy_resource);
drivers/block/drbd/drbd_nl.c
3153
mutex_lock(&adm_ctx.resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
316
adm_ctx->resource = NULL;
drivers/block/drbd/drbd_nl.c
3191
mutex_unlock(&adm_ctx.resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
3203
struct drbd_resource *resource,
drivers/block/drbd/drbd_nl.c
3214
if (nla_put_string(skb, T_ctx_resource_name, resource->name))
drivers/block/drbd/drbd_nl.c
3256
struct drbd_resource *resource;
drivers/block/drbd/drbd_nl.c
3263
for_each_resource_rcu(resource, &drbd_resources)
drivers/block/drbd/drbd_nl.c
3264
if (resource == (struct drbd_resource *)cb->args[0])
drivers/block/drbd/drbd_nl.c
3269
resource = list_entry(&drbd_resources,
drivers/block/drbd/drbd_nl.c
3273
list_for_each_entry_continue_rcu(resource, &drbd_resources, resources) {
drivers/block/drbd/drbd_nl.c
3288
err = nla_put_drbd_cfg_context(skb, resource, NULL, NULL);
drivers/block/drbd/drbd_nl.c
3291
err = res_opts_to_skb(skb, &resource->res_opts, !capable(CAP_SYS_ADMIN));
drivers/block/drbd/drbd_nl.c
3294
resource_to_info(&resource_info, resource);
drivers/block/drbd/drbd_nl.c
3298
resource_statistics.res_stat_write_ordering = resource->write_ordering;
drivers/block/drbd/drbd_nl.c
3302
cb->args[0] = (long)resource;
drivers/block/drbd/drbd_nl.c
3350
struct drbd_resource *resource =
drivers/block/drbd/drbd_nl.c
3352
kref_put(&resource->kref, drbd_destroy_resource);
drivers/block/drbd/drbd_nl.c
3367
struct drbd_resource *resource;
drivers/block/drbd/drbd_nl.c
3375
resource = (struct drbd_resource *)cb->args[0];
drivers/block/drbd/drbd_nl.c
3380
resource = drbd_find_resource(nla_data(resource_filter));
drivers/block/drbd/drbd_nl.c
3381
if (!resource)
drivers/block/drbd/drbd_nl.c
3383
cb->args[0] = (long)resource;
drivers/block/drbd/drbd_nl.c
3389
idr_to_search = resource ? &resource->devices : &drbd_devices;
drivers/block/drbd/drbd_nl.c
3413
err = nla_put_drbd_cfg_context(skb, device->resource, NULL, device);
drivers/block/drbd/drbd_nl.c
3456
struct drbd_resource *resource = NULL, *next_resource;
drivers/block/drbd/drbd_nl.c
3464
resource = (struct drbd_resource *)cb->args[0];
drivers/block/drbd/drbd_nl.c
3469
resource = drbd_find_resource(nla_data(resource_filter));
drivers/block/drbd/drbd_nl.c
3470
if (!resource)
drivers/block/drbd/drbd_nl.c
3472
cb->args[0] = (long)resource;
drivers/block/drbd/drbd_nl.c
3476
if (!resource) {
drivers/block/drbd/drbd_nl.c
3479
resource = list_first_entry(&drbd_resources, struct drbd_resource, resources);
drivers/block/drbd/drbd_nl.c
3480
kref_get(&resource->kref);
drivers/block/drbd/drbd_nl.c
3481
cb->args[0] = (long)resource;
drivers/block/drbd/drbd_nl.c
3487
mutex_lock(&resource->conf_update);
drivers/block/drbd/drbd_nl.c
3490
for_each_connection_rcu(connection, resource)
drivers/block/drbd/drbd_nl.c
3496
connection = list_entry(&resource->connections, struct drbd_connection, connections);
drivers/block/drbd/drbd_nl.c
3499
list_for_each_entry_continue_rcu(connection, &resource->connections, connections) {
drivers/block/drbd/drbd_nl.c
3509
if (next_resource == resource)
drivers/block/drbd/drbd_nl.c
3518
mutex_unlock(&resource->conf_update);
drivers/block/drbd/drbd_nl.c
3519
kref_put(&resource->kref, drbd_destroy_resource);
drivers/block/drbd/drbd_nl.c
3520
resource = next_resource;
drivers/block/drbd/drbd_nl.c
3521
kref_get(&resource->kref);
drivers/block/drbd/drbd_nl.c
3522
cb->args[0] = (long)resource;
drivers/block/drbd/drbd_nl.c
3540
err = nla_put_drbd_cfg_context(skb, resource, connection, NULL);
drivers/block/drbd/drbd_nl.c
3564
if (resource)
drivers/block/drbd/drbd_nl.c
3565
mutex_unlock(&resource->conf_update);
drivers/block/drbd/drbd_nl.c
3618
struct drbd_resource *resource;
drivers/block/drbd/drbd_nl.c
3625
resource = (struct drbd_resource *)cb->args[0];
drivers/block/drbd/drbd_nl.c
3630
resource = drbd_find_resource(nla_data(resource_filter));
drivers/block/drbd/drbd_nl.c
3631
if (!resource)
drivers/block/drbd/drbd_nl.c
3634
cb->args[0] = (long)resource;
drivers/block/drbd/drbd_nl.c
3639
idr_to_search = resource ? &resource->devices : &drbd_devices;
drivers/block/drbd/drbd_nl.c
3684
err = nla_put_drbd_cfg_context(skb, device->resource, peer_device->connection, device);
drivers/block/drbd/drbd_nl.c
3710
static struct drbd_connection *the_only_connection(struct drbd_resource *resource)
drivers/block/drbd/drbd_nl.c
3712
struct list_head *connections = &resource->connections;
drivers/block/drbd/drbd_nl.c
3716
return list_first_entry(&resource->connections, struct drbd_connection, connections);
drivers/block/drbd/drbd_nl.c
3722
struct drbd_resource *resource = device->resource;
drivers/block/drbd/drbd_nl.c
3746
if (nla_put_drbd_cfg_context(skb, resource, the_only_connection(resource), device))
drivers/block/drbd/drbd_nl.c
3749
if (res_opts_to_skb(skb, &device->resource->res_opts, exclude_sensitive))
drivers/block/drbd/drbd_nl.c
3871
struct drbd_resource *resource = NULL;
drivers/block/drbd/drbd_nl.c
3903
resource = pos;
drivers/block/drbd/drbd_nl.c
3907
resource = pos;
drivers/block/drbd/drbd_nl.c
3911
if (resource) {
drivers/block/drbd/drbd_nl.c
3913
device = idr_get_next(&resource->devices, &volume);
drivers/block/drbd/drbd_nl.c
3917
pos = list_entry_rcu(resource->resources.next,
drivers/block/drbd/drbd_nl.c
3927
resource = pos;
drivers/block/drbd/drbd_nl.c
3946
connection = the_only_connection(resource);
drivers/block/drbd/drbd_nl.c
3947
if (nla_put_drbd_cfg_context(skb, resource, connection, NULL))
drivers/block/drbd/drbd_nl.c
3960
D_ASSERT(device, device->resource == resource);
drivers/block/drbd/drbd_nl.c
3978
cb->args[1] = (pos == resource) ? volume + 1 : 0;
drivers/block/drbd/drbd_nl.c
4000
struct drbd_resource *resource;
drivers/block/drbd/drbd_nl.c
4031
resource = drbd_find_resource(resource_name);
drivers/block/drbd/drbd_nl.c
4032
if (!resource)
drivers/block/drbd/drbd_nl.c
4035
kref_put(&resource->kref, drbd_destroy_resource); /* get_one_status() revalidates the resource */
drivers/block/drbd/drbd_nl.c
4039
cb->args[0] = (long)resource;
drivers/block/drbd/drbd_nl.c
4041
cb->args[2] = (long)resource;
drivers/block/drbd/drbd_nl.c
4101
mutex_lock(&adm_ctx.resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
4114
mutex_unlock(&adm_ctx.resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
414
char *resource_name = connection->resource->name;
drivers/block/drbd/drbd_nl.c
4147
mutex_lock(&adm_ctx.resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
4180
spin_lock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_nl.c
4183
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_nl.c
4192
mutex_unlock(&adm_ctx.resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
4216
struct drbd_resource *resource)
drivers/block/drbd/drbd_nl.c
4218
info->res_role = conn_highest_role(first_connection(resource));
drivers/block/drbd/drbd_nl.c
4219
info->res_susp = resource->susp;
drivers/block/drbd/drbd_nl.c
4220
info->res_susp_nod = resource->susp_nod;
drivers/block/drbd/drbd_nl.c
4221
info->res_susp_fen = resource->susp_fen;
drivers/block/drbd/drbd_nl.c
4250
if (adm_ctx.resource) {
drivers/block/drbd/drbd_nl.c
4268
resource_to_info(&resource_info, connection->resource);
drivers/block/drbd/drbd_nl.c
4269
notify_resource_state(NULL, 0, connection->resource,
drivers/block/drbd/drbd_nl.c
4319
mutex_lock(&adm_ctx.resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
4351
mutex_unlock(&adm_ctx.resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
4367
first_connection(device->resource);
drivers/block/drbd/drbd_nl.c
4405
mutex_lock(&adm_ctx.resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
4407
mutex_unlock(&adm_ctx.resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
4413
static int adm_del_resource(struct drbd_resource *resource)
drivers/block/drbd/drbd_nl.c
4417
for_each_connection(connection, resource) {
drivers/block/drbd/drbd_nl.c
4421
if (!idr_is_empty(&resource->devices))
drivers/block/drbd/drbd_nl.c
4428
notify_resource_state(NULL, 0, resource, NULL, NOTIFY_DESTROY);
drivers/block/drbd/drbd_nl.c
4432
list_del_rcu(&resource->resources);
drivers/block/drbd/drbd_nl.c
4436
list_for_each_entry(connection, &resource->connections, connections)
drivers/block/drbd/drbd_nl.c
4439
drbd_free_resource(resource);
drivers/block/drbd/drbd_nl.c
4446
struct drbd_resource *resource;
drivers/block/drbd/drbd_nl.c
4458
resource = adm_ctx.resource;
drivers/block/drbd/drbd_nl.c
4459
mutex_lock(&resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
4461
for_each_connection(connection, resource) {
drivers/block/drbd/drbd_nl.c
4480
idr_for_each_entry(&resource->devices, device, i) {
drivers/block/drbd/drbd_nl.c
4489
idr_for_each_entry(&resource->devices, device, i) {
drivers/block/drbd/drbd_nl.c
4498
retcode = adm_del_resource(resource);
drivers/block/drbd/drbd_nl.c
4500
mutex_unlock(&resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
4509
struct drbd_resource *resource;
drivers/block/drbd/drbd_nl.c
4517
resource = adm_ctx.resource;
drivers/block/drbd/drbd_nl.c
4519
mutex_lock(&resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
4520
retcode = adm_del_resource(resource);
drivers/block/drbd/drbd_nl.c
4521
mutex_unlock(&resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
4576
struct drbd_resource *resource,
drivers/block/drbd/drbd_nl.c
4600
if (nla_put_drbd_cfg_context(skb, resource, NULL, NULL) ||
drivers/block/drbd/drbd_nl.c
4605
resource_statistics.res_stat_write_ordering = resource->write_ordering;
drivers/block/drbd/drbd_nl.c
4621
drbd_err(resource, "Error %d while broadcasting event. Event seq:%u\n",
drivers/block/drbd/drbd_nl.c
464
static bool resource_is_supended(struct drbd_resource *resource)
drivers/block/drbd/drbd_nl.c
4652
if (nla_put_drbd_cfg_context(skb, device->resource, NULL, device) ||
drivers/block/drbd/drbd_nl.c
466
return resource->susp || resource->susp_fen || resource->susp_nod;
drivers/block/drbd/drbd_nl.c
4702
if (nla_put_drbd_cfg_context(skb, connection->resource, connection, NULL) ||
drivers/block/drbd/drbd_nl.c
471
struct drbd_resource * const resource = connection->resource;
drivers/block/drbd/drbd_nl.c
4733
struct drbd_resource *resource = peer_device->device->resource;
drivers/block/drbd/drbd_nl.c
4753
if (nla_put_drbd_cfg_context(skb, resource, peer_device->connection, peer_device->device) ||
drivers/block/drbd/drbd_nl.c
4781
struct drbd_resource *resource = device ? device->resource : connection->resource;
drivers/block/drbd/drbd_nl.c
479
spin_lock_irq(&resource->req_lock);
drivers/block/drbd/drbd_nl.c
4804
if (nla_put_drbd_cfg_context(skb, resource, connection, device) ||
drivers/block/drbd/drbd_nl.c
482
spin_unlock_irq(&resource->req_lock);
drivers/block/drbd/drbd_nl.c
4821
drbd_err(resource, "Error %d while broadcasting event. Event seq:%u\n",
drivers/block/drbd/drbd_nl.c
487
spin_unlock_irq(&resource->req_lock);
drivers/block/drbd/drbd_nl.c
4887
err = notify_resource_state_change(skb, seq, state_change->resource,
drivers/block/drbd/drbd_nl.c
4928
struct drbd_resource *resource;
drivers/block/drbd/drbd_nl.c
493
spin_lock_irq(&resource->req_lock);
drivers/block/drbd/drbd_nl.c
4947
for_each_resource(resource, &drbd_resources) {
drivers/block/drbd/drbd_nl.c
4950
state_change = remember_old_state(resource, GFP_KERNEL);
drivers/block/drbd/drbd_nl.c
502
if (!resource_is_supended(resource))
drivers/block/drbd/drbd_nl.c
511
spin_unlock_irq(&resource->req_lock);
drivers/block/drbd/drbd_nl.c
572
spin_lock_irq(&resource->req_lock);
drivers/block/drbd/drbd_nl.c
581
spin_unlock_irq(&resource->req_lock);
drivers/block/drbd/drbd_nl.c
632
for_each_connection(connection, device->resource)
drivers/block/drbd/drbd_nl.c
724
mutex_lock(&device->resource->conf_update);
drivers/block/drbd/drbd_nl.c
728
mutex_unlock(&device->resource->conf_update);
drivers/block/drbd/drbd_nl.c
791
mutex_lock(&adm_ctx.resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
798
mutex_unlock(&adm_ctx.resource->adm_mutex);
drivers/block/drbd/drbd_polymorph_printk.h
17
const struct drbd_resource *__r = __d->resource
drivers/block/drbd/drbd_polymorph_printk.h
26
__r = __d->resource
drivers/block/drbd/drbd_polymorph_printk.h
33
#define __drbd_printk_drbd_resource_prep(resource) \
drivers/block/drbd/drbd_polymorph_printk.h
34
const struct drbd_resource *__r = resource
drivers/block/drbd/drbd_polymorph_printk.h
37
#define __drbd_printk_drbd_resource_unprep(resource)
drivers/block/drbd/drbd_polymorph_printk.h
41
const struct drbd_resource *__r = __c->resource
drivers/block/drbd/drbd_proc.c
299
write_ordering_chars[device->resource->write_ordering]
drivers/block/drbd/drbd_receiver.c
1126
if (connection->resource->write_ordering >= WO_BDEV_FLUSH) {
drivers/block/drbd/drbd_receiver.c
1160
drbd_bump_write_ordering(connection->resource, NULL, WO_DRAIN_IO);
drivers/block/drbd/drbd_receiver.c
1260
void drbd_bump_write_ordering(struct drbd_resource *resource, struct drbd_backing_dev *bdev,
drivers/block/drbd/drbd_receiver.c
1272
pwo = resource->write_ordering;
drivers/block/drbd/drbd_receiver.c
1276
idr_for_each_entry(&resource->devices, device, vnr) {
drivers/block/drbd/drbd_receiver.c
1290
resource->write_ordering = wo;
drivers/block/drbd/drbd_receiver.c
1291
if (pwo != resource->write_ordering || wo == WO_BDEV_FLUSH)
drivers/block/drbd/drbd_receiver.c
1292
drbd_info(resource, "Method to ensure write ordering: %s\n", write_ordering_str[resource->write_ordering]);
drivers/block/drbd/drbd_receiver.c
1475
spin_lock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
1477
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
1588
switch (connection->resource->write_ordering) {
drivers/block/drbd/drbd_receiver.c
1616
connection->resource->write_ordering);
drivers/block/drbd/drbd_receiver.c
1891
spin_lock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
1893
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
1901
spin_lock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
1903
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
1944
spin_lock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
1946
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
2046
spin_lock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
2051
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
2130
spin_lock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
2138
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
2249
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
2252
spin_lock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
246
spin_lock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
248
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
2482
spin_lock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
2485
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
2494
spin_lock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
2502
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
2521
spin_lock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
2524
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
266
spin_lock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
268
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
2791
spin_lock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
2793
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
2816
spin_lock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
2818
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
297
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
300
spin_lock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
307
spin_lock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
309
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
3555
mutex_lock(&connection->resource->conf_update);
drivers/block/drbd/drbd_receiver.c
3566
mutex_unlock(&connection->resource->conf_update);
drivers/block/drbd/drbd_receiver.c
3708
mutex_lock(&connection->resource->conf_update);
drivers/block/drbd/drbd_receiver.c
3714
mutex_unlock(&connection->resource->conf_update);
drivers/block/drbd/drbd_receiver.c
3831
mutex_unlock(&connection->resource->conf_update);
drivers/block/drbd/drbd_receiver.c
3845
mutex_unlock(&connection->resource->conf_update);
drivers/block/drbd/drbd_receiver.c
3854
mutex_unlock(&connection->resource->conf_update);
drivers/block/drbd/drbd_receiver.c
3941
mutex_lock(&connection->resource->conf_update);
drivers/block/drbd/drbd_receiver.c
3947
mutex_unlock(&connection->resource->conf_update);
drivers/block/drbd/drbd_receiver.c
4233
spin_lock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
4236
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
4358
spin_lock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
4372
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
4382
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
4794
spin_lock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
4796
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
4802
spin_lock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
4804
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
4967
spin_lock_irq(&connection->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
4972
spin_unlock_irq(&connection->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
4984
spin_lock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
4988
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
5479
spin_lock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
5482
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
5486
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
910
spin_lock_irq(&connection->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
912
spin_unlock_irq(&connection->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
944
alloc_ordered_workqueue("drbd_as_%s", WQ_MEM_RECLAIM, connection->resource->name);
drivers/block/drbd/drbd_receiver.c
950
mutex_lock(&connection->resource->conf_update);
drivers/block/drbd/drbd_receiver.c
956
mutex_unlock(&connection->resource->conf_update);
drivers/block/drbd/drbd_req.c
1187
spin_lock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_req.c
1191
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_req.c
1276
struct drbd_resource *resource = plug->cb.data;
drivers/block/drbd/drbd_req.c
1283
spin_lock_irq(&resource->req_lock);
drivers/block/drbd/drbd_req.c
1290
spin_unlock_irq(&resource->req_lock);
drivers/block/drbd/drbd_req.c
1293
static struct drbd_plug_cb* drbd_check_plugged(struct drbd_resource *resource)
drivers/block/drbd/drbd_req.c
1298
struct blk_plug_cb *cb = blk_check_plugged(drbd_unplug, resource, sizeof(*plug));
drivers/block/drbd/drbd_req.c
1320
struct drbd_resource *resource = device->resource;
drivers/block/drbd/drbd_req.c
1327
spin_lock_irq(&resource->req_lock);
drivers/block/drbd/drbd_req.c
1392
struct drbd_plug_cb *plug = drbd_check_plugged(resource);
drivers/block/drbd/drbd_req.c
1421
spin_unlock_irq(&resource->req_lock);
drivers/block/drbd/drbd_req.c
1520
spin_lock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_req.c
1522
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_req.c
1560
spin_lock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_req.c
1562
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_req.c
1592
spin_lock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_req.c
1594
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_req.c
1736
spin_lock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_req.c
1789
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_req.c
977
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_req.c
979
spin_lock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_req.h
312
spin_lock_irqsave(&device->resource->req_lock, flags);
drivers/block/drbd/drbd_req.h
314
spin_unlock_irqrestore(&device->resource->req_lock, flags);
drivers/block/drbd/drbd_state.c
103
kref_get(&resource->kref);
drivers/block/drbd/drbd_state.c
104
state_change->resource->resource = resource;
drivers/block/drbd/drbd_state.c
105
state_change->resource->role[OLD] =
drivers/block/drbd/drbd_state.c
106
conn_highest_role(first_connection(resource));
drivers/block/drbd/drbd_state.c
107
state_change->resource->susp[OLD] = resource->susp;
drivers/block/drbd/drbd_state.c
108
state_change->resource->susp_nod[OLD] = resource->susp_nod;
drivers/block/drbd/drbd_state.c
109
state_change->resource->susp_fen[OLD] = resource->susp_fen;
drivers/block/drbd/drbd_state.c
112
for_each_connection(connection, resource) {
drivers/block/drbd/drbd_state.c
1198
if (device->resource->res_opts.on_no_data == OND_SUSPEND_IO &&
drivers/block/drbd/drbd_state.c
124
idr_for_each_entry(&resource->devices, device, vnr) {
drivers/block/drbd/drbd_state.c
131
for_each_connection(connection, resource) {
drivers/block/drbd/drbd_state.c
1328
state_change = remember_old_state(device->resource, GFP_ATOMIC);
drivers/block/drbd/drbd_state.c
1335
device->resource->susp = ns.susp;
drivers/block/drbd/drbd_state.c
1336
device->resource->susp_nod = ns.susp_nod;
drivers/block/drbd/drbd_state.c
1337
device->resource->susp_fen = ns.susp_fen;
drivers/block/drbd/drbd_state.c
1549
struct drbd_resource *resource = resource_state_change->resource;
drivers/block/drbd/drbd_state.c
1557
return notify_resource_state(skb, seq, resource, &resource_info, type);
drivers/block/drbd/drbd_state.c
158
struct drbd_resource *resource;
drivers/block/drbd/drbd_state.c
1609
struct drbd_resource_state_change *resource_state_change = &state_change->resource[0];
drivers/block/drbd/drbd_state.c
164
resource_state_change = &state_change->resource[0];
drivers/block/drbd/drbd_state.c
165
resource = resource_state_change->resource;
drivers/block/drbd/drbd_state.c
168
conn_highest_role(first_connection(resource));
drivers/block/drbd/drbd_state.c
169
resource_state_change->susp[NEW] = resource->susp;
drivers/block/drbd/drbd_state.c
170
resource_state_change->susp_nod[NEW] = resource->susp_nod;
drivers/block/drbd/drbd_state.c
171
resource_state_change->susp_fen[NEW] = resource->susp_fen;
drivers/block/drbd/drbd_state.c
1712
struct drbd_resource *resource = device->resource;
drivers/block/drbd/drbd_state.c
1743
spin_lock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_state.c
1751
if (resource->susp_nod && what != NOTHING) {
drivers/block/drbd/drbd_state.c
1758
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_state.c
1762
spin_lock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_state.c
1763
if (resource->susp_fen && conn_lowest_conn(connection) >= C_CONNECTED) {
drivers/block/drbd/drbd_state.c
1785
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_state.c
2075
mutex_lock(&connection->resource->conf_update);
drivers/block/drbd/drbd_state.c
2081
mutex_unlock(&connection->resource->conf_update);
drivers/block/drbd/drbd_state.c
2098
spin_lock_irq(&connection->resource->req_lock);
drivers/block/drbd/drbd_state.c
2104
spin_unlock_irq(&connection->resource->req_lock);
drivers/block/drbd/drbd_state.c
213
struct drbd_resource_state_change *resource_state_change = &state_change->resource[0];
drivers/block/drbd/drbd_state.c
2266
ns_min.susp = ns_max.susp = connection->resource->susp;
drivers/block/drbd/drbd_state.c
2267
ns_min.susp_nod = ns_max.susp_nod = connection->resource->susp_nod;
drivers/block/drbd/drbd_state.c
2268
ns_min.susp_fen = ns_max.susp_fen = connection->resource->susp_fen;
drivers/block/drbd/drbd_state.c
2319
spin_unlock_irq(&connection->resource->req_lock);
drivers/block/drbd/drbd_state.c
2338
spin_lock_irq(&connection->resource->req_lock);
drivers/block/drbd/drbd_state.c
2341
connection->resource->req_lock);
drivers/block/drbd/drbd_state.c
2347
state_change = remember_old_state(connection->resource, GFP_ATOMIC);
drivers/block/drbd/drbd_state.c
2373
spin_unlock_irq(&connection->resource->req_lock);
drivers/block/drbd/drbd_state.c
2376
spin_lock_irq(&connection->resource->req_lock);
drivers/block/drbd/drbd_state.c
2392
spin_lock_irq(&connection->resource->req_lock);
drivers/block/drbd/drbd_state.c
2394
spin_unlock_irq(&connection->resource->req_lock);
drivers/block/drbd/drbd_state.c
261
if (state_change->resource->resource)
drivers/block/drbd/drbd_state.c
262
kref_put(&state_change->resource->resource->kref, drbd_destroy_resource);
drivers/block/drbd/drbd_state.c
41
static void count_objects(struct drbd_resource *resource,
drivers/block/drbd/drbd_state.c
496
spin_lock_irqsave(&device->resource->req_lock, flags);
drivers/block/drbd/drbd_state.c
499
spin_unlock_irqrestore(&device->resource->req_lock, flags);
drivers/block/drbd/drbd_state.c
52
idr_for_each_entry(&resource->devices, device, vnr)
drivers/block/drbd/drbd_state.c
530
spin_lock_irqsave(&device->resource->req_lock, flags);
drivers/block/drbd/drbd_state.c
54
for_each_connection(connection, resource)
drivers/block/drbd/drbd_state.c
547
spin_unlock_irqrestore(&device->resource->req_lock, flags);
drivers/block/drbd/drbd_state.c
579
spin_lock_irqsave(&device->resource->req_lock, flags);
drivers/block/drbd/drbd_state.c
584
spin_unlock_irqrestore(&device->resource->req_lock, flags);
drivers/block/drbd/drbd_state.c
592
spin_unlock_irqrestore(&device->resource->req_lock, flags);
drivers/block/drbd/drbd_state.c
615
spin_lock_irqsave(&device->resource->req_lock, flags);
drivers/block/drbd/drbd_state.c
622
spin_unlock_irqrestore(&device->resource->req_lock, flags);
drivers/block/drbd/drbd_state.c
75
state_change->resource->resource = NULL;
drivers/block/drbd/drbd_state.c
83
struct drbd_state_change *remember_old_state(struct drbd_resource *resource, gfp_t gfp)
drivers/block/drbd/drbd_state.c
98
count_objects(resource, &n_devices, &n_connections);
drivers/block/drbd/drbd_state_change.h
37
struct drbd_resource_state_change resource[1];
drivers/block/drbd/drbd_state_change.h
6
struct drbd_resource *resource;
drivers/block/drbd/drbd_worker.c
130
spin_lock_irqsave(&device->resource->req_lock, flags);
drivers/block/drbd/drbd_worker.c
154
spin_unlock_irqrestore(&device->resource->req_lock, flags);
drivers/block/drbd/drbd_worker.c
201
device->minor, device->resource->name, device->vnr);
drivers/block/drbd/drbd_worker.c
2097
spin_lock_irq(&connection->resource->req_lock);
drivers/block/drbd/drbd_worker.c
2103
spin_unlock_irq(&connection->resource->req_lock);
drivers/block/drbd/drbd_worker.c
2117
spin_unlock_irq(&connection->resource->req_lock);
drivers/block/drbd/drbd_worker.c
278
spin_lock_irqsave(&device->resource->req_lock, flags);
drivers/block/drbd/drbd_worker.c
280
spin_unlock_irqrestore(&device->resource->req_lock, flags);
drivers/block/drbd/drbd_worker.c
404
spin_lock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_worker.c
406
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_worker.c
416
spin_lock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_worker.c
418
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_worker.c
87
spin_lock_irqsave(&device->resource->req_lock, flags);
drivers/block/drbd/drbd_worker.c
901
spin_lock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_worker.c
94
spin_unlock_irqrestore(&device->resource->req_lock, flags);
drivers/block/drbd/drbd_worker.c
990
spin_unlock_irq(&device->resource->req_lock);
drivers/block/swim.c
866
struct resource *res;
drivers/block/swim.c
926
struct resource *res;
drivers/bluetooth/bluecard_cs.c
162
unsigned int iobase = info->p_dev->resource[0]->start;
drivers/bluetooth/bluecard_cs.c
177
unsigned int iobase = info->p_dev->resource[0]->start;
drivers/bluetooth/bluecard_cs.c
233
unsigned int iobase = info->p_dev->resource[0]->start;
drivers/bluetooth/bluecard_cs.c
377
iobase = info->p_dev->resource[0]->start;
drivers/bluetooth/bluecard_cs.c
507
iobase = info->p_dev->resource[0]->start;
drivers/bluetooth/bluecard_cs.c
621
unsigned int iobase = info->p_dev->resource[0]->start;
drivers/bluetooth/bluecard_cs.c
636
unsigned int iobase = info->p_dev->resource[0]->start;
drivers/bluetooth/bluecard_cs.c
682
unsigned int iobase = info->p_dev->resource[0]->start;
drivers/bluetooth/bluecard_cs.c
795
unsigned int iobase = info->p_dev->resource[0]->start;
drivers/bluetooth/bluecard_cs.c
849
link->resource[0]->flags |= IO_DATA_PATH_WIDTH_8;
drivers/bluetooth/bluecard_cs.c
850
link->resource[0]->end = 64;
drivers/bluetooth/bluecard_cs.c
854
link->resource[0]->start = n ^ 0x300;
drivers/bluetooth/bt3c_cs.c
189
unsigned int iobase = info->p_dev->resource[0]->start;
drivers/bluetooth/bt3c_cs.c
226
iobase = info->p_dev->resource[0]->start;
drivers/bluetooth/bt3c_cs.c
345
iobase = info->p_dev->resource[0]->start;
drivers/bluetooth/bt3c_cs.c
455
iobase = info->p_dev->resource[0]->start;
drivers/bluetooth/bt3c_cs.c
651
if ((p_dev->resource[0]->end != 8) || (p_dev->resource[0]->start == 0))
drivers/bluetooth/bt3c_cs.c
654
p_dev->resource[0]->end = 8;
drivers/bluetooth/bt3c_cs.c
655
p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH;
drivers/bluetooth/bt3c_cs.c
656
p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_8;
drivers/bluetooth/bt3c_cs.c
670
p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH;
drivers/bluetooth/bt3c_cs.c
671
p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_8;
drivers/bluetooth/bt3c_cs.c
672
p_dev->resource[0]->end = 8;
drivers/bluetooth/bt3c_cs.c
675
p_dev->resource[0]->start = base[j];
drivers/bluetooth/dtl1_cs.c
147
unsigned int iobase = info->p_dev->resource[0]->start;
drivers/bluetooth/dtl1_cs.c
213
iobase = info->p_dev->resource[0]->start;
drivers/bluetooth/dtl1_cs.c
302
iobase = info->p_dev->resource[0]->start;
drivers/bluetooth/dtl1_cs.c
438
unsigned int iobase = info->p_dev->resource[0]->start;
drivers/bluetooth/dtl1_cs.c
481
info->ri_latch = inb(info->p_dev->resource[0]->start + UART_MSR)
drivers/bluetooth/dtl1_cs.c
507
unsigned int iobase = info->p_dev->resource[0]->start;
drivers/bluetooth/dtl1_cs.c
559
if ((p_dev->resource[1]->end) || (p_dev->resource[1]->end < 8))
drivers/bluetooth/dtl1_cs.c
562
p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH;
drivers/bluetooth/dtl1_cs.c
563
p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_8;
drivers/bluetooth/dtl1_cs.c
574
link->resource[0]->end = 8;
drivers/bus/arm-cci.c
443
struct resource res;
drivers/bus/arm-cci.c
538
struct resource res;
drivers/bus/arm-integrator-lm.c
42
struct resource res;
drivers/bus/da8xx-mstpri.c
211
struct resource *res;
drivers/bus/fsl-mc/fsl-mc-allocator.c
103
struct fsl_mc_resource *resource;
drivers/bus/fsl-mc/fsl-mc-allocator.c
109
resource = mc_dev->resource;
drivers/bus/fsl-mc/fsl-mc-allocator.c
110
if (!resource || resource->data != mc_dev) {
drivers/bus/fsl-mc/fsl-mc-allocator.c
115
res_pool = resource->parent_pool;
drivers/bus/fsl-mc/fsl-mc-allocator.c
116
if (res_pool != &mc_bus->resource_pools[resource->type]) {
drivers/bus/fsl-mc/fsl-mc-allocator.c
137
if (list_empty(&resource->node)) {
drivers/bus/fsl-mc/fsl-mc-allocator.c
145
list_del_init(&resource->node);
drivers/bus/fsl-mc/fsl-mc-allocator.c
149
devm_kfree(&mc_bus_dev->dev, resource);
drivers/bus/fsl-mc/fsl-mc-allocator.c
150
mc_dev->resource = NULL;
drivers/bus/fsl-mc/fsl-mc-allocator.c
186
struct fsl_mc_resource *resource;
drivers/bus/fsl-mc/fsl-mc-allocator.c
202
resource = list_first_entry_or_null(&res_pool->free_list,
drivers/bus/fsl-mc/fsl-mc-allocator.c
205
if (!resource) {
drivers/bus/fsl-mc/fsl-mc-allocator.c
213
if (resource->type != pool_type)
drivers/bus/fsl-mc/fsl-mc-allocator.c
215
if (resource->parent_pool != res_pool)
drivers/bus/fsl-mc/fsl-mc-allocator.c
221
list_del_init(&resource->node);
drivers/bus/fsl-mc/fsl-mc-allocator.c
227
*new_resource = resource;
drivers/bus/fsl-mc/fsl-mc-allocator.c
233
void fsl_mc_resource_free(struct fsl_mc_resource *resource)
drivers/bus/fsl-mc/fsl-mc-allocator.c
237
res_pool = resource->parent_pool;
drivers/bus/fsl-mc/fsl-mc-allocator.c
238
if (resource->type != res_pool->type)
drivers/bus/fsl-mc/fsl-mc-allocator.c
246
if (!list_empty(&resource->node))
drivers/bus/fsl-mc/fsl-mc-allocator.c
249
list_add_tail(&resource->node, &res_pool->free_list);
drivers/bus/fsl-mc/fsl-mc-allocator.c
282
struct fsl_mc_resource *resource = NULL;
drivers/bus/fsl-mc/fsl-mc-allocator.c
296
error = fsl_mc_resource_allocate(mc_bus, pool_type, &resource);
drivers/bus/fsl-mc/fsl-mc-allocator.c
300
mc_adev = resource->data;
drivers/bus/fsl-mc/fsl-mc-allocator.c
317
if (resource)
drivers/bus/fsl-mc/fsl-mc-allocator.c
318
fsl_mc_resource_free(resource);
drivers/bus/fsl-mc/fsl-mc-allocator.c
331
struct fsl_mc_resource *resource;
drivers/bus/fsl-mc/fsl-mc-allocator.c
333
resource = mc_adev->resource;
drivers/bus/fsl-mc/fsl-mc-allocator.c
334
if (resource->type == FSL_MC_POOL_DPMCP)
drivers/bus/fsl-mc/fsl-mc-allocator.c
336
if (resource->data != mc_adev)
drivers/bus/fsl-mc/fsl-mc-allocator.c
339
fsl_mc_resource_free(resource);
drivers/bus/fsl-mc/fsl-mc-allocator.c
38
struct fsl_mc_resource *resource;
drivers/bus/fsl-mc/fsl-mc-allocator.c
393
mc_dev_irq->resource.type = res_pool->type;
drivers/bus/fsl-mc/fsl-mc-allocator.c
394
mc_dev_irq->resource.data = mc_dev_irq;
drivers/bus/fsl-mc/fsl-mc-allocator.c
395
mc_dev_irq->resource.parent_pool = res_pool;
drivers/bus/fsl-mc/fsl-mc-allocator.c
397
mc_dev_irq->resource.id = mc_dev_irq->virq;
drivers/bus/fsl-mc/fsl-mc-allocator.c
398
INIT_LIST_HEAD(&mc_dev_irq->resource.node);
drivers/bus/fsl-mc/fsl-mc-allocator.c
399
list_add_tail(&mc_dev_irq->resource.node, &res_pool->free_list);
drivers/bus/fsl-mc/fsl-mc-allocator.c
46
if (mc_dev->resource)
drivers/bus/fsl-mc/fsl-mc-allocator.c
481
struct fsl_mc_resource *resource;
drivers/bus/fsl-mc/fsl-mc-allocator.c
484
&resource);
drivers/bus/fsl-mc/fsl-mc-allocator.c
488
irqs[i] = to_fsl_mc_irq(resource);
drivers/bus/fsl-mc/fsl-mc-allocator.c
501
fsl_mc_resource_free(&irqs[i]->resource);
drivers/bus/fsl-mc/fsl-mc-allocator.c
533
fsl_mc_resource_free(&irqs[i]->resource);
drivers/bus/fsl-mc/fsl-mc-allocator.c
598
if (mc_dev->resource) {
drivers/bus/fsl-mc/fsl-mc-allocator.c
63
resource = devm_kzalloc(&mc_bus_dev->dev, sizeof(*resource),
drivers/bus/fsl-mc/fsl-mc-allocator.c
65
if (!resource) {
drivers/bus/fsl-mc/fsl-mc-allocator.c
72
resource->type = pool_type;
drivers/bus/fsl-mc/fsl-mc-allocator.c
73
resource->id = mc_dev->obj_desc.id;
drivers/bus/fsl-mc/fsl-mc-allocator.c
74
resource->data = mc_dev;
drivers/bus/fsl-mc/fsl-mc-allocator.c
75
resource->parent_pool = res_pool;
drivers/bus/fsl-mc/fsl-mc-allocator.c
76
INIT_LIST_HEAD(&resource->node);
drivers/bus/fsl-mc/fsl-mc-allocator.c
77
list_add_tail(&resource->node, &res_pool->free_list);
drivers/bus/fsl-mc/fsl-mc-allocator.c
78
mc_dev->resource = resource;
drivers/bus/fsl-mc/fsl-mc-bus.c
1038
struct resource *plat_res;
drivers/bus/fsl-mc/fsl-mc-bus.c
1211
struct resource *res;
drivers/bus/fsl-mc/fsl-mc-bus.c
656
struct resource *regions;
drivers/bus/fsl-mc/fsl-mc-private.h
637
void fsl_mc_resource_free(struct fsl_mc_resource *resource);
drivers/bus/fsl-mc/mc-io.c
175
struct fsl_mc_resource *resource = NULL;
drivers/bus/fsl-mc/mc-io.c
189
error = fsl_mc_resource_allocate(mc_bus, FSL_MC_POOL_DPMCP, &resource);
drivers/bus/fsl-mc/mc-io.c
194
dpmcp_dev = resource->data;
drivers/bus/fsl-mc/mc-io.c
238
fsl_mc_resource_free(resource);
drivers/bus/fsl-mc/mc-io.c
252
struct fsl_mc_resource *resource;
drivers/bus/fsl-mc/mc-io.c
260
resource = dpmcp_dev->resource;
drivers/bus/fsl-mc/mc-io.c
261
if (!resource || resource->type != FSL_MC_POOL_DPMCP)
drivers/bus/fsl-mc/mc-io.c
264
if (resource->data != dpmcp_dev)
drivers/bus/fsl-mc/mc-io.c
268
fsl_mc_resource_free(resource);
drivers/bus/fsl-mc/mc-io.c
74
struct resource *res;
drivers/bus/hisi_lpc.c
345
struct resource *res)
drivers/bus/hisi_lpc.c
366
struct resource *r)
drivers/bus/hisi_lpc.c
395
const struct resource **res, int *num_res)
drivers/bus/hisi_lpc.c
400
struct resource *resources;
drivers/bus/hisi_lpc.c
491
const struct resource *res;
drivers/bus/mips_cdmm.c
106
CDMM_ATTR(resource, "\t%016llx\t%016llx\t%016lx\n",
drivers/bus/mips_cdmm.c
348
struct resource res;
drivers/bus/mvebu-mbus.c
1219
struct resource *mem,
drivers/bus/mvebu-mbus.c
1220
struct resource *io)
drivers/bus/mvebu-mbus.c
1229
memset(mem, 0, sizeof(struct resource));
drivers/bus/mvebu-mbus.c
1231
memset(io, 0, sizeof(struct resource));
drivers/bus/mvebu-mbus.c
1251
struct resource mbuswins_res, sdramwins_res, mbusbridge_res;
drivers/bus/mvebu-mbus.c
140
struct resource pcie_mem_aperture;
drivers/bus/mvebu-mbus.c
141
struct resource pcie_io_aperture;
drivers/bus/mvebu-mbus.c
915
void mvebu_mbus_get_pcie_mem_aperture(struct resource *res)
drivers/bus/mvebu-mbus.c
923
void mvebu_mbus_get_pcie_io_aperture(struct resource *res)
drivers/bus/omap-ocp2scp.c
25
struct resource *res;
drivers/bus/omap_l3_noc.c
258
struct resource *res;
drivers/bus/omap_l3_smx.c
215
struct resource *res;
drivers/bus/qcom-ebi2.c
296
struct resource *res;
drivers/bus/qcom-ssc-block-bus.c
258
struct resource *res;
drivers/bus/stm32_etzpc.c
78
struct resource *res;
drivers/bus/stm32_rifsc.c
752
struct resource *res;
drivers/bus/ti-sysc.c
761
static void sysc_check_quirk_16bit(struct sysc *ddata, struct resource *res)
drivers/bus/ti-sysc.c
774
struct resource *res;
drivers/cache/ax45mp_cache.c
181
struct resource res;
drivers/cache/hisi_soc_hha.c
126
struct resource *mem;
drivers/cache/sifive_ccache.c
293
struct resource res;
drivers/cdx/cdx.c
587
struct resource *res = &cdx_dev->res[i];
drivers/cdx/cdx.c
716
struct resource *res;
drivers/cdx/cdx.c
797
memcpy(cdx_dev->res, dev_params->res, sizeof(struct resource) *
drivers/cdx/cdx.h
40
struct resource res[MAX_CDX_DEV_RESOURCES];
drivers/cdx/controller/mcdi_functions.c
53
struct resource *res = &dev_params->res[0];
drivers/char/agp/amd64-agp.c
36
static struct resource *aperture_resource;
drivers/char/agp/efficeon-agp.c
348
struct resource *r;
drivers/char/agp/efficeon-agp.c
387
r = &pdev->resource[0];
drivers/char/agp/intel-agp.c
729
struct resource *r;
drivers/char/agp/intel-agp.c
776
r = &pdev->resource[0];
drivers/char/agp/intel-gtt.c
76
struct resource ifp_resource;
drivers/char/bsr.c
190
struct resource res;
drivers/char/hw_random/octeon-rng.c
60
struct resource *res_ports;
drivers/char/hw_random/octeon-rng.c
61
struct resource *res_result;
drivers/char/hw_random/stm32-rng.c
536
struct resource *res;
drivers/char/hw_random/timeriomem-rng.c
107
struct resource *res;
drivers/char/ipmi/ipmi_plat_data.c
16
struct resource r[4];
drivers/char/ipmi/ipmi_si_ls2k.c
157
io.addr_data = pdev->resource[0].start;
drivers/char/ipmi/ipmi_si_ls2k.c
158
io.regspacing = resource_size(&pdev->resource[0]);
drivers/char/ipmi/ipmi_si_pci.c
124
&pdev->resource[0], io.regsize, io.regspacing, io.irq);
drivers/char/ipmi/ipmi_si_platform.c
103
static void ipmi_set_addr_data_and_space(struct resource *r, struct si_sm_io *io)
drivers/char/ipmi/ipmi_si_platform.c
112
static struct resource *
drivers/char/ipmi/ipmi_si_platform.c
116
struct resource *res, *res_second;
drivers/char/ipmi/ipmi_si_platform.c
230
struct resource resource;
drivers/char/ipmi/ipmi_si_platform.c
244
ret = of_address_to_resource(np, 0, &resource);
drivers/char/ipmi/ipmi_si_platform.c
273
ipmi_set_addr_data_and_space(&resource, &io);
drivers/char/ipmi/ipmi_si_platform.c
315
struct resource *res;
drivers/char/tpm/eventlog/of.c
27
struct resource res;
drivers/char/tpm/tpm_crb.c
540
struct resource *iores_array = data;
drivers/char/tpm/tpm_crb.c
542
struct resource *res = &(win.res);
drivers/char/tpm/tpm_crb.c
559
static void __iomem *crb_map_res(struct device *dev, struct resource *iores,
drivers/char/tpm/tpm_crb.c
562
struct resource new_res = {
drivers/char/tpm/tpm_crb.c
589
static u64 crb_fixup_cmd_size(struct device *dev, struct resource *io_res,
drivers/char/tpm/tpm_crb.c
609
struct resource iores_array[TPM_CRB_MAX_RESOURCES + 1] = { {0} };
drivers/char/tpm/tpm_crb.c
612
struct resource *iores;
drivers/char/tpm/tpm_tis.c
255
struct resource *res;
drivers/char/tpm/tpm_tis.c
319
struct resource *res;
drivers/char/tpm/tpm_tis.c
33
struct resource res;
drivers/char/tpm/tpm_tis.c
371
static const struct resource x86_resources[] = {
drivers/char/tpm/tpm_tis_synquacer.c
115
struct resource *res;
drivers/char/tpm/tpm_tis_synquacer.c
22
struct resource res;
drivers/clk/bcm/clk-kona-setup.c
796
struct resource res = { 0 };
drivers/clk/clk-apple-nco.c
264
struct resource *res;
drivers/clk/clk-eyeq.c
366
struct resource *res;
drivers/clk/clk-fsl-flexspi.c
53
struct resource *res;
drivers/clk/clk-lan966x.c
256
struct resource *res;
drivers/clk/clk-npcm7xx.c
408
struct resource res;
drivers/clk/clk-qoriq.c
1078
struct resource res;
drivers/clk/clk-qoriq.c
1367
struct resource res;
drivers/clk/clk-xgene.c
387
struct resource res;
drivers/clk/clk-xgene.c
676
struct resource res;
drivers/clk/hisilicon/clk-hi3660-stub.c
127
struct resource *res;
drivers/clk/hisilicon/clk.c
30
struct resource *res;
drivers/clk/imx/clk-imx8qxp-lpcg.c
293
struct resource *res;
drivers/clk/imx/clk-scu.c
130
__le16 resource;
drivers/clk/imx/clk-scu.c
148
__le16 resource;
drivers/clk/imx/clk-scu.c
165
__le16 resource;
drivers/clk/imx/clk-scu.c
252
msg.data.req.resource = cpu_to_le16(clk->rsrc_id);
drivers/clk/imx/clk-scu.c
325
msg.resource = cpu_to_le16(clk->rsrc_id);
drivers/clk/imx/clk-scu.c
343
msg.data.req.resource = cpu_to_le16(clk->rsrc_id);
drivers/clk/imx/clk-scu.c
370
msg.resource = cpu_to_le16(clk->rsrc_id);
drivers/clk/imx/clk-scu.c
386
static int sc_pm_clock_enable(struct imx_sc_ipc *ipc, u16 resource,
drivers/clk/imx/clk-scu.c
397
msg.resource = cpu_to_le16(resource);
drivers/clk/imx/clk-scu.c
89
__le16 resource;
drivers/clk/imx/clk-scu.c
94
__le16 resource;
drivers/clk/mediatek/clk-mt6735-apmixedsys.c
83
struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
drivers/clk/meson/meson-clkc-utils.c
82
struct resource *res;
drivers/clk/mvebu/armada_ap_cp_helper.c
19
struct resource res;
drivers/clk/samsung/clk.c
249
struct resource res;
drivers/clk/sprd/common.c
45
struct resource *res;
drivers/clk/sunxi/clk-simple-gates.c
24
struct resource res;
drivers/clk/sunxi/clk-sun4i-display.c
109
struct resource res;
drivers/clk/sunxi/clk-sun4i-pll3.c
26
struct resource res;
drivers/clk/sunxi/clk-sun4i-tcon-ch1.c
230
struct resource res;
drivers/clk/sunxi/clk-sun8i-apb0.c
57
struct resource res;
drivers/clk/sunxi/clk-sun8i-bus-gates.c
27
struct resource res;
drivers/clk/sunxi/clk-sun8i-mbus.c
29
struct resource res;
drivers/clk/sunxi/clk-sun9i-cpus.c
188
struct resource res;
drivers/clk/sunxi/clk-sun9i-mmc.c
101
struct resource *r;
drivers/clk/tegra/clk-dfll.c
1942
struct resource *mem;
drivers/clk/ti/adpll.c
866
struct resource *res;
drivers/clk/ti/clkctrl.c
525
struct resource res;
drivers/clk/ux500/u8500_of_clk.c
145
struct resource r;
drivers/clk/xilinx/xlnx_vcu.c
611
struct resource *res;
drivers/clk/zynq/clkc.c
581
struct resource res;
drivers/clocksource/arm_arch_timer_mmio.c
329
struct resource res;
drivers/clocksource/sh_cmt.c
959
struct resource *mem;
drivers/clocksource/sh_mtu2.c
372
struct resource *res;
drivers/clocksource/sh_tmu.c
466
struct resource *res;
drivers/clocksource/timer-goldfish.c
119
timerdrv->res = (struct resource){
drivers/clocksource/timer-goldfish.c
15
struct resource res;
drivers/clocksource/timer-qcom.c
200
struct resource res;
drivers/clocksource/timer-ti-dm-systimer.c
254
struct resource res;
drivers/clocksource/timer-ti-dm-systimer.c
291
struct resource res;
drivers/clocksource/timer-ti-dm-systimer.c
813
struct resource res;
drivers/clocksource/timer-zevio.c
119
struct resource res;
drivers/comedi/drivers/cb_das16_cs.c
358
dev->iobase = link->resource[0]->start;
drivers/comedi/drivers/das08_cs.c
64
iobase = link->resource[0]->start;
drivers/comedi/drivers/ni_daq_700.c
219
dev->iobase = link->resource[0]->start;
drivers/comedi/drivers/ni_daq_dio24.c
40
dev->iobase = link->resource[0]->start;
drivers/comedi/drivers/ni_labpc_cs.c
68
dev->iobase = link->resource[0]->start;
drivers/comedi/drivers/ni_mio_cs.c
135
p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH;
drivers/comedi/drivers/ni_mio_cs.c
136
p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_16;
drivers/comedi/drivers/ni_mio_cs.c
139
p_dev->resource[0]->start = base;
drivers/comedi/drivers/ni_mio_cs.c
164
dev->iobase = link->resource[0]->start;
drivers/comedi/drivers/quatech_daqp_cs.c
713
dev->iobase = link->resource[0]->start;
drivers/counter/ftm-quaddec.c
265
struct resource *io;
drivers/cpufreq/mediatek-cpufreq-hw.c
226
struct resource *res;
drivers/cpufreq/mediatek-cpufreq-hw.c
337
struct resource *res = data->res;
drivers/cpufreq/mediatek-cpufreq-hw.c
50
struct resource *res;
drivers/cpufreq/mvebu-cpufreq.c
26
struct resource res;
drivers/cpufreq/pasemi-cpufreq.c
130
struct resource res;
drivers/crypto/allwinner/sun4i-ss/sun4i-ss.h
150
struct resource *res;
drivers/crypto/atmel-aes.c
2333
struct resource *aes_res;
drivers/crypto/atmel-sha.c
2579
struct resource *sha_res;
drivers/crypto/atmel-tdes.c
946
struct resource *tdes_res;
drivers/crypto/bcm/cipher.c
4578
struct resource *spu_ctrl_regs;
drivers/crypto/caam/jr.c
594
struct resource *r;
drivers/crypto/ccp/sev-dev.c
1323
static int snp_filter_reserved_mem_regions(struct resource *rs, void *arg)
drivers/crypto/ccree/cc_driver.c
308
struct resource *req_mem_cc_regs = NULL;
drivers/crypto/hisilicon/sec/sec_drv.c
1013
struct resource *res;
drivers/crypto/hisilicon/sec/sec_drv.c
230
struct resource *res;
drivers/crypto/img-hash.c
938
struct resource *hash_res;
drivers/crypto/marvell/cesa/cesa.c
372
struct resource *res;
drivers/crypto/omap-aes.c
1098
struct resource res;
drivers/crypto/omap-aes.c
957
struct device *dev, struct resource *res)
drivers/crypto/omap-aes.c
985
struct device *dev, struct resource *res)
drivers/crypto/omap-aes.c
992
struct platform_device *pdev, struct resource *res)
drivers/crypto/omap-aes.c
995
struct resource *r;
drivers/crypto/omap-des.c
946
struct resource *res;
drivers/crypto/omap-sham.c
1901
struct device *dev, struct resource *res)
drivers/crypto/omap-sham.c
1936
struct device *dev, struct resource *res)
drivers/crypto/omap-sham.c
1943
struct platform_device *pdev, struct resource *res)
drivers/crypto/omap-sham.c
1946
struct resource *r;
drivers/crypto/omap-sham.c
2049
struct resource res;
drivers/crypto/s5p-sss.c
2137
struct resource *res;
drivers/crypto/s5p-sss.c
316
struct resource *res;
drivers/crypto/starfive/jh7110-cryp.c
95
struct resource *res;
drivers/crypto/stm32/stm32-hash.c
2338
struct resource *res;
drivers/crypto/talitos.c
3336
struct resource *res;
drivers/cxl/acpi.c
211
struct resource *cxl_res;
drivers/cxl/acpi.c
328
static void del_cxl_resource(struct resource *res)
drivers/cxl/acpi.c
336
static struct resource *alloc_cxl_resource(resource_size_t base,
drivers/cxl/acpi.c
339
struct resource *res __free(kfree) = kzalloc_obj(*res);
drivers/cxl/acpi.c
354
static int add_or_reset_cxl_resource(struct resource *parent, struct resource *res)
drivers/cxl/acpi.c
370
struct resource res;
drivers/cxl/acpi.c
400
DEFINE_FREE(del_cxl_resource, struct resource *, if (_T) del_cxl_resource(_T))
drivers/cxl/acpi.c
422
struct resource *res __free(del_cxl_resource) = alloc_cxl_resource(
drivers/cxl/acpi.c
775
static void cxl_set_public_resource(struct resource *priv, struct resource *pub)
drivers/cxl/acpi.c
780
static struct resource *cxl_get_public_resource(struct resource *priv)
drivers/cxl/acpi.c
782
return (struct resource *) priv->desc;
drivers/cxl/acpi.c
787
struct resource *res, *next, *cxl = data;
drivers/cxl/acpi.c
790
struct resource *victim = cxl_get_public_resource(res);
drivers/cxl/acpi.c
823
static int add_cxl_resources(struct resource *cxl_res)
drivers/cxl/acpi.c
825
struct resource *res, *new, *next;
drivers/cxl/acpi.c
848
struct resource *_next = next->sibling;
drivers/cxl/acpi.c
862
struct resource *cxl_res = data;
drivers/cxl/acpi.c
863
struct resource *p;
drivers/cxl/acpi.c
871
struct resource res = {
drivers/cxl/acpi.c
889
struct resource *cxl_res;
drivers/cxl/core/cdat.c
269
struct resource *res = &cxlds->part[i].res;
drivers/cxl/core/cdat.c
572
struct resource *dpa_res)
drivers/cxl/core/core.h
104
bool cxl_resource_contains_addr(const struct resource *res, const resource_size_t addr);
drivers/cxl/core/hdm.c
149
if (reg_map->resource == CXL_RESOURCE_NONE) {
drivers/cxl/core/hdm.c
191
static void __cxl_dpa_debug(struct seq_file *file, struct resource *r, int depth)
drivers/cxl/core/hdm.c
201
struct resource *p1, *p2;
drivers/cxl/core/hdm.c
221
const struct resource *part_res = &cxlds->part[i].res;
drivers/cxl/core/hdm.c
252
struct resource *res = cxled->dpa_res;
drivers/cxl/core/hdm.c
347
struct resource *res;
drivers/cxl/core/hdm.c
414
static int add_dpa_res(struct device *dev, struct resource *parent,
drivers/cxl/core/hdm.c
415
struct resource *res, resource_size_t start,
drivers/cxl/core/hdm.c
420
*res = (struct resource) {
drivers/cxl/core/hdm.c
535
bool cxl_resource_contains_addr(const struct resource *res, const resource_size_t addr)
drivers/cxl/core/hdm.c
537
struct resource _addr = DEFINE_RES_MEM(addr, 1);
drivers/cxl/core/hdm.c
604
struct resource *res, *prev = NULL;
drivers/cxl/core/hdm.c
606
struct resource *p, *last;
drivers/cxl/core/mbox.c
1539
mds->cxlds.reg_map.resource = CXL_RESOURCE_NONE;
drivers/cxl/core/memdev.c
218
const struct resource *res = &cxlds->part[i].res;
drivers/cxl/core/pci.c
70
return devm_cxl_add_dport(port, dport_dev, port_num, map.resource);
drivers/cxl/core/port.c
1560
return map.resource;
drivers/cxl/core/port.c
759
.resource = component_reg_phys,
drivers/cxl/core/region.c
2810
const struct resource *res;
drivers/cxl/core/region.c
2811
struct resource *p, *last;
drivers/cxl/core/region.c
3777
struct resource *res)
drivers/cxl/core/region.c
3822
struct resource *res;
drivers/cxl/core/region.c
4027
static int is_system_ram(struct resource *res, void *arg)
drivers/cxl/core/region.c
599
u64 resource = -1ULL;
drivers/cxl/core/region.c
607
resource = p->res->start;
drivers/cxl/core/region.c
608
return sysfs_emit(buf, "%#llx\n", resource);
drivers/cxl/core/region.c
610
static DEVICE_ATTR_RO(resource);
drivers/cxl/core/region.c
633
struct resource *res;
drivers/cxl/core/regs.c
183
struct resource *res;
drivers/cxl/core/regs.c
226
addr = map->resource + mi->rmap->offset;
drivers/cxl/core/regs.c
241
resource_size_t phys_addr = map->resource;
drivers/cxl/core/regs.c
282
&pdev->resource[bar], &offset, reg_type);
drivers/cxl/core/regs.c
287
map->resource = pci_resource_start(pdev, bar) + offset;
drivers/cxl/core/regs.c
310
.resource = CXL_RESOURCE_NONE,
drivers/cxl/core/regs.c
340
map->resource = CXL_RESOURCE_NONE;
drivers/cxl/core/regs.c
407
phys_addr = map->resource;
drivers/cxl/core/regs.c
420
map->base = ioremap(map->resource, map->max_size);
drivers/cxl/core/regs.c
426
dev_dbg(host, "Mapped CXL Memory Device resource %pa\n", &map->resource);
drivers/cxl/cxl.h
285
resource_size_t resource;
drivers/cxl/cxl.h
400
struct resource *dpa_res;
drivers/cxl/cxl.h
448
struct resource *res;
drivers/cxl/cxl.h
494
struct resource *res;
drivers/cxl/cxlmem.h
411
struct resource res;
drivers/cxl/cxlmem.h
446
struct resource dpa_res;
drivers/cxl/pci.c
485
.resource = CXL_RESOURCE_NONE,
drivers/cxl/pci.c
497
map->resource = component_reg_phys;
drivers/cxl/pmem.c
406
struct resource *res;
drivers/dax/bus.c
1026
struct resource *region_res = &dax_region->res;
drivers/dax/bus.c
1028
struct resource *res, *first;
drivers/dax/bus.c
1058
struct resource *next = res->sibling;
drivers/dax/bus.c
1302
static DEVICE_ATTR(resource, 0400, resource_show, NULL);
drivers/dax/bus.c
300
struct resource *res;
drivers/dax/bus.c
664
dax_region->res = (struct resource) {
drivers/dax/bus.c
843
struct resource *res = &dax_region->res;
drivers/dax/bus.c
847
struct resource *alloc;
drivers/dax/bus.c
900
static int adjust_dev_dax_range(struct dev_dax *dev_dax, struct resource *res, resource_size_t size)
drivers/dax/bus.c
965
struct resource *adjust = NULL, *res;
drivers/dax/bus.c
999
static bool adjust_ok(struct dev_dax *dev_dax, struct resource *res)
drivers/dax/bus.h
9
struct resource;
drivers/dax/dax-private.h
38
struct resource res;
drivers/dax/hmem/device.c
13
static struct resource hmem_active = {
drivers/dax/hmem/device.c
22
struct resource *res;
drivers/dax/hmem/device.c
36
static void __hmem_register_resource(int target_nid, struct resource *res)
drivers/dax/hmem/device.c
39
struct resource *new;
drivers/dax/hmem/device.c
67
void hmem_register_resource(int target_nid, struct resource *res)
drivers/dax/hmem/device.c
77
static __init int hmem_register_one(struct resource *res, void *data)
drivers/dax/hmem/hmem.c
62
const struct resource *res)
drivers/dax/kmem.c
138
struct resource *res;
drivers/dax/kmem.c
50
struct resource *res[];
drivers/devfreq/event/exynos-nocp.c
204
struct resource *res;
drivers/devfreq/event/exynos-ppmu.c
607
struct resource *res;
drivers/dio/dio-sysfs.c
65
static DEVICE_ATTR(resource, S_IRUGO, dio_show_resource, NULL);
drivers/dio/dio.c
236
dev->resource.start = pa;
drivers/dio/dio.c
237
dev->resource.end = pa + DIO_SIZE(scode, va);
drivers/dma/altera-msgdma.c
768
struct resource **res, void __iomem **ptr,
drivers/dma/altera-msgdma.c
771
struct resource *region;
drivers/dma/altera-msgdma.c
813
struct resource *dma_res;
drivers/dma/amd/qdma/qdma.c
1043
struct resource *res;
drivers/dma/bestcomm/bestcomm.c
368
struct resource res_bcom;
drivers/dma/bestcomm/sram.c
41
struct resource res;
drivers/dma/dma-jz4780.c
858
struct resource *res;
drivers/dma/dw-edma/dw-edma-pcie.c
102
struct resource res = {
drivers/dma/fsl_raid.c
753
struct resource *res;
drivers/dma/fsldma.c
1110
struct resource res;
drivers/dma/imx-sdma.c
2242
struct resource spba_res;
drivers/dma/mcf-edma-main.c
122
struct resource *res;
drivers/dma/mcf-edma-main.c
77
struct resource *res;
drivers/dma/mpc512x_dma.c
905
struct resource res;
drivers/dma/mv_xor.c
1312
struct resource *res;
drivers/dma/pl330.c
3006
struct resource *res;
drivers/dma/ppc4xx/adma.c
4006
struct resource res;
drivers/dma/ppc4xx/adma.c
4236
struct resource res;
drivers/dma/ppc4xx/adma.c
4405
struct resource i2o_res;
drivers/dma/qcom/gpi.c
472
struct resource *res;
drivers/dma/qcom/hidma.c
754
struct resource *trca_resource;
drivers/dma/qcom/hidma.c
755
struct resource *evca_resource;
drivers/dma/qcom/hidma.h
118
struct resource *trca_resource;
drivers/dma/qcom/hidma.h
120
struct resource *evca_resource;
drivers/dma/qcom/hidma_mgmt.c
162
struct resource *res;
drivers/dma/sa11x0-dma.c
902
struct resource *res;
drivers/dma/sh/shdmac.c
689
struct resource *dmars, *errirq_res, *chanirq_res;
drivers/dma/ste_dma40.c
3496
struct resource *res;
drivers/dma/ste_dma40.c
3497
struct resource res_lcpa;
drivers/dma/stm32/stm32-dma.c
1570
struct resource *res;
drivers/dma/tegra210-adma.c
1027
struct resource *res_page, *res_base;
drivers/dma/ti/edma.c
2091
struct resource res;
drivers/dma/ti/edma.c
2293
struct resource *mem;
drivers/dma/timb_dma.c
616
struct resource *iomem;
drivers/dma/timb_dma.c
745
struct resource *iomem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
drivers/dma/txx9dmac.c
1170
struct resource *io;
drivers/dma/xgene-dma.c
1620
struct resource *res;
drivers/dma/xilinx/xdma.c
1199
struct resource *res;
drivers/edac/altera_edac.c
1874
struct resource *res)
drivers/edac/altera_edac.c
1895
struct resource res;
drivers/edac/altera_edac.c
209
struct resource res;
drivers/edac/altera_edac.c
710
struct resource *r;
drivers/edac/aspeed_edac.c
237
struct resource r;
drivers/edac/bluefield_edac.c
359
struct resource *emi_res;
drivers/edac/cpc925_edac.c
913
struct resource *r;
drivers/edac/fsl_ddr_edac.c
499
struct resource r;
drivers/edac/highbank_l2_edac.c
53
struct resource *r;
drivers/edac/highbank_mc_edac.c
153
struct resource *r;
drivers/edac/mpc85xx_edac.c
151
struct resource r;
drivers/edac/mpc85xx_edac.c
492
struct resource r;
drivers/edac/pnd2_edac.c
244
struct resource r;
drivers/edac/ti_edac.c
234
struct resource *res;
drivers/edac/xgene_edac.c
1189
struct resource res;
drivers/edac/xgene_edac.c
1729
struct resource res;
drivers/edac/xgene_edac.c
1847
struct resource *res;
drivers/edac/xgene_edac.c
349
struct resource res;
drivers/edac/xgene_edac.c
892
struct resource res;
drivers/edac/zynqmp_edac.c
371
struct resource *res;
drivers/eisa/eisa-bus.c
400
static struct resource eisa_root_res = {
drivers/eisa/pci_eisa.c
23
struct resource *res, *bus_res = NULL;
drivers/firewire/core-cdev.c
105
struct client_resource resource;
drivers/firewire/core-cdev.c
112
struct client_resource resource;
drivers/firewire/core-cdev.c
117
struct client_resource resource;
drivers/firewire/core-cdev.c
126
struct client_resource resource;
drivers/firewire/core-cdev.c
1301
unsigned long index = r->resource.handle;
drivers/firewire/core-cdev.c
132
struct client_resource resource;
drivers/firewire/core-cdev.c
1373
e->iso_resource.handle = r->resource.handle;
drivers/firewire/core-cdev.c
1391
struct client_resource *resource)
drivers/firewire/core-cdev.c
1393
struct iso_resource *r = to_iso_resource(resource);
drivers/firewire/core-cdev.c
1435
r->resource.release = release_iso_resource;
drivers/firewire/core-cdev.c
1436
ret = add_client_resource(client, &r->resource, GFP_KERNEL);
drivers/firewire/core-cdev.c
144
static struct address_handler_resource *to_address_handler_resource(struct client_resource *resource)
drivers/firewire/core-cdev.c
1440
r->resource.release = NULL;
drivers/firewire/core-cdev.c
1441
r->resource.handle = -1;
drivers/firewire/core-cdev.c
1444
request->handle = r->resource.handle;
drivers/firewire/core-cdev.c
146
return container_of(resource, struct address_handler_resource, resource);
drivers/firewire/core-cdev.c
149
static struct inbound_transaction_resource *to_inbound_transaction_resource(struct client_resource *resource)
drivers/firewire/core-cdev.c
151
return container_of(resource, struct inbound_transaction_resource, resource);
drivers/firewire/core-cdev.c
154
static struct descriptor_resource *to_descriptor_resource(struct client_resource *resource)
drivers/firewire/core-cdev.c
156
return container_of(resource, struct descriptor_resource, resource);
drivers/firewire/core-cdev.c
159
static struct iso_resource *to_iso_resource(struct client_resource *resource)
drivers/firewire/core-cdev.c
161
return container_of(resource, struct iso_resource, resource);
drivers/firewire/core-cdev.c
166
static int is_iso_resource(const struct client_resource *resource)
drivers/firewire/core-cdev.c
168
return resource->release == release_iso_resource;
drivers/firewire/core-cdev.c
172
struct client_resource *resource);
drivers/firewire/core-cdev.c
174
static int is_outbound_transaction_resource(const struct client_resource *resource)
drivers/firewire/core-cdev.c
176
return resource->release == release_transaction;
drivers/firewire/core-cdev.c
1832
struct client_resource *resource;
drivers/firewire/core-cdev.c
1837
xa_for_each(&client->resource_xa, index, resource) {
drivers/firewire/core-cdev.c
1838
if (is_outbound_transaction_resource(resource))
drivers/firewire/core-cdev.c
1849
struct client_resource *resource;
drivers/firewire/core-cdev.c
1873
xa_for_each(&client->resource_xa, index, resource) {
drivers/firewire/core-cdev.c
1874
resource->release(client, resource);
drivers/firewire/core-cdev.c
412
struct client_resource *resource;
drivers/firewire/core-cdev.c
426
xa_for_each(&client->resource_xa, index, resource) {
drivers/firewire/core-cdev.c
427
if (is_iso_resource(resource))
drivers/firewire/core-cdev.c
428
schedule_iso_resource(to_iso_resource(resource), 0);
drivers/firewire/core-cdev.c
507
static int add_client_resource(struct client *client, struct client_resource *resource,
drivers/firewire/core-cdev.c
519
ret = xa_alloc(&client->resource_xa, &index, resource, xa_limit_32b,
drivers/firewire/core-cdev.c
522
ret = xa_alloc_bh(&client->resource_xa, &index, resource,
drivers/firewire/core-cdev.c
527
resource->handle = index;
drivers/firewire/core-cdev.c
529
if (is_iso_resource(resource))
drivers/firewire/core-cdev.c
530
schedule_iso_resource(to_iso_resource(resource), 0);
drivers/firewire/core-cdev.c
542
struct client_resource *resource;
drivers/firewire/core-cdev.c
548
resource = xa_load(&client->resource_xa, index);
drivers/firewire/core-cdev.c
549
if (!resource || resource->release != release)
drivers/firewire/core-cdev.c
556
*return_resource = resource;
drivers/firewire/core-cdev.c
558
resource->release(client, resource);
drivers/firewire/core-cdev.c
566
struct client_resource *resource)
drivers/firewire/core-cdev.c
575
unsigned long index = e->r.resource.handle;
drivers/firewire/core-cdev.c
675
e->r.resource.release = release_transaction;
drivers/firewire/core-cdev.c
676
ret = add_client_resource(client, &e->r.resource, GFP_KERNEL);
drivers/firewire/core-cdev.c
715
struct client_resource *resource)
drivers/firewire/core-cdev.c
717
struct inbound_transaction_resource *r = to_inbound_transaction_resource(resource);
drivers/firewire/core-cdev.c
759
r->resource.release = release_request;
drivers/firewire/core-cdev.c
760
ret = add_client_resource(handler->client, &r->resource, GFP_ATOMIC);
drivers/firewire/core-cdev.c
774
req->handle = r->resource.handle;
drivers/firewire/core-cdev.c
788
req->handle = r->resource.handle;
drivers/firewire/core-cdev.c
802
req->handle = r->resource.handle;
drivers/firewire/core-cdev.c
825
struct client_resource *resource)
drivers/firewire/core-cdev.c
827
struct address_handler_resource *r = to_address_handler_resource(resource);
drivers/firewire/core-cdev.c
863
r->resource.release = release_address_handler;
drivers/firewire/core-cdev.c
864
ret = add_client_resource(client, &r->resource, GFP_KERNEL);
drivers/firewire/core-cdev.c
866
release_address_handler(client, &r->resource);
drivers/firewire/core-cdev.c
869
a->handle = r->resource.handle;
drivers/firewire/core-cdev.c
883
struct client_resource *resource;
drivers/firewire/core-cdev.c
888
release_request, &resource) < 0)
drivers/firewire/core-cdev.c
891
r = to_inbound_transaction_resource(resource);
drivers/firewire/core-cdev.c
923
struct client_resource *resource)
drivers/firewire/core-cdev.c
925
struct descriptor_resource *r = to_descriptor_resource(resource);
drivers/firewire/core-cdev.c
963
r->resource.release = release_descriptor;
drivers/firewire/core-cdev.c
964
ret = add_client_resource(client, &r->resource, GFP_KERNEL);
drivers/firewire/core-cdev.c
969
a->handle = r->resource.handle;
drivers/firmware/arm_scmi/common.h
409
bool tx, struct resource *res,
drivers/firmware/arm_scmi/shmem.c
196
struct resource *res,
drivers/firmware/arm_scmi/shmem.c
202
struct resource lres = {};
drivers/firmware/arm_scmi/transports/smc.c
138
struct resource res = {};
drivers/firmware/arm_scpi.c
913
struct resource res;
drivers/firmware/efi/arm-runtime.c
111
struct resource *res;
drivers/firmware/efi/efi.c
1079
struct resource *res, *parent;
drivers/firmware/efi/efi.c
1082
res = kzalloc_obj(struct resource, GFP_ATOMIC);
drivers/firmware/efi/riscv-runtime.c
81
struct resource *res;
drivers/firmware/google/coreboot_table.c
156
struct resource *res;
drivers/firmware/google/framebuffer-coreboot.c
32
struct resource res;
drivers/firmware/imx/imx-scu-irq.c
128
msg.data.req.resource = mu_resource_id;
drivers/firmware/imx/imx-scu-irq.c
156
msg.resource = mu_resource_id;
drivers/firmware/imx/imx-scu-irq.c
28
u16 resource;
drivers/firmware/imx/imx-scu-irq.c
41
u16 resource;
drivers/firmware/imx/imx-scu-soc.c
20
u16 resource;
drivers/firmware/imx/imx-scu-soc.c
70
msg.data.req.resource = IMX_SC_R_SYSTEM;
drivers/firmware/imx/misc.c
119
int imx_sc_pm_cpu_start(struct imx_sc_ipc *ipc, u32 resource,
drivers/firmware/imx/misc.c
132
msg.resource = resource;
drivers/firmware/imx/misc.c
18
u16 resource;
drivers/firmware/imx/misc.c
25
u16 resource;
drivers/firmware/imx/misc.c
32
u16 resource;
drivers/firmware/imx/misc.c
51
int imx_sc_misc_set_control(struct imx_sc_ipc *ipc, u32 resource,
drivers/firmware/imx/misc.c
64
msg.resource = resource;
drivers/firmware/imx/misc.c
81
int imx_sc_misc_get_control(struct imx_sc_ipc *ipc, u32 resource,
drivers/firmware/imx/misc.c
95
msg.resource = resource;
drivers/firmware/imx/rm.c
13
u16 resource;
drivers/firmware/imx/rm.c
24
bool imx_sc_rm_is_resource_owned(struct imx_sc_ipc *ipc, u16 resource)
drivers/firmware/imx/rm.c
34
msg.resource = resource;
drivers/firmware/imx/rm.c
51
u16 resource;
drivers/firmware/imx/rm.c
68
int imx_sc_rm_get_resource_owner(struct imx_sc_ipc *ipc, u16 resource, u8 *pt)
drivers/firmware/imx/rm.c
79
msg.data.req.resource = resource;
drivers/firmware/qcom/qcom_scm.c
2049
struct resource res;
drivers/firmware/qemu_fw_cfg.c
237
struct resource *range, *ctrl, *data, *dma;
drivers/firmware/qemu_fw_cfg.c
799
struct resource res[4] = {};
drivers/firmware/qemu_fw_cfg.c
871
(fw_cfg_cmdline_dev->resource[0].flags == IORESOURCE_MEM)))
drivers/firmware/qemu_fw_cfg.c
877
resource_size(&fw_cfg_cmdline_dev->resource[0]),
drivers/firmware/qemu_fw_cfg.c
878
fw_cfg_cmdline_dev->resource[0].start);
drivers/firmware/qemu_fw_cfg.c
881
resource_size(&fw_cfg_cmdline_dev->resource[0]),
drivers/firmware/qemu_fw_cfg.c
882
fw_cfg_cmdline_dev->resource[0].start,
drivers/firmware/qemu_fw_cfg.c
883
fw_cfg_cmdline_dev->resource[1].start,
drivers/firmware/qemu_fw_cfg.c
884
fw_cfg_cmdline_dev->resource[2].start);
drivers/firmware/qemu_fw_cfg.c
887
resource_size(&fw_cfg_cmdline_dev->resource[0]),
drivers/firmware/qemu_fw_cfg.c
888
fw_cfg_cmdline_dev->resource[0].start,
drivers/firmware/qemu_fw_cfg.c
889
fw_cfg_cmdline_dev->resource[1].start,
drivers/firmware/qemu_fw_cfg.c
890
fw_cfg_cmdline_dev->resource[2].start,
drivers/firmware/qemu_fw_cfg.c
891
fw_cfg_cmdline_dev->resource[3].start);
drivers/firmware/samsung/exynos-acpm.c
622
struct resource res;
drivers/firmware/sysfb_simplefb.c
69
struct resource res;
drivers/firmware/tegra/bpmp-tegra186.c
195
struct resource res;
drivers/firmware/thead,th1520-aon.c
173
msg.resource = cpu_to_be16(rsrc);
drivers/firmware/thead,th1520-aon.c
29
u16 resource;
drivers/firmware/ti_sci.c
169
struct resource *res;
drivers/fpga/dfl-afu-main.c
513
struct resource *res = &pdev->resource[feature->resource_index];
drivers/fpga/dfl-afu-main.c
535
struct resource *res = &pdev->resource[feature->resource_index];
drivers/fpga/dfl.c
346
struct resource *parent_res;
drivers/fpga/dfl.c
386
parent_res = &pdev->resource[feature->resource_index];
drivers/fpga/dfl.c
722
struct resource mmio_res;
drivers/fpga/dfl.h
341
struct resource *resources;
drivers/fsi/fsi-master-ast-cf.c
1219
struct resource res;
drivers/gpib/cb7210/cb7210.c
1199
link->resource[0]->end = 16;
drivers/gpib/cb7210/cb7210.c
1200
link->resource[0]->flags &= ~IO_DATA_PATH_WIDTH;
drivers/gpib/cb7210/cb7210.c
1201
link->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO;
drivers/gpib/cb7210/cb7210.c
1202
link->resource[1]->end = 16;
drivers/gpib/cb7210/cb7210.c
1203
link->resource[1]->flags &= ~IO_DATA_PATH_WIDTH;
drivers/gpib/cb7210/cb7210.c
1204
link->resource[1]->flags |= IO_DATA_PATH_WIDTH_16;
drivers/gpib/cb7210/cb7210.c
1430
if (!request_region(curr_dev->resource[0]->start, resource_size(curr_dev->resource[0]),
drivers/gpib/cb7210/cb7210.c
1433
(unsigned long)curr_dev->resource[0]->start);
drivers/gpib/cb7210/cb7210.c
1436
nec_priv->iobase = curr_dev->resource[0]->start;
drivers/gpib/cb7210/cb7210.c
1437
cb_priv->fifo_iobase = curr_dev->resource[0]->start;
drivers/gpib/eastwood/fluke_gpib.c
970
struct resource *res;
drivers/gpib/eastwood/fluke_gpib.h
17
struct resource *gpib_iomem_res;
drivers/gpib/eastwood/fluke_gpib.h
18
struct resource *write_transfer_counter_res;
drivers/gpib/eastwood/fluke_gpib.h
19
struct resource *dma_port_res;
drivers/gpib/fmh_gpib/fmh_gpib.c
1383
struct resource *res;
drivers/gpib/fmh_gpib/fmh_gpib.c
1562
e_priv->gpib_iomem_res = &pci_device->resource[gpib_control_status_pci_resource_index];
drivers/gpib/fmh_gpib/fmh_gpib.c
1563
e_priv->dma_port_res = &pci_device->resource[gpib_fifo_pci_resource_index];
drivers/gpib/fmh_gpib/fmh_gpib.h
28
struct resource *gpib_iomem_res;
drivers/gpib/fmh_gpib/fmh_gpib.h
29
struct resource *write_transfer_counter_res;
drivers/gpib/fmh_gpib/fmh_gpib.h
30
struct resource *dma_port_res;
drivers/gpib/ines/ines_gpib.c
1072
link->resource[0]->end = 32;
drivers/gpib/ines/ines_gpib.c
1073
link->resource[0]->flags &= ~IO_DATA_PATH_WIDTH;
drivers/gpib/ines/ines_gpib.c
1074
link->resource[0]->flags |= IO_DATA_PATH_WIDTH_8;
drivers/gpib/ines/ines_gpib.c
1133
link->resource[2]->flags |= WIN_MEMORY_TYPE_AM | WIN_DATA_WIDTH_8 | WIN_ENABLE;
drivers/gpib/ines/ines_gpib.c
1134
link->resource[2]->end = 0x1000;
drivers/gpib/ines/ines_gpib.c
1135
retval = pcmcia_request_window(link, link->resource[2], 250);
drivers/gpib/ines/ines_gpib.c
1141
retval = pcmcia_map_mem_page(link, link->resource[2], 0);
drivers/gpib/ines/ines_gpib.c
1147
virt = ioremap(link->resource[2]->start, resource_size(link->resource[2]));
drivers/gpib/ines/ines_gpib.c
1148
writeb((link->resource[2]->start >> 2) & 0xff, virt + 0xf0); // IOWindow base
drivers/gpib/ines/ines_gpib.c
1329
if (!request_region(curr_dev->resource[0]->start,
drivers/gpib/ines/ines_gpib.c
1330
resource_size(curr_dev->resource[0]), DRV_NAME)) {
drivers/gpib/ines/ines_gpib.c
1332
(unsigned long)(curr_dev->resource[0]->start));
drivers/gpib/ines/ines_gpib.c
1336
nec_priv->iobase = curr_dev->resource[0]->start;
drivers/gpib/tnt4882/tnt4882_gpib.c
1740
if (!request_region(curr_dev->resource[0]->start, resource_size(curr_dev->resource[0]),
drivers/gpib/tnt4882/tnt4882_gpib.c
1744
nec_priv->mmiobase = ioport_map(curr_dev->resource[0]->start,
drivers/gpib/tnt4882/tnt4882_gpib.c
1745
resource_size(curr_dev->resource[0]));
drivers/gpio/gpio-amd-fch.c
29
static const struct resource amd_fch_gpio_iores =
drivers/gpio/gpio-brcmstb.c
359
struct device_node *np, struct resource *res)
drivers/gpio/gpio-brcmstb.c
584
struct resource *res;
drivers/gpio/gpio-cs5535.c
308
struct resource *res;
drivers/gpio/gpio-eic-sprd.c
617
struct resource *res;
drivers/gpio/gpio-htc-egpio.c
266
struct resource *res;
drivers/gpio/gpio-ich.c
371
struct resource *res_base, const char *name, u8 use_gpio)
drivers/gpio/gpio-ich.c
393
struct resource *res_base, *res_pm;
drivers/gpio/gpio-ich.c
89
struct resource *gpio_base; /* GPIO IO base */
drivers/gpio/gpio-ich.c
90
struct resource *pm_base; /* Power Management IO base */
drivers/gpio/gpio-logicvc.c
105
struct resource res;
drivers/gpio/gpio-lpc18xx.c
216
struct resource res;
drivers/gpio/gpio-lpc18xx.c
355
struct resource res;
drivers/gpio/gpio-menz127.c
136
struct resource *res = data;
drivers/gpio/gpio-menz127.c
41
struct resource *mem;
drivers/gpio/gpio-mlxbf2.c
100
struct resource *res;
drivers/gpio/gpio-mlxbf2.c
82
struct resource *res;
drivers/gpio/gpio-mlxbf2.c
86
static struct resource yu_arm_gpio_lock_res =
drivers/gpio/gpio-mmio.c
708
struct resource *r;
drivers/gpio/gpio-mmio.c
737
struct resource *r;
drivers/gpio/gpio-nomadik.c
515
struct resource *res;
drivers/gpio/gpio-rdc321x.c
122
struct resource *r;
drivers/gpio/gpio-realtek-otto.c
365
struct resource *res;
drivers/gpio/gpio-rockchip.c
643
struct resource res;
drivers/gpio/gpio-sch.c
328
struct resource *res;
drivers/gpio/gpio-tegra186.c
858
struct resource *res;
drivers/gpio/gpio-tqmx86.c
330
struct resource *res;
drivers/gpio/gpio-vx855.c
231
struct resource *res_gpi;
drivers/gpio/gpio-vx855.c
232
struct resource *res_gpo;
drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c
269
adev->acp.acp_res = kzalloc_objs(struct resource, 3);
drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c
333
adev->acp.acp_res = kzalloc_objs(struct resource, 5);
drivers/gpu/drm/amd/amdgpu/amdgpu_acp.h
36
struct resource *acp_res;
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
1522
if (!(bo->tbo.resource->placement & TTM_PL_FLAG_CONTIGUOUS)) {
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
2076
bo->tbo.resource->mem_type == TTM_PL_SYSTEM)
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
2581
if (bo->tbo.resource->mem_type != TTM_PL_SYSTEM) {
drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c
468
struct resource *res = &adev->pdev->resource[PCI_ROM_RESOURCE];
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
1804
if ((*bo)->tbo.resource->mem_type == TTM_PL_VRAM &&
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
1805
!((*bo)->tbo.resource->placement & TTM_PL_FLAG_CONTIGUOUS)) {
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
841
amdgpu_res_cpu_visible(adev, bo->tbo.resource))
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
1814
struct resource *res;
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
1870
amdgpu_res_first(abo->tbo.resource, offset, 4, &cursor);
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
1909
if (abo->tbo.resource->mem_type != TTM_PL_VRAM) {
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
208
switch (bo->tbo.resource->mem_type) {
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
227
r = amdgpu_vram_mgr_alloc_sgt(adev, bo->tbo.resource, 0,
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
235
r = amdgpu_ttm_mmio_remap_alloc_sgt(adev, bo->tbo.resource,
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
269
if (bo->tbo.resource &&
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
270
bo->tbo.resource->mem_type == AMDGPU_PL_MMIO_REMAP) {
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
482
if (!bo->tbo.resource || bo->tbo.resource->mem_type == TTM_PL_SYSTEM)
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
691
if (robj->tbo.resource &&
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
692
robj->tbo.resource->mem_type == AMDGPU_PL_MMIO_REMAP) {
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
116
switch (bo->tbo.resource->mem_type) {
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
127
*flags = amdgpu_ttm_tt_pde_flags(bo->tbo.ttm, bo->tbo.resource);
drivers/gpu/drm/amd/amdgpu/amdgpu_isp.h
50
struct resource *isp_res;
drivers/gpu/drm/amd/amdgpu/amdgpu_isp.h
51
struct resource *isp_i2c_res;
drivers/gpu/drm/amd/amdgpu/amdgpu_isp.h
52
struct resource *isp_gpio_res;
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
1021
if (bo->tbo.resource->mem_type == TTM_PL_VRAM) {
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
1025
} else if (bo->tbo.resource->mem_type == TTM_PL_TT) {
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
1122
WARN_ON_ONCE(bo->tbo.resource &&
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
1123
bo->tbo.resource->mem_type == AMDGPU_PL_MMIO_REMAP);
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
1151
WARN_ON_ONCE(bo->tbo.resource &&
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
1152
bo->tbo.resource->mem_type == AMDGPU_PL_MMIO_REMAP);
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
1264
struct ttm_resource *old_mem = bo->resource;
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
1319
if (!bo->resource || bo->resource->mem_type != TTM_PL_VRAM ||
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
1333
amdgpu_vram_mgr_set_cleared(bo->resource);
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
1362
if (amdgpu_res_cpu_visible(adev, bo->resource))
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
1384
if (bo->resource->mem_type == TTM_PL_VRAM &&
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
1385
!amdgpu_res_cpu_visible(adev, bo->resource))
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
1475
WARN_ON_ONCE(bo->tbo.resource->mem_type == TTM_PL_SYSTEM);
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
1478
WARN_ON_ONCE(bo->tbo.resource->start == AMDGPU_BO_INVALID_OFFSET);
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
1479
WARN_ON_ONCE(bo->tbo.resource->mem_type == TTM_PL_VRAM &&
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
1497
WARN_ON_ONCE(bo->tbo.resource->mem_type != TTM_PL_VRAM);
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
1501
offset = (bo->tbo.resource->start << PAGE_SHIFT) + fb_base;
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
1517
if (bo->tbo.resource->mem_type == TTM_PL_TT)
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
1521
offset = (bo->tbo.resource->start << PAGE_SHIFT) +
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
1522
amdgpu_ttm_domain_start(adev, bo->tbo.resource->mem_type);
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
1548
if (bo->tbo.resource && bo->tbo.resource->mem_type == AMDGPU_PL_MMIO_REMAP)
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
1625
if (!bo->tbo.resource) {
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
1628
switch (bo->tbo.resource->mem_type) {
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
1630
if (amdgpu_res_cpu_visible(adev, bo->tbo.resource))
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
167
if (abo->tbo.resource && !(adev->flags & AMD_IS_APU) &&
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
465
ttm_resource_free(&(*bo_ptr)->tbo, &(*bo_ptr)->tbo.resource);
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
472
&(*bo_ptr)->tbo.resource, &ctx);
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
710
amdgpu_res_cpu_visible(adev, bo->tbo.resource))
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
717
bo->tbo.resource->mem_type == TTM_PL_VRAM) {
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
947
uint32_t mem_type = bo->tbo.resource->mem_type;
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
948
uint32_t mem_flags = bo->tbo.resource->placement;
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
988
if (bo->tbo.resource->mem_type == TTM_PL_VRAM) {
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
992
} else if (bo->tbo.resource->mem_type == TTM_PL_TT) {
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
5671
if (!bo || !bo->tbo.resource)
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
5674
vres = to_amdgpu_vram_mgr_resource(bo->tbo.resource);
drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h
130
__entry->pages = PFN_UP(bo->tbo.resource->size);
drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h
131
__entry->type = bo->tbo.resource->mem_type;
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
1019
flags = amdgpu_ttm_tt_pte_flags(adev, tbo->ttm, tbo->resource);
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
121
switch (bo->resource->mem_type) {
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
137
amdgpu_res_cpu_visible(adev, bo->resource)) {
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
1469
if (bo->resource->mem_type == TTM_PL_SYSTEM)
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
1494
if (bo->resource->mem_type == AMDGPU_PL_PREEMPT)
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
1497
if (bo->resource->mem_type == TTM_PL_TT &&
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
1574
amdgpu_res_first(abo->tbo.resource, offset, len, &src_mm);
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
1575
src_addr = amdgpu_ttm_domain_start(adev, bo->resource->mem_type) +
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
1619
if (bo->resource->mem_type != TTM_PL_VRAM)
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
1626
amdgpu_res_first(bo->resource, offset, len, &cursor);
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
1964
ttm_resource_free(tbo, &tbo->resource);
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
2508
amdgpu_res_first(bo->tbo.resource, 0, amdgpu_bo_size(bo), &cursor);
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
2524
&bo->tbo, bo->tbo.resource, &cursor,
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
2564
amdgpu_res_first(bo->tbo.resource, 0, amdgpu_bo_size(bo), &dst);
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
2574
r = amdgpu_ttm_map_buffer(entity, &bo->tbo, bo->tbo.resource, &dst,
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
341
(abo_src->tbo.resource->mem_type == TTM_PL_VRAM))
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
420
amdgpu_vram_mgr_set_cleared(bo->resource);
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
505
struct ttm_resource *old_mem = bo->resource;
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
540
ttm_resource_free(bo, &bo->resource);
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
660
amdgpu_res_first(bo->resource, (u64)page_offset << PAGE_SHIFT, 0,
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
663
if (bo->resource->mem_type == AMDGPU_PL_DOORBELL)
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
665
else if (bo->resource->mem_type == AMDGPU_PL_MMIO_REMAP)
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
973
if (bo->resource->start != AMDGPU_BO_INVALID_OFFSET)
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
986
placements.flags = bo->resource->placement;
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
999
ttm_resource_free(bo, &bo->resource);
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
1307
if (abo->tbo.resource &&
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
1308
abo->tbo.resource->mem_type == TTM_PL_VRAM)
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
1311
mem = bo->tbo.resource;
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
1384
if (bo->tbo.resource &&
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
1386
amdgpu_mem_type_to_domain(bo->tbo.resource->mem_type)))
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
1664
(!bo_va->base.bo->tbo.resource ||
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
1665
bo_va->base.bo->tbo.resource->mem_type == TTM_PL_SYSTEM))
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
2207
amdgpu_vm_update_stats(*base, bo->tbo.resource, -1);
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
2324
amdgpu_vm_update_stats_locked(bo_base, bo->tbo.resource, -1);
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
424
amdgpu_vm_update_stats_locked(base, bo->tbo.resource, +1);
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
439
amdgpu_mem_type_to_domain(bo->tbo.resource->mem_type))
drivers/gpu/drm/amd/amdgpu/amdgpu_vm_pt.c
543
amdgpu_vm_update_stats(entry, entry->bo->tbo.resource, -1);
drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c
280
struct ttm_resource *res = bo->tbo.resource;
drivers/gpu/drm/amd/amdgpu/gmc_v12_1.c
522
bool is_vram = bo->tbo.resource &&
drivers/gpu/drm/amd/amdgpu/gmc_v12_1.c
523
bo->tbo.resource->mem_type == TTM_PL_VRAM;
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
1087
bool is_vram = bo->tbo.resource &&
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
1088
bo->tbo.resource->mem_type == TTM_PL_VRAM;
drivers/gpu/drm/amd/amdgpu/isp_v4_1_0.c
109
isp->isp_i2c_res = kzalloc_objs(struct resource, 1);
drivers/gpu/drm/amd/amdgpu/isp_v4_1_0.c
129
isp->isp_gpio_res = kzalloc_objs(struct resource, 1);
drivers/gpu/drm/amd/amdgpu/isp_v4_1_0.c
62
isp->isp_res = kzalloc_objs(struct resource, num_res);
drivers/gpu/drm/amd/amdgpu/isp_v4_1_1.c
271
isp->isp_res = kzalloc_objs(struct resource, num_res);
drivers/gpu/drm/amd/amdgpu/isp_v4_1_1.c
320
isp->isp_i2c_res = kzalloc_objs(struct resource, 1);
drivers/gpu/drm/amd/amdgpu/isp_v4_1_1.c
339
isp->isp_gpio_res = kzalloc_objs(struct resource, 1);
drivers/gpu/drm/amd/amdkfd/kfd_migrate.c
1029
struct resource *res = NULL;
drivers/gpu/drm/amd/amdkfd/kfd_svm.c
519
prange->ttm_res = prange->svm_bo->bo->tbo.resource;
drivers/gpu/drm/amd/amdkfd/kfd_svm.c
613
bo->tbo.resource->start << PAGE_SHIFT, bp.size,
drivers/gpu/drm/amd/amdkfd/kfd_svm.c
643
prange->ttm_res = bo->tbo.resource;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
9790
return abo->tbo.resource ? abo->tbo.resource->mem_type : 0;
drivers/gpu/drm/arm/malidp_drv.c
635
static bool malidp_has_sufficient_address_space(const struct resource *res,
drivers/gpu/drm/arm/malidp_drv.c
705
struct resource *res;
drivers/gpu/drm/armada/armada_crtc.c
1013
struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
drivers/gpu/drm/armada/armada_crtc.c
911
struct resource *res, int irq, const struct armada_variant *variant,
drivers/gpu/drm/armada/armada_drv.c
63
struct resource *mem = NULL;
drivers/gpu/drm/armada/armada_drv.c
67
struct resource *r = platform_get_resource(to_platform_device(dev),
drivers/gpu/drm/bridge/imx/imx8mp-hdmi-pai.c
109
struct resource *res;
drivers/gpu/drm/bridge/synopsys/dw-hdmi.c
3344
struct resource *iores = NULL;
drivers/gpu/drm/drm_cache.c
182
struct resource *tmp;
drivers/gpu/drm/drm_gem_ttm_helper.c
47
drm_print_bits(p, bo->resource->placement, plname, ARRAY_SIZE(plname));
drivers/gpu/drm/drm_gem_ttm_helper.c
50
if (bo->resource->bus.is_iomem)
drivers/gpu/drm/drm_gem_ttm_helper.c
52
(unsigned long)bo->resource->bus.offset);
drivers/gpu/drm/drm_gem_vram_helper.c
249
if (WARN_ON_ONCE(!gbo->bo.resource ||
drivers/gpu/drm/drm_gem_vram_helper.c
250
gbo->bo.resource->mem_type == TTM_PL_SYSTEM))
drivers/gpu/drm/drm_gem_vram_helper.c
253
return gbo->bo.resource->start;
drivers/gpu/drm/drm_gem_vram_helper.c
774
if (!bo->resource) {
drivers/gpu/drm/exynos/exynos_drm_mic.c
379
struct resource res;
drivers/gpu/drm/exynos/exynos_mixer.c
780
struct resource *res;
drivers/gpu/drm/exynos/exynos_mixer.c
833
struct resource *res;
drivers/gpu/drm/fsl-dcu/fsl_tcon.c
44
struct resource res;
drivers/gpu/drm/gma500/gem.c
124
release_resource(&pobj->resource);
drivers/gpu/drm/gma500/gem.c
156
ret = psb_gtt_allocate_resource(dev_priv, &pobj->resource, name, size, align, stolen,
drivers/gpu/drm/gma500/gem.c
184
release_resource(&pobj->resource);
drivers/gpu/drm/gma500/gem.c
383
struct resource *r = pdev->gtt_mem->child;
drivers/gpu/drm/gma500/gem.c
393
pobj = container_of(r, struct psb_gem_object, resource);
drivers/gpu/drm/gma500/gem.c
395
psb_gtt_insert_pages(pdev, &pobj->resource, pobj->pages);
drivers/gpu/drm/gma500/gem.c
396
size += resource_size(&pobj->resource);
drivers/gpu/drm/gma500/gem.c
56
psb_gtt_insert_pages(dev_priv, &pobj->resource, pages);
drivers/gpu/drm/gma500/gem.c
98
psb_gtt_remove_pages(dev_priv, &pobj->resource);
drivers/gpu/drm/gma500/gem.h
24
struct resource resource; /* GTT resource for our allocation */
drivers/gpu/drm/gma500/gtt.c
104
void psb_gtt_remove_pages(struct drm_psb_private *pdev, const struct resource *res)
drivers/gpu/drm/gma500/gtt.c
18
int psb_gtt_allocate_resource(struct drm_psb_private *pdev, struct resource *res,
drivers/gpu/drm/gma500/gtt.c
192
struct resource *gtt_mem;
drivers/gpu/drm/gma500/gtt.c
219
static struct resource fudge; /* Preferably peppermint */
drivers/gpu/drm/gma500/gtt.c
22
struct resource *root = pdev->gtt_mem;
drivers/gpu/drm/gma500/gtt.c
243
gtt_mem = &pdev->resource[PSB_GATT_RESOURCE];
drivers/gpu/drm/gma500/gtt.c
70
static u32 __iomem *psb_gtt_entry(struct drm_psb_private *pdev, const struct resource *res)
drivers/gpu/drm/gma500/gtt.c
78
void psb_gtt_insert_pages(struct drm_psb_private *pdev, const struct resource *res,
drivers/gpu/drm/gma500/gtt.h
32
int psb_gtt_allocate_resource(struct drm_psb_private *pdev, struct resource *res,
drivers/gpu/drm/gma500/gtt.h
37
void psb_gtt_insert_pages(struct drm_psb_private *pdev, const struct resource *res,
drivers/gpu/drm/gma500/gtt.h
39
void psb_gtt_remove_pages(struct drm_psb_private *pdev, const struct resource *res);
drivers/gpu/drm/gma500/psb_drv.h
401
struct resource *gtt_mem; /* Our PCI resource */
drivers/gpu/drm/hyperv/hyperv_drm.h
27
struct resource *mem;
drivers/gpu/drm/i915/display/intel_lpe_audio.c
86
struct resource *rsc;
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c
2016
capture->vma_res = i915_vma_resource_get(vma->resource);
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c
3329
i915_vma_resource_get(eb->batches[i]->vma->resource);
drivers/gpu/drm/i915/gem/i915_gem_object.c
540
return i915_ttm_resource_mappable(i915_gem_to_ttm(obj)->resource);
drivers/gpu/drm/i915/gem/i915_gem_stolen.c
105
static bool valid_stolen_size(struct drm_i915_private *i915, struct resource *dsm)
drivers/gpu/drm/i915/gem/i915_gem_stolen.c
111
struct resource *dsm)
drivers/gpu/drm/i915/gem/i915_gem_stolen.c
127
struct resource stolen[2] = {*dsm, *dsm};
drivers/gpu/drm/i915/gem/i915_gem_stolen.c
128
struct resource ggtt_res;
drivers/gpu/drm/i915/gem/i915_gem_stolen.c
168
struct resource *dsm)
drivers/gpu/drm/i915/gem/i915_gem_stolen.c
170
struct resource *r;
drivers/gpu/drm/i915/gem/i915_gem_ttm.c
1004
if (i915_ttm_cpu_maps_iomem(bo->resource) &&
drivers/gpu/drm/i915/gem/i915_gem_ttm.c
1068
if (!bo->resource) {
drivers/gpu/drm/i915/gem/i915_gem_ttm.c
1082
} else if (!i915_ttm_resource_mappable(bo->resource)) {
drivers/gpu/drm/i915/gem/i915_gem_ttm.c
1110
if (i915_ttm_cpu_maps_iomem(bo->resource))
drivers/gpu/drm/i915/gem/i915_gem_ttm.c
1134
GEM_WARN_ON(!i915_ttm_cpu_maps_iomem(bo->resource));
drivers/gpu/drm/i915/gem/i915_gem_ttm.c
1205
if (i915_ttm_cpu_maps_iomem(bo->resource)) {
drivers/gpu/drm/i915/gem/i915_gem_ttm.c
286
if (obj->flags & I915_BO_ALLOC_CPU_CLEAR && (!bo->resource ||
drivers/gpu/drm/i915/gem/i915_gem_ttm.c
287
ttm_manager_type(bo->bdev, bo->resource->mem_type)->use_tt))
drivers/gpu/drm/i915/gem/i915_gem_ttm.c
471
if (!bo->ttm || i915_ttm_cpu_maps_iomem(bo->resource))
drivers/gpu/drm/i915/gem/i915_gem_ttm.c
516
if ((bo->resource || bo->ttm) && !i915_ttm_is_ghost_object(bo)) {
drivers/gpu/drm/i915/gem/i915_gem_ttm.c
583
if (bo->resource == res) {
drivers/gpu/drm/i915/gem/i915_gem_ttm.c
718
if (!i915_ttm_resource_mappable(bo->resource))
drivers/gpu/drm/i915/gem/i915_gem_ttm.c
824
i915_ttm_resource_get_st(obj, bo->resource);
drivers/gpu/drm/i915/gem/i915_gem_ttm.c
994
ttm_manager_type(bo->bdev, bo->resource->mem_type);
drivers/gpu/drm/i915/gem/i915_gem_ttm_move.c
116
if (!bo->resource) {
drivers/gpu/drm/i915/gem/i915_gem_ttm_move.c
121
mem_flags = i915_ttm_cpu_maps_iomem(bo->resource) ? I915_BO_FLAG_IOMEM :
drivers/gpu/drm/i915/gem/i915_gem_ttm_move.c
123
mem_type = bo->resource->mem_type;
drivers/gpu/drm/i915/gem/i915_gem_ttm_move.c
124
cache_level = i915_ttm_cache_level(to_i915(bo->base.dev), bo->resource,
drivers/gpu/drm/i915/gem/i915_gem_ttm_move.c
223
i915_ttm_resource_get_st(obj, bo->resource);
drivers/gpu/drm/i915/gem/i915_gem_ttm_move.c
228
src_level = i915_ttm_cache_level(i915, bo->resource, src_ttm);
drivers/gpu/drm/i915/gem/i915_gem_ttm_move.c
233
i915_ttm_gtt_binds_lmem(bo->resource),
drivers/gpu/drm/i915/gem/i915_gem_ttm_move.c
321
src_reg = i915_ttm_region(bo->bdev, bo->resource->mem_type);
drivers/gpu/drm/i915/gem/i915_gem_ttm_move.c
329
arg->src_iter = !i915_ttm_cpu_maps_iomem(bo->resource) ?
drivers/gpu/drm/i915/gem/i915_gem_ttm_move.c
339
i915_ttm_resource_get_st(obj, bo->resource);
drivers/gpu/drm/i915/gem/i915_gem_ttm_move.c
460
if (!(i915_ttm_resource_mappable(bo->resource) &&
drivers/gpu/drm/i915/gem/i915_gem_ttm_move.c
589
if (!bo->resource) {
drivers/gpu/drm/i915/gem/i915_gem_ttm_move.c
636
clear = !i915_ttm_cpu_maps_iomem(bo->resource) && (!ttm || !ttm_tt_is_populated(ttm));
drivers/gpu/drm/i915/gem/i915_gem_ttm_move.c
721
if (GEM_WARN_ON(!src_bo->resource || !dst_bo->resource))
drivers/gpu/drm/i915/gem/i915_gem_ttm_move.c
742
dst_rsgt = i915_ttm_resource_get_st(dst, dst_bo->resource);
drivers/gpu/drm/i915/gem/i915_gem_ttm_move.c
743
copy_fence = __i915_ttm_move(src_bo, &ctx, false, dst_bo->resource,
drivers/gpu/drm/i915/gem/i915_gem_ttm_move.c
86
if (i915_ttm_cpu_maps_iomem(bo->resource) || bo->ttm->caching != ttm_cached) {
drivers/gpu/drm/i915/gem/i915_gem_ttm_pm.c
190
if (!backup_bo->resource)
drivers/gpu/drm/i915/gem/i915_gem_ttm_pm.c
57
if (!i915_ttm_cpu_maps_iomem(bo->resource) || obj->ttm.backup)
drivers/gpu/drm/i915/gem/selftests/huge_pages.c
1018
if (vma->resource->page_sizes_gtt != expected_gtt) {
drivers/gpu/drm/i915/gem/selftests/huge_pages.c
1020
vma->resource->page_sizes_gtt,
drivers/gpu/drm/i915/gem/selftests/huge_pages.c
1684
(vma->resource->page_sizes_gtt & I915_GTT_PAGE_SIZE_4K)) {
drivers/gpu/drm/i915/gem/selftests/huge_pages.c
380
if (!HAS_PAGE_SIZES(i915, vma->resource->page_sizes_gtt)) {
drivers/gpu/drm/i915/gem/selftests/huge_pages.c
382
vma->resource->page_sizes_gtt & ~supported, supported);
drivers/gpu/drm/i915/gem/selftests/huge_pages.c
413
vma->resource->page_sizes_gtt < SZ_2M) {
drivers/gpu/drm/i915/gem/selftests/huge_pages.c
415
vma->page_sizes.sg, vma->resource->page_sizes_gtt);
drivers/gpu/drm/i915/gem/selftests/huge_pages.c
551
if (vma->resource->page_sizes_gtt != page_size) {
drivers/gpu/drm/i915/gem/selftests/huge_pages.c
553
__func__, vma->resource->page_sizes_gtt,
drivers/gpu/drm/i915/gem/selftests/huge_pages.c
634
if (vma->resource->page_sizes_gtt != page_size) {
drivers/gpu/drm/i915/gem/selftests/huge_pages.c
636
vma->resource->page_sizes_gtt, page_size);
drivers/gpu/drm/i915/gem/selftests/huge_pages.c
661
if (vma->resource->page_sizes_gtt != I915_GTT_PAGE_SIZE_4K) {
drivers/gpu/drm/i915/gem/selftests/huge_pages.c
663
vma->resource->page_sizes_gtt,
drivers/gpu/drm/i915/gem/selftests/huge_pages.c
830
if (vma->resource->page_sizes_gtt != expected_gtt) {
drivers/gpu/drm/i915/gem/selftests/huge_pages.c
832
vma->resource->page_sizes_gtt, expected_gtt,
drivers/gpu/drm/i915/gem/selftests/i915_gem_mman.c
1314
struct resource saved_io;
drivers/gpu/drm/i915/gt/intel_ggtt.c
1253
static struct resource pci_resource(struct pci_dev *pdev, int bar)
drivers/gpu/drm/i915/gt/intel_ggtt.c
1643
vma->resource->bound_flags = 0;
drivers/gpu/drm/i915/gt/intel_ggtt.c
1644
vma->ops->bind_vma(vm, NULL, vma->resource,
drivers/gpu/drm/i915/gt/intel_gsc.c
225
adev->bar.parent = &pdev->resource[0];
drivers/gpu/drm/i915/gt/intel_gsc.c
226
adev->bar.start = def->bar + pdev->resource[0].start;
drivers/gpu/drm/i915/gt/intel_gtt.h
373
struct resource gmadr; /* GMADR resource */
drivers/gpu/drm/i915/gt/intel_region_lmem.c
44
struct resource *root_res;
drivers/gpu/drm/i915/gt/selftest_reset.c
23
const struct resource *dsm = >->i915->dsm.stolen;
drivers/gpu/drm/i915/gt/selftest_tlb.c
152
addr, align, va->resource->page_sizes_gtt,
drivers/gpu/drm/i915/gt/selftest_tlb.c
96
addr, align, va->resource->page_sizes_gtt,
drivers/gpu/drm/i915/i915_debugfs.c
208
stringify_page_sizes(vma->resource->page_sizes_gtt,
drivers/gpu/drm/i915/i915_drv.h
195
struct resource mch_res;
drivers/gpu/drm/i915/i915_drv.h
78
struct resource stolen;
drivers/gpu/drm/i915/i915_drv.h
83
struct resource reserved;
drivers/gpu/drm/i915/i915_gpu_error.c
1538
next = capture_vma_snapshot(next, vma->resource, gfp, name);
drivers/gpu/drm/i915/i915_gpu_error.c
1577
vma_res = vma->resource;
drivers/gpu/drm/i915/i915_vma.c
1814
GEM_WARN_ON(vma->resource);
drivers/gpu/drm/i915/i915_vma.c
2047
struct i915_vma_resource *vma_res = vma->resource;
drivers/gpu/drm/i915/i915_vma.c
2084
GEM_WARN_ON(async && !vma->resource->bi.pages_rsgt);
drivers/gpu/drm/i915/i915_vma.c
2099
vma->resource = NULL;
drivers/gpu/drm/i915/i915_vma.c
2166
&vma->obj->mm.rsgt->table != vma->resource->bi.pages)
drivers/gpu/drm/i915/i915_vma.c
2178
if (i915_sw_fence_await_active(&vma->resource->chain, &vma->active,
drivers/gpu/drm/i915/i915_vma.c
532
if (vma->resource || !vma_res) {
drivers/gpu/drm/i915/i915_vma.c
538
vma->resource = vma_res;
drivers/gpu/drm/i915/i915_vma.c
544
work->vma_res = i915_vma_resource_get(vma->resource);
drivers/gpu/drm/i915/i915_vma.c
570
i915_vma_resource_free(vma->resource);
drivers/gpu/drm/i915/i915_vma.c
571
vma->resource = NULL;
drivers/gpu/drm/i915/i915_vma.c
575
vma->ops->bind_vma(vma->vm, NULL, vma->resource, pat_index,
drivers/gpu/drm/i915/i915_vma.h
470
return i915_vma_resource_get(vma->resource);
drivers/gpu/drm/i915/i915_vma_types.h
252
struct i915_vma_resource *resource;
drivers/gpu/drm/i915/intel_memory_region.h
65
struct resource region;
drivers/gpu/drm/i915/intel_memory_region.h
67
struct resource io;
drivers/gpu/drm/i915/selftests/i915_gem_gtt.c
1125
expected_vma_size = round_up(size, 1 << (ffs(vma->resource->page_sizes_gtt) - 1));
drivers/gpu/drm/i915/selftests/i915_gem_gtt.c
1453
vma->resource->bi.pages = vma->pages;
drivers/gpu/drm/i915/selftests/i915_gem_gtt.c
1529
vma->resource = vma_res;
drivers/gpu/drm/i915/selftests/i915_gem_gtt.c
1709
vma->resource = vma_res;
drivers/gpu/drm/imagination/pvr_device.c
59
struct resource *regs_resource;
drivers/gpu/drm/imagination/pvr_device.h
118
struct resource *regs_resource;
drivers/gpu/drm/imx/dc/dc-cf.c
89
struct resource *res_pec;
drivers/gpu/drm/imx/dc/dc-de.c
55
struct resource *res_top;
drivers/gpu/drm/imx/dc/dc-drv.h
85
int info_cnt, struct resource *res)
drivers/gpu/drm/imx/dc/dc-ed.c
195
struct resource *res_pec;
drivers/gpu/drm/imx/dc/dc-fg.c
307
struct resource *res;
drivers/gpu/drm/imx/dc/dc-fl.c
100
struct resource *res_pec;
drivers/gpu/drm/imx/dc/dc-fw.c
129
struct resource *res_pec;
drivers/gpu/drm/imx/dc/dc-lb.c
249
struct resource *res_pec;
drivers/gpu/drm/imx/dc/dc-tc.c
77
struct resource *res;
drivers/gpu/drm/imx/dcss/dcss-dev.c
167
struct resource *res;
drivers/gpu/drm/ingenic/ingenic-drm-drv.c
1102
struct resource *res;
drivers/gpu/drm/kmb/kmb_drv.c
99
struct resource *res;
drivers/gpu/drm/kmb/kmb_dsi.c
1466
struct resource *res;
drivers/gpu/drm/logicvc/logicvc_drm.c
304
struct resource res;
drivers/gpu/drm/loongson/lsdc_drv.c
346
struct ttm_resource *resource = tbo->resource;
drivers/gpu/drm/loongson/lsdc_drv.c
351
lsdc_mem_type_to_str(resource->mem_type), pin_count);
drivers/gpu/drm/loongson/lsdc_drv.c
356
if (resource->mem_type == TTM_PL_VRAM) {
drivers/gpu/drm/loongson/lsdc_gem.c
275
struct ttm_resource *resource = tbo->resource;
drivers/gpu/drm/loongson/lsdc_gem.c
279
lsdc_mem_type_to_str(resource->mem_type),
drivers/gpu/drm/loongson/lsdc_ttm.c
143
struct ttm_resource *resource = tbo->resource;
drivers/gpu/drm/loongson/lsdc_ttm.c
146
switch (resource->mem_type) {
drivers/gpu/drm/loongson/lsdc_ttm.c
166
struct ttm_resource *old_mem = tbo->resource;
drivers/gpu/drm/loongson/lsdc_ttm.c
206
ttm_resource_free(tbo, &tbo->resource);
drivers/gpu/drm/loongson/lsdc_ttm.c
257
struct ttm_resource *resource = tbo->resource;
drivers/gpu/drm/loongson/lsdc_ttm.c
264
if (unlikely(resource->mem_type == TTM_PL_SYSTEM))
drivers/gpu/drm/loongson/lsdc_ttm.c
267
return resource->start << PAGE_SHIFT;
drivers/gpu/drm/loongson/lsdc_ttm.c
336
if (tbo->resource->mem_type == TTM_PL_VRAM)
drivers/gpu/drm/loongson/lsdc_ttm.c
338
else if (tbo->resource->mem_type == TTM_PL_TT)
drivers/gpu/drm/mediatek/mtk_hdmi_ddc.c
273
struct resource *mem;
drivers/gpu/drm/mediatek/mtk_padding.c
98
struct resource *res;
drivers/gpu/drm/meson/meson_drv.c
187
struct resource *res;
drivers/gpu/drm/mgag200/mgag200_drv.c
122
struct resource *res;
drivers/gpu/drm/mgag200/mgag200_drv.h
272
struct resource *rmmio_res;
drivers/gpu/drm/mgag200/mgag200_drv.h
276
struct resource *vram_res;
drivers/gpu/drm/msm/adreno/a6xx_gmu.c
2034
struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
drivers/gpu/drm/msm/adreno/a6xx_gmu.c
2061
struct resource *res;
drivers/gpu/drm/msm/adreno/a6xx_gmu.c
2148
struct resource *res;
drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c
450
struct resource *res;
drivers/gpu/drm/msm/adreno/adreno_gpu.c
37
struct resource r;
drivers/gpu/drm/msm/dp/dp_display.c
1222
struct resource *res;
drivers/gpu/drm/msm/dp/dp_display.c
1291
struct resource *res;
drivers/gpu/drm/msm/dsi/dsi_host.c
1945
struct resource *res;
drivers/gpu/drm/msm/dsi/phy/dsi_phy.c
595
struct resource *res;
drivers/gpu/drm/msm/hdmi/hdmi.c
274
struct resource *res;
drivers/gpu/drm/msm/msm_io_utils.c
57
struct resource *res;
drivers/gpu/drm/msm/msm_io_utils.c
69
struct resource *res;
drivers/gpu/drm/nouveau/nouveau_abi16.c
430
if (chan->chan->push.buffer->bo.resource->mem_type == TTM_PL_VRAM)
drivers/gpu/drm/nouveau/nouveau_bo.c
1152
struct ttm_resource *old_reg = bo->resource;
drivers/gpu/drm/nouveau/nouveau_bo.c
1190
ttm_resource_free(bo, &bo->resource);
drivers/gpu/drm/nouveau/nouveau_bo.c
1226
nouveau_bo_move_ntfy(bo, bo->resource);
drivers/gpu/drm/nouveau/nouveau_bo.c
1352
nouveau_ttm_io_mem_free_locked(drm, nvbo->bo.resource);
drivers/gpu/drm/nouveau/nouveau_bo.c
1353
nvbo->bo.resource->bus.offset = 0;
drivers/gpu/drm/nouveau/nouveau_bo.c
1354
nvbo->bo.resource->bus.addr = NULL;
drivers/gpu/drm/nouveau/nouveau_bo.c
1384
if (bo->resource->mem_type != TTM_PL_VRAM) {
drivers/gpu/drm/nouveau/nouveau_bo.c
1389
if (bo->resource->mem_type != TTM_PL_SYSTEM)
drivers/gpu/drm/nouveau/nouveau_bo.c
1397
bo->resource->start + PFN_UP(bo->resource->size) < mappable)
drivers/gpu/drm/nouveau/nouveau_bo.c
565
switch (bo->resource->mem_type) {
drivers/gpu/drm/nouveau/nouveau_bo.c
579
bo->resource->mem_type, domain);
drivers/gpu/drm/nouveau/nouveau_bo.c
600
switch (bo->resource->mem_type) {
drivers/gpu/drm/nouveau/nouveau_bo.c
626
switch (bo->resource->mem_type) {
drivers/gpu/drm/nouveau/nouveau_bo.c
890
switch (bo->resource->mem_type) {
drivers/gpu/drm/nouveau/nouveau_bo.c
907
struct nouveau_mem *old_mem = nouveau_mem(bo->resource);
drivers/gpu/drm/nouveau/nouveau_bo.c
965
ret = drm->ttm.move(chan, bo, bo->resource, new_reg);
drivers/gpu/drm/nouveau/nouveau_chan.c
204
if (chan->push.buffer->bo.resource->mem_type == TTM_PL_VRAM) {
drivers/gpu/drm/nouveau/nouveau_dmem.c
300
struct resource *res;
drivers/gpu/drm/nouveau/nouveau_gem.c
309
else if (nvbo->bo.resource->mem_type == TTM_PL_TT)
drivers/gpu/drm/nouveau/nouveau_gem.c
387
bo->resource->mem_type == TTM_PL_VRAM)
drivers/gpu/drm/nouveau/nouveau_gem.c
391
bo->resource->mem_type == TTM_PL_TT)
drivers/gpu/drm/nouveau/nouveau_gem.c
602
((nvbo->bo.resource->mem_type == TTM_PL_VRAM &&
drivers/gpu/drm/nouveau/nouveau_gem.c
604
(nvbo->bo.resource->mem_type == TTM_PL_TT &&
drivers/gpu/drm/nouveau/nouveau_gem.c
608
if (nvbo->bo.resource->mem_type == TTM_PL_TT)
drivers/gpu/drm/nouveau/nouveau_uvmm.c
483
struct nouveau_mem *mem = nouveau_mem(nvbo->bo.resource);
drivers/gpu/drm/nouveau/nouveau_uvmm.c
849
nouveau_uvma_map(uvma, nouveau_mem(nvbo->bo.resource));
drivers/gpu/drm/nouveau/nouveau_vmm.c
80
struct nouveau_mem *mem = nouveau_mem(nvbo->bo.resource);
drivers/gpu/drm/nouveau/nouveau_vmm.c
99
if (nvbo->bo.resource->mem_type != TTM_PL_SYSTEM &&
drivers/gpu/drm/nouveau/nv17_fence.c
80
struct ttm_resource *reg = priv->bo->bo.resource;
drivers/gpu/drm/nouveau/nv50_fence.c
40
struct ttm_resource *reg = priv->bo->bo.resource;
drivers/gpu/drm/nouveau/nvkm/engine/device/tegra.c
188
static struct resource *
drivers/gpu/drm/nouveau/nvkm/engine/device/tegra.c
208
struct resource *res = nvkm_device_tegra_resource(device, bar);
drivers/gpu/drm/nouveau/nvkm/engine/device/tegra.c
215
struct resource *res = nvkm_device_tegra_resource(device, bar);
drivers/gpu/drm/omapdrm/dss/dsi.c
4892
struct resource *dsi_mem;
drivers/gpu/drm/omapdrm/dss/hdmi_wp.c
281
struct resource *res;
drivers/gpu/drm/omapdrm/omap_dmm_tiler.c
775
struct resource *mem;
drivers/gpu/drm/panthor/panthor_device.c
193
struct resource *res;
drivers/gpu/drm/qxl/qxl_drv.h
284
(bo->tbo.resource->mem_type == TTM_PL_VRAM)
drivers/gpu/drm/qxl/qxl_drv.h
289
return slot->high_bits | ((bo->tbo.resource->start << PAGE_SHIFT) + offset);
drivers/gpu/drm/qxl/qxl_object.c
215
if (bo->tbo.resource->mem_type == TTM_PL_VRAM)
drivers/gpu/drm/qxl/qxl_object.c
217
else if (bo->tbo.resource->mem_type == TTM_PL_PRIV)
drivers/gpu/drm/qxl/qxl_object.c
222
offset = bo->tbo.resource->start << PAGE_SHIFT;
drivers/gpu/drm/qxl/qxl_object.c
269
if ((bo->tbo.resource->mem_type != TTM_PL_VRAM) &&
drivers/gpu/drm/qxl/qxl_object.c
270
(bo->tbo.resource->mem_type != TTM_PL_PRIV))
drivers/gpu/drm/qxl/qxl_ttm.c
128
if (!qxl_ttm_bo_is_qxl_bo(bo) || !bo->resource)
drivers/gpu/drm/qxl/qxl_ttm.c
133
if (bo->resource->mem_type == TTM_PL_PRIV && qbo->surface_id)
drivers/gpu/drm/qxl/qxl_ttm.c
142
struct ttm_resource *old_mem = bo->resource;
drivers/gpu/drm/radeon/radeon_cs.c
522
rdev->ring_tmp_bo.bo->tbo.resource);
drivers/gpu/drm/radeon/radeon_cs.c
536
r = radeon_vm_bo_update(rdev, bo_va, bo->tbo.resource);
drivers/gpu/drm/radeon/radeon_gem.c
515
cur_placement = READ_ONCE(robj->tbo.resource->mem_type);
drivers/gpu/drm/radeon/radeon_gem.c
546
cur_placement = READ_ONCE(robj->tbo.resource->mem_type);
drivers/gpu/drm/radeon/radeon_gem.c
637
domain = radeon_mem_type_to_domain(entry->robj->tbo.resource->mem_type);
drivers/gpu/drm/radeon/radeon_gem.c
650
r = radeon_vm_bo_update(rdev, bo_va, bo_va->bo->tbo.resource);
drivers/gpu/drm/radeon/radeon_gem.c
876
domain = radeon_mem_type_to_domain(rbo->tbo.resource->mem_type);
drivers/gpu/drm/radeon/radeon_object.c
340
if (bo->tbo.resource->mem_type == TTM_PL_VRAM)
drivers/gpu/drm/radeon/radeon_object.c
492
radeon_mem_type_to_domain(bo->tbo.resource->mem_type);
drivers/gpu/drm/radeon/radeon_object.c
584
bo->tbo.resource->start << PAGE_SHIFT,
drivers/gpu/drm/radeon/radeon_object.c
690
if (bo->tbo.resource->mem_type != TTM_PL_VRAM) {
drivers/gpu/drm/radeon/radeon_object.c
730
if (bo->resource->mem_type != TTM_PL_VRAM)
drivers/gpu/drm/radeon/radeon_object.c
733
size = bo->resource->size;
drivers/gpu/drm/radeon/radeon_object.c
734
offset = bo->resource->start << PAGE_SHIFT;
drivers/gpu/drm/radeon/radeon_object.c
756
offset = bo->resource->start << PAGE_SHIFT;
drivers/gpu/drm/radeon/radeon_object.h
107
return (bo->tbo.resource->start << PAGE_SHIFT) + start;
drivers/gpu/drm/radeon/radeon_object.h
98
switch (bo->tbo.resource->mem_type) {
drivers/gpu/drm/radeon/radeon_pm.c
158
if (bo->tbo.resource->mem_type == TTM_PL_VRAM)
drivers/gpu/drm/radeon/radeon_trace.h
25
__entry->pages = PFN_UP(bo->tbo.resource->size);
drivers/gpu/drm/radeon/radeon_ttm.c
100
switch (bo->resource->mem_type) {
drivers/gpu/drm/radeon/radeon_ttm.c
105
bo->resource->start < (rbo->rdev->mc.visible_vram_size >> PAGE_SHIFT)) {
drivers/gpu/drm/radeon/radeon_ttm.c
193
struct ttm_resource *old_mem = bo->resource;
drivers/gpu/drm/rockchip/analogix_dp-rockchip.c
451
struct resource *res;
drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c
1366
struct resource *res;
drivers/gpu/drm/rockchip/dw-mipi-dsi2-rockchip.c
381
struct resource *res;
drivers/gpu/drm/rockchip/dw_hdmi_qp-rockchip.c
472
struct resource *res;
drivers/gpu/drm/rockchip/rockchip_drm_vop.c
2189
struct resource *res;
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
2623
struct resource *res;
drivers/gpu/drm/rockchip/rockchip_drm_vop2.h
303
struct resource *res;
drivers/gpu/drm/sti/sti_hda.c
743
struct resource *res;
drivers/gpu/drm/sysfb/drm_sysfb_helper.h
43
struct resource *drm_sysfb_get_memory_si(struct drm_device *dev,
drivers/gpu/drm/sysfb/drm_sysfb_helper.h
45
struct resource *res);
drivers/gpu/drm/sysfb/drm_sysfb_screen_info.c
38
struct resource *drm_sysfb_get_memory_si(struct drm_device *dev,
drivers/gpu/drm/sysfb/drm_sysfb_screen_info.c
40
struct resource *res)
drivers/gpu/drm/sysfb/efidrm.c
148
struct resource resbuf;
drivers/gpu/drm/sysfb/efidrm.c
149
struct resource *res;
drivers/gpu/drm/sysfb/efidrm.c
153
struct resource *mem = NULL;
drivers/gpu/drm/sysfb/ofdrm.c
397
static struct resource *ofdrm_find_fb_resource(struct ofdrm_device *odev,
drivers/gpu/drm/sysfb/ofdrm.c
398
struct resource *fb_res)
drivers/gpu/drm/sysfb/ofdrm.c
401
struct resource *res, *max_res = NULL;
drivers/gpu/drm/sysfb/ofdrm.c
830
struct resource *res, *mem;
drivers/gpu/drm/sysfb/ofdrm.c
926
struct resource fb_res = DEFINE_RES_MEM(address, fb_size);
drivers/gpu/drm/sysfb/ofdrm.c
936
struct resource fb_res = DEFINE_RES_MEM(0u, fb_size);
drivers/gpu/drm/sysfb/simpledrm.c
181
static struct resource *
drivers/gpu/drm/sysfb/simpledrm.c
184
struct resource r, *res;
drivers/gpu/drm/sysfb/simpledrm.c
605
struct resource *res, *mem = NULL;
drivers/gpu/drm/sysfb/vesadrm.c
398
struct resource resbuf;
drivers/gpu/drm/sysfb/vesadrm.c
399
struct resource *res;
drivers/gpu/drm/sysfb/vesadrm.c
403
struct resource *mem = NULL;
drivers/gpu/drm/tiny/bochs.c
236
if (pdev->resource[2].flags & IORESOURCE_MEM) {
drivers/gpu/drm/tiny/bochs.c
270
if ((pdev->resource[0].flags & IORESOURCE_MEM) == 0)
drivers/gpu/drm/ttm/tests/ttm_bo_test.c
264
bo->resource = res1;
drivers/gpu/drm/ttm/tests/ttm_bo_test.c
305
bo->resource = res1;
drivers/gpu/drm/ttm/tests/ttm_bo_test.c
360
bo1->resource = res1;
drivers/gpu/drm/ttm/tests/ttm_bo_test.c
368
bo2->resource = res2;
drivers/gpu/drm/ttm/tests/ttm_bo_test.c
406
bo->resource = res;
drivers/gpu/drm/ttm/tests/ttm_bo_test.c
523
bo->resource = res;
drivers/gpu/drm/ttm/tests/ttm_bo_test.c
574
bo->resource = res;
drivers/gpu/drm/ttm/tests/ttm_bo_validate_test.c
1026
KUNIT_EXPECT_EQ(test, bo_init->resource->mem_type, mem_type);
drivers/gpu/drm/ttm/tests/ttm_bo_validate_test.c
1027
KUNIT_EXPECT_NULL(test, bo_val->resource);
drivers/gpu/drm/ttm/tests/ttm_bo_validate_test.c
1070
KUNIT_EXPECT_EQ(test, bo->resource->mem_type, mem_type);
drivers/gpu/drm/ttm/tests/ttm_bo_validate_test.c
1071
KUNIT_ASSERT_NULL(test, bo_evict->resource);
drivers/gpu/drm/ttm/tests/ttm_bo_validate_test.c
146
ttm_resource_free(bo, &bo->resource);
drivers/gpu/drm/ttm/tests/ttm_bo_validate_test.c
188
ttm_resource_free(bo, &bo->resource);
drivers/gpu/drm/ttm/tests/ttm_bo_validate_test.c
223
ttm_resource_free(bo, &bo->resource);
drivers/gpu/drm/ttm/tests/ttm_bo_validate_test.c
264
KUNIT_EXPECT_EQ(test, bo->resource->mem_type, snd_mem);
drivers/gpu/drm/ttm/tests/ttm_bo_validate_test.c
265
KUNIT_EXPECT_EQ(test, bo->resource->placement,
drivers/gpu/drm/ttm/tests/ttm_bo_validate_test.c
452
KUNIT_EXPECT_EQ(test, bo->resource->mem_type, snd_mem);
drivers/gpu/drm/ttm/tests/ttm_bo_validate_test.c
496
KUNIT_EXPECT_EQ(test, bo->resource->mem_type, final_mem);
drivers/gpu/drm/ttm/tests/ttm_bo_validate_test.c
550
err = ttm_resource_alloc(bo, place, &bo->resource, NULL);
drivers/gpu/drm/ttm/tests/ttm_bo_validate_test.c
607
err = ttm_resource_alloc(bo, place, &bo->resource, NULL);
drivers/gpu/drm/ttm/tests/ttm_bo_validate_test.c
628
KUNIT_ASSERT_NULL(test, bo->resource);
drivers/gpu/drm/ttm/tests/ttm_bo_validate_test.c
668
KUNIT_EXPECT_EQ(test, bo->resource->mem_type, mem_type);
drivers/gpu/drm/ttm/tests/ttm_bo_validate_test.c
753
KUNIT_EXPECT_EQ(test, bo->resource->mem_type, snd_mem);
drivers/gpu/drm/ttm/tests/ttm_bo_validate_test.c
755
KUNIT_EXPECT_EQ(test, bo->resource->mem_type, fst_mem);
drivers/gpu/drm/ttm/tests/ttm_bo_validate_test.c
804
KUNIT_EXPECT_EQ(test, bos[0].resource->mem_type, mem_type_evict);
drivers/gpu/drm/ttm/tests/ttm_bo_validate_test.c
808
KUNIT_EXPECT_EQ(test, bos[1].resource->mem_type, mem_type);
drivers/gpu/drm/ttm/tests/ttm_bo_validate_test.c
915
KUNIT_EXPECT_EQ(test, bo->resource->mem_type, mem_type);
drivers/gpu/drm/ttm/tests/ttm_bo_validate_test.c
916
KUNIT_EXPECT_EQ(test, bo_pinned->resource->mem_type, mem_type);
drivers/gpu/drm/ttm/tests/ttm_bo_validate_test.c
917
KUNIT_EXPECT_EQ(test, bo_evictable->resource->mem_type, mem_type_evict);
drivers/gpu/drm/ttm/tests/ttm_bo_validate_test.c
972
KUNIT_EXPECT_EQ(test, bo_small->resource->mem_type, mem_type);
drivers/gpu/drm/ttm/tests/ttm_bo_validate_test.c
975
KUNIT_EXPECT_NULL(test, bo_big->resource);
drivers/gpu/drm/ttm/tests/ttm_kunit_helpers.c
68
struct ttm_resource *old_mem = bo->resource;
drivers/gpu/drm/ttm/tests/ttm_kunit_helpers.c
75
if (bo->resource->mem_type == TTM_PL_VRAM &&
drivers/gpu/drm/ttm/tests/ttm_kunit_helpers.c
98
switch (bo->resource->mem_type) {
drivers/gpu/drm/ttm/ttm_bo.c
1058
ttm_mem_io_free(bdev, bo->resource);
drivers/gpu/drm/ttm/ttm_bo.c
111
if (bo->resource)
drivers/gpu/drm/ttm/ttm_bo.c
1110
struct ttm_place place = { .mem_type = bo->resource->mem_type };
drivers/gpu/drm/ttm/ttm_bo.c
112
ttm_resource_del_bulk_move(bo->resource, bo);
drivers/gpu/drm/ttm/ttm_bo.c
114
if (bo->resource)
drivers/gpu/drm/ttm/ttm_bo.c
115
ttm_resource_add_bulk_move(bo->resource, bo);
drivers/gpu/drm/ttm/ttm_bo.c
1150
if (bo->resource->mem_type != TTM_PL_SYSTEM) {
drivers/gpu/drm/ttm/ttm_bo.c
1182
ttm_resource_del_bulk_move(bo->resource, bo);
drivers/gpu/drm/ttm/ttm_bo.c
1189
ttm_resource_add_bulk_move(bo->resource, bo);
drivers/gpu/drm/ttm/ttm_bo.c
1190
ttm_resource_move_to_lru_tail(bo->resource);
drivers/gpu/drm/ttm/ttm_bo.c
1280
bo->resource) {
drivers/gpu/drm/ttm/ttm_bo.c
1282
ttm_resource_add_bulk_move(bo->resource, bo);
drivers/gpu/drm/ttm/ttm_bo.c
1283
ttm_resource_move_to_lru_tail(bo->resource);
drivers/gpu/drm/ttm/ttm_bo.c
129
old_use_tt = !bo->resource || ttm_manager_type(bdev, bo->resource->mem_type)->use_tt;
drivers/gpu/drm/ttm/ttm_bo.c
188
ttm_resource_free(bo, &bo->resource);
drivers/gpu/drm/ttm/ttm_bo.c
275
ttm_mem_io_free(bdev, bo->resource);
drivers/gpu/drm/ttm/ttm_bo.c
298
ttm_resource_move_to_lru_tail(bo->resource);
drivers/gpu/drm/ttm/ttm_bo.c
424
struct ttm_resource *res = bo->resource;
drivers/gpu/drm/ttm/ttm_bo.c
471
if (!bo->resource || bo->resource->mem_type != mem_type)
drivers/gpu/drm/ttm/ttm_bo.c
521
if (!dmem_cgroup_state_evict_valuable(evict_walk->limit_pool, bo->resource->css,
drivers/gpu/drm/ttm/ttm_bo.c
630
if (bo->resource)
drivers/gpu/drm/ttm/ttm_bo.c
631
ttm_resource_del_bulk_move(bo->resource, bo);
drivers/gpu/drm/ttm/ttm_bo.c
632
if (!bo->pin_count++ && bo->resource)
drivers/gpu/drm/ttm/ttm_bo.c
633
ttm_resource_move_to_lru_tail(bo->resource);
drivers/gpu/drm/ttm/ttm_bo.c
652
if (!--bo->pin_count && bo->resource) {
drivers/gpu/drm/ttm/ttm_bo.c
653
ttm_resource_add_bulk_move(bo->resource, bo);
drivers/gpu/drm/ttm/ttm_bo.c
654
ttm_resource_move_to_lru_tail(bo->resource);
drivers/gpu/drm/ttm/ttm_bo.c
83
if (bo->resource)
drivers/gpu/drm/ttm/ttm_bo.c
839
if (bo->resource &&
drivers/gpu/drm/ttm/ttm_bo.c
84
ttm_resource_move_to_lru_tail(bo->resource);
drivers/gpu/drm/ttm/ttm_bo.c
840
ttm_resource_compatible(bo->resource, placement,
drivers/gpu/drm/ttm/ttm_bo.c
888
if (!bo->resource || bo->resource->mem_type == TTM_PL_SYSTEM) {
drivers/gpu/drm/ttm/ttm_bo_util.c
1024
if (!ret && bo->resource && bo->resource->mem_type == mem_type)
drivers/gpu/drm/ttm/ttm_bo_util.c
1099
if (flags.allow_move && bo->resource->mem_type != TTM_PL_SYSTEM) {
drivers/gpu/drm/ttm/ttm_bo_util.c
1117
ttm_resource_del_bulk_move(bo->resource, bo);
drivers/gpu/drm/ttm/ttm_bo_util.c
1127
ttm_resource_add_bulk_move(bo->resource, bo);
drivers/gpu/drm/ttm/ttm_bo_util.c
154
struct ttm_resource *src_mem = bo->resource;
drivers/gpu/drm/ttm/ttm_bo_util.c
268
if (fbo->base.resource) {
drivers/gpu/drm/ttm/ttm_bo_util.c
269
ttm_resource_set_bo(fbo->base.resource, &fbo->base);
drivers/gpu/drm/ttm/ttm_bo_util.c
270
bo->resource = NULL;
drivers/gpu/drm/ttm/ttm_bo_util.c
319
struct ttm_resource *mem = bo->resource;
drivers/gpu/drm/ttm/ttm_bo_util.c
345
struct ttm_resource *mem = bo->resource;
drivers/gpu/drm/ttm/ttm_bo_util.c
398
if (page + 1 > PFN_UP(bo->resource->size))
drivers/gpu/drm/ttm/ttm_bo_util.c
401
if (!bo->resource->bus.is_iomem && bo->ttm->pages && bo->ttm->pages[page])
drivers/gpu/drm/ttm/ttm_bo_util.c
428
struct ttm_resource *res = bo->resource;
drivers/gpu/drm/ttm/ttm_bo_util.c
478
ttm_mem_io_free(map->bo->bdev, map->bo->resource);
drivers/gpu/drm/ttm/ttm_bo_util.c
500
struct ttm_resource *mem = bo->resource;
drivers/gpu/drm/ttm/ttm_bo_util.c
566
struct ttm_resource *mem = bo->resource;
drivers/gpu/drm/ttm/ttm_bo_util.c
597
ttm_resource_free(bo, &bo->resource);
drivers/gpu/drm/ttm/ttm_bo_util.c
646
from = ttm_manager_type(bo->bdev, bo->resource->mem_type);
drivers/gpu/drm/ttm/ttm_bo_util.c
681
ttm_resource_free(bo, &bo->resource);
drivers/gpu/drm/ttm/ttm_bo_util.c
707
struct ttm_resource_manager *from = ttm_manager_type(bdev, bo->resource->mem_type);
drivers/gpu/drm/ttm/ttm_bo_util.c
781
ttm_resource_free(bo, &bo->resource);
drivers/gpu/drm/ttm/ttm_bo_vm.c
207
err = ttm_mem_io_reserve(bo->bdev, bo->resource);
drivers/gpu/drm/ttm/ttm_bo_vm.c
219
prot = ttm_io_prot(bo, bo->resource, prot);
drivers/gpu/drm/ttm/ttm_bo_vm.c
220
if (!bo->resource->bus.is_iomem) {
drivers/gpu/drm/ttm/ttm_bo_vm.c
246
if (bo->resource->bus.is_iomem) {
drivers/gpu/drm/ttm/ttm_bo_vm.c
435
if (!bo->resource) {
drivers/gpu/drm/ttm/ttm_bo_vm.c
440
switch (bo->resource->mem_type) {
drivers/gpu/drm/ttm/ttm_bo_vm.c
94
return (bo->resource->bus.offset >> PAGE_SHIFT) + page_offset;
drivers/gpu/drm/ttm/ttm_device.c
291
list_del_init(&bo->resource->lru.link);
drivers/gpu/drm/ttm/ttm_resource.c
267
if (bo->resource != res || !bo->ttm)
drivers/gpu/drm/vc4/vc4_hdmi.c
3021
struct resource *res;
drivers/gpu/drm/vmwgfx/vmwgfx_blit.c
464
size_t dst_size = dst->tbo.resource->size;
drivers/gpu/drm/vmwgfx/vmwgfx_blit.c
465
size_t src_size = src->tbo.resource->size;
drivers/gpu/drm/vmwgfx/vmwgfx_blit.c
615
d.dst_num_pages = PFN_UP(dst->resource->size);
drivers/gpu/drm/vmwgfx/vmwgfx_blit.c
616
d.src_num_pages = PFN_UP(src->resource->size);
drivers/gpu/drm/vmwgfx/vmwgfx_blit.c
617
d.dst_prot = ttm_io_prot(dst, dst->resource, PAGE_KERNEL);
drivers/gpu/drm/vmwgfx/vmwgfx_blit.c
618
d.src_prot = ttm_io_prot(src, src->resource, PAGE_KERNEL);
drivers/gpu/drm/vmwgfx/vmwgfx_bo.c
211
if (bo->resource->mem_type == TTM_PL_VRAM &&
drivers/gpu/drm/vmwgfx/vmwgfx_bo.c
212
bo->resource->start < PFN_UP(bo->resource->size) &&
drivers/gpu/drm/vmwgfx/vmwgfx_bo.c
213
bo->resource->start > 0 &&
drivers/gpu/drm/vmwgfx/vmwgfx_bo.c
225
buf->places[0].lpfn = PFN_UP(bo->resource->size);
drivers/gpu/drm/vmwgfx/vmwgfx_bo.c
229
WARN_ON(ret == 0 && bo->resource->start != 0);
drivers/gpu/drm/vmwgfx/vmwgfx_bo.c
280
if (bo->resource->mem_type == TTM_PL_VRAM) {
drivers/gpu/drm/vmwgfx/vmwgfx_bo.c
282
ptr->offset = bo->resource->start << PAGE_SHIFT;
drivers/gpu/drm/vmwgfx/vmwgfx_bo.c
284
ptr->gmrId = bo->resource->start;
drivers/gpu/drm/vmwgfx/vmwgfx_bo.c
303
uint32_t old_mem_type = bo->resource->mem_type;
drivers/gpu/drm/vmwgfx/vmwgfx_bo.c
313
pl.mem_type = bo->resource->mem_type;
drivers/gpu/drm/vmwgfx/vmwgfx_bo.c
314
pl.flags = bo->resource->placement;
drivers/gpu/drm/vmwgfx/vmwgfx_bo.c
322
BUG_ON(ret != 0 || bo->resource->mem_type != old_mem_type);
drivers/gpu/drm/vmwgfx/vmwgfx_bo.c
725
if (mem->mem_type == TTM_PL_VRAM || bo->resource->mem_type == TTM_PL_VRAM)
drivers/gpu/drm/vmwgfx/vmwgfx_bo.c
733
if (mem->mem_type != VMW_PL_MOB && bo->resource->mem_type == VMW_PL_MOB)
drivers/gpu/drm/vmwgfx/vmwgfx_bo.c
820
if (drm_debug_enabled(DRM_UT_DRIVER) && bo->tbo.resource) {
drivers/gpu/drm/vmwgfx/vmwgfx_bo.c
822
if (bo->tbo.resource->mem_type == TTM_PL_SYSTEM ||
drivers/gpu/drm/vmwgfx/vmwgfx_bo.c
823
bo->tbo.resource->mem_type == pl->placement[i].mem_type)
drivers/gpu/drm/vmwgfx/vmwgfx_bo.c
830
__func__, bo->tbo.resource->mem_type, domain);
drivers/gpu/drm/vmwgfx/vmwgfx_bo.c
889
WARN_ON(vbo->tbo.resource->mem_type != VMW_PL_MOB);
drivers/gpu/drm/vmwgfx/vmwgfx_bo.c
890
return (s32)vbo->tbo.resource->start;
drivers/gpu/drm/vmwgfx/vmwgfx_cmd.c
586
if (bo->resource->mem_type == TTM_PL_VRAM) {
drivers/gpu/drm/vmwgfx/vmwgfx_cmd.c
588
cmd->body.guestResult.offset = bo->resource->start << PAGE_SHIFT;
drivers/gpu/drm/vmwgfx/vmwgfx_cmd.c
590
cmd->body.guestResult.gmrId = bo->resource->start;
drivers/gpu/drm/vmwgfx/vmwgfx_cmd.c
631
BUG_ON(bo->resource->mem_type != VMW_PL_MOB);
drivers/gpu/drm/vmwgfx/vmwgfx_cmd.c
632
cmd->body.mobid = bo->resource->start;
drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c
894
cb_hdr->ptr.mob.mobid = man->cmd_space->tbo.resource->start;
drivers/gpu/drm/vmwgfx/vmwgfx_context.c
351
BUG_ON(bo->resource->mem_type != VMW_PL_MOB);
drivers/gpu/drm/vmwgfx/vmwgfx_context.c
360
cmd->body.mobid = bo->resource->start;
drivers/gpu/drm/vmwgfx/vmwgfx_context.c
390
BUG_ON(bo->resource->mem_type != VMW_PL_MOB);
drivers/gpu/drm/vmwgfx/vmwgfx_context.c
518
BUG_ON(bo->resource->mem_type != VMW_PL_MOB);
drivers/gpu/drm/vmwgfx/vmwgfx_context.c
527
cmd->body.mobid = bo->resource->start;
drivers/gpu/drm/vmwgfx/vmwgfx_context.c
599
BUG_ON(bo->resource->mem_type != VMW_PL_MOB);
drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c
191
WARN_ON_ONCE(bo->resource->mem_type != VMW_PL_MOB);
drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c
199
WARN_ON(bo->resource->mem_type != VMW_PL_MOB);
drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c
204
cmd->body.mobid = bo->resource->start;
drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c
333
WARN_ON_ONCE(bo->resource->mem_type != VMW_PL_MOB);
drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c
454
for (i = 0; i < PFN_UP(old_bo->resource->size); ++i) {
drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c
1019
if (unlikely(PFN_UP(new_query_bo->tbo.resource->size) > 4)) {
drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c
3763
switch (bo->resource->mem_type) {
drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c
3765
reloc->location->offset += bo->resource->start << PAGE_SHIFT;
drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c
3769
reloc->location->gmrId = bo->resource->start;
drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c
3772
*reloc->mob_loc = bo->resource->start;
drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c
708
cmd->body.mobid = dx_query_mob->tbo.resource->start;
drivers/gpu/drm/vmwgfx/vmwgfx_gem.c
249
switch (bo->tbo.resource->mem_type) {
drivers/gpu/drm/vmwgfx/vmwgfx_page_dirty.c
219
pgoff_t num_pages = PFN_UP(vbo->tbo.resource->size);
drivers/gpu/drm/vmwgfx/vmwgfx_page_dirty.c
423
if (unlikely(page_offset >= PFN_UP(bo->resource->size))) {
drivers/gpu/drm/vmwgfx/vmwgfx_page_dirty.c
465
if (page_offset >= PFN_UP(bo->resource->size) ||
drivers/gpu/drm/vmwgfx/vmwgfx_shader.c
255
BUG_ON(bo->resource->mem_type != VMW_PL_MOB);
drivers/gpu/drm/vmwgfx/vmwgfx_shader.c
264
cmd->body.mobid = bo->resource->start;
drivers/gpu/drm/vmwgfx/vmwgfx_shader.c
283
BUG_ON(res->guest_memory_bo->tbo.resource->mem_type != VMW_PL_MOB);
drivers/gpu/drm/vmwgfx/vmwgfx_shader.c
403
cmd->body.mobid = res->guest_memory_bo->tbo.resource->start;
drivers/gpu/drm/vmwgfx/vmwgfx_shader.c
451
BUG_ON(bo->resource->mem_type != VMW_PL_MOB);
drivers/gpu/drm/vmwgfx/vmwgfx_shader.c
514
BUG_ON(res->guest_memory_bo->tbo.resource->mem_type != VMW_PL_MOB);
drivers/gpu/drm/vmwgfx/vmwgfx_streamoutput.c
109
cmd->body.mobid = res->guest_memory_bo->tbo.resource->start;
drivers/gpu/drm/vmwgfx/vmwgfx_streamoutput.c
145
if (WARN_ON(bo->resource->mem_type != VMW_PL_MOB))
drivers/gpu/drm/vmwgfx/vmwgfx_streamoutput.c
200
if (WARN_ON(res->guest_memory_bo->tbo.resource->mem_type != VMW_PL_MOB))
drivers/gpu/drm/vmwgfx/vmwgfx_surface.c
1271
BUG_ON(bo->resource->mem_type != VMW_PL_MOB);
drivers/gpu/drm/vmwgfx/vmwgfx_surface.c
1282
cmd1->body.mobid = bo->resource->start;
drivers/gpu/drm/vmwgfx/vmwgfx_surface.c
1325
BUG_ON(bo->resource->mem_type != VMW_PL_MOB);
drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c
507
if (bo->resource)
drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c
508
old_man = ttm_manager_type(bo->bdev, bo->resource->mem_type);
drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c
516
if (!bo->resource || (bo->resource->mem_type == TTM_PL_SYSTEM &&
drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c
522
vmw_move_notify(bo, bo->resource, new_mem);
drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c
525
if (vmw_memtype_is_system(bo->resource->mem_type)) {
drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c
534
ttm_resource_free(bo, &bo->resource);
drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c
544
vmw_move_notify(bo, new_mem, bo->resource);
drivers/gpu/drm/xe/display/xe_panic.c
58
xe_res_first(bo->ttm.resource, new_page * PAGE_SIZE,
drivers/gpu/drm/xe/display/xe_stolen.c
68
xe_res_first(node->bo->ttm.resource, 0, 4096, &res);
drivers/gpu/drm/xe/tests/xe_bo.c
47
fence = xe_migrate_clear(tile->migrate, bo, bo->ttm.resource,
drivers/gpu/drm/xe/tests/xe_bo.c
535
mem_type = bo->ttm.resource->mem_type;
drivers/gpu/drm/xe/tests/xe_bo.c
542
bo->ttm.resource->mem_type);
drivers/gpu/drm/xe/tests/xe_migrate.c
110
fence = xe_migrate_clear(m, remote, remote->ttm.resource,
drivers/gpu/drm/xe/tests/xe_migrate.c
128
fence = xe_migrate_copy(m, remote, bo, remote->ttm.resource,
drivers/gpu/drm/xe/tests/xe_migrate.c
129
bo->ttm.resource, false);
drivers/gpu/drm/xe/tests/xe_migrate.c
145
fence = xe_migrate_copy(m, bo, remote, bo->ttm.resource,
drivers/gpu/drm/xe/tests/xe_migrate.c
146
remote->ttm.resource, false);
drivers/gpu/drm/xe/tests/xe_migrate.c
175
if (bo->ttm.resource->mem_type == XE_PL_SYSTEM)
drivers/gpu/drm/xe/tests/xe_migrate.c
178
if (bo->ttm.resource->mem_type == XE_PL_VRAM0)
drivers/gpu/drm/xe/tests/xe_migrate.c
253
xe_res_first(pt->ttm.resource, 0, xe_bo_size(pt), &src_it);
drivers/gpu/drm/xe/tests/xe_migrate.c
258
&src_it, XE_PAGE_SIZE, pt->ttm.resource);
drivers/gpu/drm/xe/tests/xe_migrate.c
286
fence = xe_migrate_clear(m, tiny, tiny->ttm.resource,
drivers/gpu/drm/xe/tests/xe_migrate.c
308
fence = xe_migrate_clear(m, big, big->ttm.resource,
drivers/gpu/drm/xe/tests/xe_migrate.c
378
struct ttm_resource *src = src_bo->ttm.resource, *dst = dst_bo->ttm.resource;
drivers/gpu/drm/xe/tests/xe_migrate.c
610
fence = xe_migrate_clear(tile->migrate, vram_bo, vram_bo->ttm.resource,
drivers/gpu/drm/xe/xe_bo.c
1034
if ((!ttm_bo->resource || ttm_bo->resource->mem_type == XE_PL_SYSTEM) &&
drivers/gpu/drm/xe/xe_bo.c
1061
if (bo->resource->mem_type != XE_PL_SYSTEM) {
drivers/gpu/drm/xe/xe_bo.c
107
return resource_is_vram(bo->ttm.resource) ||
drivers/gpu/drm/xe/xe_bo.c
108
resource_is_stolen_vram(xe_bo_device(bo), bo->ttm.resource);
drivers/gpu/drm/xe/xe_bo.c
113
return bo->ttm.resource->mem_type == XE_PL_STOLEN;
drivers/gpu/drm/xe/xe_bo.c
1133
struct ttm_place place = {.mem_type = bo->resource->mem_type};
drivers/gpu/drm/xe/xe_bo.c
1150
if (bo->resource->mem_type != XE_PL_SYSTEM)
drivers/gpu/drm/xe/xe_bo.c
1158
needs_rpm = (!IS_DGFX(xe) && bo->resource->mem_type != XE_PL_SYSTEM &&
drivers/gpu/drm/xe/xe_bo.c
1274
migrate = mem_type_to_migrate(xe, bo->ttm.resource->mem_type);
drivers/gpu/drm/xe/xe_bo.c
1281
fence = xe_migrate_copy(migrate, bo, backup, bo->ttm.resource,
drivers/gpu/drm/xe/xe_bo.c
1282
backup->ttm.resource, false);
drivers/gpu/drm/xe/xe_bo.c
1343
if (WARN_ON(!bo->ttm.resource)) {
drivers/gpu/drm/xe/xe_bo.c
1424
migrate = mem_type_to_migrate(xe, bo->ttm.resource->mem_type);
drivers/gpu/drm/xe/xe_bo.c
1431
backup->ttm.resource, bo->ttm.resource,
drivers/gpu/drm/xe/xe_bo.c
1506
if (ttm_bo->resource->mem_type == XE_PL_STOLEN)
drivers/gpu/drm/xe/xe_bo.c
1509
vram = res_to_mem_region(ttm_bo->resource);
drivers/gpu/drm/xe/xe_bo.c
1510
xe_res_first(ttm_bo->resource, (u64)page_offset << PAGE_SHIFT, 0, &cursor);
drivers/gpu/drm/xe/xe_bo.c
1649
if (!mem_type_is_vram(ttm_bo->resource->mem_type))
drivers/gpu/drm/xe/xe_bo.c
1654
mem_type_to_migrate(xe, ttm_bo->resource->mem_type);
drivers/gpu/drm/xe/xe_bo.c
1661
vram = res_to_mem_region(ttm_bo->resource);
drivers/gpu/drm/xe/xe_bo.c
1662
xe_res_first(ttm_bo->resource, offset & PAGE_MASK,
drivers/gpu/drm/xe/xe_bo.c
1809
if (ttm_manager_type(tbo->bdev, tbo->resource->mem_type)->use_tt) {
drivers/gpu/drm/xe/xe_bo.c
1837
mem_type_is_vram(bo->ttm.resource->mem_type)) {
drivers/gpu/drm/xe/xe_bo.c
3003
xe_res_first(bo->ttm.resource, page << PAGE_SHIFT,
drivers/gpu/drm/xe/xe_bo.c
3005
return cur.start + offset + vram_region_gpu_offset(bo->ttm.resource);
drivers/gpu/drm/xe/xe_bo.c
3439
if (bo->ttm.resource->mem_type == mem_type)
drivers/gpu/drm/xe/xe_bo.c
361
switch (tbo->resource->mem_type) {
drivers/gpu/drm/xe/xe_bo.c
626
return xe_ttm_resource_visible(bo->ttm.resource);
drivers/gpu/drm/xe/xe_bo.c
802
struct ttm_resource *old_mem = ttm_bo->resource;
drivers/gpu/drm/xe/xe_bo.c
845
struct ttm_resource *old_mem = ttm_bo->resource;
drivers/gpu/drm/xe/xe_bo.h
455
return bo->ttm.resource->mem_type == mem_type;
drivers/gpu/drm/xe/xe_dma_buf.c
123
switch (bo->ttm.resource->mem_type) {
drivers/gpu/drm/xe/xe_dma_buf.c
139
bo->ttm.resource, 0,
drivers/gpu/drm/xe/xe_drm_client.c
171
u32 mem_type = bo->ttm.resource->mem_type;
drivers/gpu/drm/xe/xe_ggtt.c
783
pte |= vram_region_gpu_offset(bo->ttm.resource);
drivers/gpu/drm/xe/xe_ggtt.c
785
for (xe_res_first(bo->ttm.resource, 0, xe_bo_size(bo), &cur);
drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c
2593
fence = xe_migrate_clear(m, bo, bo->ttm.resource, XE_MIGRATE_CLEAR_FLAG_FULL);
drivers/gpu/drm/xe/xe_heci_gsc.c
138
adev->bar.parent = &pdev->resource[0];
drivers/gpu/drm/xe/xe_heci_gsc.c
139
adev->bar.start = def->bar + pdev->resource[0].start;
drivers/gpu/drm/xe/xe_i2c.c
116
struct resource res;
drivers/gpu/drm/xe/xe_lmtt.c
478
vram_offset = vram_region_gpu_offset(bo->ttm.resource);
drivers/gpu/drm/xe/xe_lmtt.c
479
xe_res_first(bo->ttm.resource, 0, xe_bo_size(bo), &cur);
drivers/gpu/drm/xe/xe_migrate.c
1103
struct ttm_resource *src = src_bo->ttm.resource;
drivers/gpu/drm/xe/xe_migrate.c
1293
struct ttm_resource *vram = vram_bo->ttm.resource;
drivers/gpu/drm/xe/xe_migrate.c
1294
struct ttm_resource *sysmem = sysmem_bo->ttm.resource;
drivers/gpu/drm/xe/xe_migrate.c
2430
xe_res_first(bo->ttm.resource, offset, xe_bo_size(bo) - offset, &cursor);
drivers/gpu/drm/xe/xe_migrate.c
2434
u64 vram_addr = vram_region_gpu_offset(bo->ttm.resource) +
drivers/gpu/drm/xe/xe_nvm.c
144
nvm->bar.parent = &pdev->resource[0];
drivers/gpu/drm/xe/xe_nvm.c
145
nvm->bar.start = GEN12_GUNIT_NVM_BASE + pdev->resource[0].start;
drivers/gpu/drm/xe/xe_nvm.c
151
nvm->bar2.parent = &pdev->resource[0];
drivers/gpu/drm/xe/xe_nvm.c
152
nvm->bar2.start = GEN12_DEBUG_NVM_BASE + pdev->resource[0].start;
drivers/gpu/drm/xe/xe_pci_rebar.c
45
struct resource *root_res;
drivers/gpu/drm/xe/xe_pt.c
759
xe_walk.dma_offset = bo ? vram_region_gpu_offset(bo->ttm.resource) : 0;
drivers/gpu/drm/xe/xe_pt.c
768
xe_res_first(bo->ttm.resource, xe_vma_bo_offset(vma),
drivers/gpu/drm/xe/xe_svm.c
1075
blocks = &to_xe_ttm_vram_mgr_resource(bo->ttm.resource)->blocks;
drivers/gpu/drm/xe/xe_svm.c
1747
struct resource *res;
drivers/gpu/drm/xe/xe_svm.c
759
struct ttm_resource *res = bo->ttm.resource;
drivers/gpu/drm/xe/xe_ttm_stolen_mgr.c
197
extern struct resource intel_graphics_stolen_res;
drivers/gpu/drm/xe/xe_ttm_stolen_mgr.c
275
xe_res_first(bo->ttm.resource, offset, 4096, &cur);
drivers/gpu/drm/xe/xe_vm.c
4173
switch (bo->ttm.resource->mem_type) {
drivers/gpu/ipu-v3/ipu-common.c
1272
struct resource *res;
drivers/hid/hid-cougar.c
145
static void cougar_remove_shared_data(void *resource)
drivers/hid/hid-cougar.c
147
struct cougar *cougar = resource;
drivers/hsi/controllers/omap_ssi_core.c
322
struct resource *mem;
drivers/hsi/controllers/omap_ssi_port.c
1079
struct resource *mem;
drivers/hsi/controllers/omap_ssi_port.c
1080
struct resource *ioarea;
drivers/hv/vmbus_drv.c
2270
struct resource *new_res;
drivers/hv/vmbus_drv.c
2271
struct resource **old_res = &hyperv_mmio;
drivers/hv/vmbus_drv.c
2272
struct resource **prev_res = NULL;
drivers/hv/vmbus_drv.c
2273
struct resource r;
drivers/hv/vmbus_drv.c
2374
struct resource *cur_res;
drivers/hv/vmbus_drv.c
2375
struct resource *next_res;
drivers/hv/vmbus_drv.c
2409
if (pdev->resource[0].flags & IORESOURCE_MEM) {
drivers/hv/vmbus_drv.c
2457
int vmbus_allocate_mmio(struct resource **new, struct hv_device *device_obj,
drivers/hv/vmbus_drv.c
2462
struct resource *iter, *shadow;
drivers/hv/vmbus_drv.c
2538
struct resource *iter;
drivers/hv/vmbus_drv.c
2655
struct resource **cur_res = &hyperv_mmio;
drivers/hv/vmbus_drv.c
2673
struct resource *res;
drivers/hv/vmbus_drv.c
94
static struct resource *fb_mmio;
drivers/hv/vmbus_drv.c
95
static struct resource *hyperv_mmio;
drivers/hwmon/abituguru.c
1570
struct resource res = { .flags = IORESOURCE_IO };
drivers/hwmon/abituguru3.c
1232
struct resource res = { .flags = IORESOURCE_IO };
drivers/hwmon/acpi_power_meter.c
101
static int update_avg_interval(struct acpi_power_meter_resource *resource)
drivers/hwmon/acpi_power_meter.c
106
status = acpi_evaluate_integer(resource->acpi_dev->handle, "_GAI",
drivers/hwmon/acpi_power_meter.c
109
acpi_evaluation_failure_warn(resource->acpi_dev->handle, "_GAI",
drivers/hwmon/acpi_power_meter.c
114
resource->avg_interval = data;
drivers/hwmon/acpi_power_meter.c
119
static int update_cap(struct acpi_power_meter_resource *resource)
drivers/hwmon/acpi_power_meter.c
124
status = acpi_evaluate_integer(resource->acpi_dev->handle, "_GHL",
drivers/hwmon/acpi_power_meter.c
127
acpi_evaluation_failure_warn(resource->acpi_dev->handle, "_GHL",
drivers/hwmon/acpi_power_meter.c
132
resource->cap = data;
drivers/hwmon/acpi_power_meter.c
137
static int set_acpi_trip(struct acpi_power_meter_resource *resource)
drivers/hwmon/acpi_power_meter.c
148
if (resource->trip[0] < 0 || resource->trip[1] < 0)
drivers/hwmon/acpi_power_meter.c
152
arg_objs[0].integer.value = resource->trip[1];
drivers/hwmon/acpi_power_meter.c
153
arg_objs[1].integer.value = resource->trip[0];
drivers/hwmon/acpi_power_meter.c
155
status = acpi_evaluate_integer(resource->acpi_dev->handle, "_PTP",
drivers/hwmon/acpi_power_meter.c
158
acpi_evaluation_failure_warn(resource->acpi_dev->handle, "_PTP",
drivers/hwmon/acpi_power_meter.c
171
static int update_meter(struct acpi_power_meter_resource *resource)
drivers/hwmon/acpi_power_meter.c
177
if (time_before(local_jiffies, resource->sensors_last_updated +
drivers/hwmon/acpi_power_meter.c
178
msecs_to_jiffies(resource->caps.sampling_time)) &&
drivers/hwmon/acpi_power_meter.c
179
resource->sensors_valid)
drivers/hwmon/acpi_power_meter.c
182
status = acpi_evaluate_integer(resource->acpi_dev->handle, "_PMM",
drivers/hwmon/acpi_power_meter.c
185
acpi_evaluation_failure_warn(resource->acpi_dev->handle, "_PMM",
drivers/hwmon/acpi_power_meter.c
190
resource->power = data;
drivers/hwmon/acpi_power_meter.c
191
resource->sensors_valid = 1;
drivers/hwmon/acpi_power_meter.c
192
resource->sensors_last_updated = jiffies;
drivers/hwmon/acpi_power_meter.c
197
static void remove_domain_devices(struct acpi_power_meter_resource *resource)
drivers/hwmon/acpi_power_meter.c
201
if (!resource->num_domain_devices)
drivers/hwmon/acpi_power_meter.c
204
for (i = 0; i < resource->num_domain_devices; i++) {
drivers/hwmon/acpi_power_meter.c
205
struct acpi_device *obj = resource->domain_devices[i];
drivers/hwmon/acpi_power_meter.c
210
sysfs_remove_link(resource->holders_dir,
drivers/hwmon/acpi_power_meter.c
215
kfree(resource->domain_devices);
drivers/hwmon/acpi_power_meter.c
216
kobject_put(resource->holders_dir);
drivers/hwmon/acpi_power_meter.c
217
resource->num_domain_devices = 0;
drivers/hwmon/acpi_power_meter.c
220
static int read_domain_devices(struct acpi_power_meter_resource *resource)
drivers/hwmon/acpi_power_meter.c
228
status = acpi_evaluate_object(resource->acpi_dev->handle, "_PMD", NULL,
drivers/hwmon/acpi_power_meter.c
231
acpi_evaluation_failure_warn(resource->acpi_dev->handle, "_PMD",
drivers/hwmon/acpi_power_meter.c
239
dev_err(&resource->acpi_dev->dev, ACPI_POWER_METER_NAME
drivers/hwmon/acpi_power_meter.c
248
resource->domain_devices = kzalloc_objs(struct acpi_device *,
drivers/hwmon/acpi_power_meter.c
250
if (!resource->domain_devices) {
drivers/hwmon/acpi_power_meter.c
255
resource->holders_dir = kobject_create_and_add("measures",
drivers/hwmon/acpi_power_meter.c
256
&resource->acpi_dev->dev.kobj);
drivers/hwmon/acpi_power_meter.c
257
if (!resource->holders_dir) {
drivers/hwmon/acpi_power_meter.c
262
resource->num_domain_devices = pss->package.count;
drivers/hwmon/acpi_power_meter.c
274
resource->domain_devices[i] = obj;
drivers/hwmon/acpi_power_meter.c
278
res = sysfs_create_link(resource->holders_dir, &obj->dev.kobj,
drivers/hwmon/acpi_power_meter.c
282
resource->domain_devices[i] = NULL;
drivers/hwmon/acpi_power_meter.c
290
kfree(resource->domain_devices);
drivers/hwmon/acpi_power_meter.c
296
static int set_trip(struct acpi_power_meter_resource *resource, u16 trip_idx,
drivers/hwmon/acpi_power_meter.c
303
trip_bk = resource->trip[trip_idx];
drivers/hwmon/acpi_power_meter.c
305
resource->trip[trip_idx] = trip;
drivers/hwmon/acpi_power_meter.c
306
ret = set_acpi_trip(resource);
drivers/hwmon/acpi_power_meter.c
308
dev_err(&resource->acpi_dev->dev, "set %s failed.\n",
drivers/hwmon/acpi_power_meter.c
311
resource->trip[trip_idx] = trip_bk;
drivers/hwmon/acpi_power_meter.c
317
static int set_cap(struct acpi_power_meter_resource *resource,
drivers/hwmon/acpi_power_meter.c
326
if (cap > resource->caps.max_cap || cap < resource->caps.min_cap)
drivers/hwmon/acpi_power_meter.c
330
status = acpi_evaluate_integer(resource->acpi_dev->handle, "_SHL",
drivers/hwmon/acpi_power_meter.c
333
acpi_evaluation_failure_warn(resource->acpi_dev->handle, "_SHL",
drivers/hwmon/acpi_power_meter.c
337
resource->cap = cap;
drivers/hwmon/acpi_power_meter.c
346
static int set_avg_interval(struct acpi_power_meter_resource *resource,
drivers/hwmon/acpi_power_meter.c
354
if (val > resource->caps.max_avg_interval ||
drivers/hwmon/acpi_power_meter.c
355
val < resource->caps.min_avg_interval)
drivers/hwmon/acpi_power_meter.c
359
status = acpi_evaluate_integer(resource->acpi_dev->handle, "_PAI",
drivers/hwmon/acpi_power_meter.c
362
acpi_evaluation_failure_warn(resource->acpi_dev->handle, "_PAI",
drivers/hwmon/acpi_power_meter.c
366
resource->avg_interval = val;
drivers/hwmon/acpi_power_meter.c
375
static int get_power_alarm_state(struct acpi_power_meter_resource *resource,
drivers/hwmon/acpi_power_meter.c
380
ret = update_meter(resource);
drivers/hwmon/acpi_power_meter.c
385
if (!(resource->caps.flags & POWER_METER_CAN_NOTIFY)) {
drivers/hwmon/acpi_power_meter.c
386
ret = update_cap(resource);
drivers/hwmon/acpi_power_meter.c
389
resource->power_alarm = resource->power > resource->cap;
drivers/hwmon/acpi_power_meter.c
390
*val = resource->power_alarm;
drivers/hwmon/acpi_power_meter.c
392
*val = resource->power_alarm || resource->power > resource->cap;
drivers/hwmon/acpi_power_meter.c
393
resource->power_alarm = resource->power > resource->cap;
drivers/hwmon/acpi_power_meter.c
724
static void free_capabilities(struct acpi_power_meter_resource *resource)
drivers/hwmon/acpi_power_meter.c
729
str = &resource->model_number;
drivers/hwmon/acpi_power_meter.c
736
static int read_capabilities(struct acpi_power_meter_resource *resource)
drivers/hwmon/acpi_power_meter.c
747
status = acpi_evaluate_object(resource->acpi_dev->handle, "_PMC", NULL,
drivers/hwmon/acpi_power_meter.c
750
acpi_evaluation_failure_warn(resource->acpi_dev->handle, "_PMC",
drivers/hwmon/acpi_power_meter.c
759
dev_err(&resource->acpi_dev->dev, ACPI_POWER_METER_NAME
drivers/hwmon/acpi_power_meter.c
767
state.pointer = &resource->caps;
drivers/hwmon/acpi_power_meter.c
771
dev_err(&resource->acpi_dev->dev, ACPI_POWER_METER_NAME
drivers/hwmon/acpi_power_meter.c
778
if (resource->caps.units) {
drivers/hwmon/acpi_power_meter.c
779
dev_err(&resource->acpi_dev->dev, ACPI_POWER_METER_NAME
drivers/hwmon/acpi_power_meter.c
781
resource->caps.units);
drivers/hwmon/acpi_power_meter.c
787
str = &resource->model_number;
drivers/hwmon/acpi_power_meter.c
807
dev_info(&resource->acpi_dev->dev, "Found ACPI power meter.\n");
drivers/hwmon/acpi_power_meter.c
810
free_capabilities(resource);
drivers/hwmon/acpi_power_meter.c
819
struct acpi_power_meter_resource *resource;
drivers/hwmon/acpi_power_meter.c
825
resource = acpi_driver_data(device);
drivers/hwmon/acpi_power_meter.c
831
if (!IS_ERR(resource->hwmon_dev))
drivers/hwmon/acpi_power_meter.c
832
hwmon_device_unregister(resource->hwmon_dev);
drivers/hwmon/acpi_power_meter.c
834
mutex_lock(&resource->lock);
drivers/hwmon/acpi_power_meter.c
836
free_capabilities(resource);
drivers/hwmon/acpi_power_meter.c
837
remove_domain_devices(resource);
drivers/hwmon/acpi_power_meter.c
838
res = read_capabilities(resource);
drivers/hwmon/acpi_power_meter.c
841
res = read_domain_devices(resource);
drivers/hwmon/acpi_power_meter.c
845
mutex_unlock(&resource->lock);
drivers/hwmon/acpi_power_meter.c
847
resource->hwmon_dev =
drivers/hwmon/acpi_power_meter.c
850
resource,
drivers/hwmon/acpi_power_meter.c
853
if (IS_ERR(resource->hwmon_dev))
drivers/hwmon/acpi_power_meter.c
861
mutex_lock(&resource->lock);
drivers/hwmon/acpi_power_meter.c
862
res = update_cap(resource);
drivers/hwmon/acpi_power_meter.c
865
mutex_unlock(&resource->lock);
drivers/hwmon/acpi_power_meter.c
872
mutex_lock(&resource->lock);
drivers/hwmon/acpi_power_meter.c
873
resource->power_alarm = true;
drivers/hwmon/acpi_power_meter.c
874
mutex_unlock(&resource->lock);
drivers/hwmon/acpi_power_meter.c
890
struct acpi_power_meter_resource *resource;
drivers/hwmon/acpi_power_meter.c
895
resource = kzalloc_obj(*resource);
drivers/hwmon/acpi_power_meter.c
896
if (!resource)
drivers/hwmon/acpi_power_meter.c
899
resource->sensors_valid = 0;
drivers/hwmon/acpi_power_meter.c
900
resource->acpi_dev = device;
drivers/hwmon/acpi_power_meter.c
901
mutex_init(&resource->lock);
drivers/hwmon/acpi_power_meter.c
904
device->driver_data = resource;
drivers/hwmon/acpi_power_meter.c
922
res = read_capabilities(resource);
drivers/hwmon/acpi_power_meter.c
926
resource->trip[0] = -1;
drivers/hwmon/acpi_power_meter.c
927
resource->trip[1] = -1;
drivers/hwmon/acpi_power_meter.c
930
res = read_domain_devices(resource);
drivers/hwmon/acpi_power_meter.c
934
resource->hwmon_dev =
drivers/hwmon/acpi_power_meter.c
936
ACPI_POWER_METER_NAME, resource,
drivers/hwmon/acpi_power_meter.c
939
if (IS_ERR(resource->hwmon_dev)) {
drivers/hwmon/acpi_power_meter.c
940
res = PTR_ERR(resource->hwmon_dev);
drivers/hwmon/acpi_power_meter.c
948
remove_domain_devices(resource);
drivers/hwmon/acpi_power_meter.c
950
free_capabilities(resource);
drivers/hwmon/acpi_power_meter.c
952
kfree(resource);
drivers/hwmon/acpi_power_meter.c
959
struct acpi_power_meter_resource *resource;
drivers/hwmon/acpi_power_meter.c
964
resource = acpi_driver_data(device);
drivers/hwmon/acpi_power_meter.c
965
if (!IS_ERR(resource->hwmon_dev))
drivers/hwmon/acpi_power_meter.c
966
hwmon_device_unregister(resource->hwmon_dev);
drivers/hwmon/acpi_power_meter.c
968
remove_domain_devices(resource);
drivers/hwmon/acpi_power_meter.c
969
free_capabilities(resource);
drivers/hwmon/acpi_power_meter.c
971
kfree(resource);
drivers/hwmon/acpi_power_meter.c
976
struct acpi_power_meter_resource *resource;
drivers/hwmon/acpi_power_meter.c
981
resource = acpi_driver_data(to_acpi_device(dev));
drivers/hwmon/acpi_power_meter.c
982
if (!resource)
drivers/hwmon/acpi_power_meter.c
985
free_capabilities(resource);
drivers/hwmon/acpi_power_meter.c
986
read_capabilities(resource);
drivers/hwmon/dme1737.c
2583
struct resource res = {
drivers/hwmon/dme1737.c
2626
struct resource *res;
drivers/hwmon/f71805f.c
1373
struct resource *res;
drivers/hwmon/f71805f.c
1506
struct resource res = {
drivers/hwmon/f71882fg.c
2615
struct resource res = {
drivers/hwmon/gpd-fan.c
604
const struct resource *region;
drivers/hwmon/gpd-fan.c
605
const struct resource *res;
drivers/hwmon/gpd-fan.c
674
struct resource gpd_fan_resources[] = {
drivers/hwmon/i5k_amb.c
494
struct resource *reso;
drivers/hwmon/it87.c
3399
struct resource *res;
drivers/hwmon/it87.c
3633
struct resource res = {
drivers/hwmon/lm78.c
789
struct resource *res;
drivers/hwmon/lm78.c
919
struct resource res = {
drivers/hwmon/nct6683.c
1202
struct resource *res;
drivers/hwmon/nct6683.c
1437
struct resource res;
drivers/hwmon/nct6775-platform.c
1508
struct resource res;
drivers/hwmon/nct6775-platform.c
946
struct resource *res;
drivers/hwmon/npcm750-pwm-fan.c
926
struct resource *res;
drivers/hwmon/pc87360.c
1705
struct resource res[3];
drivers/hwmon/pc87360.c
1715
memset(res, 0, 3 * sizeof(struct resource));
drivers/hwmon/pc87427.c
1137
struct resource res[2] = {
drivers/hwmon/pc87427.c
938
struct resource *res;
drivers/hwmon/sch56xx-common.c
609
struct resource res = {
drivers/hwmon/sis5595.c
637
struct resource *res;
drivers/hwmon/sis5595.c
743
struct resource res = {
drivers/hwmon/smsc47b397.c
224
struct resource *res;
drivers/hwmon/smsc47b397.c
251
struct resource res = {
drivers/hwmon/smsc47m1.c
712
struct resource *res;
drivers/hwmon/smsc47m1.c
867
const struct resource res = {
drivers/hwmon/ultra45_env.c
265
p->regs = of_ioremap(&op->resource[0], 0, REG_SIZE, "pic16f747");
drivers/hwmon/ultra45_env.c
289
of_iounmap(&op->resource[0], p->regs, REG_SIZE);
drivers/hwmon/ultra45_env.c
301
of_iounmap(&op->resource[0], p->regs, REG_SIZE);
drivers/hwmon/via686a.c
746
struct resource *res;
drivers/hwmon/via686a.c
813
struct resource res = {
drivers/hwmon/vt1211.c
1158
struct resource *res;
drivers/hwmon/vt1211.c
1246
struct resource res = {
drivers/hwmon/vt8231.c
833
struct resource *res;
drivers/hwmon/vt8231.c
935
struct resource res = {
drivers/hwmon/w83627ehf.c
1703
struct resource *res;
drivers/hwmon/w83627ehf.c
2122
struct resource res = {
drivers/hwmon/w83627hf.c
1670
struct resource *res;
drivers/hwmon/w83627hf.c
1921
struct resource res = {
drivers/hwmon/w83781d.c
1762
struct resource *res;
drivers/hwmon/w83781d.c
1937
struct resource res = {
drivers/hwtracing/coresight/coresight-catu.c
514
static int __catu_probe(struct device *dev, struct resource *res)
drivers/hwtracing/coresight/coresight-catu.c
629
struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
drivers/hwtracing/coresight/coresight-cpu-debug.c
559
static int __debug_probe(struct device *dev, struct resource *res)
drivers/hwtracing/coresight/coresight-cpu-debug.c
691
struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
drivers/hwtracing/coresight/coresight-cti-core.c
869
struct resource *res = &adev->res;
drivers/hwtracing/coresight/coresight-etb10.c
722
struct resource *res = &adev->res;
drivers/hwtracing/coresight/coresight-etm3x-core.c
842
struct resource *res = &adev->res;
drivers/hwtracing/coresight/coresight-etm4x-core.c
2359
struct resource *res = &adev->res;
drivers/hwtracing/coresight/coresight-etm4x-core.c
2382
struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
drivers/hwtracing/coresight/coresight-funnel.c
214
static int funnel_probe(struct device *dev, struct resource *res)
drivers/hwtracing/coresight/coresight-funnel.c
316
struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
drivers/hwtracing/coresight/coresight-replicator.c
220
static int replicator_probe(struct device *dev, struct resource *res)
drivers/hwtracing/coresight/coresight-replicator.c
295
struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
drivers/hwtracing/coresight/coresight-stm.c
1008
struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
drivers/hwtracing/coresight/coresight-stm.c
665
static int of_stm_get_stimulus_area(struct device *dev, struct resource *res)
drivers/hwtracing/coresight/coresight-stm.c
689
struct resource *res)
drivers/hwtracing/coresight/coresight-stm.c
696
static int acpi_stm_get_stimulus_area(struct device *dev, struct resource *res)
drivers/hwtracing/coresight/coresight-stm.c
733
struct resource *res)
drivers/hwtracing/coresight/coresight-stm.c
739
static int stm_get_stimulus_area(struct device *dev, struct resource *res)
drivers/hwtracing/coresight/coresight-stm.c
828
static int __stm_probe(struct device *dev, struct resource *res)
drivers/hwtracing/coresight/coresight-stm.c
834
struct resource ch_res;
drivers/hwtracing/coresight/coresight-tmc-core.c
636
struct resource *res)
drivers/hwtracing/coresight/coresight-tmc-core.c
653
struct resource res;
drivers/hwtracing/coresight/coresight-tmc-core.c
772
static int __tmc_probe(struct device *dev, struct resource *res)
drivers/hwtracing/coresight/coresight-tmc-core.c
974
struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
drivers/hwtracing/coresight/coresight-tnoc.c
187
static int _tnoc_probe(struct device *dev, struct resource *res)
drivers/hwtracing/coresight/coresight-tnoc.c
285
struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
drivers/hwtracing/coresight/coresight-tpdm.c
1375
static int tpdm_probe(struct device *dev, struct resource *res)
drivers/hwtracing/coresight/coresight-tpdm.c
1491
struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
drivers/hwtracing/coresight/coresight-tpiu.c
129
static int __tpiu_probe(struct device *dev, struct resource *res)
drivers/hwtracing/coresight/coresight-tpiu.c
268
struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
drivers/hwtracing/coresight/ultrasoc-smb.c
424
struct resource *res;
drivers/hwtracing/intel_th/acpi.c
40
struct resource resource[TH_MMIO_END];
drivers/hwtracing/intel_th/acpi.c
50
if (pdev->resource[i].flags &
drivers/hwtracing/intel_th/acpi.c
52
resource[r++] = pdev->resource[i];
drivers/hwtracing/intel_th/acpi.c
54
th = intel_th_alloc(&pdev->dev, (void *)id->driver_data, resource, r);
drivers/hwtracing/intel_th/core.c
407
struct resource *res, int nres)
drivers/hwtracing/intel_th/core.c
409
struct resource *r;
drivers/hwtracing/intel_th/core.c
415
thdev->resource = r;
drivers/hwtracing/intel_th/core.c
429
kfree(thdev->resource);
drivers/hwtracing/intel_th/core.c
438
struct resource res[3];
drivers/hwtracing/intel_th/core.c
620
struct resource res[3];
drivers/hwtracing/intel_th/core.c
632
sizeof(struct resource) * subdev->nres);
drivers/hwtracing/intel_th/core.c
635
struct resource *devres = th->resource;
drivers/hwtracing/intel_th/core.c
698
kfree(thdev->resource);
drivers/hwtracing/intel_th/core.c
889
struct resource *devres, unsigned int ndevres)
drivers/hwtracing/intel_th/core.c
917
th->resource[nr_mmios++] = devres[r];
drivers/hwtracing/intel_th/gth.c
749
struct resource *res;
drivers/hwtracing/intel_th/intel_th.h
101
static inline struct resource *
drivers/hwtracing/intel_th/intel_th.h
108
if (resource_type(&thdev->resource[i]) == type && !num--)
drivers/hwtracing/intel_th/intel_th.h
109
return &thdev->resource[i];
drivers/hwtracing/intel_th/intel_th.h
231
struct resource *devres, unsigned int ndevres);
drivers/hwtracing/intel_th/intel_th.h
280
struct resource resource[TH_MMIO_END];
drivers/hwtracing/intel_th/intel_th.h
78
struct resource *resource;
drivers/hwtracing/intel_th/msu.c
2127
struct resource *res;
drivers/hwtracing/intel_th/pci.c
104
resource[r].flags = IORESOURCE_IRQ;
drivers/hwtracing/intel_th/pci.c
105
resource[r].start = pci_irq_vector(pdev, i);
drivers/hwtracing/intel_th/pci.c
108
th = intel_th_alloc(&pdev->dev, drvdata, resource, r);
drivers/hwtracing/intel_th/pci.c
75
struct resource resource[TH_MMIO_END + TH_NVEC_MAX] = {
drivers/hwtracing/intel_th/pci.c
76
[TH_MMIO_CONFIG] = pdev->resource[TH_PCI_CONFIG_BAR],
drivers/hwtracing/intel_th/pci.c
77
[TH_MMIO_SW] = pdev->resource[TH_PCI_STH_SW_BAR],
drivers/hwtracing/intel_th/pci.c
96
if (pdev->resource[TH_PCI_RTIT_BAR].start) {
drivers/hwtracing/intel_th/pci.c
97
resource[TH_MMIO_RTIT] = pdev->resource[TH_PCI_RTIT_BAR];
drivers/hwtracing/intel_th/pti.c
204
struct resource *res;
drivers/hwtracing/intel_th/sth.c
190
struct resource *res;
drivers/i2c/busses/i2c-amd-asf-plat.c
304
struct resource *eoi_addr;
drivers/i2c/busses/i2c-amd-asf-plat.c
55
struct resource *port_addr;
drivers/i2c/busses/i2c-amd8111.c
438
error = acpi_check_resource_conflict(&dev->resource[0]);
drivers/i2c/busses/i2c-at91-core.c
199
struct resource *mem;
drivers/i2c/busses/i2c-cadence.c
1495
struct resource *r_mem;
drivers/i2c/busses/i2c-highlander.c
359
struct resource *res;
drivers/i2c/busses/i2c-i801.c
1373
i801_add_tco_spt(struct pci_dev *pci_dev, struct resource *tco_res)
drivers/i2c/busses/i2c-i801.c
1379
struct resource *res;
drivers/i2c/busses/i2c-i801.c
1404
i801_add_tco_cnl(struct pci_dev *pci_dev, struct resource *tco_res)
drivers/i2c/busses/i2c-i801.c
1418
struct resource tco_res[2], *res;
drivers/i2c/busses/i2c-i801.c
1508
return acpi_check_resource_conflict(&priv->pci_dev->resource[SMBBAR]);
drivers/i2c/busses/i2c-icy.c
148
z->resource.start,
drivers/i2c/busses/i2c-icy.c
153
i2c->reg_s0 = ZTWO_VADDR(z->resource.start);
drivers/i2c/busses/i2c-icy.c
154
i2c->reg_s1 = ZTWO_VADDR(z->resource.start + 2);
drivers/i2c/busses/i2c-icy.c
169
&z->resource.start);
drivers/i2c/busses/i2c-imx-lpi2c.c
1463
struct resource *res;
drivers/i2c/busses/i2c-imx.c
1714
struct resource *res;
drivers/i2c/busses/i2c-iop3xx.c
394
struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
drivers/i2c/busses/i2c-iop3xx.c
413
struct resource *res;
drivers/i2c/busses/i2c-isch.c
278
struct resource *res;
drivers/i2c/busses/i2c-ismt.c
930
err = acpi_check_resource_conflict(&pdev->resource[SMBBAR]);
drivers/i2c/busses/i2c-microchip-corei2c.c
541
struct resource *res;
drivers/i2c/busses/i2c-mlxbf.c
1251
struct resource *params;
drivers/i2c/busses/i2c-mlxbf.c
1289
struct resource *params;
drivers/i2c/busses/i2c-mlxbf.c
1315
struct resource *params;
drivers/i2c/busses/i2c-mlxbf.c
1354
struct resource *params;
drivers/i2c/busses/i2c-mlxbf.c
1653
struct resource *params;
drivers/i2c/busses/i2c-mlxbf.c
1707
struct resource *params;
drivers/i2c/busses/i2c-mlxbf.c
2372
struct resource *params;
drivers/i2c/busses/i2c-mlxbf.c
392
struct resource *params;
drivers/i2c/busses/i2c-mlxbf.c
430
static struct resource mlxbf_i2c_coalesce_tyu_params =
drivers/i2c/busses/i2c-mlxbf.c
434
static struct resource mlxbf_i2c_corepll_tyu_params =
drivers/i2c/busses/i2c-mlxbf.c
438
static struct resource mlxbf_i2c_corepll_yu_params =
drivers/i2c/busses/i2c-mlxbf.c
442
static struct resource mlxbf_i2c_corepll_rsh_yu_params =
drivers/i2c/busses/i2c-mlxbf.c
446
static struct resource mlxbf_i2c_gpio_tyu_params =
drivers/i2c/busses/i2c-ocores.c
590
struct resource *res;
drivers/i2c/busses/i2c-omap.c
185
struct resource *ioarea;
drivers/i2c/busses/i2c-pca-platform.c
133
struct resource *res;
drivers/i2c/busses/i2c-pnx.c
613
struct resource *res;
drivers/i2c/busses/i2c-pxa-pci.c
27
struct resource res[2];
drivers/i2c/busses/i2c-pxa-pci.c
45
struct resource r;
drivers/i2c/busses/i2c-pxa.c
1430
struct resource *res;
drivers/i2c/busses/i2c-qcom-cci.c
524
struct resource *r;
drivers/i2c/busses/i2c-rcar.c
161
struct resource *res;
drivers/i2c/busses/i2c-rzv2m.c
415
struct resource *res;
drivers/i2c/busses/i2c-s3c2410.c
1007
struct resource *res;
drivers/i2c/busses/i2c-sh7760.c
435
struct resource *res;
drivers/i2c/busses/i2c-sh7760.c
99
struct resource *ioarea;
drivers/i2c/busses/i2c-sh_mobile.c
135
struct resource *res;
drivers/i2c/busses/i2c-sh_mobile.c
846
struct resource *res;
drivers/i2c/busses/i2c-simtec.c
20
struct resource *ioarea;
drivers/i2c/busses/i2c-simtec.c
63
struct resource *res;
drivers/i2c/busses/i2c-sis96x.c
268
retval = acpi_check_resource_conflict(&dev->resource[SIS96x_BAR]);
drivers/i2c/busses/i2c-st.c
797
struct resource *res;
drivers/i2c/busses/i2c-stm32f4.c
760
struct resource *res;
drivers/i2c/busses/i2c-stm32f7.c
2167
struct resource *res;
drivers/i2c/busses/i2c-tegra.c
1994
struct resource *res;
drivers/i2c/busses/i2c-xiic.c
1429
struct resource *res;
drivers/i2c/busses/scx200_acb.c
500
struct resource *res;
drivers/i2c/i2c-core-acpi.c
179
struct resource r;
drivers/i2c/i2c-core-base.c
896
int i2c_dev_irq_from_resources(const struct resource *resources,
drivers/i2c/i2c-core-base.c
903
const struct resource *r = &resources[i];
drivers/i2c/i2c-core.h
23
int i2c_dev_irq_from_resources(const struct resource *resources,
drivers/i2c/muxes/i2c-mux-reg.c
161
struct resource *res;
drivers/i2c/muxes/i2c-mux-reg.c
85
struct resource res;
drivers/i3c/master/mipi-i3c-hci/mipi-i3c-hci-pci.c
226
struct resource res;
drivers/iio/adc/ad7606_par.c
181
struct resource *res;
drivers/iio/adc/at91-sama5d2_adc.c
2301
struct resource *res;
drivers/iio/adc/lpc32xx_adc.c
148
struct resource *res;
drivers/iio/adc/men_z188_adc.c
105
struct resource *mem;
drivers/iio/adc/men_z188_adc.c
25
struct resource *mem;
drivers/iio/adc/mxs-lradc-adc.c
693
struct resource *iores;
drivers/iio/adc/nxp-sar-adc.c
897
struct resource *mem;
drivers/iio/adc/stm32-adc-core.c
709
struct resource *res;
drivers/iio/adc/stm32-dfsdm-core.c
227
struct resource *res;
drivers/iio/trigger/iio-trig-interrupt.c
33
struct resource *irq_res;
drivers/infiniband/hw/cxgb4/device.c
758
c4iw_put_resource(&rdev->resource.qid_table,
drivers/infiniband/hw/cxgb4/device.c
835
&rdev->lldi.pdev->resource[2],
drivers/infiniband/hw/cxgb4/device.c
916
c4iw_destroy_resource(&rdev->resource);
drivers/infiniband/hw/cxgb4/device.c
931
c4iw_destroy_resource(&rdev->resource);
drivers/infiniband/hw/cxgb4/iw_cxgb4.h
172
struct c4iw_resource resource;
drivers/infiniband/hw/cxgb4/mem.c
293
stag_idx = c4iw_get_resource(&rdev->resource.tpt_table);
drivers/infiniband/hw/cxgb4/mem.c
337
c4iw_put_resource(&rdev->resource.tpt_table, stag_idx);
drivers/infiniband/hw/cxgb4/provider.c
201
c4iw_put_resource(&rhp->rdev.resource.pdid_table, php->pdid);
drivers/infiniband/hw/cxgb4/provider.c
217
pdid = c4iw_get_resource(&rhp->rdev.resource.pdid_table);
drivers/infiniband/hw/cxgb4/resource.c
122
qid = c4iw_get_resource(&rdev->resource.qid_table);
drivers/infiniband/hw/cxgb4/resource.c
192
qid = c4iw_get_resource(&rdev->resource.qid_table);
drivers/infiniband/hw/cxgb4/resource.c
42
if (c4iw_id_table_alloc(&rdev->resource.qid_table,
drivers/infiniband/hw/cxgb4/resource.c
431
idx = c4iw_id_alloc(&rdev->resource.srq_table);
drivers/infiniband/hw/cxgb4/resource.c
447
c4iw_id_free(&rdev->resource.srq_table, idx);
drivers/infiniband/hw/cxgb4/resource.c
51
c4iw_id_free(&rdev->resource.qid_table, i);
drivers/infiniband/hw/cxgb4/resource.c
60
err = c4iw_id_table_alloc(&rdev->resource.tpt_table, 0, nr_tpt, 1,
drivers/infiniband/hw/cxgb4/resource.c
67
err = c4iw_id_table_alloc(&rdev->resource.pdid_table, 0,
drivers/infiniband/hw/cxgb4/resource.c
72
err = c4iw_id_table_alloc(&rdev->resource.srq_table, 0,
drivers/infiniband/hw/cxgb4/resource.c
75
err = c4iw_id_table_alloc(&rdev->resource.srq_table, 0,
drivers/infiniband/hw/cxgb4/resource.c
81
c4iw_id_table_free(&rdev->resource.pdid_table);
drivers/infiniband/hw/cxgb4/resource.c
83
c4iw_id_table_free(&rdev->resource.qid_table);
drivers/infiniband/hw/cxgb4/resource.c
85
c4iw_id_table_free(&rdev->resource.tpt_table);
drivers/infiniband/hw/hfi1/chip.h
714
int acquire_chip_resource(struct hfi1_devdata *dd, u32 resource, u32 mswait);
drivers/infiniband/hw/hfi1/chip.h
715
void release_chip_resource(struct hfi1_devdata *dd, u32 resource);
drivers/infiniband/hw/hfi1/chip.h
716
bool check_chip_resource(struct hfi1_devdata *dd, u32 resource,
drivers/infiniband/hw/hfi1/firmware.c
1407
static inline u64 resource_mask(u32 hfi1_id, u32 resource)
drivers/infiniband/hw/hfi1/firmware.c
1409
return ((u64)resource) << (hfi1_id ? CR_DYN_SHIFT : 0);
drivers/infiniband/hw/hfi1/firmware.c
1425
static int __acquire_chip_resource(struct hfi1_devdata *dd, u32 resource)
drivers/infiniband/hw/hfi1/firmware.c
1430
if (resource & CR_DYN_MASK) {
drivers/infiniband/hw/hfi1/firmware.c
1433
(resource & (CR_I2C1 | CR_I2C2))) {
drivers/infiniband/hw/hfi1/firmware.c
1438
all_bits = resource_mask(0, resource) |
drivers/infiniband/hw/hfi1/firmware.c
1439
resource_mask(1, resource);
drivers/infiniband/hw/hfi1/firmware.c
1441
my_bit = resource_mask(dd->hfi1_id, resource);
drivers/infiniband/hw/hfi1/firmware.c
1444
all_bits = resource;
drivers/infiniband/hw/hfi1/firmware.c
1445
my_bit = resource;
drivers/infiniband/hw/hfi1/firmware.c
1481
int acquire_chip_resource(struct hfi1_devdata *dd, u32 resource, u32 mswait)
drivers/infiniband/hw/hfi1/firmware.c
1488
ret = __acquire_chip_resource(dd, resource);
drivers/infiniband/hw/hfi1/firmware.c
1501
void release_chip_resource(struct hfi1_devdata *dd, u32 resource)
drivers/infiniband/hw/hfi1/firmware.c
1506
if (!(resource & CR_DYN_MASK)) {
drivers/infiniband/hw/hfi1/firmware.c
1508
resource);
drivers/infiniband/hw/hfi1/firmware.c
1511
bit = resource_mask(dd->hfi1_id, resource);
drivers/infiniband/hw/hfi1/firmware.c
1529
__func__, dd->hfi1_id, resource);
drivers/infiniband/hw/hfi1/firmware.c
1542
bool check_chip_resource(struct hfi1_devdata *dd, u32 resource,
drivers/infiniband/hw/hfi1/firmware.c
1547
if (resource & CR_DYN_MASK)
drivers/infiniband/hw/hfi1/firmware.c
1548
bit = resource_mask(dd->hfi1_id, resource);
drivers/infiniband/hw/hfi1/firmware.c
1550
bit = resource;
drivers/infiniband/hw/hfi1/firmware.c
1557
func, dd->hfi1_id, resource);
drivers/infiniband/hw/hfi1/qsfp.c
472
u32 resource = qsfp_resource(dd);
drivers/infiniband/hw/hfi1/qsfp.c
475
ret = acquire_chip_resource(dd, resource, QSFP_WAIT);
drivers/infiniband/hw/hfi1/qsfp.c
479
release_chip_resource(dd, resource);
drivers/input/gameport/fm801-gp.c
25
struct resource *res_port;
drivers/input/joystick/iforce/iforce-ff.c
125
struct resource* mod_chunk, int no_alloc,
drivers/input/joystick/iforce/iforce-ff.c
19
struct resource* mod_chunk, int no_alloc, __s16 level)
drivers/input/joystick/iforce/iforce-ff.c
339
struct resource* mod1_chunk = &(iforce->core_effects[core_id].mod1_chunk);
drivers/input/joystick/iforce/iforce-ff.c
340
struct resource* mod2_chunk = &(iforce->core_effects[core_id].mod2_chunk);
drivers/input/joystick/iforce/iforce-ff.c
409
struct resource* mod1_chunk = &(iforce->core_effects[core_id].mod1_chunk);
drivers/input/joystick/iforce/iforce-ff.c
410
struct resource* mod2_chunk = &(iforce->core_effects[core_id].mod2_chunk);
drivers/input/joystick/iforce/iforce-ff.c
465
struct resource* mod1_chunk = &(core_effect->mod1_chunk);
drivers/input/joystick/iforce/iforce-ff.c
466
struct resource* mod2_chunk = &(core_effect->mod2_chunk);
drivers/input/joystick/iforce/iforce-ff.c
48
struct resource* mod_chunk, int no_alloc,
drivers/input/joystick/iforce/iforce-ff.c
85
struct resource* mod_chunk, int no_alloc,
drivers/input/joystick/iforce/iforce.h
41
struct resource mod1_chunk;
drivers/input/joystick/iforce/iforce.h
42
struct resource mod2_chunk;
drivers/input/joystick/iforce/iforce.h
98
struct resource device_memory;
drivers/input/keyboard/goldfish_events.c
106
struct resource *res;
drivers/input/keyboard/nspire-keypad.c
150
struct resource *res;
drivers/input/keyboard/samsung-keypad.c
313
struct resource *res;
drivers/input/keyboard/sh_keysc.c
165
struct resource *res;
drivers/input/misc/cobalt_btns.c
65
struct resource *res;
drivers/input/misc/sparcspkr.c
214
info->regs = of_ioremap(&op->resource[0], 0, 6, "bbc beep");
drivers/input/misc/sparcspkr.c
222
of_iounmap(&op->resource[0], info->regs, 6);
drivers/input/misc/sparcspkr.c
240
of_iounmap(&op->resource[0], info->regs, 6);
drivers/input/misc/sparcspkr.c
277
info->freq_regs = of_ioremap(&op->resource[2], 0, 2, "grover beep freq");
drivers/input/misc/sparcspkr.c
281
info->enable_reg = of_ioremap(&op->resource[3], 0, 1, "grover beep enable");
drivers/input/misc/sparcspkr.c
294
of_iounmap(&op->resource[3], info->enable_reg, 1);
drivers/input/misc/sparcspkr.c
297
of_iounmap(&op->resource[2], info->freq_regs, 2);
drivers/input/misc/sparcspkr.c
313
of_iounmap(&op->resource[3], info->enable_reg, 1);
drivers/input/misc/sparcspkr.c
314
of_iounmap(&op->resource[2], info->freq_regs, 2);
drivers/input/misc/tps6594-pwrbutton.c
84
pdev->resource[0].name, pwr);
drivers/input/misc/tps6594-pwrbutton.c
94
pdev->resource[1].name, pwr);
drivers/input/serio/ct82c710.c
47
static struct resource ct82c710_iores;
drivers/input/serio/i8042-sparcio.h
50
static struct resource *kbd_res;
drivers/input/serio/i8042-sparcio.h
69
kbd_iobase = of_ioremap(&kbd->resource[0],
drivers/input/serio/i8042-sparcio.h
71
kbd_res = &kbd->resource[0];
drivers/input/serio/sun4i-ps2.c
206
struct resource *res; /* IO mem resources */
drivers/input/serio/xilinx_ps2.c
226
struct resource r_mem; /* IO mem resources */
drivers/input/serio/xilinx_ps2.c
329
struct resource r_mem; /* IO mem resources */
drivers/interconnect/qcom/icc-rpm.c
517
struct resource *res;
drivers/interconnect/qcom/icc-rpmh.c
308
struct resource *res;
drivers/iommu/apple-dart.c
1109
struct resource *res;
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c
4736
struct resource res = DEFINE_RES_MEM(start, size);
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c
4824
struct resource *res;
drivers/iommu/arm/arm-smmu-v3/tegra241-cmdqv.c
893
__tegra241_cmdqv_probe(struct arm_smmu_device *smmu, struct resource *res,
drivers/iommu/arm/arm-smmu-v3/tegra241-cmdqv.c
982
struct resource *res;
drivers/iommu/arm/arm-smmu/arm-smmu-nvidia.c
307
struct resource *res;
drivers/iommu/arm/arm-smmu/arm-smmu.c
2123
struct resource *res;
drivers/iommu/arm/arm-smmu/qcom_iommu.c
778
struct resource *res;
drivers/iommu/exynos-iommu.c
732
struct resource *res;
drivers/iommu/msm_iommu.c
716
struct resource *r;
drivers/iommu/mtk_iommu.c
1296
struct resource *res;
drivers/iommu/mtk_iommu_v1.c
613
struct resource *res;
drivers/iommu/of_iommu.c
174
struct resource *phys,
drivers/iommu/of_iommu.c
214
struct resource phys;
drivers/iommu/omap-iommu.c
1152
struct resource *res;
drivers/iommu/riscv/iommu-platform.c
52
struct resource *res = NULL;
drivers/iommu/rockchip-iommu.c
1199
struct resource *res;
drivers/irqchip/irq-alpine-msi.c
196
struct resource res;
drivers/irqchip/irq-armada-370-xp.c
803
struct resource res;
drivers/irqchip/irq-bcm6345-l1.c
226
struct resource res;
drivers/irqchip/irq-bcm7038-l1.c
219
struct resource res;
drivers/irqchip/irq-clps711x.c
218
struct resource res;
drivers/irqchip/irq-davinci-cp-intc.c
156
static int __init davinci_cp_intc_do_init(struct resource *res, unsigned int num_irqs,
drivers/irqchip/irq-davinci-cp-intc.c
229
struct resource res;
drivers/irqchip/irq-dw-apb-ictl.c
117
struct resource r;
drivers/irqchip/irq-econet-en751221.c
255
struct resource res;
drivers/irqchip/irq-gic-its-msi-parent.c
24
struct resource res;
drivers/irqchip/irq-gic-v2m.c
291
struct resource *res, u32 flags)
drivers/irqchip/irq-gic-v2m.c
304
memcpy(&v2m->res, res, sizeof(struct resource));
drivers/irqchip/irq-gic-v2m.c
394
struct resource res;
drivers/irqchip/irq-gic-v2m.c
468
struct resource res;
drivers/irqchip/irq-gic-v2m.c
68
struct resource res; /* GICv2m resource */
drivers/irqchip/irq-gic-v3-its.c
5103
static void __init __iomem *its_map_one(struct resource *res, int *err)
drivers/irqchip/irq-gic-v3-its.c
5485
static int __init its_reset_one(struct resource *res)
drivers/irqchip/irq-gic-v3-its.c
5506
static struct its_node __init *its_node_init(struct resource *res,
drivers/irqchip/irq-gic-v3-its.c
5553
struct resource res;
drivers/irqchip/irq-gic-v3-its.c
5712
struct resource res;
drivers/irqchip/irq-gic-v3-its.c
5762
struct resource res;
drivers/irqchip/irq-gic-v3-its.c
5765
res = (struct resource) {
drivers/irqchip/irq-gic-v3-mbi.c
265
struct resource res;
drivers/irqchip/irq-gic-v3.c
2152
struct resource r;
drivers/irqchip/irq-gic-v3.c
2179
const char *name, struct resource *res)
drivers/irqchip/irq-gic-v3.c
2199
struct resource res;
drivers/irqchip/irq-gic-v3.c
2517
struct resource *vcpu = &gic_v3_kvm_info.vcpu;
drivers/irqchip/irq-gic-v5-irs.c
895
static struct resource * __init gic_request_region(resource_size_t base, resource_size_t size,
drivers/irqchip/irq-gic-v5-irs.c
898
struct resource *r = request_mem_region(base, size, name);
drivers/irqchip/irq-gic-v5-irs.c
912
struct resource *r;
drivers/irqchip/irq-gic-v5-its.c
1250
struct resource res = {};
drivers/irqchip/irq-gic-v5-its.c
1305
struct resource res = {};
drivers/irqchip/irq-gic-v5-iwb.c
256
struct resource *res;
drivers/irqchip/irq-gic.c
1041
struct resource res;
drivers/irqchip/irq-gic.c
1289
struct resource cpuif_res;
drivers/irqchip/irq-gic.c
1445
struct resource *vctrl_res = &gic_v2_kvm_info.vctrl;
drivers/irqchip/irq-gic.c
1446
struct resource *vcpu_res = &gic_v2_kvm_info.vcpu;
drivers/irqchip/irq-gic.c
1599
struct resource *vctrl_res = &gic_v2_kvm_info.vctrl;
drivers/irqchip/irq-gic.c
1600
struct resource *vcpu_res = &gic_v2_kvm_info.vcpu;
drivers/irqchip/irq-i8259.c
275
static struct resource pic1_io_resource = {
drivers/irqchip/irq-i8259.c
282
static struct resource pic2_io_resource = {
drivers/irqchip/irq-imgpdc.c
298
struct resource *res_regs;
drivers/irqchip/irq-imx-mu-msi.c
305
struct resource *res;
drivers/irqchip/irq-loongson-htvec.c
240
struct resource res;
drivers/irqchip/irq-loongson-liointc.c
329
struct resource res;
drivers/irqchip/irq-loongson-pch-msi.c
217
struct resource res;
drivers/irqchip/irq-loongson-pch-pic.c
381
struct resource res;
drivers/irqchip/irq-ls-scfg-msi.c
333
struct resource *res;
drivers/irqchip/irq-mbigen.c
316
struct resource *res;
drivers/irqchip/irq-mips-gic.c
906
struct resource res;
drivers/irqchip/irq-mtk-sysirq.c
165
struct resource res;
drivers/irqchip/irq-mvebu-gicp.c
38
struct resource *res;
drivers/irqchip/irq-mvebu-odmi.c
41
struct resource res;
drivers/irqchip/irq-mvebu-sei.c
44
struct resource *res;
drivers/irqchip/irq-omap-intc.c
309
struct resource res;
drivers/irqchip/irq-ompic.c
152
struct resource res;
drivers/irqchip/irq-orion.c
141
struct resource r;
drivers/irqchip/irq-orion.c
57
struct resource r;
drivers/irqchip/irq-qcom-mpm.c
334
struct resource res;
drivers/irqchip/irq-renesas-intc-irqpin.c
376
struct resource *io[INTC_IRQPIN_REG_NR];
drivers/irqchip/irq-riscv-imsic-state.c
682
u32 index, struct resource *res)
drivers/irqchip/irq-riscv-imsic-state.c
697
struct resource res;
drivers/irqchip/irq-riscv-imsic-state.c
791
struct resource *mmios = NULL;
drivers/irqchip/irq-riscv-intc.c
322
int acpi_rintc_get_imsic_mmio_info(u32 index, struct resource *res)
drivers/irqchip/irq-sg2042-msi.c
254
struct resource *res;
drivers/irqchip/irq-sni-exiu.c
197
struct resource *res)
drivers/irqchip/irq-sni-exiu.c
234
struct resource res;
drivers/irqchip/irq-sni-exiu.c
280
struct resource *res;
drivers/irqchip/irq-tb10x.c
93
struct resource mem;
drivers/irqchip/qcom-pdc.c
358
struct resource res;
drivers/isdn/hardware/mISDN/hfcmulti.c
4367
hc->plx_origmembase = hc->pci_dev->resource[0].start;
drivers/isdn/hardware/mISDN/hfcmulti.c
4389
hc->pci_origmembase = hc->pci_dev->resource[2].start;
drivers/isdn/hardware/mISDN/hfcmulti.c
4420
hc->pci_origmembase = hc->pci_dev->resource[1].start;
drivers/isdn/hardware/mISDN/hfcmulti.c
4448
hc->pci_iobase = (u_int) hc->pci_dev->resource[0].start;
drivers/isdn/hardware/mISDN/hfcpci.c
2007
(char __iomem *)(unsigned long)hc->pdev->resource[1].start;
drivers/leds/leds-88pm860x.c
148
struct resource *res;
drivers/leds/leds-cobalt-qube.c
39
struct resource *res;
drivers/leds/leds-cobalt-raq.c
68
struct resource *res;
drivers/leds/leds-nic78bx.c
142
struct resource *io_rc;
drivers/leds/leds-ss4200.c
123
static struct resource *gp_gpio_resource;
drivers/leds/leds-sun50i-a100.c
395
struct resource *mem;
drivers/leds/leds-sunfire.c
145
p->leds[i].reg = (void __iomem *) pdev->resource[0].start;
drivers/leds/leds-wm831x-status.c
214
struct resource *res;
drivers/leds/simatic/simatic-ipc-leds.c
41
static struct resource simatic_ipc_led_io_res =
drivers/leds/simatic/simatic-ipc-leds.c
82
struct resource *res;
drivers/macintosh/macio-adb.c
99
struct resource r;
drivers/macintosh/macio_asic.c
186
static int macio_resource_quirks(struct device_node *np, struct resource *res,
drivers/macintosh/macio_asic.c
297
struct resource *res;
drivers/macintosh/macio_asic.c
309
memset(res, 0, sizeof(struct resource));
drivers/macintosh/macio_asic.c
318
struct resource *parent_res)
drivers/macintosh/macio_asic.c
321
struct resource r;
drivers/macintosh/macio_asic.c
325
struct resource *res;
drivers/macintosh/macio_asic.c
328
res = &dev->resource[index];
drivers/macintosh/macio_asic.c
333
memset(res, 0, sizeof(struct resource));
drivers/macintosh/macio_asic.c
362
struct resource *parent_res)
drivers/macintosh/macio_asic.c
462
struct resource *root_res = &iomem_resource;
drivers/macintosh/macio_asic.c
468
root_res = &chip->lbus.pdev->resource[0];
drivers/macintosh/macio_asic.c
479
root_res = &rdev->resource[0];
drivers/macintosh/rack-meter.c
371
struct resource ri2s, rdma;
drivers/macintosh/via-cuda.c
238
struct resource res;
drivers/macintosh/via-pmu.c
291
struct resource res;
drivers/mailbox/bcm-flexrm-mailbox.c
1479
struct resource *iomem;
drivers/mailbox/bcm-pdc-mailbox.c
1529
struct resource *pdc_regs;
drivers/mailbox/cix-mailbox.c
563
struct resource *res;
drivers/mailbox/mailbox-test.c
361
struct resource *res;
drivers/mailbox/mailbox-th1520.c
379
struct resource *res;
drivers/mailbox/rockchip-mailbox.c
168
struct resource *res;
drivers/mailbox/zynqmp-ipi-mailbox.c
471
struct resource *res)
drivers/mailbox/zynqmp-ipi-mailbox.c
592
struct resource res;
drivers/mailbox/zynqmp-ipi-mailbox.c
688
struct resource host_res, remote_res;
drivers/mcb/mcb-core.c
421
struct resource *mcb_get_resource(struct mcb_device *dev, unsigned int type)
drivers/mcb/mcb-core.c
440
struct resource *mcb_request_mem(struct mcb_device *dev, const char *name)
drivers/mcb/mcb-core.c
442
struct resource *mem;
drivers/mcb/mcb-core.c
464
void mcb_release_mem(struct resource *mem)
drivers/mcb/mcb-core.c
475
struct resource *irq;
drivers/mcb/mcb-lpc.c
111
struct resource *res = id->driver_data;
drivers/mcb/mcb-lpc.c
133
static struct resource sc24_fpga_resource = DEFINE_RES_MEM(0xe000e000, CHAM_HEADER_SIZE);
drivers/mcb/mcb-lpc.c
134
static struct resource sc31_fpga_resource = DEFINE_RES_MEM(0xf000e000, CHAM_HEADER_SIZE);
drivers/mcb/mcb-lpc.c
18
struct resource *mem;
drivers/mcb/mcb-lpc.c
24
struct resource *res;
drivers/mcb/mcb-pci.c
32
struct resource *res;
drivers/media/cec/platform/tegra/tegra_cec.c
321
struct resource *res;
drivers/media/common/saa7146/saa7146_video.c
186
unsigned int resource;
drivers/media/common/saa7146/saa7146_video.c
197
resource = RESOURCE_DMA1_HPS|RESOURCE_DMA2_CLP|RESOURCE_DMA3_BRS;
drivers/media/common/saa7146/saa7146_video.c
199
resource = RESOURCE_DMA1_HPS;
drivers/media/common/saa7146/saa7146_video.c
202
ret = saa7146_res_get(dev, resource);
drivers/media/common/saa7146/saa7146_video.c
204
DEB_S("cannot get capture resource %d\n", resource);
drivers/media/common/saa7146/saa7146_video.c
222
unsigned int resource;
drivers/media/common/saa7146/saa7146_video.c
232
resource = RESOURCE_DMA1_HPS|RESOURCE_DMA2_CLP|RESOURCE_DMA3_BRS;
drivers/media/common/saa7146/saa7146_video.c
235
resource = RESOURCE_DMA1_HPS;
drivers/media/common/saa7146/saa7146_video.c
251
saa7146_res_free(dev, resource);
drivers/media/pci/mgb4/mgb4_core.c
162
struct resource spi_resources[] = {
drivers/media/pci/mgb4/mgb4_core.c
195
spi_resources[0].parent = &pdev->resource[MGB4_MGB4_BAR_ID];
drivers/media/pci/mgb4/mgb4_core.c
270
struct resource i2c_resources[] = {
drivers/media/pci/mgb4/mgb4_core.c
296
i2c_resources[0].parent = &pdev->resource[MGB4_MGB4_BAR_ID];
drivers/media/pci/mgb4/mgb4_core.c
436
static int map_regs(struct pci_dev *pdev, struct resource *res,
drivers/media/pci/mgb4/mgb4_core.c
457
struct resource res[2] = { 0 };
drivers/media/pci/mgb4/mgb4_core.c
466
res[0].parent = &pdev->resource[MGB4_XDMA_BAR_ID];
drivers/media/pci/mgb4/mgb4_core.c
511
struct resource video = {
drivers/media/pci/mgb4/mgb4_core.c
517
struct resource cmt = {
drivers/media/pci/mgb4/mgb4_regs.c
11
int mgb4_regs_map(struct resource *res, struct mgb4_regs *regs)
drivers/media/pci/mgb4/mgb4_regs.h
32
int mgb4_regs_map(struct resource *res, struct mgb4_regs *regs);
drivers/media/platform/allegro-dvt/allegro-core.c
3893
struct resource *res, *sram_res;
drivers/media/platform/amphion/vpu_core.c
542
struct resource res;
drivers/media/platform/arm/mali-c55/mali-c55-common.h
50
struct resource;
drivers/media/platform/arm/mali-c55/mali-c55-core.c
646
struct resource *res)
drivers/media/platform/arm/mali-c55/mali-c55-core.c
809
struct resource *res;
drivers/media/platform/intel/pxa_camera.c
2266
struct resource *res;
drivers/media/platform/intel/pxa_camera.c
673
struct resource *res;
drivers/media/platform/marvell/mmp-driver.c
181
struct resource *res;
drivers/media/platform/mediatek/mdp3/mtk-mdp3-comp.c
1712
struct resource res;
drivers/media/platform/mediatek/mdp3/mtk-mdp3-core.c
221
struct resource *res;
drivers/media/platform/mediatek/vcodec/decoder/mtk_vcodec_dec_drv.c
92
struct resource *res;
drivers/media/platform/qcom/iris/iris_firmware.c
22
struct resource res;
drivers/media/platform/qcom/venus/firmware.c
85
struct resource res;
drivers/media/platform/renesas/rcar-isp/csisp.c
468
struct resource *res;
drivers/media/platform/renesas/rcar_drif.c
1374
struct resource *res;
drivers/media/platform/renesas/rzv2h-ivc/rzv2h-ivc-dev.c
44
struct resource *res;
drivers/media/platform/samsung/exynos4-is/fimc-is.c
795
struct resource res;
drivers/media/platform/st/sti/hva/hva-hw.c
301
struct resource *esram;
drivers/media/platform/st/stm32/stm32-dcmi.c
125
struct resource *res;
drivers/media/platform/ti/cal/cal.c
1098
struct resource *res;
drivers/media/platform/ti/cal/cal.h
167
struct resource *res;
drivers/media/platform/ti/cal/cal.h
195
struct resource *res;
drivers/media/platform/ti/cal/cal.h
66
struct resource;
drivers/media/platform/ti/davinci/vpif.c
442
static struct resource res_irq;
drivers/media/platform/ti/davinci/vpif.c
493
pdev_capture->resource = &res_irq;
drivers/media/platform/ti/davinci/vpif.c
512
pdev_display->resource = &res_irq;
drivers/media/platform/ti/omap3isp/isp.c
2230
struct resource *mem;
drivers/media/platform/ti/vpe/csc.h
53
struct resource *res;
drivers/media/platform/ti/vpe/sc.h
187
struct resource *res;
drivers/media/platform/ti/vpe/vpdma.c
1160
struct resource *res;
drivers/media/platform/ti/vpe/vpe.c
384
struct resource *res;
drivers/memory/da8xx-ddrctl.c
104
struct resource *res;
drivers/memory/jz4780-nemc.c
274
struct resource *res;
drivers/memory/omap-gpmc.c
1023
struct resource *res;
drivers/memory/omap-gpmc.c
204
struct resource mem;
drivers/memory/omap-gpmc.c
2149
struct resource res;
drivers/memory/omap-gpmc.c
250
struct resource *data;
drivers/memory/omap-gpmc.c
2523
struct resource *res;
drivers/memory/omap-gpmc.c
255
static struct resource gpmc_mem_root;
drivers/memory/omap-gpmc.c
947
struct resource *res = &gpmc->mem;
drivers/memory/omap-gpmc.c
963
struct resource *res = &gpmc->mem;
drivers/memory/omap-gpmc.c
978
struct resource *res = &gpmc->mem;
drivers/memory/renesas-rpc-if.c
978
struct resource *res;
drivers/memory/stm32-fmc2-ebi.c
1253
static int stm32_fmc2_ebi_mp25_check_rif(struct stm32_fmc2_ebi *ebi, u32 resource)
drivers/memory/stm32-fmc2-ebi.c
1258
if (resource >= FMC2_MAX_RESOURCES)
drivers/memory/stm32-fmc2-ebi.c
1265
if (seccfgr & BIT(resource)) {
drivers/memory/stm32-fmc2-ebi.c
1266
if (resource)
drivers/memory/stm32-fmc2-ebi.c
1268
resource);
drivers/memory/stm32-fmc2-ebi.c
1273
ret = regmap_read(ebi->regmap, FMC2_CIDCFGR(resource), &cidcfgr);
drivers/memory/stm32-fmc2-ebi.c
1285
if (resource)
drivers/memory/stm32-fmc2-ebi.c
1287
cid, resource);
drivers/memory/stm32-fmc2-ebi.c
1297
if (resource)
drivers/memory/stm32-fmc2-ebi.c
1299
resource);
drivers/memory/stm32-fmc2-ebi.c
1304
ret = regmap_read(ebi->regmap, FMC2_SEMCR(resource), &semcr);
drivers/memory/stm32-fmc2-ebi.c
1309
regmap_update_bits(ebi->regmap, FMC2_SEMCR(resource),
drivers/memory/stm32-fmc2-ebi.c
1312
ret = regmap_read(ebi->regmap, FMC2_SEMCR(resource), &semcr);
drivers/memory/stm32-fmc2-ebi.c
1319
if (resource)
drivers/memory/stm32-fmc2-ebi.c
1321
resource, cid);
drivers/memory/stm32-fmc2-ebi.c
1326
ebi->sem_taken |= BIT(resource);
drivers/memory/stm32-fmc2-ebi.c
1333
unsigned int resource;
drivers/memory/stm32-fmc2-ebi.c
1335
for (resource = 0; resource < FMC2_MAX_RESOURCES; resource++) {
drivers/memory/stm32-fmc2-ebi.c
1336
if (!(ebi->sem_taken & BIT(resource)))
drivers/memory/stm32-fmc2-ebi.c
1339
regmap_update_bits(ebi->regmap, FMC2_SEMCR(resource),
drivers/memory/stm32-fmc2-ebi.c
1346
unsigned int resource;
drivers/memory/stm32-fmc2-ebi.c
1348
for (resource = 0; resource < FMC2_MAX_RESOURCES; resource++) {
drivers/memory/stm32-fmc2-ebi.c
1349
if (!(ebi->sem_taken & BIT(resource)))
drivers/memory/stm32-fmc2-ebi.c
1352
regmap_update_bits(ebi->regmap, FMC2_SEMCR(resource),
drivers/memory/stm32-fmc2-ebi.c
188
int (*check_rif)(struct stm32_fmc2_ebi *ebi, u32 resource);
drivers/memory/stm32_omm.c
32
struct resource *mm_res;
drivers/memory/stm32_omm.c
48
struct resource res, res1;
drivers/memory/tegra/tegra186.c
29
struct resource *res;
drivers/memory/ti-emif-pm.c
278
struct resource *res;
drivers/mfd/88pm800.c
124
static const struct resource rtc_resources[] = {
drivers/mfd/88pm800.c
137
static struct resource onkey_resources[] = {
drivers/mfd/88pm805.c
56
static struct resource codec_resources[] = {
drivers/mfd/88pm860x-core.c
100
static const struct resource ldo6_resources[] = {
drivers/mfd/88pm860x-core.c
103
static const struct resource ldo7_resources[] = {
drivers/mfd/88pm860x-core.c
106
static const struct resource ldo8_resources[] = {
drivers/mfd/88pm860x-core.c
109
static const struct resource ldo9_resources[] = {
drivers/mfd/88pm860x-core.c
112
static const struct resource ldo10_resources[] = {
drivers/mfd/88pm860x-core.c
115
static const struct resource ldo12_resources[] = {
drivers/mfd/88pm860x-core.c
118
static const struct resource ldo_vibrator_resources[] = {
drivers/mfd/88pm860x-core.c
121
static const struct resource ldo14_resources[] = {
drivers/mfd/88pm860x-core.c
125
static struct resource touch_resources[] = {
drivers/mfd/88pm860x-core.c
129
static struct resource onkey_resources[] = {
drivers/mfd/88pm860x-core.c
133
static struct resource codec_resources[] = {
drivers/mfd/88pm860x-core.c
145
static struct resource battery_resources[] = {
drivers/mfd/88pm860x-core.c
150
static struct resource charger_resources[] = {
drivers/mfd/88pm860x-core.c
164
static struct resource rtc_resources[] = {
drivers/mfd/88pm860x-core.c
29
static const struct resource bk0_resources[] = {
drivers/mfd/88pm860x-core.c
34
static const struct resource bk1_resources[] = {
drivers/mfd/88pm860x-core.c
39
static const struct resource bk2_resources[] = {
drivers/mfd/88pm860x-core.c
45
static const struct resource led0_resources[] = {
drivers/mfd/88pm860x-core.c
50
static const struct resource led1_resources[] = {
drivers/mfd/88pm860x-core.c
55
static const struct resource led2_resources[] = {
drivers/mfd/88pm860x-core.c
60
static const struct resource led3_resources[] = {
drivers/mfd/88pm860x-core.c
65
static const struct resource led4_resources[] = {
drivers/mfd/88pm860x-core.c
70
static const struct resource led5_resources[] = {
drivers/mfd/88pm860x-core.c
76
static const struct resource buck1_resources[] = {
drivers/mfd/88pm860x-core.c
79
static const struct resource buck2_resources[] = {
drivers/mfd/88pm860x-core.c
82
static const struct resource buck3_resources[] = {
drivers/mfd/88pm860x-core.c
85
static const struct resource ldo1_resources[] = {
drivers/mfd/88pm860x-core.c
88
static const struct resource ldo2_resources[] = {
drivers/mfd/88pm860x-core.c
91
static const struct resource ldo3_resources[] = {
drivers/mfd/88pm860x-core.c
94
static const struct resource ldo4_resources[] = {
drivers/mfd/88pm860x-core.c
97
static const struct resource ldo5_resources[] = {
drivers/mfd/88pm886.c
33
static const struct resource pm886_onkey_resources[] = {
drivers/mfd/altera-sysmgr.c
130
struct resource *res;
drivers/mfd/as3722.c
26
static const struct resource as3722_rtc_resource[] = {
drivers/mfd/as3722.c
30
static const struct resource as3722_adc_resource[] = {
drivers/mfd/atc260x-core.c
114
static const struct resource atc2603c_onkey_resources[] = {
drivers/mfd/atc260x-core.c
118
static const struct resource atc2609a_onkey_resources[] = {
drivers/mfd/axp20x.c
1076
static const struct resource axp288_adc_resources[] = {
drivers/mfd/axp20x.c
1080
static const struct resource axp288_extcon_resources[] = {
drivers/mfd/axp20x.c
1087
static const struct resource axp288_charger_resources[] = {
drivers/mfd/axp20x.c
294
static const struct resource axp152_pek_resources[] = {
drivers/mfd/axp20x.c
299
static const struct resource axp192_ac_power_supply_resources[] = {
drivers/mfd/axp20x.c
305
static const struct resource axp192_usb_power_supply_resources[] = {
drivers/mfd/axp20x.c
312
static const struct resource axp20x_ac_power_supply_resources[] = {
drivers/mfd/axp20x.c
318
static const struct resource axp20x_pek_resources[] = {
drivers/mfd/axp20x.c
323
static const struct resource axp20x_usb_power_supply_resources[] = {
drivers/mfd/axp20x.c
330
static const struct resource axp22x_usb_power_supply_resources[] = {
drivers/mfd/axp20x.c
335
static const struct resource axp717_usb_power_supply_resources[] = {
drivers/mfd/axp20x.c
342
static const struct resource axp803_usb_power_supply_resources[] = {
drivers/mfd/axp20x.c
347
static const struct resource axp22x_pek_resources[] = {
drivers/mfd/axp20x.c
352
static const struct resource axp288_power_button_resources[] = {
drivers/mfd/axp20x.c
357
static const struct resource axp288_fuel_gauge_resources[] = {
drivers/mfd/axp20x.c
366
static const struct resource axp313a_pek_resources[] = {
drivers/mfd/axp20x.c
371
static const struct resource axp717_pek_resources[] = {
drivers/mfd/axp20x.c
376
static const struct resource axp803_pek_resources[] = {
drivers/mfd/axp20x.c
381
static const struct resource axp806_pek_resources[] = {
drivers/mfd/axp20x.c
386
static const struct resource axp809_pek_resources[] = {
drivers/mfd/axp20x.c
391
static const struct resource axp15060_pek_resources[] = {
drivers/mfd/bcm2835-pm.c
32
struct resource *res;
drivers/mfd/cgbc-core.c
247
struct resource *ioport;
drivers/mfd/cgbc-core.c
268
static const struct resource cgbc_resources[] = {
drivers/mfd/cs5535-mfd.c
30
static struct resource cs5535_mfd_resources[NR_BARS];
drivers/mfd/cs5535-mfd.c
78
struct resource *r = &cs5535_mfd_resources[bar];
drivers/mfd/da9055-core.c
257
static const struct resource da9055_onkey_resource =
drivers/mfd/da9055-core.c
260
static const struct resource da9055_rtc_resource[] = {
drivers/mfd/da9055-core.c
265
static const struct resource da9055_hwmon_resource =
drivers/mfd/da9055-core.c
268
static const struct resource da9055_ld05_6_resource =
drivers/mfd/da9062-core.c
164
static const struct resource da9061_core_resources[] = {
drivers/mfd/da9062-core.c
168
static const struct resource da9061_regulators_resources[] = {
drivers/mfd/da9062-core.c
172
static const struct resource da9061_thermal_resources[] = {
drivers/mfd/da9062-core.c
176
static const struct resource da9061_wdt_resources[] = {
drivers/mfd/da9062-core.c
180
static const struct resource da9061_onkey_resources[] = {
drivers/mfd/da9062-core.c
205
static const struct resource da9062_core_resources[] = {
drivers/mfd/da9062-core.c
209
static const struct resource da9062_regulators_resources[] = {
drivers/mfd/da9062-core.c
213
static const struct resource da9062_thermal_resources[] = {
drivers/mfd/da9062-core.c
217
static const struct resource da9062_wdt_resources[] = {
drivers/mfd/da9062-core.c
221
static const struct resource da9062_rtc_resources[] = {
drivers/mfd/da9062-core.c
226
static const struct resource da9062_onkey_resources[] = {
drivers/mfd/da9062-core.c
230
static const struct resource da9062_gpio_resources[] = {
drivers/mfd/da9063-core.c
32
static const struct resource da9063_regulators_resources[] = {
drivers/mfd/da9063-core.c
41
static const struct resource da9063_rtc_resources[] = {
drivers/mfd/da9063-core.c
56
static const struct resource da9063_onkey_resources[] = {
drivers/mfd/da9063-core.c
65
static const struct resource da9063_hwmon_resources[] = {
drivers/mfd/da9150-core.c
353
static const struct resource da9150_gpadc_resources[] = {
drivers/mfd/da9150-core.c
357
static const struct resource da9150_charger_resources[] = {
drivers/mfd/da9150-core.c
364
static const struct resource da9150_fg_resources[] = {
drivers/mfd/db8500-prcmu.c
2957
struct resource ab850x_resource;
drivers/mfd/db8500-prcmu.c
3001
struct resource *res;
drivers/mfd/hi655x-pmic.c
51
static const struct resource pwrkey_resources[] = {
drivers/mfd/intel-lpss.c
102
static const struct resource intel_lpss_idma64_resources[] = {
drivers/mfd/intel-lpss.c
96
static const struct resource intel_lpss_dev_resources[] = {
drivers/mfd/intel-lpss.h
29
struct resource;
drivers/mfd/intel-lpss.h
33
struct resource *mem;
drivers/mfd/intel_pmc_bxt.c
243
static struct resource punit_res[6];
drivers/mfd/intel_pmc_bxt.c
256
static struct resource tco_res[2];
drivers/mfd/intel_pmc_bxt.c
267
static const struct resource telem_res[] = {
drivers/mfd/intel_pmc_bxt.c
280
struct resource *res;
drivers/mfd/intel_pmc_bxt.c
306
struct resource gcr_res;
drivers/mfd/intel_pmc_bxt.c
308
struct resource *res;
drivers/mfd/intel_quark_i2c_gpio.c
100
static struct resource intel_quark_gpio_res[] = {
drivers/mfd/intel_quark_i2c_gpio.c
199
struct resource *res = intel_quark_i2c_res;
drivers/mfd/intel_quark_i2c_gpio.c
221
struct resource *res = intel_quark_gpio_res;
drivers/mfd/intel_quark_i2c_gpio.c
86
static struct resource intel_quark_i2c_res[] = {
drivers/mfd/intel_soc_pmic_bxtwc.c
220
static const struct resource gpio_resources[] = {
drivers/mfd/intel_soc_pmic_bxtwc.c
224
static const struct resource adc_resources[] = {
drivers/mfd/intel_soc_pmic_bxtwc.c
228
static const struct resource usbc_resources[] = {
drivers/mfd/intel_soc_pmic_bxtwc.c
232
static const struct resource charger_resources[] = {
drivers/mfd/intel_soc_pmic_bxtwc.c
237
static const struct resource thermal_resources[] = {
drivers/mfd/intel_soc_pmic_bxtwc.c
241
static const struct resource bcu_resources[] = {
drivers/mfd/intel_soc_pmic_bxtwc.c
245
static const struct resource tmu_resources[] = {
drivers/mfd/intel_soc_pmic_chtdc_ti.c
35
static const struct resource power_button_resources[] = {
drivers/mfd/intel_soc_pmic_chtdc_ti.c
39
static const struct resource thermal_resources[] = {
drivers/mfd/intel_soc_pmic_chtdc_ti.c
43
static const struct resource adc_resources[] = {
drivers/mfd/intel_soc_pmic_chtdc_ti.c
47
static const struct resource pwrsrc_resources[] = {
drivers/mfd/intel_soc_pmic_chtdc_ti.c
51
static const struct resource battery_resources[] = {
drivers/mfd/intel_soc_pmic_chtwc.c
45
static const struct resource cht_wc_pwrsrc_resources[] = {
drivers/mfd/intel_soc_pmic_chtwc.c
49
static const struct resource cht_wc_ext_charger_resources[] = {
drivers/mfd/intel_soc_pmic_crc.c
34
static const struct resource pwrsrc_resources[] = {
drivers/mfd/intel_soc_pmic_crc.c
38
static const struct resource thermal_resources[] = {
drivers/mfd/intel_soc_pmic_crc.c
42
static const struct resource bcu_resources[] = {
drivers/mfd/intel_soc_pmic_crc.c
46
static const struct resource adc_resources[] = {
drivers/mfd/intel_soc_pmic_crc.c
50
static const struct resource charger_resources[] = {
drivers/mfd/intel_soc_pmic_crc.c
54
static const struct resource gpio_resources[] = {
drivers/mfd/intel_soc_pmic_mrfld.c
26
static struct resource irq_level2_resources[] = {
drivers/mfd/ioc3.c
158
static const struct resource ioc3_uarta_resources[] = {
drivers/mfd/ioc3.c
164
static const struct resource ioc3_uartb_resources[] = {
drivers/mfd/ioc3.c
204
&ipd->pdev->resource[0], 0, ipd->domain);
drivers/mfd/ioc3.c
213
static const struct resource ioc3_kbd_resources[] = {
drivers/mfd/ioc3.c
233
&ipd->pdev->resource[0], 0, ipd->domain);
drivers/mfd/ioc3.c
242
static const struct resource ioc3_eth_resources[] = {
drivers/mfd/ioc3.c
250
static const struct resource ioc3_w1_resources[] = {
drivers/mfd/ioc3.c
281
ipd->pdev->resource->start);
drivers/mfd/ioc3.c
285
&ipd->pdev->resource[0], ipd->pdev->irq, NULL);
drivers/mfd/ioc3.c
294
static const struct resource ioc3_m48t35_resources[] = {
drivers/mfd/ioc3.c
312
&ipd->pdev->resource[0], 0, ipd->domain);
drivers/mfd/ioc3.c
326
static const struct resource ioc3_rtc_ds1685_resources[] = {
drivers/mfd/ioc3.c
351
&ipd->pdev->resource[0], irq, NULL);
drivers/mfd/ioc3.c
359
static const struct resource ioc3_leds_resources[] = {
drivers/mfd/ioc3.c
381
&ipd->pdev->resource[0], 0, ipd->domain);
drivers/mfd/janz-cmodio.c
53
struct resource resources[3 * CMODIO_MAX_MODULES];
drivers/mfd/janz-cmodio.c
67
struct resource *res;
drivers/mfd/janz-cmodio.c
89
res->parent = &pci->resource[3];
drivers/mfd/janz-cmodio.c
90
res->start = pci->resource[3].start + (CMODIO_MODULBUS_SIZE * modno);
drivers/mfd/janz-cmodio.c
96
res->parent = &pci->resource[4];
drivers/mfd/janz-cmodio.c
97
res->start = pci->resource[4].start;
drivers/mfd/janz-cmodio.c
98
res->end = pci->resource[4].end;
drivers/mfd/kempld-core.c
115
static struct resource kempld_ioresource = {
drivers/mfd/kempld-core.c
411
struct resource *ioport;
drivers/mfd/lp8788.c
37
static const struct resource chg_irqs[] = {
drivers/mfd/lp8788.c
61
static const struct resource rtc_irqs[] = {
drivers/mfd/lpc_ich.c
104
static struct resource gpio_ich_res[] = {
drivers/mfd/lpc_ich.c
1062
static int lpc_ich_check_conflict_gpio(struct resource *res)
drivers/mfd/lpc_ich.c
1088
struct resource *res;
drivers/mfd/lpc_ich.c
115
static struct resource intel_spi_res[] = {
drivers/mfd/lpc_ich.c
1164
struct resource *res;
drivers/mfd/lpc_ich.c
1240
struct resource base;
drivers/mfd/lpc_ich.c
1253
struct resource *mem = info->resources[i];
drivers/mfd/lpc_ich.c
1311
struct resource *res = &intel_spi_res[0];
drivers/mfd/lpc_ich.c
141
struct resource **resources;
drivers/mfd/lpc_ich.c
164
static struct resource apl_gpio_resources[APL_GPIO_NR_DEVICES][2] = {
drivers/mfd/lpc_ich.c
183
static struct resource *apl_gpio_mem_resources[APL_GPIO_NR_RESOURCES] = {
drivers/mfd/lpc_ich.c
244
static struct resource dnv_gpio_resources[DNV_GPIO_NR_RESOURCES + 1] = {
drivers/mfd/lpc_ich.c
250
static struct resource *dnv_gpio_mem_resources[DNV_GPIO_NR_RESOURCES] = {
drivers/mfd/lpc_ich.c
89
static struct resource wdt_ich_res[] = {
drivers/mfd/lpc_sch.c
111
struct resource *res;
drivers/mfd/lpc_sch.c
79
struct resource *res, int size)
drivers/mfd/ls2k-bmc-core.c
103
static struct resource ls2k_ipmi1_resources[] = {
drivers/mfd/ls2k-bmc-core.c
107
static struct resource ls2k_ipmi2_resources[] = {
drivers/mfd/ls2k-bmc-core.c
111
static struct resource ls2k_ipmi3_resources[] = {
drivers/mfd/ls2k-bmc-core.c
115
static struct resource ls2k_ipmi4_resources[] = {
drivers/mfd/ls2k-bmc-core.c
95
static struct resource ls2k_display_resources[] = {
drivers/mfd/ls2k-bmc-core.c
99
static struct resource ls2k_ipmi0_resources[] = {
drivers/mfd/max77620.c
39
static const struct resource gpio_resources[] = {
drivers/mfd/max77620.c
43
static const struct resource power_resources[] = {
drivers/mfd/max77620.c
47
static const struct resource rtc_resources[] = {
drivers/mfd/max77620.c
51
static const struct resource thermal_resources[] = {
drivers/mfd/max77650.c
58
static const struct resource max77650_charger_resources[] = {
drivers/mfd/max77650.c
63
static const struct resource max77650_gpio_resources[] = {
drivers/mfd/max77650.c
67
static const struct resource max77650_onkey_resources[] = {
drivers/mfd/max77759.c
323
static const struct resource max77759_gpio_resources[] = {
drivers/mfd/max77759.c
327
static const struct resource max77759_charger_resources[] = {
drivers/mfd/max8925-core.c
112
static const struct resource sd1_resources[] = {
drivers/mfd/max8925-core.c
116
static const struct resource sd2_resources[] = {
drivers/mfd/max8925-core.c
120
static const struct resource sd3_resources[] = {
drivers/mfd/max8925-core.c
124
static const struct resource ldo1_resources[] = {
drivers/mfd/max8925-core.c
128
static const struct resource ldo2_resources[] = {
drivers/mfd/max8925-core.c
132
static const struct resource ldo3_resources[] = {
drivers/mfd/max8925-core.c
136
static const struct resource ldo4_resources[] = {
drivers/mfd/max8925-core.c
140
static const struct resource ldo5_resources[] = {
drivers/mfd/max8925-core.c
144
static const struct resource ldo6_resources[] = {
drivers/mfd/max8925-core.c
148
static const struct resource ldo7_resources[] = {
drivers/mfd/max8925-core.c
152
static const struct resource ldo8_resources[] = {
drivers/mfd/max8925-core.c
156
static const struct resource ldo9_resources[] = {
drivers/mfd/max8925-core.c
160
static const struct resource ldo10_resources[] = {
drivers/mfd/max8925-core.c
164
static const struct resource ldo11_resources[] = {
drivers/mfd/max8925-core.c
168
static const struct resource ldo12_resources[] = {
drivers/mfd/max8925-core.c
172
static const struct resource ldo13_resources[] = {
drivers/mfd/max8925-core.c
176
static const struct resource ldo14_resources[] = {
drivers/mfd/max8925-core.c
180
static const struct resource ldo15_resources[] = {
drivers/mfd/max8925-core.c
184
static const struct resource ldo16_resources[] = {
drivers/mfd/max8925-core.c
188
static const struct resource ldo17_resources[] = {
drivers/mfd/max8925-core.c
192
static const struct resource ldo18_resources[] = {
drivers/mfd/max8925-core.c
196
static const struct resource ldo19_resources[] = {
drivers/mfd/max8925-core.c
200
static const struct resource ldo20_resources[] = {
drivers/mfd/max8925-core.c
21
static const struct resource bk_resources[] = {
drivers/mfd/max8925-core.c
35
static const struct resource touch_resources[] = {
drivers/mfd/max8925-core.c
53
static const struct resource power_supply_resources[] = {
drivers/mfd/max8925-core.c
71
static const struct resource rtc_resources[] = {
drivers/mfd/max8925-core.c
89
static const struct resource onkey_resources[] = {
drivers/mfd/mcp-sa11x0.c
156
struct resource *mem0, *mem1;
drivers/mfd/mcp-sa11x0.c
239
struct resource *mem0, *mem1;
drivers/mfd/mfd-core.c
143
struct resource *mem_base,
drivers/mfd/mfd-core.c
146
struct resource *res;
drivers/mfd/mfd-core.c
322
struct resource *mem_base,
drivers/mfd/mfd-core.c
419
struct resource *mem_base,
drivers/mfd/mt6360-core.c
283
static const struct resource mt6360_adc_resources[] = {
drivers/mfd/mt6360-core.c
287
static const struct resource mt6360_chg_resources[] = {
drivers/mfd/mt6360-core.c
305
static const struct resource mt6360_led_resources[] = {
drivers/mfd/mt6360-core.c
314
static const struct resource mt6360_regulator_resources[] = {
drivers/mfd/mt6370.c
124
static const struct resource mt6370_regulator_irqs[] = {
drivers/mfd/mt6397-core.c
105
static const struct resource mt6357_keys_resources[] = {
drivers/mfd/mt6397-core.c
112
static const struct resource mt6331_keys_resources[] = {
drivers/mfd/mt6397-core.c
117
static const struct resource mt6397_keys_resources[] = {
drivers/mfd/mt6397-core.c
122
static const struct resource mt6323_pwrc_resources[] = {
drivers/mfd/mt6397-core.c
48
static const struct resource mt6323_rtc_resources[] = {
drivers/mfd/mt6397-core.c
53
static const struct resource mt6357_rtc_resources[] = {
drivers/mfd/mt6397-core.c
58
static const struct resource mt6331_rtc_resources[] = {
drivers/mfd/mt6397-core.c
63
static const struct resource mt6358_rtc_resources[] = {
drivers/mfd/mt6397-core.c
68
static const struct resource mt6397_rtc_resources[] = {
drivers/mfd/mt6397-core.c
73
static const struct resource mt6358_keys_resources[] = {
drivers/mfd/mt6397-core.c
80
static const struct resource mt6359_keys_resources[] = {
drivers/mfd/mt6397-core.c
87
static const struct resource mt6359_accdet_resources[] = {
drivers/mfd/mt6397-core.c
93
static const struct resource mt6323_keys_resources[] = {
drivers/mfd/mt6397-core.c
98
static const struct resource mt6328_keys_resources[] = {
drivers/mfd/mxs-lradc.c
132
struct resource *res;
drivers/mfd/mxs-lradc.c
55
static struct resource mx23_adc_resources[] = {
drivers/mfd/mxs-lradc.c
65
static struct resource mx23_touchscreen_resources[] = {
drivers/mfd/mxs-lradc.c
72
static struct resource mx28_adc_resources[] = {
drivers/mfd/mxs-lradc.c
86
static struct resource mx28_touchscreen_resources[] = {
drivers/mfd/ocelot-core.c
118
static const struct resource vsc7512_miim0_resources[] = {
drivers/mfd/ocelot-core.c
123
static const struct resource vsc7512_miim1_resources[] = {
drivers/mfd/ocelot-core.c
127
static const struct resource vsc7512_pinctrl_resources[] = {
drivers/mfd/ocelot-core.c
131
static const struct resource vsc7512_sgpio_resources[] = {
drivers/mfd/ocelot-core.c
135
static const struct resource vsc7512_serdes_resources[] = {
drivers/mfd/ocelot-core.c
139
static const struct resource vsc7512_switch_resources[] = {
drivers/mfd/ocelot-core.c
201
const struct resource *res)
drivers/mfd/ocelot-spi.c
184
struct regmap *ocelot_spi_init_regmap(struct device *dev, const struct resource *res)
drivers/mfd/ocelot-spi.c
44
static const struct resource vsc7512_dev_cpuorg_resource =
drivers/mfd/ocelot-spi.c
49
static const struct resource vsc7512_gcb_resource =
drivers/mfd/ocelot.h
11
struct resource;
drivers/mfd/ocelot.h
38
const struct resource *res);
drivers/mfd/omap-usb-host.c
145
struct resource *res, int num_resources, void *pdata,
drivers/mfd/omap-usb-host.c
195
struct resource *res;
drivers/mfd/omap-usb-host.c
196
struct resource resources[2];
drivers/mfd/pf1550.c
103
static const struct resource onkey_resources[] = {
drivers/mfd/pf1550.c
132
static const struct resource charger_resources[] = {
drivers/mfd/pf1550.c
68
static const struct resource regulator_resources[] = {
drivers/mfd/qcom-pm8008.c
175
static const struct resource pm8008_temp_res[] = {
drivers/mfd/qcom_rpm.c
449
int resource,
drivers/mfd/qcom_rpm.c
459
if (WARN_ON(resource < 0 || resource >= data->n_resources))
drivers/mfd/qcom_rpm.c
462
res = &data->resource_table[resource];
drivers/mfd/rdc321x-southbridge.c
17
static const struct resource rdc321x_wdt_resource[] = {
drivers/mfd/rdc321x-southbridge.c
30
static const struct resource rdc321x_gpio_resources[] = {
drivers/mfd/retu-mfd.c
48
static const struct resource retu_pwrbutton_res[] = {
drivers/mfd/retu-mfd.c
87
static const struct resource tahvo_usb_res[] = {
drivers/mfd/rk8xx-core.c
28
static const struct resource rtc_resources[] = {
drivers/mfd/rk8xx-core.c
32
static const struct resource rk816_rtc_resources[] = {
drivers/mfd/rk8xx-core.c
36
static const struct resource rk817_rtc_resources[] = {
drivers/mfd/rk8xx-core.c
40
static const struct resource rk801_key_resources[] = {
drivers/mfd/rk8xx-core.c
45
static const struct resource rk805_key_resources[] = {
drivers/mfd/rk8xx-core.c
50
static struct resource rk806_pwrkey_resources[] = {
drivers/mfd/rk8xx-core.c
55
static const struct resource rk817_pwrkey_resources[] = {
drivers/mfd/rk8xx-core.c
60
static const struct resource rk817_charger_resources[] = {
drivers/mfd/rohm-bd71828.c
136
static const struct resource bd71828_power_irqs[] = {
drivers/mfd/rohm-bd71828.c
183
static const struct resource bd72720_power_irqs[] = {
drivers/mfd/rohm-bd71828.c
52
static const struct resource bd71815_rtc_irqs[] = {
drivers/mfd/rohm-bd71828.c
58
static const struct resource bd71828_rtc_irqs[] = {
drivers/mfd/rohm-bd71828.c
64
static const struct resource bd72720_rtc_irqs[] = {
drivers/mfd/rohm-bd71828.c
70
static const struct resource bd71815_power_irqs[] = {
drivers/mfd/rohm-bd9576.c
30
static const struct resource bd9576_regulator_irqs[] = {
drivers/mfd/rohm-bd96801.c
117
static const struct resource bd96802_reg_errb_irqs[] = {
drivers/mfd/rohm-bd96801.c
147
static const struct resource bd96801_reg_intb_irqs[] = {
drivers/mfd/rohm-bd96801.c
191
static const struct resource bd96802_reg_intb_irqs[] = {
drivers/mfd/rohm-bd96801.c
45
const struct resource *errb_irqs;
drivers/mfd/rohm-bd96801.c
46
const struct resource *intb_irqs;
drivers/mfd/rohm-bd96801.c
58
static const struct resource bd96801_reg_errb_irqs[] = {
drivers/mfd/rohm-bd96801.c
645
struct resource *regulator_res;
drivers/mfd/rohm-bd96801.c
646
struct resource wdg_irq;
drivers/mfd/rohm-bd96801.c
718
struct resource *res = ®ulator_res[i];
drivers/mfd/rohm-bd96801.c
743
struct resource *res = ®ulator_res[ddata->num_intb_irqs + i];
drivers/mfd/rt5120.c
70
static const struct resource rt5120_regulator_resources[] = {
drivers/mfd/rt5120.c
74
static const struct resource rt5120_pwrkey_resources[] = {
drivers/mfd/sec-common.c
26
static const struct resource s5m8767_rtc_resources[] = {
drivers/mfd/sec-common.c
40
static const struct resource s2mpg10_rtc_resources[] = {
drivers/mfd/sec-common.c
58
static const struct resource s2mps11_rtc_resources[] = {
drivers/mfd/sec-common.c
68
static const struct resource s2mps14_rtc_resources[] = {
drivers/mfd/sec-common.c
99
static const struct resource s2mpu05_rtc_resources[] = {
drivers/mfd/sm501.c
1568
sm->io_res = &dev->resource[1];
drivers/mfd/sm501.c
1569
sm->mem_res = &dev->resource[0];
drivers/mfd/sm501.c
54
struct resource *regs_res;
drivers/mfd/sm501.c
663
(sizeof(struct resource) * res_count) +
drivers/mfd/sm501.c
676
smdev->pdev.resource = (struct resource *)(smdev+1);
drivers/mfd/sm501.c
69
struct resource *io_res;
drivers/mfd/sm501.c
699
pdev->name, ptr, &pdev->resource[ptr]);
drivers/mfd/sm501.c
70
struct resource *mem_res;
drivers/mfd/sm501.c
71
struct resource *regs_claim;
drivers/mfd/sm501.c
720
struct resource *res,
drivers/mfd/sm501.c
736
struct resource *res,
drivers/mfd/sm501.c
754
struct resource *res)
drivers/mfd/sm501.c
770
sm501_create_subio(sm, &pdev->resource[0], 0x40000, 0x20000);
drivers/mfd/sm501.c
771
sm501_create_mem(sm, &pdev->resource[1], mem_avail, 256*1024);
drivers/mfd/sm501.c
772
sm501_create_irq(sm, &pdev->resource[2]);
drivers/mfd/sm501.c
829
sm501_create_subio(sm, &pdev->resource[0], 0x80000, 0x10000);
drivers/mfd/sm501.c
830
sm501_create_subio(sm, &pdev->resource[1], 0x100000, 0x50000);
drivers/mfd/sm501.c
831
sm501_create_mem(sm, &pdev->resource[2], mem_avail, *mem_avail);
drivers/mfd/sm501.c
832
sm501_create_irq(sm, &pdev->resource[3]);
drivers/mfd/stm32-timers.c
291
struct resource *res;
drivers/mfd/stmfx.c
59
static const struct resource stmfx_pinctrl_resources[] = {
drivers/mfd/stmfx.c
63
static const struct resource stmfx_idd_resources[] = {
drivers/mfd/stmfx.c
68
static const struct resource stmfx_ts_resources[] = {
drivers/mfd/stmpe.c
1315
struct resource *res =
drivers/mfd/stmpe.c
1316
(struct resource *) &block->cell->resources[j];
drivers/mfd/stmpe.c
309
static struct resource stmpe_gpio_resources[] = {
drivers/mfd/stmpe.c
333
static struct resource stmpe_keypad_resources[] = {
drivers/mfd/stmpe.c
355
static struct resource stmpe_pwm_resources[] = {
drivers/mfd/stmpe.c
444
static struct resource stmpe_ts_resources[] = {
drivers/mfd/stmpe.c
467
static struct resource stmpe_adc_resources[] = {
drivers/mfd/sun4i-gpadc.c
21
static const struct resource adc_resources[] = {
drivers/mfd/sun6i-prcm.c
132
struct resource *res;
drivers/mfd/sun6i-prcm.c
22
static const struct resource sun6i_a31_ar100_clk_res[] = {
drivers/mfd/sun6i-prcm.c
26
static const struct resource sun6i_a31_apb0_clk_res[] = {
drivers/mfd/sun6i-prcm.c
30
static const struct resource sun6i_a31_apb0_gates_clk_res[] = {
drivers/mfd/sun6i-prcm.c
34
static const struct resource sun6i_a31_ir_clk_res[] = {
drivers/mfd/sun6i-prcm.c
38
static const struct resource sun6i_a31_apb0_rstc_res[] = {
drivers/mfd/sun6i-prcm.c
42
static const struct resource sun8i_codec_analog_res[] = {
drivers/mfd/syscon.c
48
struct resource res;
drivers/mfd/tc3589x.c
144
static const struct resource gpio_resources[] = {
drivers/mfd/tc3589x.c
152
static const struct resource keypad_resources[] = {
drivers/mfd/ti_am335x_tscadc.c
118
struct resource *res;
drivers/mfd/timberdale.c
145
static const struct resource timberdale_spi_resources[] = {
drivers/mfd/timberdale.c
164
static const struct resource timberdale_eth_resources[] = {
drivers/mfd/timberdale.c
184
static const struct resource timberdale_gpio_resources[] = {
drivers/mfd/timberdale.c
197
static const struct resource timberdale_mlogicore_resources[] = {
drivers/mfd/timberdale.c
215
static const struct resource timberdale_uart_resources[] = {
drivers/mfd/timberdale.c
228
static const struct resource timberdale_uartlite_resources[] = {
drivers/mfd/timberdale.c
256
static const struct resource
drivers/mfd/timberdale.c
285
static const struct resource timberdale_video_resources[] = {
drivers/mfd/timberdale.c
356
static const struct resource timberdale_dma_resources[] = {
drivers/mfd/timberdale.c
600
static const struct resource timberdale_sdhc_resources[] = {
drivers/mfd/timberdale.c
749
&dev->resource[0], msix_entries[0].vector, NULL);
drivers/mfd/timberdale.c
755
&dev->resource[0], msix_entries[0].vector, NULL);
drivers/mfd/timberdale.c
761
&dev->resource[0], msix_entries[0].vector, NULL);
drivers/mfd/timberdale.c
767
&dev->resource[0], msix_entries[0].vector, NULL);
drivers/mfd/timberdale.c
782
&dev->resource[1], msix_entries[0].vector, NULL);
drivers/mfd/timberdale.c
793
&dev->resource[2], msix_entries[0].vector, NULL);
drivers/mfd/timberdale.c
84
static const struct resource timberdale_xiic_resources[] = {
drivers/mfd/timberdale.c
97
static const struct resource timberdale_ocores_resources[] = {
drivers/mfd/tps65090.c
40
static const struct resource charger_resources[] = {
drivers/mfd/tps65217.c
27
static const struct resource charger_resources[] = {
drivers/mfd/tps65217.c
32
static const struct resource pb_resources[] = {
drivers/mfd/tps65219.c
101
static const struct resource tps65215_regulator_resources[] = {
drivers/mfd/tps65219.c
141
static const struct resource tps65219_regulator_resources[] = {
drivers/mfd/tps65219.c
58
static const struct resource tps65219_pwrbutton_resources[] = {
drivers/mfd/tps65219.c
63
static const struct resource tps65214_regulator_resources[] = {
drivers/mfd/tps6586x.c
97
static const struct resource tps6586x_rtc_resources[] = {
drivers/mfd/tps65910.c
24
static const struct resource rtc_resources[] = {
drivers/mfd/tps6594-core.c
123
static const struct resource tps6594_esm_resources[] = {
drivers/mfd/tps6594-core.c
129
static const struct resource tps6594_rtc_resources[] = {
drivers/mfd/tps6594-core.c
135
static const struct resource tps6594_pwrbutton_resources[] = {
drivers/mfd/tps6594-core.c
298
static const struct resource tps65224_regulator_resources[] = {
drivers/mfd/tps6594-core.c
31
static const struct resource tps6594_regulator_resources[] = {
drivers/mfd/tps6594-core.c
311
static const struct resource tps65224_pinctrl_resources[] = {
drivers/mfd/tps6594-core.c
320
static const struct resource tps65224_pfsm_resources[] = {
drivers/mfd/tps6594-core.c
347
static const struct resource tps65224_adc_resources[] = {
drivers/mfd/tps6594-core.c
78
static const struct resource tps6594_pinctrl_resources[] = {
drivers/mfd/tps6594-core.c
92
static const struct resource tps6594_pfsm_resources[] = {
drivers/mfd/tqmx86.c
75
static struct resource tqmx_i2c_soft_resources[] = {
drivers/mfd/tqmx86.c
81
static const struct resource tqmx_watchdog_resources[] = {
drivers/mfd/tqmx86.c
90
static struct resource tqmx_gpio_resources[] = {
drivers/mfd/twl4030-audio.c
119
if (!audio->resource[id].request_count) {
drivers/mfd/twl4030-audio.c
125
audio->resource[id].request_count--;
drivers/mfd/twl4030-audio.c
127
if (!audio->resource[id].request_count)
drivers/mfd/twl4030-audio.c
218
audio->resource[TWL4030_AUDIO_RES_POWER].reg = TWL4030_REG_CODEC_MODE;
drivers/mfd/twl4030-audio.c
219
audio->resource[TWL4030_AUDIO_RES_POWER].mask = TWL4030_CODECPDZ;
drivers/mfd/twl4030-audio.c
222
audio->resource[TWL4030_AUDIO_RES_APLL].reg = TWL4030_REG_APLL_CTL;
drivers/mfd/twl4030-audio.c
223
audio->resource[TWL4030_AUDIO_RES_APLL].mask = TWL4030_APLL_EN;
drivers/mfd/twl4030-audio.c
36
struct twl4030_audio_resource resource[TWL4030_AUDIO_RES_MAX];
drivers/mfd/twl4030-audio.c
50
audio->resource[id].reg);
drivers/mfd/twl4030-audio.c
53
val |= audio->resource[id].mask;
drivers/mfd/twl4030-audio.c
55
val &= ~audio->resource[id].mask;
drivers/mfd/twl4030-audio.c
58
val, audio->resource[id].reg);
drivers/mfd/twl4030-audio.c
69
audio->resource[id].reg);
drivers/mfd/twl4030-audio.c
90
if (!audio->resource[id].request_count)
drivers/mfd/twl4030-audio.c
96
audio->resource[id].request_count++;
drivers/mfd/twl4030-power.c
178
{ .resource = (res), .devgroup = (devgrp), \
drivers/mfd/twl4030-power.c
183
{ .resource = (res), .devgroup = (devgrp), \
drivers/mfd/twl4030-power.c
380
if (rconfig->resource > TOTAL_RESOURCES) {
drivers/mfd/twl4030-power.c
382
rconfig->resource);
drivers/mfd/twl4030-power.c
386
rconfig_addr = res_config_addrs[rconfig->resource];
drivers/mfd/twl4030-power.c
393
rconfig->resource);
drivers/mfd/twl4030-power.c
413
rconfig->resource);
drivers/mfd/twl4030-power.c
439
rconfig->resource);
drivers/mfd/twl4030-power.c
583
while (common->resource) {
drivers/mfd/twl4030-power.c
586
while (b->resource) {
drivers/mfd/twl4030-power.c
587
if (b->resource == common->resource) {
drivers/mfd/twl4030-power.c
608
while (resconfig->resource) {
drivers/mfd/twl6040.c
549
static struct resource twl6040_vibra_rsrc[] = {
drivers/mfd/twl6040.c
555
static struct resource twl6040_codec_rsrc[] = {
drivers/mfd/vexpress-sysreg.c
102
struct resource *mem;
drivers/mfd/vx855.c
39
static struct resource vx855_gpio_resources[] = {
drivers/mfd/wm831x-core.c
618
static const struct resource wm831x_dcdc1_resources[] = {
drivers/mfd/wm831x-core.c
629
static const struct resource wm831x_dcdc2_resources[] = {
drivers/mfd/wm831x-core.c
639
static const struct resource wm831x_dcdc3_resources[] = {
drivers/mfd/wm831x-core.c
648
static const struct resource wm831x_dcdc4_resources[] = {
drivers/mfd/wm831x-core.c
657
static const struct resource wm8320_dcdc4_buck_resources[] = {
drivers/mfd/wm831x-core.c
666
static const struct resource wm831x_gpio_resources[] = {
drivers/mfd/wm831x-core.c
674
static const struct resource wm831x_isink1_resources[] = {
drivers/mfd/wm831x-core.c
683
static const struct resource wm831x_isink2_resources[] = {
drivers/mfd/wm831x-core.c
692
static const struct resource wm831x_ldo1_resources[] = {
drivers/mfd/wm831x-core.c
701
static const struct resource wm831x_ldo2_resources[] = {
drivers/mfd/wm831x-core.c
710
static const struct resource wm831x_ldo3_resources[] = {
drivers/mfd/wm831x-core.c
719
static const struct resource wm831x_ldo4_resources[] = {
drivers/mfd/wm831x-core.c
728
static const struct resource wm831x_ldo5_resources[] = {
drivers/mfd/wm831x-core.c
737
static const struct resource wm831x_ldo6_resources[] = {
drivers/mfd/wm831x-core.c
746
static const struct resource wm831x_ldo7_resources[] = {
drivers/mfd/wm831x-core.c
755
static const struct resource wm831x_ldo8_resources[] = {
drivers/mfd/wm831x-core.c
764
static const struct resource wm831x_ldo9_resources[] = {
drivers/mfd/wm831x-core.c
773
static const struct resource wm831x_ldo10_resources[] = {
drivers/mfd/wm831x-core.c
782
static const struct resource wm831x_ldo11_resources[] = {
drivers/mfd/wm831x-core.c
790
static const struct resource wm831x_on_resources[] = {
drivers/mfd/wm831x-core.c
795
static const struct resource wm831x_power_resources[] = {
drivers/mfd/wm831x-core.c
809
static const struct resource wm831x_rtc_resources[] = {
drivers/mfd/wm831x-core.c
814
static const struct resource wm831x_status1_resources[] = {
drivers/mfd/wm831x-core.c
822
static const struct resource wm831x_status2_resources[] = {
drivers/mfd/wm831x-core.c
830
static const struct resource wm831x_touch_resources[] = {
drivers/mfd/wm831x-core.c
835
static const struct resource wm831x_wdt_resources[] = {
drivers/mfd/wm8994-core.c
42
static const struct resource wm8994_codec_resources[] = {
drivers/mfd/wm8994-core.c
50
static const struct resource wm8994_gpio_resources[] = {
drivers/misc/atmel-ssc.c
192
struct resource *regs;
drivers/misc/c2port/c2port-duramar2150.c
120
struct resource *res;
drivers/misc/cs5535-mfgpt.c
319
struct resource *res;
drivers/misc/dw-xdata-pcie.c
327
dw->rg_region.paddr = pdev->resource[BAR_0].start;
drivers/misc/fastrpc.c
2386
struct resource res;
drivers/misc/keba/cp500.c
346
cp500->i2c->io = (struct resource) {
drivers/misc/keba/cp500.c
404
cp500->spi->io = (struct resource) {
drivers/misc/keba/cp500.c
454
cp500->fan->io = (struct resource) {
drivers/misc/keba/cp500.c
502
cp500->batt->io = (struct resource) {
drivers/misc/keba/cp500.c
552
(*uart)->io = (struct resource) {
drivers/misc/keba/cp500.c
866
struct resource startup;
drivers/misc/mei/gsc-me.c
35
static void mei_gsc_set_ext_op_mem(const struct mei_me_hw *hw, struct resource *mem)
drivers/misc/pvpanic/pvpanic-mmio.c
29
struct resource *res;
drivers/misc/sram.c
175
static int sram_reserve_regions(struct sram_dev *sram, struct resource *res)
drivers/misc/sram.c
200
struct resource child_res;
drivers/misc/sram.c
381
struct resource *res;
drivers/misc/sram.h
39
struct resource res;
drivers/misc/tps6594-esm.c
24
if (irq == platform_get_irq_byname(pdev, pdev->resource[i].name)) {
drivers/misc/tps6594-esm.c
25
dev_err(pdev->dev.parent, "%s error detected\n", pdev->resource[i].name);
drivers/misc/tps6594-esm.c
57
irq = platform_get_irq_byname(pdev, pdev->resource[i].name);
drivers/misc/tps6594-esm.c
63
pdev->resource[i].name, pdev);
drivers/misc/tps6594-pfsm.c
268
if (irq == platform_get_irq_byname(pdev, pdev->resource[i].name)) {
drivers/misc/tps6594-pfsm.c
269
dev_err(pdev->dev.parent, "%s event detected\n", pdev->resource[i].name);
drivers/misc/tps6594-pfsm.c
303
irq = platform_get_irq_byname(pdev, pdev->resource[i].name);
drivers/misc/tps6594-pfsm.c
309
pdev->resource[i].name, pdev);
drivers/misc/vcpu_stall_detector.c
142
struct resource *r;
drivers/misc/vmw_balloon.c
1380
b->vmci_doorbell.resource, NULL);
drivers/misc/vmw_vmci/vmci_context.c
1015
handle.context, handle.resource);
drivers/misc/vmw_vmci/vmci_datagram.c
114
struct vmci_resource *resource;
drivers/misc/vmw_vmci/vmci_datagram.c
116
resource = vmci_resource_by_handle(handle,
drivers/misc/vmw_vmci/vmci_datagram.c
118
if (!resource)
drivers/misc/vmw_vmci/vmci_datagram.c
121
src_entry = container_of(resource, struct datagram_entry,
drivers/misc/vmw_vmci/vmci_datagram.c
122
resource);
drivers/misc/vmw_vmci/vmci_datagram.c
124
vmci_resource_put(resource);
drivers/misc/vmw_vmci/vmci_datagram.c
143
vmci_resource_put(&dg_info->entry->resource);
drivers/misc/vmw_vmci/vmci_datagram.c
172
context_id, dg->src.context, dg->src.resource);
drivers/misc/vmw_vmci/vmci_datagram.c
181
dg->src.context, dg->src.resource);
drivers/misc/vmw_vmci/vmci_datagram.c
189
struct vmci_resource *resource;
drivers/misc/vmw_vmci/vmci_datagram.c
192
dg->dst.resource == VMCI_EVENT_HANDLER) {
drivers/misc/vmw_vmci/vmci_datagram.c
196
resource = vmci_resource_by_handle(dg->dst,
drivers/misc/vmw_vmci/vmci_datagram.c
198
if (!resource) {
drivers/misc/vmw_vmci/vmci_datagram.c
200
dg->dst.context, dg->dst.resource);
drivers/misc/vmw_vmci/vmci_datagram.c
203
dst_entry = container_of(resource, struct datagram_entry,
drivers/misc/vmw_vmci/vmci_datagram.c
204
resource);
drivers/misc/vmw_vmci/vmci_datagram.c
207
vmci_resource_put(resource);
drivers/misc/vmw_vmci/vmci_datagram.c
223
vmci_resource_put(resource);
drivers/misc/vmw_vmci/vmci_datagram.c
231
vmci_resource_put(resource);
drivers/misc/vmw_vmci/vmci_datagram.c
246
vmci_resource_put(resource);
drivers/misc/vmw_vmci/vmci_datagram.c
27
struct vmci_resource resource;
drivers/misc/vmw_vmci/vmci_datagram.c
298
struct vmci_resource *resource;
drivers/misc/vmw_vmci/vmci_datagram.c
300
resource = vmci_resource_by_handle(dg->src,
drivers/misc/vmw_vmci/vmci_datagram.c
302
if (!resource)
drivers/misc/vmw_vmci/vmci_datagram.c
306
vmci_resource_put(resource);
drivers/misc/vmw_vmci/vmci_datagram.c
357
struct vmci_resource *resource;
drivers/misc/vmw_vmci/vmci_datagram.c
360
resource = vmci_resource_by_handle(dg->dst,
drivers/misc/vmw_vmci/vmci_datagram.c
362
if (!resource) {
drivers/misc/vmw_vmci/vmci_datagram.c
364
dg->dst.context, dg->dst.resource);
drivers/misc/vmw_vmci/vmci_datagram.c
368
dst_entry = container_of(resource, struct datagram_entry, resource);
drivers/misc/vmw_vmci/vmci_datagram.c
375
vmci_resource_put(resource);
drivers/misc/vmw_vmci/vmci_datagram.c
388
vmci_resource_put(resource);
drivers/misc/vmw_vmci/vmci_datagram.c
464
struct vmci_resource *resource;
drivers/misc/vmw_vmci/vmci_datagram.c
466
resource = vmci_resource_by_handle(handle, VMCI_RESOURCE_TYPE_DATAGRAM);
drivers/misc/vmw_vmci/vmci_datagram.c
467
if (!resource) {
drivers/misc/vmw_vmci/vmci_datagram.c
469
handle.context, handle.resource);
drivers/misc/vmw_vmci/vmci_datagram.c
473
entry = container_of(resource, struct datagram_entry, resource);
drivers/misc/vmw_vmci/vmci_datagram.c
475
vmci_resource_put(&entry->resource);
drivers/misc/vmw_vmci/vmci_datagram.c
476
vmci_resource_remove(&entry->resource);
drivers/misc/vmw_vmci/vmci_datagram.c
87
result = vmci_resource_add(&entry->resource,
drivers/misc/vmw_vmci/vmci_datagram.c
92
handle.context, handle.resource, result);
drivers/misc/vmw_vmci/vmci_datagram.c
97
*out_handle = vmci_resource_handle(&entry->resource);
drivers/misc/vmw_vmci/vmci_doorbell.c
101
vmci_resource_put(resource);
drivers/misc/vmw_vmci/vmci_doorbell.c
142
vmci_resource_get(&entry->resource);
drivers/misc/vmw_vmci/vmci_doorbell.c
221
vmci_resource_put(&entry->resource);
drivers/misc/vmw_vmci/vmci_doorbell.c
269
vmci_resource_put(&entry->resource);
drivers/misc/vmw_vmci/vmci_doorbell.c
278
struct vmci_resource *resource;
drivers/misc/vmw_vmci/vmci_doorbell.c
282
handle.context, handle.resource);
drivers/misc/vmw_vmci/vmci_doorbell.c
286
resource = vmci_resource_by_handle(handle,
drivers/misc/vmw_vmci/vmci_doorbell.c
288
if (!resource) {
drivers/misc/vmw_vmci/vmci_doorbell.c
290
handle.context, handle.resource);
drivers/misc/vmw_vmci/vmci_doorbell.c
294
entry = container_of(resource, struct dbell_entry, resource);
drivers/misc/vmw_vmci/vmci_doorbell.c
297
vmci_resource_put(resource);
drivers/misc/vmw_vmci/vmci_doorbell.c
300
vmci_resource_put(resource);
drivers/misc/vmw_vmci/vmci_doorbell.c
34
struct vmci_resource resource;
drivers/misc/vmw_vmci/vmci_doorbell.c
347
vmci_resource_get(&dbell->resource);
drivers/misc/vmw_vmci/vmci_doorbell.c
349
vmci_resource_put(&dbell->resource);
drivers/misc/vmw_vmci/vmci_doorbell.c
438
if (!valid_context || handle->resource == VMCI_INVALID_ID) {
drivers/misc/vmw_vmci/vmci_doorbell.c
440
handle->context, handle->resource);
drivers/misc/vmw_vmci/vmci_doorbell.c
457
result = vmci_resource_add(&entry->resource,
drivers/misc/vmw_vmci/vmci_doorbell.c
462
new_handle.context, new_handle.resource, result);
drivers/misc/vmw_vmci/vmci_doorbell.c
466
new_handle = vmci_resource_handle(&entry->resource);
drivers/misc/vmw_vmci/vmci_doorbell.c
482
vmci_resource_remove(&entry->resource);
drivers/misc/vmw_vmci/vmci_doorbell.c
499
struct vmci_resource *resource;
drivers/misc/vmw_vmci/vmci_doorbell.c
504
resource = vmci_resource_by_handle(handle,
drivers/misc/vmw_vmci/vmci_doorbell.c
506
if (!resource) {
drivers/misc/vmw_vmci/vmci_doorbell.c
508
handle.context, handle.resource);
drivers/misc/vmw_vmci/vmci_doorbell.c
512
entry = container_of(resource, struct dbell_entry, resource);
drivers/misc/vmw_vmci/vmci_doorbell.c
536
handle.context, handle.resource, result);
drivers/misc/vmw_vmci/vmci_doorbell.c
544
vmci_resource_put(&entry->resource);
drivers/misc/vmw_vmci/vmci_doorbell.c
545
vmci_resource_remove(&entry->resource);
drivers/misc/vmw_vmci/vmci_doorbell.c
92
struct vmci_resource *resource;
drivers/misc/vmw_vmci/vmci_doorbell.c
94
resource = vmci_resource_by_handle(handle,
drivers/misc/vmw_vmci/vmci_doorbell.c
96
if (!resource)
drivers/misc/vmw_vmci/vmci_doorbell.c
99
entry = container_of(resource, struct dbell_entry, resource);
drivers/misc/vmw_vmci/vmci_doorbell.h
22
u16 resource;
drivers/misc/vmw_vmci/vmci_guest.c
338
while (dg->dst.resource != VMCI_INVALID_ID ||
drivers/misc/vmw_vmci/vmci_guest.c
346
if (dg->dst.resource == VMCI_INVALID_ID) {
drivers/misc/vmw_vmci/vmci_guest.c
406
dg->dst.resource == VMCI_EVENT_HANDLER) {
drivers/misc/vmw_vmci/vmci_guest.c
414
dg->dst.resource, result);
drivers/misc/vmw_vmci/vmci_host.c
403
dg->dst.context, dg->dst.resource,
drivers/misc/vmw_vmci/vmci_host.c
404
dg->src.context, dg->src.resource,
drivers/misc/vmw_vmci/vmci_host.c
832
if (info.resource == VMCI_NOTIFY_RESOURCE_DOOR_BELL) {
drivers/misc/vmw_vmci/vmci_queue_pair.c
1414
result = vmci_resource_add(&entry->resource,
drivers/misc/vmw_vmci/vmci_queue_pair.c
1419
handle.context, handle.resource, result);
drivers/misc/vmw_vmci/vmci_queue_pair.c
1423
entry->qp.handle = vmci_resource_handle(&entry->resource);
drivers/misc/vmw_vmci/vmci_queue_pair.c
1669
entry->qp.handle.resource);
drivers/misc/vmw_vmci/vmci_queue_pair.c
1735
context_id, handle.context, handle.resource);
drivers/misc/vmw_vmci/vmci_queue_pair.c
1740
if (handle.resource != VMCI_INVALID_ID)
drivers/misc/vmw_vmci/vmci_queue_pair.c
1814
*handle = vmci_resource_handle(&entry->resource);
drivers/misc/vmw_vmci/vmci_queue_pair.c
195
struct vmci_resource resource;
drivers/misc/vmw_vmci/vmci_queue_pair.c
1988
context_id, handle.context, handle.resource);
drivers/misc/vmw_vmci/vmci_queue_pair.c
2043
entry->qp.handle.resource);
drivers/misc/vmw_vmci/vmci_queue_pair.c
2099
context_id, handle.context, handle.resource);
drivers/misc/vmw_vmci/vmci_queue_pair.c
2107
context_id, handle.context, handle.resource);
drivers/misc/vmw_vmci/vmci_queue_pair.c
213
struct vmci_resource resource;
drivers/misc/vmw_vmci/vmci_queue_pair.c
2149
handle.context, handle.resource,
drivers/misc/vmw_vmci/vmci_queue_pair.c
2182
vmci_resource_remove(&entry->resource);
drivers/misc/vmw_vmci/vmci_queue_pair.c
2228
context_id, handle.context, handle.resource);
drivers/misc/vmw_vmci/vmci_queue_pair.c
2236
context_id, handle.context, handle.resource);
drivers/misc/vmw_vmci/vmci_queue_pair.c
2338
context_id, handle.context, handle.resource);
drivers/misc/vmw_vmci/vmci_queue_pair.c
2346
context_id, handle.context, handle.resource);
drivers/misc/vmw_vmci/vmci_queue_pair.c
2362
handle.context, handle.resource, result);
drivers/misc/vmw_vmci/vmci_queue_pair.c
911
result = vmci_resource_add(&entry->resource,
drivers/misc/vmw_vmci/vmci_queue_pair.c
914
entry->qp.handle = vmci_resource_handle(&entry->resource);
drivers/misc/vmw_vmci/vmci_queue_pair.c
918
handle.context, handle.resource, result);
drivers/misc/vmw_vmci/vmci_queue_pair.c
936
vmci_resource_remove(&entry->resource);
drivers/misc/vmw_vmci/vmci_resource.c
109
if (handle.resource == VMCI_INVALID_ID) {
drivers/misc/vmw_vmci/vmci_resource.c
110
handle.resource = vmci_resource_find_id(handle.context,
drivers/misc/vmw_vmci/vmci_resource.c
112
if (handle.resource == VMCI_INVALID_ID) {
drivers/misc/vmw_vmci/vmci_resource.c
121
resource->handle = handle;
drivers/misc/vmw_vmci/vmci_resource.c
122
resource->type = resource_type;
drivers/misc/vmw_vmci/vmci_resource.c
123
INIT_HLIST_NODE(&resource->node);
drivers/misc/vmw_vmci/vmci_resource.c
124
kref_init(&resource->kref);
drivers/misc/vmw_vmci/vmci_resource.c
125
init_completion(&resource->done);
drivers/misc/vmw_vmci/vmci_resource.c
127
idx = vmci_resource_hash(resource->handle);
drivers/misc/vmw_vmci/vmci_resource.c
128
hlist_add_head_rcu(&resource->node, &vmci_resource_table.entries[idx]);
drivers/misc/vmw_vmci/vmci_resource.c
137
void vmci_resource_remove(struct vmci_resource *resource)
drivers/misc/vmw_vmci/vmci_resource.c
139
struct vmci_handle handle = resource->handle;
drivers/misc/vmw_vmci/vmci_resource.c
147
if (vmci_handle_is_equal(r->handle, resource->handle) &&
drivers/misc/vmw_vmci/vmci_resource.c
148
resource->type == r->type) {
drivers/misc/vmw_vmci/vmci_resource.c
157
vmci_resource_put(resource);
drivers/misc/vmw_vmci/vmci_resource.c
158
wait_for_completion(&resource->done);
drivers/misc/vmw_vmci/vmci_resource.c
165
struct vmci_resource *r, *resource = NULL;
drivers/misc/vmw_vmci/vmci_resource.c
173
resource = vmci_resource_get(r);
drivers/misc/vmw_vmci/vmci_resource.c
178
return resource;
drivers/misc/vmw_vmci/vmci_resource.c
184
struct vmci_resource *vmci_resource_get(struct vmci_resource *resource)
drivers/misc/vmw_vmci/vmci_resource.c
186
kref_get(&resource->kref);
drivers/misc/vmw_vmci/vmci_resource.c
188
return resource;
drivers/misc/vmw_vmci/vmci_resource.c
193
struct vmci_resource *resource =
drivers/misc/vmw_vmci/vmci_resource.c
197
WARN_ON(!hlist_unhashed(&resource->node));
drivers/misc/vmw_vmci/vmci_resource.c
200
complete(&resource->done);
drivers/misc/vmw_vmci/vmci_resource.c
209
int vmci_resource_put(struct vmci_resource *resource)
drivers/misc/vmw_vmci/vmci_resource.c
215
return kref_put(&resource->kref, vmci_release_resource) ?
drivers/misc/vmw_vmci/vmci_resource.c
219
struct vmci_handle vmci_resource_handle(struct vmci_resource *resource)
drivers/misc/vmw_vmci/vmci_resource.c
221
return resource->handle;
drivers/misc/vmw_vmci/vmci_resource.c
32
return hash_32(handle.resource, VMCI_RESOURCE_HASH_BITS);
drivers/misc/vmw_vmci/vmci_resource.c
41
struct vmci_resource *r, *resource = NULL;
drivers/misc/vmw_vmci/vmci_resource.c
48
u32 rid = r->handle.resource;
drivers/misc/vmw_vmci/vmci_resource.c
51
rid == handle.resource &&
drivers/misc/vmw_vmci/vmci_resource.c
54
resource = r;
drivers/misc/vmw_vmci/vmci_resource.c
60
return resource;
drivers/misc/vmw_vmci/vmci_resource.c
99
int vmci_resource_add(struct vmci_resource *resource,
drivers/misc/vmw_vmci/vmci_resource.h
36
int vmci_resource_add(struct vmci_resource *resource,
drivers/misc/vmw_vmci/vmci_resource.h
40
void vmci_resource_remove(struct vmci_resource *resource);
drivers/misc/vmw_vmci/vmci_resource.h
46
struct vmci_resource *vmci_resource_get(struct vmci_resource *resource);
drivers/misc/vmw_vmci/vmci_resource.h
47
int vmci_resource_put(struct vmci_resource *resource);
drivers/misc/vmw_vmci/vmci_resource.h
49
struct vmci_handle vmci_resource_handle(struct vmci_resource *resource);
drivers/misc/vmw_vmci/vmci_route.c
76
VMCI_INVALID_ID != src->resource)
drivers/misc/xilinx_tmr_manager.c
166
struct resource *res;
drivers/mmc/host/atmel-mci.c
2447
struct resource *regs;
drivers/mmc/host/au1xmmc.c
121
struct resource *ioarea;
drivers/mmc/host/au1xmmc.c
863
struct resource *res;
drivers/mmc/host/au1xmmc.c
937
struct resource *r;
drivers/mmc/host/cqhci-core.c
1141
struct resource *cqhci_memres = NULL;
drivers/mmc/host/davinci_mmc.c
1188
struct resource *r, *mem = NULL;
drivers/mmc/host/davinci_mmc.c
173
struct resource *mem_res;
drivers/mmc/host/dw_mmc-pltfm.c
34
struct resource *regs;
drivers/mmc/host/jz4740_mmc.c
159
struct resource *mem_res;
drivers/mmc/host/loongson2-mmc.c
233
struct resource *res;
drivers/mmc/host/meson-gx-mmc.c
1140
struct resource *res;
drivers/mmc/host/moxart-mmc.c
552
struct resource res_mmc;
drivers/mmc/host/mxcmmc.c
996
struct resource *res;
drivers/mmc/host/omap.c
1373
struct resource *res;
drivers/mmc/host/omap_hsmmc.c
1766
struct resource *res;
drivers/mmc/host/owl-mmc.c
567
struct resource *res;
drivers/mmc/host/pxamci.c
52
struct resource *res;
drivers/mmc/host/pxamci.c
611
struct resource *r;
drivers/mmc/host/renesas_sdhi_core.c
1068
struct resource *res;
drivers/mmc/host/renesas_sdhi_sys_dmac.c
350
struct resource *res = platform_get_resource(host->pdev,
drivers/mmc/host/sdhci-of-aspeed.c
347
struct resource *res)
drivers/mmc/host/sdhci-of-aspeed.c
371
struct resource *res;
drivers/mmc/host/sdhci-of-aspeed.c
41
struct resource *res;
drivers/mmc/host/sdhci-omap.c
1223
struct resource *regs;
drivers/mmc/host/sdhci-pxav3.c
129
struct resource *res;
drivers/mmc/host/sdhci-pxav3.c
82
struct resource *res;
drivers/mmc/host/sdhci-s3c.c
117
struct resource *ioarea;
drivers/mmc/host/sdhci-xenon-phy.c
688
struct resource iomem;
drivers/mmc/host/sh_mmcif.c
401
struct resource *res;
drivers/mmc/host/sunplus-mmc.c
862
struct resource *res;
drivers/mmc/host/usdhi6rol0.c
1749
struct resource *res;
drivers/mtd/devices/bcm47xxsflash.c
290
struct resource *res;
drivers/mtd/devices/docg3.c
1974
struct resource *ress;
drivers/mtd/devices/ms02-nv.c
108
struct resource *mod_res;
drivers/mtd/devices/ms02-nv.c
109
struct resource *diag_res;
drivers/mtd/devices/ms02-nv.c
110
struct resource *user_res;
drivers/mtd/devices/ms02-nv.c
111
struct resource *csr_res;
drivers/mtd/devices/ms02-nv.c
149
mp->resource.module = mod_res;
drivers/mtd/devices/ms02-nv.c
162
mp->resource.diag_ram = diag_res;
drivers/mtd/devices/ms02-nv.c
175
mp->resource.user_ram = user_res;
drivers/mtd/devices/ms02-nv.c
188
mp->resource.csr = csr_res;
drivers/mtd/devices/ms02-nv.c
255
release_resource(mp->resource.csr);
drivers/mtd/devices/ms02-nv.c
256
kfree(mp->resource.csr);
drivers/mtd/devices/ms02-nv.c
257
release_resource(mp->resource.user_ram);
drivers/mtd/devices/ms02-nv.c
258
kfree(mp->resource.user_ram);
drivers/mtd/devices/ms02-nv.c
259
release_resource(mp->resource.diag_ram);
drivers/mtd/devices/ms02-nv.c
260
kfree(mp->resource.diag_ram);
drivers/mtd/devices/ms02-nv.c
261
release_resource(mp->resource.module);
drivers/mtd/devices/ms02-nv.c
262
kfree(mp->resource.module);
drivers/mtd/devices/ms02-nv.h
93
struct resource *module;
drivers/mtd/devices/ms02-nv.h
94
struct resource *diag_ram;
drivers/mtd/devices/ms02-nv.h
95
struct resource *user_ram;
drivers/mtd/devices/ms02-nv.h
96
struct resource *csr;
drivers/mtd/devices/ms02-nv.h
97
} resource;
drivers/mtd/devices/phram.c
381
struct resource *res;
drivers/mtd/hyperbus/hbmc-am654.c
165
struct resource res;
drivers/mtd/lpddr/lpddr2_nvm.c
414
struct resource *add_range;
drivers/mtd/maps/amd76xrom.c
36
struct resource rsrc;
drivers/mtd/maps/amd76xrom.c
44
struct resource rsrc;
drivers/mtd/maps/ck804xrom.c
40
struct resource rsrc;
drivers/mtd/maps/ck804xrom.c
48
struct resource rsrc;
drivers/mtd/maps/esb2rom.c
102
struct resource rsrc;
drivers/mtd/maps/esb2rom.c
110
struct resource rsrc;
drivers/mtd/maps/ichxrom.c
41
struct resource rsrc;
drivers/mtd/maps/ichxrom.c
49
struct resource rsrc;
drivers/mtd/maps/l440gx.c
64
struct resource *pm_iobase;
drivers/mtd/maps/l440gx.c
96
pm_iobase = &pm_dev->resource[PIIXE_IOBASE_RESOURCE];
drivers/mtd/maps/lantiq-flash.c
40
struct resource *res;
drivers/mtd/maps/pcmciamtd.c
323
if (link->resource[2]->end) {
drivers/mtd/maps/pcmciamtd.c
494
link->resource[2]->flags |= WIN_MEMORY_TYPE_CM | WIN_ENABLE;
drivers/mtd/maps/pcmciamtd.c
495
link->resource[2]->flags |= (dev->pcmcia_map.bankwidth == 1) ?
drivers/mtd/maps/pcmciamtd.c
497
link->resource[2]->start = 0;
drivers/mtd/maps/pcmciamtd.c
498
link->resource[2]->end = (force_size) ? force_size << 20 :
drivers/mtd/maps/pcmciamtd.c
505
(unsigned long) resource_size(link->resource[2]) >> 10,
drivers/mtd/maps/pcmciamtd.c
507
ret = pcmcia_request_window(link, link->resource[2], mem_speed);
drivers/mtd/maps/pcmciamtd.c
511
link->resource[2]->start = 0;
drivers/mtd/maps/pcmciamtd.c
512
link->resource[2]->end = (force_size) ?
drivers/mtd/maps/pcmciamtd.c
514
link->resource[2]->end >>= j;
drivers/mtd/maps/pcmciamtd.c
517
resource_size(link->resource[2]) >> 10);
drivers/mtd/maps/pcmciamtd.c
518
dev->win_size = resource_size(link->resource[2]);
drivers/mtd/maps/pcmciamtd.c
521
} while (link->resource[2]->end >= 0x1000);
drivers/mtd/maps/pcmciamtd.c
533
dev->win_base = ioremap(link->resource[2]->start,
drivers/mtd/maps/pcmciamtd.c
534
resource_size(link->resource[2]));
drivers/mtd/maps/pcmciamtd.c
537
link->resource[2]);
drivers/mtd/maps/pcmciamtd.c
542
dev, link->resource[2], dev->win_base);
drivers/mtd/maps/pcmciamtd.c
546
dev->pcmcia_map.map_priv_2 = (unsigned long)link->resource[2];
drivers/mtd/maps/pcmciamtd.c
86
struct resource *win = (struct resource *) map->map_priv_2;
drivers/mtd/maps/physmap-core.c
504
struct resource *res;
drivers/mtd/maps/physmap-core.c
637
static struct resource physmap_flash_resource = {
drivers/mtd/maps/physmap-core.c
650
.resource = &physmap_flash_resource,
drivers/mtd/maps/pismo.c
93
struct resource res = { };
drivers/mtd/maps/plat-ram.c
99
struct resource *res;
drivers/mtd/maps/pxa2xx-flash.c
48
struct resource *res;
drivers/mtd/maps/sa1100-flash.c
190
struct resource *res;
drivers/mtd/maps/sa1100-flash.c
67
static int sa1100_probe_subdev(struct sa_subdev_info *subdev, struct resource *res)
drivers/mtd/maps/scx200_docflash.c
41
static struct resource docmem = {
drivers/mtd/maps/sun_uflash.c
130
of_iounmap(&op->resource[0], up->map.virt, up->map.size);
drivers/mtd/maps/sun_uflash.c
54
if (op->resource[1].flags) {
drivers/mtd/maps/sun_uflash.c
59
dp, (unsigned long long)op->resource[0].start);
drivers/mtd/maps/sun_uflash.c
71
up->map.size = resource_size(&op->resource[0]);
drivers/mtd/maps/sun_uflash.c
77
up->map.phys = op->resource[0].start;
drivers/mtd/maps/sun_uflash.c
79
up->map.virt = of_ioremap(&op->resource[0], 0, up->map.size,
drivers/mtd/maps/sun_uflash.c
93
of_iounmap(&op->resource[0], up->map.virt, up->map.size);
drivers/mtd/nand/onenand/generic.c
36
struct resource *res = pdev->resource;
drivers/mtd/nand/onenand/generic.c
91
struct resource *res = pdev->resource;
drivers/mtd/nand/onenand/onenand_omap2.c
464
struct resource *res;
drivers/mtd/nand/onenand/onenand_samsung.c
839
struct resource *r;
drivers/mtd/nand/raw/atmel/nand-controller.c
1671
struct resource res;
drivers/mtd/nand/raw/atmel/nand-controller.c
1796
struct resource *res;
drivers/mtd/nand/raw/atmel/nand-controller.c
2165
struct resource res;
drivers/mtd/nand/raw/au1550nd.c
260
struct resource *r;
drivers/mtd/nand/raw/au1550nd.c
343
struct resource *r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
drivers/mtd/nand/raw/brcmnand/brcmnand.c
3255
struct resource *res;
drivers/mtd/nand/raw/brcmnand/brcmnand.c
3302
struct resource *res;
drivers/mtd/nand/raw/cadence-nand-controller.c
3265
struct resource *res;
drivers/mtd/nand/raw/davinci_nand.c
902
struct resource *res1;
drivers/mtd/nand/raw/davinci_nand.c
903
struct resource *res2;
drivers/mtd/nand/raw/fsl_elbc_nand.c
861
struct resource res;
drivers/mtd/nand/raw/fsl_ifc_nand.c
984
struct resource res;
drivers/mtd/nand/raw/fsl_upm.c
166
struct resource *io_res;
drivers/mtd/nand/raw/fsl_upm.c
44
const struct resource *io_res)
drivers/mtd/nand/raw/fsmc_nand.c
1032
struct resource *res;
drivers/mtd/nand/raw/gpio.c
208
static struct resource *gpio_nand_get_io_sync_of(struct platform_device *pdev)
drivers/mtd/nand/raw/gpio.c
210
struct resource *r;
drivers/mtd/nand/raw/gpio.c
234
static inline struct resource *
drivers/mtd/nand/raw/gpio.c
257
static inline struct resource *
drivers/mtd/nand/raw/gpio.c
260
struct resource *r = gpio_nand_get_io_sync_of(pdev);
drivers/mtd/nand/raw/gpio.c
290
struct resource *res;
drivers/mtd/nand/raw/intel-nand-controller.c
583
struct resource *res;
drivers/mtd/nand/raw/loongson-nand-controller.c
886
struct resource *res;
drivers/mtd/nand/raw/lpc32xx_mlc.c
693
struct resource *rc;
drivers/mtd/nand/raw/lpc32xx_slc.c
835
struct resource *rc;
drivers/mtd/nand/raw/marvell_nand.c
2820
struct resource *r;
drivers/mtd/nand/raw/mpc5121_nfc.c
621
struct resource res;
drivers/mtd/nand/raw/omap2.c
2219
struct resource *res;
drivers/mtd/nand/raw/pasemi_nand.c
101
struct resource res;
drivers/mtd/nand/raw/qcom_nandc.c
2262
struct resource *res;
drivers/mtd/nand/raw/qcom_nandc.c
2343
struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
drivers/mtd/nand/raw/sh_flctl.c
1114
struct resource *res;
drivers/mtd/nand/raw/sharpsl.c
124
struct resource *r;
drivers/mtd/nand/raw/stm32_fmc2_nand.c
1911
struct resource *res;
drivers/mtd/nand/raw/stm32_fmc2_nand.c
1914
struct resource cres;
drivers/mtd/nand/raw/sunxi_nand.c
2220
static int sunxi_nfc_dma_init(struct sunxi_nfc *nfc, struct resource *r)
drivers/mtd/nand/raw/sunxi_nand.c
2253
struct resource *r;
drivers/net/arcnet/com20020-pci.c
131
struct resource *r;
drivers/net/arcnet/com20020_cs.c
140
p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_8;
drivers/net/arcnet/com20020_cs.c
141
p_dev->resource[0]->end = 16;
drivers/net/arcnet/com20020_cs.c
212
(unsigned int)link->resource[0]->start);
drivers/net/arcnet/com20020_cs.c
217
if (!link->resource[0]->start) {
drivers/net/arcnet/com20020_cs.c
219
link->resource[0]->start = ioaddr;
drivers/net/arcnet/com20020_cs.c
233
ioaddr = dev->base_addr = link->resource[0]->start;
drivers/net/can/at91_can.c
1052
struct resource *res;
drivers/net/can/at91_can.c
1164
struct resource *res;
drivers/net/can/c_can/c_can_platform.c
262
struct resource *mem;
drivers/net/can/cc770/cc770_platform.c
153
struct resource *mem;
drivers/net/can/cc770/cc770_platform.c
227
struct resource *mem;
drivers/net/can/janz-ican3.c
1894
struct resource *res;
drivers/net/can/m_can/m_can_platform.c
82
struct resource *res;
drivers/net/can/sja1000/ems_pcmcia.c
265
dev->resource[0]->end = 16;
drivers/net/can/sja1000/ems_pcmcia.c
266
dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_8;
drivers/net/can/sja1000/ems_pcmcia.c
267
dev->resource[1]->end = 16;
drivers/net/can/sja1000/ems_pcmcia.c
268
dev->resource[1]->flags |= IO_DATA_PATH_WIDTH_16;
drivers/net/can/sja1000/ems_pcmcia.c
272
dev->resource[2]->flags =
drivers/net/can/sja1000/ems_pcmcia.c
274
dev->resource[2]->start = dev->resource[2]->end = 0;
drivers/net/can/sja1000/ems_pcmcia.c
276
csval = pcmcia_request_window(dev, dev->resource[2], 0);
drivers/net/can/sja1000/ems_pcmcia.c
283
csval = pcmcia_map_mem_page(dev, dev->resource[2], dev->config_base);
drivers/net/can/sja1000/ems_pcmcia.c
297
ems_pcmcia_add_card(dev, dev->resource[2]->start);
drivers/net/can/sja1000/peak_pcmcia.c
595
pdev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH;
drivers/net/can/sja1000/peak_pcmcia.c
596
pdev->resource[0]->flags |= IO_DATA_PATH_WIDTH_8; /* only */
drivers/net/can/sja1000/peak_pcmcia.c
663
card->ioport_addr = ioport_map(pdev->resource[0]->start,
drivers/net/can/sja1000/peak_pcmcia.c
664
resource_size(pdev->resource[0]));
drivers/net/can/sja1000/sja1000_platform.c
220
struct resource *res_mem, *res_irq = NULL;
drivers/net/can/softing/softing_cs.c
187
struct resource *pres;
drivers/net/can/softing/softing_cs.c
191
pres = pcmcia->resource[PCMCIA_IOMEM_0];
drivers/net/can/softing/softing_cs.c
230
struct resource *pres;
drivers/net/can/softing/softing_cs.c
233
struct resource res[2];
drivers/net/can/softing/softing_cs.c
252
pres = pcmcia->resource[PCMCIA_IOMEM_0];
drivers/net/can/softing/softing_cs.c
264
dev->pdev.resource = dev->res;
drivers/net/can/softing/softing_cs.c
274
pdev->resource[0].flags = IORESOURCE_MEM;
drivers/net/can/softing/softing_cs.c
275
pdev->resource[0].start = pres->start;
drivers/net/can/softing/softing_cs.c
276
pdev->resource[0].end = pres->end;
drivers/net/can/softing/softing_cs.c
278
pdev->resource[1].flags = IORESOURCE_IRQ;
drivers/net/can/softing/softing_cs.c
279
pdev->resource[1].start = pcmcia->irq;
drivers/net/can/softing/softing_cs.c
280
pdev->resource[1].end = pdev->resource[1].start;
drivers/net/can/softing/softing_main.c
757
struct resource *pres;
drivers/net/dsa/hirschmann/hellcreek.c
1937
struct resource *res;
drivers/net/dsa/ocelot/felix.c
1470
struct resource res;
drivers/net/dsa/ocelot/felix.h
24
const struct resource *resources;
drivers/net/dsa/ocelot/felix_vsc9959.c
523
static const struct resource vsc9959_resources[] = {
drivers/net/dsa/ocelot/felix_vsc9959.c
558
static const struct resource vsc9959_imdio_res =
drivers/net/dsa/ocelot/felix_vsc9959.c
965
struct resource res;
drivers/net/dsa/ocelot/seville_vsc9953.c
462
static const struct resource vsc9953_resources[] = {
drivers/net/dsa/ocelot/seville_vsc9953.c
974
struct resource *res;
drivers/net/ethernet/3com/3c574_cs.c
277
link->resource[0]->end = 32;
drivers/net/ethernet/3com/3c574_cs.c
278
link->resource[0]->flags |= IO_DATA_PATH_WIDTH_16;
drivers/net/ethernet/3com/3c574_cs.c
320
link->resource[0]->start = j ^ 0x300;
drivers/net/ethernet/3com/3c574_cs.c
337
dev->base_addr = link->resource[0]->start;
drivers/net/ethernet/3com/3c589_cs.c
211
link->resource[0]->end = 16;
drivers/net/ethernet/3com/3c589_cs.c
212
link->resource[0]->flags |= IO_DATA_PATH_WIDTH_16;
drivers/net/ethernet/3com/3c589_cs.c
269
link->resource[0]->start = j ^ 0x300;
drivers/net/ethernet/3com/3c589_cs.c
286
dev->base_addr = link->resource[0]->start;
drivers/net/ethernet/8390/ax88796.c
819
struct resource *mem;
drivers/net/ethernet/8390/ax88796.c
849
struct resource *irq, *mem, *mem2;
drivers/net/ethernet/8390/axnet_cs.c
235
link->resource[0]->flags &= ~IO_DATA_PATH_WIDTH;
drivers/net/ethernet/8390/axnet_cs.c
236
link->resource[1]->flags &= ~IO_DATA_PATH_WIDTH;
drivers/net/ethernet/8390/axnet_cs.c
237
if (link->resource[0]->end == 32) {
drivers/net/ethernet/8390/axnet_cs.c
238
link->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO;
drivers/net/ethernet/8390/axnet_cs.c
240
if (link->resource[1]->end > 0)
drivers/net/ethernet/8390/axnet_cs.c
241
link->resource[1]->flags |= IO_DATA_PATH_WIDTH_8;
drivers/net/ethernet/8390/axnet_cs.c
244
link->resource[0]->flags |= IO_DATA_PATH_WIDTH_8;
drivers/net/ethernet/8390/axnet_cs.c
245
link->resource[1]->flags |= IO_DATA_PATH_WIDTH_16;
drivers/net/ethernet/8390/axnet_cs.c
247
if (link->resource[0]->start == 0) {
drivers/net/ethernet/8390/axnet_cs.c
249
link->resource[0]->start = j ^ 0x300;
drivers/net/ethernet/8390/axnet_cs.c
250
link->resource[1]->start = (j ^ 0x300) + 0x10;
drivers/net/ethernet/8390/axnet_cs.c
268
if (p_dev->resource[0]->end + p_dev->resource[1]->end < 32)
drivers/net/ethernet/8390/axnet_cs.c
292
if (resource_size(link->resource[1]) == 8)
drivers/net/ethernet/8390/axnet_cs.c
300
dev->base_addr = link->resource[0]->start;
drivers/net/ethernet/8390/hydra.c
113
unsigned long board = (unsigned long)ZTWO_VADDR(z->resource.start);
drivers/net/ethernet/8390/hydra.c
176
dev->name, &z->resource, dev->dev_addr);
drivers/net/ethernet/8390/hydra.c
86
if (!request_mem_region(z->resource.start, 0x10000, "Hydra"))
drivers/net/ethernet/8390/hydra.c
89
release_mem_region(z->resource.start, 0x10000);
drivers/net/ethernet/8390/mcf8390.c
406
struct resource *mem;
drivers/net/ethernet/8390/mcf8390.c
447
struct resource *mem;
drivers/net/ethernet/8390/ne.c
785
struct resource *res;
drivers/net/ethernet/8390/pcnet_cs.c
1426
link->resource[3]->flags |= WIN_DATA_WIDTH_16|WIN_MEMORY_TYPE_CM|WIN_ENABLE;
drivers/net/ethernet/8390/pcnet_cs.c
1427
link->resource[3]->flags |= WIN_USE_WAIT;
drivers/net/ethernet/8390/pcnet_cs.c
1428
link->resource[3]->start = 0; link->resource[3]->end = window_size;
drivers/net/ethernet/8390/pcnet_cs.c
1429
ret = pcmcia_request_window(link, link->resource[3], mem_speed);
drivers/net/ethernet/8390/pcnet_cs.c
1435
ret = pcmcia_map_mem_page(link, link->resource[3], offset);
drivers/net/ethernet/8390/pcnet_cs.c
1440
info->base = ioremap(link->resource[3]->start,
drivers/net/ethernet/8390/pcnet_cs.c
1441
resource_size(link->resource[3]));
drivers/net/ethernet/8390/pcnet_cs.c
1455
pcmcia_release_window(link, link->resource[3]);
drivers/net/ethernet/8390/pcnet_cs.c
1461
ei_status.priv = resource_size(link->resource[3]);
drivers/net/ethernet/8390/pcnet_cs.c
1463
dev->mem_end = dev->mem_start + resource_size(link->resource[3]);
drivers/net/ethernet/8390/pcnet_cs.c
1468
(resource_size(link->resource[3]) - offset) >> 8);
drivers/net/ethernet/8390/pcnet_cs.c
284
link->resource[2]->flags |= WIN_DATA_WIDTH_8|WIN_MEMORY_TYPE_AM|WIN_ENABLE;
drivers/net/ethernet/8390/pcnet_cs.c
285
link->resource[2]->start = 0; link->resource[2]->end = 0;
drivers/net/ethernet/8390/pcnet_cs.c
286
i = pcmcia_request_window(link, link->resource[2], 0);
drivers/net/ethernet/8390/pcnet_cs.c
290
virt = ioremap(link->resource[2]->start,
drivers/net/ethernet/8390/pcnet_cs.c
291
resource_size(link->resource[2]));
drivers/net/ethernet/8390/pcnet_cs.c
293
pcmcia_release_window(link, link->resource[2]);
drivers/net/ethernet/8390/pcnet_cs.c
298
pcmcia_map_mem_page(link, link->resource[2],
drivers/net/ethernet/8390/pcnet_cs.c
299
hw_info[i].offset & ~(resource_size(link->resource[2])-1));
drivers/net/ethernet/8390/pcnet_cs.c
300
base = &virt[hw_info[i].offset & (resource_size(link->resource[2])-1)];
drivers/net/ethernet/8390/pcnet_cs.c
312
j = pcmcia_release_window(link, link->resource[2]);
drivers/net/ethernet/8390/pcnet_cs.c
458
link->resource[0]->flags &= ~IO_DATA_PATH_WIDTH;
drivers/net/ethernet/8390/pcnet_cs.c
459
link->resource[1]->flags &= ~IO_DATA_PATH_WIDTH;
drivers/net/ethernet/8390/pcnet_cs.c
460
if (link->resource[0]->end == 32) {
drivers/net/ethernet/8390/pcnet_cs.c
461
link->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO;
drivers/net/ethernet/8390/pcnet_cs.c
462
if (link->resource[1]->end > 0) {
drivers/net/ethernet/8390/pcnet_cs.c
464
link->resource[1]->flags |= IO_DATA_PATH_WIDTH_8;
drivers/net/ethernet/8390/pcnet_cs.c
468
link->resource[0]->flags |= IO_DATA_PATH_WIDTH_8;
drivers/net/ethernet/8390/pcnet_cs.c
469
link->resource[1]->flags |= IO_DATA_PATH_WIDTH_16;
drivers/net/ethernet/8390/pcnet_cs.c
471
if (link->resource[0]->start == 0) {
drivers/net/ethernet/8390/pcnet_cs.c
473
link->resource[0]->start = j ^ 0x300;
drivers/net/ethernet/8390/pcnet_cs.c
474
link->resource[1]->start = (j ^ 0x300) + 0x10;
drivers/net/ethernet/8390/pcnet_cs.c
491
*priv &= (p_dev->resource[2]->end >= 0x4000) ? 0x10 : ~0x10;
drivers/net/ethernet/8390/pcnet_cs.c
496
if (p_dev->resource[0]->end + p_dev->resource[1]->end < 32)
drivers/net/ethernet/8390/pcnet_cs.c
523
if (resource_size(link->resource[1]) == 8)
drivers/net/ethernet/8390/pcnet_cs.c
535
dev->base_addr = link->resource[0]->start;
drivers/net/ethernet/8390/wd.c
89
struct resource *r;
drivers/net/ethernet/8390/xsurf100.c
244
struct resource res[2] = {
drivers/net/ethernet/8390/xsurf100.c
247
DEFINE_RES_MEM(zdev->resource.start + XS100_8390_BASE,
drivers/net/ethernet/8390/xsurf100.c
262
if (!request_mem_region(zdev->resource.start, 0x100, zdev->name)) {
drivers/net/ethernet/8390/xsurf100.c
267
if (!request_mem_region(zdev->resource.start +
drivers/net/ethernet/8390/xsurf100.c
286
ax88796_data.base_regs = ioremap(zdev->resource.start, 0x100);
drivers/net/ethernet/8390/xsurf100.c
291
&zdev->resource);
drivers/net/ethernet/8390/xsurf100.c
297
ax88796_data.data_area = ioremap(zdev->resource.start +
drivers/net/ethernet/8390/xsurf100.c
304
&zdev->resource, XS100_8390_DATA32_BASE);
drivers/net/ethernet/8390/xsurf100.c
336
release_mem_region(zdev->resource.start + XS100_8390_DATA32_BASE,
drivers/net/ethernet/8390/xsurf100.c
340
release_mem_region(zdev->resource.start, 0x100);
drivers/net/ethernet/8390/xsurf100.c
353
release_mem_region(zdev->resource.start, 0x100);
drivers/net/ethernet/8390/xsurf100.c
355
release_mem_region(zdev->resource.start + XS100_8390_DATA32_BASE,
drivers/net/ethernet/8390/zorro8390.c
407
board = z->resource.start;
drivers/net/ethernet/aeroflex/greth.c
1370
greth->regs = of_ioremap(&ofdev->resource[0], 0,
drivers/net/ethernet/aeroflex/greth.c
1371
resource_size(&ofdev->resource[0]),
drivers/net/ethernet/aeroflex/greth.c
1523
of_iounmap(&ofdev->resource[0], greth->regs, resource_size(&ofdev->resource[0]));
drivers/net/ethernet/aeroflex/greth.c
1545
of_iounmap(&of_dev->resource[0], greth->regs, resource_size(&of_dev->resource[0]));
drivers/net/ethernet/airoha/airoha_npu.c
246
struct resource *res)
drivers/net/ethernet/airoha/airoha_npu.c
514
struct resource res;
drivers/net/ethernet/airoha/airoha_npu.c
697
struct resource res;
drivers/net/ethernet/allwinner/sun4i-emac.c
916
struct resource *regs;
drivers/net/ethernet/altera/altera_tse_main.c
1098
struct resource **res, void __iomem **ptr)
drivers/net/ethernet/altera/altera_tse_main.c
1101
struct resource *region;
drivers/net/ethernet/altera/altera_tse_main.c
1133
struct resource *control_port;
drivers/net/ethernet/altera/altera_tse_main.c
1135
struct resource *dma_res;
drivers/net/ethernet/altera/altera_tse_main.c
1136
struct resource *pcs_res;
drivers/net/ethernet/amd/a2065.c
679
unsigned long board = z->resource.start;
drivers/net/ethernet/amd/a2065.c
682
struct resource *r1, *r2;
drivers/net/ethernet/amd/ariadne.c
715
unsigned long board = z->resource.start;
drivers/net/ethernet/amd/ariadne.c
718
struct resource *r1, *r2;
drivers/net/ethernet/amd/au1000_eth.c
1067
struct resource *base, *macen, *macdma;
drivers/net/ethernet/amd/au1000_eth.c
1331
struct resource *base, *macen;
drivers/net/ethernet/amd/declance.c
1116
start = to_tc_dev(bdev)->resource.start;
drivers/net/ethernet/amd/declance.c
1117
len = to_tc_dev(bdev)->resource.end - start + 1;
drivers/net/ethernet/amd/declance.c
1350
start = to_tc_dev(bdev)->resource.start;
drivers/net/ethernet/amd/declance.c
1351
len = to_tc_dev(bdev)->resource.end - start + 1;
drivers/net/ethernet/amd/hplance.c
130
unsigned long va = (d->resource.start + DIO_VIRADDRBASE);
drivers/net/ethernet/amd/lance.c
406
struct resource *r = request_region(ioaddr, LANCE_TOTAL_SIZE,
drivers/net/ethernet/amd/nmclan_cs.c
447
link->resource[0]->end = 32;
drivers/net/ethernet/amd/nmclan_cs.c
448
link->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO;
drivers/net/ethernet/amd/nmclan_cs.c
629
dev->base_addr = link->resource[0]->start;
drivers/net/ethernet/amd/sunlance.c
1258
of_iounmap(&lp->op->resource[0], lp->lregs, LANCE_REG_SIZE);
drivers/net/ethernet/amd/sunlance.c
1262
of_iounmap(&ledma->resource[0], lp->dregs,
drivers/net/ethernet/amd/sunlance.c
1263
resource_size(&ledma->resource[0]));
drivers/net/ethernet/amd/sunlance.c
1266
of_iounmap(&lp->lebuffer->resource[0], lp->init_block_iomem,
drivers/net/ethernet/amd/sunlance.c
1320
lp->lregs = of_ioremap(&op->resource[0], 0,
drivers/net/ethernet/amd/sunlance.c
1329
lp->dregs = of_ioremap(&ledma->resource[0], 0,
drivers/net/ethernet/amd/sunlance.c
1330
resource_size(&ledma->resource[0]),
drivers/net/ethernet/amd/sunlance.c
1343
if (lebuffer->resource[0].start & 7) {
drivers/net/ethernet/amd/sunlance.c
1348
of_ioremap(&lebuffer->resource[0], 0,
drivers/net/ethernet/amd/xgbe/xgbe-platform.c
127
struct resource *res = &pdev->resource[i];
drivers/net/ethernet/apm/xgene-v2/main.c
17
struct resource *res;
drivers/net/ethernet/apm/xgene/xgene_enet_main.c
1687
struct resource *res;
drivers/net/ethernet/arc/emac_main.c
861
struct resource res_regs;
drivers/net/ethernet/atheros/ag71xx.c
1798
struct resource *res;
drivers/net/ethernet/broadcom/bcm63xx_enet.c
2647
struct resource *res_mem;
drivers/net/ethernet/broadcom/bgmac-platform.c
176
struct resource *regs;
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h
380
int bnx2x_acquire_hw_lock(struct bnx2x *bp, u32 resource);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h
388
int bnx2x_release_hw_lock(struct bnx2x *bp, u32 resource);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
1733
static bool bnx2x_trylock_hw_lock(struct bnx2x *bp, u32 resource)
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
1736
u32 resource_bit = (1 << resource);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
1741
"Trying to take a lock on resource %d\n", resource);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
1744
if (resource > HW_LOCK_MAX_RESOURCE_VALUE) {
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
1747
resource, HW_LOCK_MAX_RESOURCE_VALUE);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
1764
"Failed to get a lock on resource %d\n", resource);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
2000
int bnx2x_acquire_hw_lock(struct bnx2x *bp, u32 resource)
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
2003
u32 resource_bit = (1 << resource);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
2009
if (resource > HW_LOCK_MAX_RESOURCE_VALUE) {
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
2011
resource, HW_LOCK_MAX_RESOURCE_VALUE);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
2049
int bnx2x_release_hw_lock(struct bnx2x *bp, u32 resource)
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
2052
u32 resource_bit = (1 << resource);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
2057
if (resource > HW_LOCK_MAX_RESOURCE_VALUE) {
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
2059
resource, HW_LOCK_MAX_RESOURCE_VALUE);
drivers/net/ethernet/broadcom/genet/bcmmii.c
455
struct resource *pres, res;
drivers/net/ethernet/broadcom/sb1250-mac.c
2530
struct resource *res;
drivers/net/ethernet/cadence/macb_main.c
5546
struct resource *regs;
drivers/net/ethernet/cadence/macb_pci.c
33
struct resource res[2];
drivers/net/ethernet/cadence/macb_pci.c
45
memset(res, 0x00, sizeof(struct resource) * ARRAY_SIZE(res));
drivers/net/ethernet/calxeda/xgmac.c
1691
struct resource *res;
drivers/net/ethernet/calxeda/xgmac.c
1825
struct resource *res;
drivers/net/ethernet/cavium/octeon/octeon_mgmt.c
1387
struct resource *res_mix;
drivers/net/ethernet/cavium/octeon/octeon_mgmt.c
1388
struct resource *res_agl;
drivers/net/ethernet/cavium/octeon/octeon_mgmt.c
1389
struct resource *res_agl_prt_ctl;
drivers/net/ethernet/cirrus/ep93xx_eth.c
152
struct resource *res;
drivers/net/ethernet/cirrus/ep93xx_eth.c
744
struct resource *mem;
drivers/net/ethernet/cirrus/ep93xx_eth.c
771
struct resource *mem;
drivers/net/ethernet/davicom/dm9000.c
116
struct resource *addr_res; /* resources found */
drivers/net/ethernet/davicom/dm9000.c
117
struct resource *data_res;
drivers/net/ethernet/davicom/dm9000.c
118
struct resource *addr_req; /* resources requested */
drivers/net/ethernet/davicom/dm9000.c
119
struct resource *data_req;
drivers/net/ethernet/engleder/tsnep_main.c
2560
struct resource *io;
drivers/net/ethernet/ethoc.c
1027
struct resource *res = NULL;
drivers/net/ethernet/ethoc.c
1028
struct resource *mmio = NULL;
drivers/net/ethernet/ethoc.c
1029
struct resource *mem = NULL;
drivers/net/ethernet/faraday/ftgmac100.c
1946
struct resource *res;
drivers/net/ethernet/faraday/ftgmac100.c
77
struct resource *res;
drivers/net/ethernet/faraday/ftmac100.c
1125
struct resource *res;
drivers/net/ethernet/faraday/ftmac100.c
52
struct resource *res;
drivers/net/ethernet/freescale/fec_main.c
3206
struct resource *r;
drivers/net/ethernet/freescale/fec_mpc52xx.c
814
struct resource mem;
drivers/net/ethernet/freescale/fec_mpc52xx_phy.c
71
struct resource res;
drivers/net/ethernet/freescale/fman/fman.c
2388
struct resource *fman_get_mem_region(struct fman *fman)
drivers/net/ethernet/freescale/fman/fman.c
2694
struct resource *res;
drivers/net/ethernet/freescale/fman/fman.c
505
struct resource *res;
drivers/net/ethernet/freescale/fman/fman.h
286
struct resource *res; /* FMan memory resource */
drivers/net/ethernet/freescale/fman/fman.h
296
struct resource muram_res; /* MURAM resource */
drivers/net/ethernet/freescale/fman/fman.h
372
struct resource *fman_get_mem_region(struct fman *fman);
drivers/net/ethernet/freescale/fman/fman_port.c
1748
struct resource res;
drivers/net/ethernet/freescale/fman/fman_port.c
1749
struct resource *dev_res;
drivers/net/ethernet/freescale/fman/mac.h
31
struct resource *res;
drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c
110
struct resource res;
drivers/net/ethernet/freescale/fs_enet/mii-fec.c
99
struct resource res;
drivers/net/ethernet/freescale/fsl_pq_mdio.c
260
struct resource res;
drivers/net/ethernet/freescale/fsl_pq_mdio.c
379
void __iomem *reg_map, struct resource *reg_res)
drivers/net/ethernet/freescale/fsl_pq_mdio.c
413
struct resource res;
drivers/net/ethernet/freescale/ucc_geth.c
3428
struct resource res;
drivers/net/ethernet/freescale/xgmac_mdio.c
375
struct resource *res;
drivers/net/ethernet/fujitsu/fmvj18x_cs.c
249
link->resource[0]->end = 32;
drivers/net/ethernet/fujitsu/fmvj18x_cs.c
250
link->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO;
drivers/net/ethernet/fujitsu/fmvj18x_cs.c
287
link->resource[1]->start = serial_base[i];
drivers/net/ethernet/fujitsu/fmvj18x_cs.c
288
link->resource[1]->flags |= IO_DATA_PATH_WIDTH_8;
drivers/net/ethernet/fujitsu/fmvj18x_cs.c
289
if (link->resource[1]->start == 0) {
drivers/net/ethernet/fujitsu/fmvj18x_cs.c
290
link->resource[1]->end = 0;
drivers/net/ethernet/fujitsu/fmvj18x_cs.c
309
link->resource[0]->start = ioaddr;
drivers/net/ethernet/fujitsu/fmvj18x_cs.c
314
((link->resource[0]->start & 0x0f0) >> 3) | 0x22;
drivers/net/ethernet/fujitsu/fmvj18x_cs.c
361
link->resource[1]->end = 8;
drivers/net/ethernet/fujitsu/fmvj18x_cs.c
368
link->resource[1]->end = 8;
drivers/net/ethernet/fujitsu/fmvj18x_cs.c
374
link->resource[1]->end = 8;
drivers/net/ethernet/fujitsu/fmvj18x_cs.c
415
if (link->resource[1]->end != 0) {
drivers/net/ethernet/fujitsu/fmvj18x_cs.c
434
dev->base_addr = link->resource[0]->start;
drivers/net/ethernet/fujitsu/fmvj18x_cs.c
436
if (resource_size(link->resource[1]) != 0) {
drivers/net/ethernet/fujitsu/fmvj18x_cs.c
543
link->resource[2]->flags |= WIN_DATA_WIDTH_8|WIN_MEMORY_TYPE_AM|WIN_ENABLE;
drivers/net/ethernet/fujitsu/fmvj18x_cs.c
544
link->resource[2]->start = 0; link->resource[2]->end = 0;
drivers/net/ethernet/fujitsu/fmvj18x_cs.c
545
i = pcmcia_request_window(link, link->resource[2], 0);
drivers/net/ethernet/fujitsu/fmvj18x_cs.c
549
base = ioremap(link->resource[2]->start, resource_size(link->resource[2]));
drivers/net/ethernet/fujitsu/fmvj18x_cs.c
551
pcmcia_release_window(link, link->resource[2]);
drivers/net/ethernet/fujitsu/fmvj18x_cs.c
555
pcmcia_map_mem_page(link, link->resource[2], 0);
drivers/net/ethernet/fujitsu/fmvj18x_cs.c
580
j = pcmcia_release_window(link, link->resource[2]);
drivers/net/ethernet/fujitsu/fmvj18x_cs.c
594
link->resource[3]->flags = WIN_DATA_WIDTH_8|WIN_MEMORY_TYPE_AM|WIN_ENABLE;
drivers/net/ethernet/fujitsu/fmvj18x_cs.c
595
link->resource[3]->start = link->resource[3]->end = 0;
drivers/net/ethernet/fujitsu/fmvj18x_cs.c
596
i = pcmcia_request_window(link, link->resource[3], 0);
drivers/net/ethernet/fujitsu/fmvj18x_cs.c
600
lp->base = ioremap(link->resource[3]->start,
drivers/net/ethernet/fujitsu/fmvj18x_cs.c
601
resource_size(link->resource[3]));
drivers/net/ethernet/fujitsu/fmvj18x_cs.c
607
i = pcmcia_map_mem_page(link, link->resource[3], 0);
drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c
50
struct resource *res;
drivers/net/ethernet/i825xx/sni_82596.c
76
struct resource *res, *ca, *idprom, *options;
drivers/net/ethernet/ibm/ehea/ehea_qmr.c
951
u64 resource = data[1];
drivers/net/ethernet/ibm/ehea/ehea_qmr.c
960
resource, data[6], data[12], data[22]);
drivers/net/ethernet/ibm/ehea/ehea_qmr.c
963
resource, data[6]);
drivers/net/ethernet/ibm/ehea/ehea_qmr.c
966
resource, data[6]);
drivers/net/ethernet/intel/i40e/i40e_common.c
2489
enum i40e_aq_resources_ids resource,
drivers/net/ethernet/intel/i40e/i40e_common.c
2501
cmd_resp->res_id = cpu_to_le16(resource);
drivers/net/ethernet/intel/i40e/i40e_common.c
2528
enum i40e_aq_resources_ids resource,
drivers/net/ethernet/intel/i40e/i40e_common.c
2539
cmd->res_id = cpu_to_le16(resource);
drivers/net/ethernet/intel/i40e/i40e_prototype.h
181
enum i40e_aq_resources_ids resource,
drivers/net/ethernet/intel/i40e/i40e_prototype.h
186
enum i40e_aq_resources_ids resource,
drivers/net/ethernet/intel/idpf/idpf.h
233
struct resource static_reg_info[IDPF_MMIO_REG_NUM_STATIC];
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
1091
struct resource *rstat_reg = &adapter->dev_ops.static_reg_info[1];
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
1092
struct resource *mbx_reg = &adapter->dev_ops.static_reg_info[0];
drivers/net/ethernet/marvell/mv643xx_eth.c
2726
struct resource res;
drivers/net/ethernet/marvell/mvmdio.c
287
struct resource *r;
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
7543
struct resource *res;
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
7566
struct resource *res;
drivers/net/ethernet/mediatek/mtk_eth_soc.c
5028
static int mtk_setup_legacy_sram(struct mtk_eth *eth, struct resource *res)
drivers/net/ethernet/mediatek/mtk_eth_soc.c
5051
struct resource *res = NULL;
drivers/net/ethernet/mediatek/mtk_wed.c
1332
struct resource res;
drivers/net/ethernet/mediatek/mtk_wed_mcu.c
240
struct resource res;
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/debug.c
349
struct mlx5hws_pool_resource *resource)
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/debug.c
357
resource->base_id);
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/debug.c
370
if (stc_pool->resource) {
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/debug.c
372
stc_pool->resource);
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/pool.c
102
hws_pool_free_one_resource(resource);
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/pool.c
103
pool->resource = NULL;
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/pool.c
11
mlx5hws_cmd_ste_destroy(resource->pool->ctx->mdev, resource->base_id);
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/pool.c
14
mlx5hws_cmd_stc_destroy(resource->pool->ctx->mdev, resource->base_id);
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/pool.c
20
kfree(resource);
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/pool.c
25
hws_pool_free_one_resource(pool->resource);
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/pool.c
26
pool->resource = NULL;
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/pool.c
388
if (pool->resource)
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/pool.c
40
struct mlx5hws_pool_resource *resource;
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/pool.c
44
resource = kzalloc_obj(*resource);
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/pool.c
45
if (!resource)
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/pool.c
66
resource->pool = pool;
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/pool.c
67
resource->range = 1 << log_range;
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/pool.c
68
resource->base_id = obj_id;
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/pool.c
7
static void hws_pool_free_one_resource(struct mlx5hws_pool_resource *resource)
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/pool.c
70
return resource;
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/pool.c
73
kfree(resource);
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/pool.c
79
struct mlx5hws_pool_resource *resource;
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/pool.c
85
resource = hws_pool_create_one_resource(pool, opt_log_range, fw_ft_type);
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/pool.c
86
if (!resource) {
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/pool.c
9
switch (resource->pool->type) {
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/pool.c
91
pool->resource = resource;
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/pool.h
101
return pool->resource->base_id;
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/pool.h
78
struct mlx5hws_pool_resource *resource;
drivers/net/ethernet/mellanox/mlxbf_gige/mlxbf_gige_mdio.c
121
static struct resource corepll_params[] = {
drivers/net/ethernet/mellanox/mlxbf_gige/mlxbf_gige_mdio.c
291
struct resource *res;
drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c
1354
struct mlxsw_afa_resource resource;
drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c
1364
mlxsw_afa_resource_del(&mirror->resource);
drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c
1374
struct mlxsw_afa_resource *resource)
drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c
1378
mirror = container_of(resource, struct mlxsw_afa_mirror, resource);
drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c
1401
mirror->resource.destructor = mlxsw_afa_mirror_destructor;
drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c
1402
mlxsw_afa_resource_add(block, &mirror->resource);
drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c
2157
struct mlxsw_afa_resource resource;
drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c
2166
mlxsw_afa_resource_del(&sampler->resource);
drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c
2173
struct mlxsw_afa_resource *resource)
drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c
2177
sampler = container_of(resource, struct mlxsw_afa_sampler, resource);
drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c
2203
sampler->resource.destructor = mlxsw_afa_sampler_destructor;
drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c
2204
mlxsw_afa_resource_add(block, &sampler->resource);
drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c
382
struct mlxsw_afa_resource *resource);
drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c
386
struct mlxsw_afa_resource *resource)
drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c
388
list_add(&resource->list, &block->resource_list);
drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c
391
static void mlxsw_afa_resource_del(struct mlxsw_afa_resource *resource)
drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c
393
list_del(&resource->list);
drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c
398
struct mlxsw_afa_resource *resource, *tmp;
drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c
400
list_for_each_entry_safe(resource, tmp, &block->resource_list, list) {
drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c
401
resource->destructor(block, resource);
drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c
625
struct mlxsw_afa_resource resource;
drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c
633
mlxsw_afa_resource_del(&fwd_entry_ref->resource);
drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c
640
struct mlxsw_afa_resource *resource)
drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c
644
fwd_entry_ref = container_of(resource, struct mlxsw_afa_fwd_entry_ref,
drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c
645
resource);
drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c
665
fwd_entry_ref->resource.destructor = mlxsw_afa_fwd_entry_ref_destructor;
drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c
666
mlxsw_afa_resource_add(block, &fwd_entry_ref->resource);
drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c
675
struct mlxsw_afa_resource resource;
drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c
683
mlxsw_afa_resource_del(&counter->resource);
drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c
691
struct mlxsw_afa_resource *resource)
drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c
695
counter = container_of(resource, struct mlxsw_afa_counter, resource);
drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c
713
counter->resource.destructor = mlxsw_afa_counter_destructor;
drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c
714
mlxsw_afa_resource_add(block, &counter->resource);
drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c
818
struct mlxsw_afa_resource resource;
drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c
826
mlxsw_afa_resource_del(&cookie_ref->resource);
drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c
833
struct mlxsw_afa_resource *resource)
drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c
837
cookie_ref = container_of(resource, struct mlxsw_afa_cookie_ref,
drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c
838
resource);
drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c
859
cookie_ref->resource.destructor = mlxsw_afa_cookie_ref_destructor;
drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c
860
mlxsw_afa_resource_add(block, &cookie_ref->resource);
drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c
944
struct mlxsw_afa_resource resource;
drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c
952
mlxsw_afa_resource_del(&policer_ref->resource);
drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c
959
struct mlxsw_afa_resource *resource)
drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c
963
policer_ref = container_of(resource, struct mlxsw_afa_policer_ref,
drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c
964
resource);
drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c
989
policer_ref->resource.destructor = mlxsw_afa_policer_ref_destructor;
drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c
990
mlxsw_afa_resource_add(block, &policer_ref->resource);
drivers/net/ethernet/micrel/ks8842.c
1132
struct resource *iomem;
drivers/net/ethernet/micrel/ks8842.c
1235
struct resource *iomem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
drivers/net/ethernet/microchip/lan966x/lan966x_main.c
70
struct resource *iores[IO_RANGES];
drivers/net/ethernet/microchip/sparx5/sparx5_main.c
273
struct resource *iores[IO_RANGES];
drivers/net/ethernet/microchip/sparx5/sparx5_port.c
285
u32 value, resource, prio, delay_cnt = 0;
drivers/net/ethernet/microchip/sparx5/sparx5_port.c
297
for (resource = 0; resource < (poll_src ? 2 : 1); resource++) {
drivers/net/ethernet/microchip/sparx5/sparx5_port.c
300
base = (resource == 0 ? 2048 : 0) + SPX5_PRIOS * portno;
drivers/net/ethernet/microchip/sparx5/sparx5_port.c
305
mem = resource == 0 ?
drivers/net/ethernet/moxa/moxart_ether.c
460
struct resource *res;
drivers/net/ethernet/mscc/ocelot_io.c
156
struct regmap *ocelot_regmap_init(struct ocelot *ocelot, struct resource *res)
drivers/net/ethernet/mscc/ocelot_vsc7514.c
169
struct resource *res;
drivers/net/ethernet/mscc/ocelot_vsc7514.c
278
struct resource *res;
drivers/net/ethernet/natsemi/jazzsonic.c
182
struct resource *res;
drivers/net/ethernet/natsemi/xtsonic.c
204
struct resource *resmem, *resirq;
drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c
137
struct resource *resource;
drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c
571
struct resource *res;
drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c
573
res = &nfp->pdev->resource[(i >> 3) * 2];
drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c
581
bar->resource = res;
drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c
746
struct resource resource;
drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c
783
memset(&priv->resource, 0, sizeof(priv->resource));
drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c
849
priv->resource.name = nfp_cpp_area_name(area);
drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c
850
priv->resource.start = priv->phys;
drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c
851
priv->resource.end = priv->resource.start + priv->size - 1;
drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c
852
priv->resource.flags = IORESOURCE_MEM;
drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c
910
static struct resource *nfp6000_area_resource(struct nfp_cpp_area *area)
drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c
918
return priv->bar->resource;
drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cpp.h
228
struct resource *nfp_cpp_area_resource(struct nfp_cpp_area *area);
drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cpp.h
350
struct resource *(*area_resource)(struct nfp_cpp_area *area);
drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cpp.h
48
struct resource;
drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c
140
__resource_del(&area->resource);
drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c
182
resource);
drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c
309
area->resource.name = (void *)area + sizeof(*area) +
drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c
311
memcpy((char *)area->resource.name, name, name_len);
drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c
313
area->resource.cpp_id = dest;
drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c
314
area->resource.start = address;
drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c
315
area->resource.end = area->resource.start + size - 1;
drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c
316
INIT_LIST_HEAD(&area->resource.list);
drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c
333
__resource_add(&cpp->resource_list, &area->resource);
drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c
589
return cpp_area->resource.name;
drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c
622
struct resource *nfp_cpp_area_resource(struct nfp_cpp_area *area)
drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c
624
struct resource *res = NULL;
drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c
96
struct nfp_cpp_resource resource;
drivers/net/ethernet/nxp/lpc_eth.c
1233
struct resource *res;
drivers/net/ethernet/qlogic/qed/qed_mcp.c
3775
QED_MFW_SET_FIELD(param, RESOURCE_CMD_REQ_RESC, p_params->resource);
drivers/net/ethernet/qlogic/qed/qed_mcp.c
3782
param, p_params->timeout, opcode, p_params->resource);
drivers/net/ethernet/qlogic/qed/qed_mcp.c
3858
QED_MFW_SET_FIELD(param, RESOURCE_CMD_REQ_RESC, p_params->resource);
drivers/net/ethernet/qlogic/qed/qed_mcp.c
3863
param, opcode, p_params->resource);
drivers/net/ethernet/qlogic/qed/qed_mcp.c
3881
p_params->resource);
drivers/net/ethernet/qlogic/qed/qed_mcp.c
3902
resource, bool b_is_permanent)
drivers/net/ethernet/qlogic/qed/qed_mcp.c
3920
p_lock->resource = resource;
drivers/net/ethernet/qlogic/qed/qed_mcp.c
3925
p_unlock->resource = resource;
drivers/net/ethernet/qlogic/qed/qed_mcp.h
1179
u8 resource;
drivers/net/ethernet/qlogic/qed/qed_mcp.h
1221
u8 resource;
drivers/net/ethernet/qlogic/qed/qed_mcp.h
1258
resource, bool b_is_permanent);
drivers/net/ethernet/qlogic/qed/qed_mfw_hsi.h
1088
struct resource_info resource;
drivers/net/ethernet/qlogic/qed/qed_ptp.c
45
enum qed_resc_lock resource;
drivers/net/ethernet/qlogic/qed/qed_ptp.c
48
resource = qed_ptcdev_to_resc(p_hwfn);
drivers/net/ethernet/qlogic/qed/qed_ptp.c
49
if (resource == QED_RESC_LOCK_RESC_INVALID)
drivers/net/ethernet/qlogic/qed/qed_ptp.c
52
qed_mcp_resc_lock_default_init(¶ms, NULL, resource, true);
drivers/net/ethernet/qlogic/qed/qed_ptp.c
77
enum qed_resc_lock resource;
drivers/net/ethernet/qlogic/qed/qed_ptp.c
80
resource = qed_ptcdev_to_resc(p_hwfn);
drivers/net/ethernet/qlogic/qed/qed_ptp.c
81
if (resource == QED_RESC_LOCK_RESC_INVALID)
drivers/net/ethernet/qlogic/qed/qed_ptp.c
84
qed_mcp_resc_lock_default_init(NULL, ¶ms, resource, true);
drivers/net/ethernet/qualcomm/emac/emac-sgmii.c
362
struct resource *res;
drivers/net/ethernet/renesas/ravb_main.c
2906
struct resource *res;
drivers/net/ethernet/renesas/rswitch_main.c
2130
struct resource *res;
drivers/net/ethernet/renesas/rtsn.c
1224
struct resource *res;
drivers/net/ethernet/renesas/sh_eth.c
3257
struct resource *res;
drivers/net/ethernet/renesas/sh_eth.c
3354
struct resource *rtsu;
drivers/net/ethernet/sfc/ef10.c
79
return resource_size(&efx->pci_dev->resource[bar]);
drivers/net/ethernet/sfc/ef100_nic.c
1014
unsigned int bar_size = resource_size(&efx->pci_dev->resource[efx->mem_bar]);
drivers/net/ethernet/sgi/ioc3-eth.c
196
static int ioc3eth_get_mac_addr(struct resource *res, u8 mac_addr[6])
drivers/net/ethernet/sgi/ioc3-eth.c
833
struct resource *regs;
drivers/net/ethernet/smsc/smc91c92_cs.c
406
p_dev->resource[1]->start = p_dev->resource[0]->start;
drivers/net/ethernet/smsc/smc91c92_cs.c
407
p_dev->resource[1]->end = 8;
drivers/net/ethernet/smsc/smc91c92_cs.c
408
p_dev->resource[1]->flags &= ~IO_DATA_PATH_WIDTH;
drivers/net/ethernet/smsc/smc91c92_cs.c
409
p_dev->resource[1]->flags |= IO_DATA_PATH_WIDTH_8;
drivers/net/ethernet/smsc/smc91c92_cs.c
410
p_dev->resource[0]->end = 16;
drivers/net/ethernet/smsc/smc91c92_cs.c
411
p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH;
drivers/net/ethernet/smsc/smc91c92_cs.c
412
p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO;
drivers/net/ethernet/smsc/smc91c92_cs.c
416
p_dev->resource[0]->start = k ^ 0x300;
drivers/net/ethernet/smsc/smc91c92_cs.c
438
dev->base_addr = link->resource[0]->start;
drivers/net/ethernet/smsc/smc91c92_cs.c
441
link->resource[2]->flags = WIN_DATA_WIDTH_8|WIN_MEMORY_TYPE_AM|WIN_ENABLE;
drivers/net/ethernet/smsc/smc91c92_cs.c
442
link->resource[2]->start = link->resource[2]->end = 0;
drivers/net/ethernet/smsc/smc91c92_cs.c
443
i = pcmcia_request_window(link, link->resource[2], 0);
drivers/net/ethernet/smsc/smc91c92_cs.c
447
smc->base = ioremap(link->resource[2]->start,
drivers/net/ethernet/smsc/smc91c92_cs.c
448
resource_size(link->resource[2]));
drivers/net/ethernet/smsc/smc91c92_cs.c
450
i = pcmcia_map_mem_page(link, link->resource[2], offset);
drivers/net/ethernet/smsc/smc91c92_cs.c
523
unsigned int iouart = link->resource[1]->start;
drivers/net/ethernet/smsc/smc91c92_cs.c
577
p_dev->resource[0]->end = 16;
drivers/net/ethernet/smsc/smc91c92_cs.c
578
p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH;
drivers/net/ethernet/smsc/smc91c92_cs.c
579
p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO;
drivers/net/ethernet/smsc/smc91c92_cs.c
593
dev->base_addr = link->resource[0]->start;
drivers/net/ethernet/smsc/smc91c92_cs.c
624
link->resource[0]->end = 64;
drivers/net/ethernet/smsc/smc91c92_cs.c
625
link->resource[1]->flags |= IO_DATA_PATH_WIDTH_8;
drivers/net/ethernet/smsc/smc91c92_cs.c
626
link->resource[1]->end = 8;
drivers/net/ethernet/smsc/smc91c92_cs.c
633
link->resource[1]->start = com[j];
drivers/net/ethernet/smsc/smc91c92_cs.c
641
link->resource[1]->end = 0;
drivers/net/ethernet/smsc/smc91c92_cs.c
644
dev->base_addr = link->resource[0]->start + 0x10;
drivers/net/ethernet/smsc/smc91c92_cs.c
661
outb(fw->data[i], link->resource[0]->start + 2);
drivers/net/ethernet/smsc/smc91c92_cs.c
702
set_bits(0x300, link->resource[0]->start + OSITECH_AUI_PWR);
drivers/net/ethernet/smsc/smc91c92_cs.c
704
set_bits(0x300, link->resource[0]->start + OSITECH_RESET_ISR);
drivers/net/ethernet/smsc/smc91c92_cs.c
706
inw(link->resource[0]->start + OSITECH_AUI_PWR),
drivers/net/ethernet/smsc/smc91c92_cs.c
707
inw(link->resource[0]->start + OSITECH_RESET_ISR));
drivers/net/ethernet/smsc/smc91c92_cs.c
780
width = (link->resource[0]->flags == IO_DATA_PATH_WIDTH_AUTO);
drivers/net/ethernet/smsc/smc91c92_cs.c
959
if (link->resource[2]->end) {
drivers/net/ethernet/smsc/smc91x.c
2054
struct resource * res;
drivers/net/ethernet/smsc/smc91x.c
2113
struct resource * res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "smc91x-attrib");
drivers/net/ethernet/smsc/smc91x.c
2128
struct resource * res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "smc91x-attrib");
drivers/net/ethernet/smsc/smc91x.c
2138
struct resource * res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "smc91x-data32");
drivers/net/ethernet/smsc/smc91x.c
2158
struct resource * res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "smc91x-data32");
drivers/net/ethernet/smsc/smc91x.c
2233
struct resource *res;
drivers/net/ethernet/smsc/smc91x.c
2407
struct resource *res;
drivers/net/ethernet/smsc/smsc911x.c
2331
struct resource *res;
drivers/net/ethernet/smsc/smsc911x.c
2426
struct resource *res;
drivers/net/ethernet/socionext/netsec.c
1998
struct resource *mmio_res, *eeprom_res;
drivers/net/ethernet/stmicro/stmmac/dwmac-loongson1.c
58
struct resource *res;
drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c
1217
struct resource *res;
drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c
123
struct resource res_splitter;
drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c
124
struct resource res_tse_pcs;
drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c
125
struct resource res_sgmii_adapter;
drivers/net/ethernet/stmicro/stmmac/dwmac-sti.c
182
struct resource *res;
drivers/net/ethernet/sun/niu.c
10100
np->regs = of_ioremap(&op->resource[1], 0,
drivers/net/ethernet/sun/niu.c
10101
resource_size(&op->resource[1]),
drivers/net/ethernet/sun/niu.c
10109
np->vir_regs_1 = of_ioremap(&op->resource[2], 0,
drivers/net/ethernet/sun/niu.c
10110
resource_size(&op->resource[2]),
drivers/net/ethernet/sun/niu.c
10118
np->vir_regs_2 = of_ioremap(&op->resource[3], 0,
drivers/net/ethernet/sun/niu.c
10119
resource_size(&op->resource[3]),
drivers/net/ethernet/sun/niu.c
10150
of_iounmap(&op->resource[2], np->vir_regs_1,
drivers/net/ethernet/sun/niu.c
10151
resource_size(&op->resource[2]));
drivers/net/ethernet/sun/niu.c
10156
of_iounmap(&op->resource[3], np->vir_regs_2,
drivers/net/ethernet/sun/niu.c
10157
resource_size(&op->resource[3]));
drivers/net/ethernet/sun/niu.c
10162
of_iounmap(&op->resource[1], np->regs,
drivers/net/ethernet/sun/niu.c
10163
resource_size(&op->resource[1]));
drivers/net/ethernet/sun/niu.c
10187
of_iounmap(&op->resource[2], np->vir_regs_1,
drivers/net/ethernet/sun/niu.c
10188
resource_size(&op->resource[2]));
drivers/net/ethernet/sun/niu.c
10193
of_iounmap(&op->resource[3], np->vir_regs_2,
drivers/net/ethernet/sun/niu.c
10194
resource_size(&op->resource[3]));
drivers/net/ethernet/sun/niu.c
10199
of_iounmap(&op->resource[1], np->regs,
drivers/net/ethernet/sun/niu.c
10200
resource_size(&op->resource[1]));
drivers/net/ethernet/sun/sunbmac.c
1100
bp->gregs = of_ioremap(&qec_op->resource[0], 0,
drivers/net/ethernet/sun/sunbmac.c
1133
bp->creg = of_ioremap(&op->resource[0], 0,
drivers/net/ethernet/sun/sunbmac.c
1141
bp->bregs = of_ioremap(&op->resource[1], 0,
drivers/net/ethernet/sun/sunbmac.c
1151
bp->tregs = of_ioremap(&op->resource[2], 0,
drivers/net/ethernet/sun/sunbmac.c
116
sbus_writel(resource_size(&qec_op->resource[1]),
drivers/net/ethernet/sun/sunbmac.c
120
sbus_writel(resource_size(&qec_op->resource[1]) >> 1,
drivers/net/ethernet/sun/sunbmac.c
1205
of_iounmap(&qec_op->resource[0], bp->gregs, GLOB_REG_SIZE);
drivers/net/ethernet/sun/sunbmac.c
1207
of_iounmap(&op->resource[0], bp->creg, CREG_REG_SIZE);
drivers/net/ethernet/sun/sunbmac.c
1209
of_iounmap(&op->resource[1], bp->bregs, BMAC_REG_SIZE);
drivers/net/ethernet/sun/sunbmac.c
1211
of_iounmap(&op->resource[2], bp->tregs, TCVR_REG_SIZE);
drivers/net/ethernet/sun/sunbmac.c
122
sbus_writel(resource_size(&qec_op->resource[1]) >> 1,
drivers/net/ethernet/sun/sunbmac.c
1248
of_iounmap(&qec_op->resource[0], bp->gregs, GLOB_REG_SIZE);
drivers/net/ethernet/sun/sunbmac.c
1249
of_iounmap(&op->resource[0], bp->creg, CREG_REG_SIZE);
drivers/net/ethernet/sun/sunbmac.c
1250
of_iounmap(&op->resource[1], bp->bregs, BMAC_REG_SIZE);
drivers/net/ethernet/sun/sunbmac.c
1251
of_iounmap(&op->resource[2], bp->tregs, TCVR_REG_SIZE);
drivers/net/ethernet/sun/sunhme.c
2555
if ((op->resource[3].end - op->resource[3].start) >= BMAC_REG_SIZE)
drivers/net/ethernet/sun/sunhme.c
2556
op->resource[3].end = op->resource[3].start + BMAC_REG_SIZE - 1;
drivers/net/ethernet/sun/sunhme.c
2623
struct resource *hpreg_res;
drivers/net/ethernet/sun/sunqe.c
735
sbus_writel((resource_size(&op->resource[1]) >> 2),
drivers/net/ethernet/sun/sunqe.c
741
sbus_writel((resource_size(&op->resource[1]) >> 2) >> 1,
drivers/net/ethernet/sun/sunqe.c
743
sbus_writel((resource_size(&op->resource[1]) >> 2) >> 1,
drivers/net/ethernet/sun/sunqe.c
779
qecp->gregs = of_ioremap(&op->resource[0], 0,
drivers/net/ethernet/sun/sunqe.c
817
of_iounmap(&op->resource[0], qecp->gregs, GLOB_REG_SIZE);
drivers/net/ethernet/sun/sunqe.c
869
qe->qcregs = of_ioremap(&op->resource[0], 0,
drivers/net/ethernet/sun/sunqe.c
876
qe->mregs = of_ioremap(&op->resource[1], 0,
drivers/net/ethernet/sun/sunqe.c
914
of_iounmap(&op->resource[0], qe->qcregs, CREG_REG_SIZE);
drivers/net/ethernet/sun/sunqe.c
916
of_iounmap(&op->resource[1], qe->mregs, MREGS_REG_SIZE);
drivers/net/ethernet/sun/sunqe.c
943
of_iounmap(&op->resource[0], qp->qcregs, CREG_REG_SIZE);
drivers/net/ethernet/sun/sunqe.c
944
of_iounmap(&op->resource[1], qp->mregs, MREGS_REG_SIZE);
drivers/net/ethernet/sun/sunqe.c
985
of_iounmap(&op->resource[0], root_qec_dev->gregs,
drivers/net/ethernet/ti/am65-cpsw-nuss.c
3525
struct resource *res;
drivers/net/ethernet/ti/cpsw.c
1549
struct resource *ss_res;
drivers/net/ethernet/ti/cpsw_new.c
1892
struct resource *ss_res;
drivers/net/ethernet/ti/davinci_emac.c
1414
struct resource *res;
drivers/net/ethernet/ti/davinci_emac.c
1598
struct resource *res;
drivers/net/ethernet/ti/davinci_emac.c
1807
struct resource *res, *res_ctrl;
drivers/net/ethernet/ti/davinci_mdio.c
542
struct resource *res;
drivers/net/ethernet/ti/netcp_core.c
2023
struct resource res;
drivers/net/ethernet/ti/netcp_ethss.c
3220
struct resource res;
drivers/net/ethernet/ti/netcp_ethss.c
3327
struct resource res;
drivers/net/ethernet/ti/netcp_ethss.c
3352
struct resource res;
drivers/net/ethernet/ti/netcp_ethss.c
3449
struct resource res;
drivers/net/ethernet/via/via-velocity.c
2710
struct resource res;
drivers/net/ethernet/wiznet/w5100.c
1042
struct resource *mem;
drivers/net/ethernet/wiznet/w5300.c
531
struct resource *mem;
drivers/net/ethernet/xilinx/ll_temac_mdio.c
72
struct resource res;
drivers/net/ethernet/xilinx/xilinx_axienet_main.c
2782
struct resource *ethres;
drivers/net/ethernet/xilinx/xilinx_axienet_main.c
2927
struct resource dmares;
drivers/net/ethernet/xilinx/xilinx_emaclite.c
1091
struct resource *res;
drivers/net/ethernet/xilinx/xilinx_emaclite.c
807
struct resource res;
drivers/net/ethernet/xircom/xirc2ps_cs.c
628
if ((p_dev->resource[0]->start & 0xf) == 8)
drivers/net/ethernet/xircom/xirc2ps_cs.c
631
p_dev->resource[0]->end = 16;
drivers/net/ethernet/xircom/xirc2ps_cs.c
632
p_dev->resource[1]->end = 8;
drivers/net/ethernet/xircom/xirc2ps_cs.c
633
p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH;
drivers/net/ethernet/xircom/xirc2ps_cs.c
634
p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_16;
drivers/net/ethernet/xircom/xirc2ps_cs.c
635
p_dev->resource[1]->flags &= ~IO_DATA_PATH_WIDTH;
drivers/net/ethernet/xircom/xirc2ps_cs.c
636
p_dev->resource[1]->flags |= IO_DATA_PATH_WIDTH_8;
drivers/net/ethernet/xircom/xirc2ps_cs.c
639
p_dev->resource[1]->start = p_dev->resource[0]->start;
drivers/net/ethernet/xircom/xirc2ps_cs.c
641
p_dev->resource[0]->start = ioaddr;
drivers/net/ethernet/xircom/xirc2ps_cs.c
652
resource_size_t tmp = p_dev->resource[1]->start;
drivers/net/ethernet/xircom/xirc2ps_cs.c
657
if ((p_dev->resource[0]->start & 0xf) == 8)
drivers/net/ethernet/xircom/xirc2ps_cs.c
660
p_dev->resource[0]->end = 18;
drivers/net/ethernet/xircom/xirc2ps_cs.c
661
p_dev->resource[1]->end = 8;
drivers/net/ethernet/xircom/xirc2ps_cs.c
662
p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH;
drivers/net/ethernet/xircom/xirc2ps_cs.c
663
p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_16;
drivers/net/ethernet/xircom/xirc2ps_cs.c
664
p_dev->resource[1]->flags &= ~IO_DATA_PATH_WIDTH;
drivers/net/ethernet/xircom/xirc2ps_cs.c
665
p_dev->resource[1]->flags |= IO_DATA_PATH_WIDTH_8;
drivers/net/ethernet/xircom/xirc2ps_cs.c
668
p_dev->resource[1]->start = p_dev->resource[0]->start;
drivers/net/ethernet/xircom/xirc2ps_cs.c
669
p_dev->resource[0]->start = tmp;
drivers/net/ethernet/xircom/xirc2ps_cs.c
790
link->resource[0]->end = 16;
drivers/net/ethernet/xircom/xirc2ps_cs.c
791
link->resource[0]->flags |= IO_DATA_PATH_WIDTH_16;
drivers/net/ethernet/xircom/xirc2ps_cs.c
793
link->resource[0]->start = ioaddr;
drivers/net/ethernet/xircom/xirc2ps_cs.c
797
link->resource[0]->start = 0; /* let CS decide */
drivers/net/ethernet/xircom/xirc2ps_cs.c
824
link->resource[1]->start & 0xff);
drivers/net/ethernet/xircom/xirc2ps_cs.c
829
(link->resource[1]->start >> 8) & 0xff);
drivers/net/ethernet/xircom/xirc2ps_cs.c
837
link->resource[2]->flags = WIN_DATA_WIDTH_8 | WIN_MEMORY_TYPE_AM |
drivers/net/ethernet/xircom/xirc2ps_cs.c
839
link->resource[2]->start = link->resource[2]->end = 0;
drivers/net/ethernet/xircom/xirc2ps_cs.c
840
if ((err = pcmcia_request_window(link, link->resource[2], 0)))
drivers/net/ethernet/xircom/xirc2ps_cs.c
843
local->dingo_ccr = ioremap(link->resource[2]->start, 0x1000) + 0x0800;
drivers/net/ethernet/xircom/xirc2ps_cs.c
844
if ((err = pcmcia_map_mem_page(link, link->resource[2], 0)))
drivers/net/ethernet/xircom/xirc2ps_cs.c
851
ioaddr = link->resource[0]->start;
drivers/net/ethernet/xircom/xirc2ps_cs.c
898
dev->base_addr = link->resource[0]->start;
drivers/net/ethernet/xircom/xirc2ps_cs.c
930
if (link->resource[2]->end) {
drivers/net/fddi/defxx.c
478
bar_start[0] = to_tc_dev(bdev)->resource.start +
drivers/net/fddi/defxx.c
541
struct resource *region;
drivers/net/fddi/defza.c
1312
start = tdev->resource.start;
drivers/net/fddi/defza.c
1313
len = tdev->resource.end - start + 1;
drivers/net/fddi/defza.c
1342
fp->name, (long long)tdev->resource.start, dev->irq);
drivers/net/fddi/defza.c
1529
start = tdev->resource.start;
drivers/net/fddi/defza.c
1530
len = tdev->resource.end - start + 1;
drivers/net/fjes/fjes_main.c
114
static struct resource fjes_resource[] = {
drivers/net/fjes/fjes_main.c
1336
struct resource *res;
drivers/net/fjes/fjes_main.c
89
struct resource *res = data;
drivers/net/ipa/gsi_reg.c
125
struct resource *res;
drivers/net/ipa/ipa_main.c
589
struct resource res;
drivers/net/ipa/ipa_mem.c
621
struct resource *res;
drivers/net/ipa/ipa_reg.c
140
struct resource *res;
drivers/net/ipa/ipa_resource.c
101
&resource->limits[0], ylimits);
drivers/net/ipa/ipa_resource.c
106
ylimits = group_count == 3 ? NULL : &resource->limits[3];
drivers/net/ipa/ipa_resource.c
108
&resource->limits[2], ylimits);
drivers/net/ipa/ipa_resource.c
113
ylimits = group_count == 5 ? NULL : &resource->limits[5];
drivers/net/ipa/ipa_resource.c
115
&resource->limits[4], ylimits);
drivers/net/ipa/ipa_resource.c
120
ylimits = group_count == 7 ? NULL : &resource->limits[7];
drivers/net/ipa/ipa_resource.c
122
&resource->limits[6], ylimits);
drivers/net/ipa/ipa_resource.c
130
const struct ipa_resource *resource;
drivers/net/ipa/ipa_resource.c
133
resource = &data->resource_dst[resource_type];
drivers/net/ipa/ipa_resource.c
136
ylimits = group_count == 1 ? NULL : &resource->limits[1];
drivers/net/ipa/ipa_resource.c
138
&resource->limits[0], ylimits);
drivers/net/ipa/ipa_resource.c
143
ylimits = group_count == 3 ? NULL : &resource->limits[3];
drivers/net/ipa/ipa_resource.c
145
&resource->limits[2], ylimits);
drivers/net/ipa/ipa_resource.c
150
ylimits = group_count == 5 ? NULL : &resource->limits[5];
drivers/net/ipa/ipa_resource.c
152
&resource->limits[4], ylimits);
drivers/net/ipa/ipa_resource.c
157
ylimits = group_count == 7 ? NULL : &resource->limits[7];
drivers/net/ipa/ipa_resource.c
159
&resource->limits[6], ylimits);
drivers/net/ipa/ipa_resource.c
46
const struct ipa_resource *resource;
drivers/net/ipa/ipa_resource.c
48
resource = &data->resource_src[i];
drivers/net/ipa/ipa_resource.c
50
if (resource->limits[j].min || resource->limits[j].max)
drivers/net/ipa/ipa_resource.c
59
const struct ipa_resource *resource;
drivers/net/ipa/ipa_resource.c
61
resource = &data->resource_dst[i];
drivers/net/ipa/ipa_resource.c
63
if (resource->limits[j].min || resource->limits[j].max)
drivers/net/ipa/ipa_resource.c
93
const struct ipa_resource *resource;
drivers/net/ipa/ipa_resource.c
96
resource = &data->resource_src[resource_type];
drivers/net/ipa/ipa_resource.c
99
ylimits = group_count == 1 ? NULL : &resource->limits[1];
drivers/net/mdio/mdio-bcm-unimac.c
243
struct resource *r;
drivers/net/mdio/mdio-ipq4019.c
330
struct resource *res;
drivers/net/mdio/mdio-ipq8064.c
114
struct resource res;
drivers/net/mdio/mdio-mux-bcm-iproc.c
214
struct resource *res;
drivers/net/mdio/mdio-mux-bcm6368.c
93
struct resource *res;
drivers/net/mdio/mdio-mux-mmioreg.c
101
struct resource res;
drivers/net/mdio/mdio-thunder.c
57
struct resource r;
drivers/net/pcs/pcs-xpcs-plat.c
238
struct resource *res;
drivers/net/rionet.c
68
struct resource *res;
drivers/net/wan/fsl_ucc_hdlc.c
1062
struct resource *res;
drivers/net/wan/fsl_ucc_hdlc.c
1112
struct resource res;
drivers/net/wireless/ath/ath10k/ahb.c
440
struct resource *res;
drivers/net/wireless/ath/ath10k/snoc.c
1317
struct resource *res;
drivers/net/wireless/ath/ath10k/snoc.c
1578
struct resource r;
drivers/net/wireless/ath/ath11k/ahb.c
824
struct resource *res;
drivers/net/wireless/ath/ath11k/ahb.c
900
struct resource *mem_res;
drivers/net/wireless/ath/ath11k/ahb.c
922
struct resource r;
drivers/net/wireless/ath/ath11k/mhi.c
315
struct resource res;
drivers/net/wireless/ath/ath11k/qmi.c
2043
struct resource res = {};
drivers/net/wireless/ath/ath12k/ahb.c
906
struct resource *mem_res;
drivers/net/wireless/ath/ath5k/ahb.c
90
struct resource *res;
drivers/net/wireless/ath/wil6210/pcie_bus.c
373
wil_info(wil, "CSR at %pR -> 0x%p\n", &pdev->resource[0], wil->csr);
drivers/net/wireless/mediatek/mt76/mt7915/mmio.c
671
struct resource *res;
drivers/net/wireless/mediatek/mt76/mt7915/soc.c
287
struct resource res;
drivers/net/wireless/ti/wlcore/main.c
6552
struct resource *res;
drivers/net/wireless/ti/wlcore/sdio.c
260
struct resource res[2];
drivers/net/wireless/ti/wlcore/spi.c
465
struct resource res[1];
drivers/nvdimm/claim.c
314
struct resource *res = &nsio->res;
drivers/nvdimm/dimm_devs.c
226
struct resource *res, *_r;
drivers/nvdimm/dimm_devs.c
574
struct resource *flush_wpq, const char *dimm_id,
drivers/nvdimm/dimm_devs.c
723
struct resource *res;
drivers/nvdimm/dimm_devs.c
769
struct resource *res;
drivers/nvdimm/dimm_devs.c
806
void nvdimm_free_dpa(struct nvdimm_drvdata *ndd, struct resource *res)
drivers/nvdimm/dimm_devs.c
813
struct resource *nvdimm_allocate_dpa(struct nvdimm_drvdata *ndd,
drivers/nvdimm/dimm_devs.c
818
struct resource *res;
drivers/nvdimm/dimm_devs.c
841
struct resource *res;
drivers/nvdimm/e820.c
19
static int e820_register_one(struct resource *res, void *data)
drivers/nvdimm/label.c
1065
struct resource *res;
drivers/nvdimm/label.c
411
struct resource *res;
drivers/nvdimm/label.c
885
struct resource *res;
drivers/nvdimm/namespace_devs.c
1060
struct resource *res;
drivers/nvdimm/namespace_devs.c
1078
static DEVICE_ATTR_ADMIN_RO(resource);
drivers/nvdimm/namespace_devs.c
1161
struct resource *res;
drivers/nvdimm/namespace_devs.c
1493
struct resource *res = &nsio->res;
drivers/nvdimm/namespace_devs.c
1531
struct resource *res;
drivers/nvdimm/namespace_devs.c
1675
struct resource *res;
drivers/nvdimm/namespace_devs.c
1794
struct resource *res;
drivers/nvdimm/namespace_devs.c
302
struct resource *res, *last;
drivers/nvdimm/namespace_devs.c
365
struct resource *res;
drivers/nvdimm/namespace_devs.c
395
struct nd_label_id *label_id, struct resource *prev,
drivers/nvdimm/namespace_devs.c
396
struct resource *next, struct resource *exist,
drivers/nvdimm/namespace_devs.c
397
resource_size_t n, struct resource *valid)
drivers/nvdimm/namespace_devs.c
440
struct resource *res, *exist = NULL, valid;
drivers/nvdimm/namespace_devs.c
454
struct resource *next = res->sibling, *new_res = NULL;
drivers/nvdimm/namespace_devs.c
580
struct resource *res;
drivers/nvdimm/namespace_devs.c
587
struct resource *next = res->sibling;
drivers/nvdimm/namespace_devs.c
648
struct resource *res, *_res;
drivers/nvdimm/namespace_devs.c
699
struct resource *res = &nspm->nsio.res;
drivers/nvdimm/namespace_devs.c
711
struct resource *res;
drivers/nvdimm/namespace_devs.c
993
struct resource *res;
drivers/nvdimm/nd-core.h
38
struct resource *flush_wpq;
drivers/nvdimm/nd.h
35
struct resource dpa;
drivers/nvdimm/nd.h
643
void nvdimm_free_dpa(struct nvdimm_drvdata *ndd, struct resource *res);
drivers/nvdimm/nd.h
644
struct resource *nvdimm_allocate_dpa(struct nvdimm_drvdata *ndd,
drivers/nvdimm/of_pmem.c
65
ndr_desc.res = &pdev->resource[i];
drivers/nvdimm/pfn_devs.c
211
static DEVICE_ATTR_ADMIN_RO(resource);
drivers/nvdimm/pfn_devs.c
443
struct resource *res;
drivers/nvdimm/pmem.c
461
struct resource *res = &nsio->res;
drivers/nvdimm/ramdax.c
222
err = ramdax_register_dimm(&pdev->resource[i], bus);
drivers/nvdimm/ramdax.c
34
static int ramdax_register_region(struct resource *res,
drivers/nvdimm/ramdax.c
74
static int ramdax_register_dimm(struct resource *res, void *data)
drivers/nvdimm/region_devs.c
34
struct resource *res = &nvdimm->flush_wpq[i];
drivers/nvdimm/region_devs.c
40
struct resource *res_j = &nvdimm->flush_wpq[j];
drivers/nvdimm/region_devs.c
599
static DEVICE_ATTR_ADMIN_RO(resource);
drivers/nvdimm/virtio_pmem.c
51
struct resource res;
drivers/nvmem/apple-efuses.c
36
struct resource *res;
drivers/nvmem/brcm_nvram.c
70
struct resource *res;
drivers/nvmem/lpc18xx_eeprom.c
168
struct resource *res;
drivers/nvmem/mtk-efuse.c
66
struct resource *res;
drivers/nvmem/qfprom.c
381
struct resource *res;
drivers/nvmem/qoriq-efuse.c
44
struct resource *res;
drivers/nvmem/rcar-efuse.c
64
struct resource *res;
drivers/nvmem/rockchip-efuse.c
255
struct resource *res;
drivers/nvmem/s32g-ocotp-nvmem.c
69
struct resource *res;
drivers/nvmem/sec-qfprom.c
59
struct resource *res;
drivers/nvmem/stm32-romem.c
194
struct resource *res;
drivers/nvmem/uniphier-efuse.c
35
struct resource *res;
drivers/nvmem/vf610-ocotp.c
215
struct resource *res;
drivers/of/address.c
1042
struct resource *r)
drivers/of/address.c
1067
memset(r, 0, sizeof(struct resource));
drivers/of/address.c
1092
struct resource *r)
drivers/of/address.c
1099
struct resource *r)
drivers/of/address.c
1118
struct resource res;
drivers/of/address.c
1147
struct resource res;
drivers/of/address.c
188
VISIBLE_IF_KUNIT int __of_address_resource_bounds(struct resource *r, u64 start, u64 size)
drivers/of/address.c
220
const struct device_node *np, struct resource *res)
drivers/of/address.c
262
int of_range_to_resource(struct device_node *np, int index, struct resource *res)
drivers/of/irq.c
491
int of_irq_to_resource(struct device_node *dev, int index, struct resource *r)
drivers/of/irq.c
622
int of_irq_to_resource_table(struct device_node *dev, struct resource *res,
drivers/of/of_numa.c
43
struct resource rsrc;
drivers/of/of_private.h
219
int __of_address_resource_bounds(struct resource *r, u64 start, u64 size);
drivers/of/of_reserved_mem.c
757
unsigned int idx, struct resource *res)
drivers/of/of_reserved_mem.c
793
struct resource *res)
drivers/of/of_test.c
148
struct resource r; /* Intentionally uninitialized */
drivers/of/platform.c
103
struct resource *res;
drivers/of/platform.c
121
dev->resource = res;
drivers/of/platform.c
279
struct resource res;
drivers/of/unittest.c
1270
struct resource res;
drivers/of/unittest.c
1394
struct resource res;
drivers/of/unittest.c
1428
struct resource res;
drivers/of/unittest.c
1437
struct resource res;
drivers/of/unittest.c
1906
static struct resource test_bus_res = DEFINE_RES_MEM(0xfffffff8, 2);
drivers/of/unittest.c
4348
struct resource *res;
drivers/opp/ti-opp-supply.c
83
struct resource *res;
drivers/parisc/ccio-dma.c
1349
ccio_init_resource(struct resource *res, char *name, void __iomem *ioaddr)
drivers/parisc/ccio-dma.c
1383
struct resource *res = ioc->mmio_region;
drivers/parisc/ccio-dma.c
1394
static int new_ioc_area(struct resource *res, unsigned long size,
drivers/parisc/ccio-dma.c
1413
static int expand_ioc_area(struct resource *res, unsigned long size,
drivers/parisc/ccio-dma.c
1446
struct resource *res, unsigned long size,
drivers/parisc/ccio-dma.c
1449
struct resource *parent = &iomem_resource;
drivers/parisc/ccio-dma.c
1484
struct resource *res)
drivers/parisc/ccio-dma.c
1486
struct resource *parent;
drivers/parisc/ccio-dma.c
246
struct resource mmio_region[2]; /* The "routed" MMIO regions */
drivers/parisc/dino.c
487
memset(&dev->resource[0], 0, sizeof(dev->resource[0]));
drivers/parisc/dino.c
488
memset(&dev->resource[1], 0, sizeof(dev->resource[1]));
drivers/parisc/dino.c
512
struct resource *res;
drivers/parisc/dino.c
541
bus->resource[1] = res;
drivers/parisc/dino.c
542
bus->resource[0] = &(dino_dev->hba.io_space);
drivers/parisc/dino.c
617
if((bus->self->resource[i].flags &
drivers/parisc/dino.c
621
if(bus->self->resource[i].flags & IORESOURCE_MEM) {
drivers/parisc/dino.c
628
bus->self->resource[i].end = bus->self->resource[i].end - bus->self->resource[i].start + DINO_BRIDGE_ALIGN;
drivers/parisc/dino.c
629
bus->self->resource[i].start = DINO_BRIDGE_ALIGN;
drivers/parisc/dino.c
635
&bus->self->resource[i]);
drivers/parisc/dino.c
639
&bus->self->resource[i]);
drivers/parisc/dino.c
660
dev->resource[PCI_ROM_RESOURCE].flags = 0;
drivers/parisc/dino.c
771
struct resource *res, *prevres = NULL;
drivers/parisc/dino.c
837
struct resource *res;
drivers/parisc/eisa_enumerator.c
167
static int configure_port(const unsigned char *buf, struct resource *io_parent,
drivers/parisc/eisa_enumerator.c
173
struct resource *res;
drivers/parisc/eisa_enumerator.c
181
if (NULL != (res = kzalloc_obj(struct resource))) {
drivers/parisc/eisa_enumerator.c
315
struct resource *io_parent,
drivers/parisc/eisa_enumerator.c
316
struct resource *mem_parent)
drivers/parisc/eisa_enumerator.c
481
struct resource *io_parent, struct resource *mem_parent)
drivers/parisc/eisa_enumerator.c
76
struct resource *mem_parent,
drivers/parisc/eisa_enumerator.c
82
struct resource *res;
drivers/parisc/eisa_enumerator.c
89
if (NULL != (res = kzalloc_obj(struct resource))) {
drivers/parisc/gsc.c
236
struct resource *res;
drivers/parisc/hppb.c
27
struct resource mmio_region;
drivers/parisc/iommu.h
41
struct resource *res);
drivers/parisc/iommu.h
43
struct resource *res, unsigned long size,
drivers/parisc/lba_pci.c
1065
struct resource *r;
drivers/parisc/lba_pci.c
1174
struct resource *r;
drivers/parisc/lba_pci.c
159
lba_dump_res(struct resource *r, int d)
drivers/parisc/lba_pci.c
571
truncate_pat_collision(struct resource *root, struct resource *new)
drivers/parisc/lba_pci.c
575
struct resource *tmp = root->child;
drivers/parisc/lba_pci.c
624
struct resource *tmp;
drivers/parisc/lba_pci.c
670
struct resource *r;
drivers/parisc/lba_pci.c
673
r = &dev->resource[idx];
drivers/parisc/lba_pci.c
802
struct resource *res = &dev->resource[i];
drivers/parisc/sba_iommu.c
2024
void sba_directed_lmmio(struct parisc_device *pci_hba, struct resource *r)
drivers/parisc/sba_iommu.c
2067
void sba_distributed_lmmio(struct parisc_device *pci_hba, struct resource *r )
drivers/parport/parport_cs.c
111
p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH;
drivers/parport/parport_cs.c
112
p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_8;
drivers/parport/parport_cs.c
113
p_dev->resource[1]->flags &= ~IO_DATA_PATH_WIDTH;
drivers/parport/parport_cs.c
114
p_dev->resource[1]->flags |= IO_DATA_PATH_WIDTH_8;
drivers/parport/parport_cs.c
140
p = parport_pc_probe_port(link->resource[0]->start,
drivers/parport/parport_cs.c
141
link->resource[1]->start,
drivers/parport/parport_cs.c
146
(unsigned int)link->resource[0]->start, link->irq);
drivers/parport/parport_mfc3.c
294
unsigned long piabase = z->resource.start+PIABASE;
drivers/parport/parport_pc.c
2037
struct resource *base_res;
drivers/parport/parport_pc.c
2038
struct resource *ECR_res = NULL;
drivers/parport/parport_pc.c
2039
struct resource *EPP_res = NULL;
drivers/parport/parport_sunbpp.c
279
base = of_ioremap(&op->resource[0], 0,
drivers/parport/parport_sunbpp.c
280
resource_size(&op->resource[0]),
drivers/parport/parport_sunbpp.c
285
size = resource_size(&op->resource[0]);
drivers/parport/parport_sunbpp.c
332
of_iounmap(&op->resource[0], base, size);
drivers/parport/parport_sunbpp.c
349
of_iounmap(&op->resource[0], (void __iomem *) p->base, p->size);
drivers/pci/bus.c
100
if (bus->resource[i] == res) {
drivers/pci/bus.c
101
bus->resource[i] = NULL;
drivers/pci/bus.c
121
bus->resource[i] = NULL;
drivers/pci/bus.c
133
struct resource *parent, *res;
drivers/pci/bus.c
173
struct resource *res,
drivers/pci/bus.c
190
static int pci_bus_alloc_from_region(struct pci_bus *bus, struct resource *res,
drivers/pci/bus.c
197
struct resource *r, avail;
drivers/pci/bus.c
264
int pci_bus_alloc_resource(struct pci_bus *bus, struct resource *res,
drivers/pci/bus.c
301
struct resource *res = &dev->resource[idx];
drivers/pci/bus.c
302
struct resource orig_res = *res;
drivers/pci/bus.c
303
struct resource *r;
drivers/pci/bus.c
33
struct resource *res;
drivers/pci/bus.c
36
void pci_add_resource_offset(struct list_head *resources, struct resource *res,
drivers/pci/bus.c
52
void pci_add_resource(struct list_head *resources, struct resource *res)
drivers/pci/bus.c
64
void pci_bus_add_resource(struct pci_bus *bus, struct resource *res)
drivers/pci/bus.c
78
struct resource *pci_bus_resource_n(const struct pci_bus *bus, int n)
drivers/pci/bus.c
83
return bus->resource[n];
drivers/pci/bus.c
94
void pci_bus_remove_resource(struct pci_bus *bus, struct resource *res)
drivers/pci/controller/cadence/pci-sky1.c
43
struct resource *cfg_res;
drivers/pci/controller/cadence/pci-sky1.c
44
struct resource *msg_res;
drivers/pci/controller/cadence/pci-sky1.c
57
struct resource *res;
drivers/pci/controller/cadence/pcie-cadence-ep.c
672
struct resource *res;
drivers/pci/controller/cadence/pcie-cadence-host-hpa.c
192
struct resource *cfg_res = rc->cfg_res;
drivers/pci/controller/cadence/pcie-cadence-host-hpa.c
251
struct resource *res = entry->res;
drivers/pci/controller/cadence/pcie-cadence-host-hpa.c
319
struct resource *res;
drivers/pci/controller/cadence/pcie-cadence-host.c
252
struct resource *cfg_res = rc->cfg_res;
drivers/pci/controller/cadence/pcie-cadence-host.c
283
struct resource *res = entry->res;
drivers/pci/controller/cadence/pcie-cadence-host.c
377
struct resource *res;
drivers/pci/controller/cadence/pcie-cadence.h
121
struct resource *cfg_res;
drivers/pci/controller/cadence/pcie-cadence.h
92
struct resource *mem_res;
drivers/pci/controller/cadence/pcie-cadence.h
93
struct resource *msg_res;
drivers/pci/controller/dwc/pci-imx6.c
1679
struct resource res;
drivers/pci/controller/dwc/pci-keystone.c
1122
struct resource *res;
drivers/pci/controller/dwc/pci-keystone.c
139
struct resource app;
drivers/pci/controller/dwc/pci-keystone.c
411
struct resource *mem;
drivers/pci/controller/dwc/pci-layerscape-ep.c
232
struct resource *dbi_base;
drivers/pci/controller/dwc/pci-layerscape.c
330
struct resource *dbi_base;
drivers/pci/controller/dwc/pci-meson.c
110
struct resource *res;
drivers/pci/controller/dwc/pcie-al.c
252
struct resource *bus;
drivers/pci/controller/dwc/pcie-al.c
330
struct resource *controller_res;
drivers/pci/controller/dwc/pcie-al.c
331
struct resource *ecam_res;
drivers/pci/controller/dwc/pcie-al.c
49
struct resource *res;
drivers/pci/controller/dwc/pcie-armada8k.c
271
struct resource *base;
drivers/pci/controller/dwc/pcie-designware-ep.c
1293
struct resource *res;
drivers/pci/controller/dwc/pcie-designware-host.c
398
struct resource *res;
drivers/pci/controller/dwc/pcie-designware-host.c
461
static int dw_pcie_create_ecam_window(struct dw_pcie_rp *pp, struct resource *res)
drivers/pci/controller/dwc/pcie-designware-host.c
478
static bool dw_pcie_ecam_enabled(struct dw_pcie_rp *pp, struct resource *config_res)
drivers/pci/controller/dwc/pcie-designware-host.c
480
struct resource *bus_range;
drivers/pci/controller/dwc/pcie-designware-host.c
512
struct resource *res;
drivers/pci/controller/dwc/pcie-designware.c
117
struct resource *res;
drivers/pci/controller/dwc/pcie-designware.h
444
struct resource *msg_res;
drivers/pci/controller/dwc/pcie-hisi.c
129
struct resource *res;
drivers/pci/controller/dwc/pcie-hisi.c
82
struct resource *res;
drivers/pci/controller/dwc/pcie-qcom-ep.c
208
struct resource *mmio_res;
drivers/pci/controller/dwc/pcie-qcom-ep.c
591
struct resource *res;
drivers/pci/controller/dwc/pcie-qcom.c
1848
struct resource *res;
drivers/pci/controller/dwc/pcie-tegra194.c
2082
struct resource *atu_dma_res;
drivers/pci/controller/dwc/pcie-tegra194.c
241
struct resource *appl_res;
drivers/pci/controller/dwc/pcie-tegra194.c
242
struct resource *dbi_res;
drivers/pci/controller/dwc/pcie-tegra194.c
243
struct resource *atu_dma_res;
drivers/pci/controller/mobiveil/pcie-mobiveil-host.c
172
struct resource *res;
drivers/pci/controller/mobiveil/pcie-mobiveil-host.c
486
struct resource *res;
drivers/pci/controller/mobiveil/pcie-mobiveil.h
152
struct resource *ob_io_res;
drivers/pci/controller/pci-ftpci100.c
413
struct resource *io;
drivers/pci/controller/pci-host-common.c
29
struct resource cfgres;
drivers/pci/controller/pci-hyperv.c
500
struct resource *mem_config;
drivers/pci/controller/pci-hyperv.c
501
struct resource *low_mmio_res;
drivers/pci/controller/pci-hyperv.c
502
struct resource *high_mmio_res;
drivers/pci/controller/pci-ixp4xx.c
388
struct resource *res;
drivers/pci/controller/pci-ixp4xx.c
446
struct resource *res;
drivers/pci/controller/pci-loongson.c
323
struct resource *regs;
drivers/pci/controller/pci-mvebu.c
1129
const struct resource *res,
drivers/pci/controller/pci-mvebu.c
120
struct resource regs;
drivers/pci/controller/pci-mvebu.c
87
struct resource io;
drivers/pci/controller/pci-mvebu.c
88
struct resource realio;
drivers/pci/controller/pci-mvebu.c
89
struct resource mem;
drivers/pci/controller/pci-rcar-gen2.c
100
struct resource *cfg_res;
drivers/pci/controller/pci-rcar-gen2.c
281
struct resource *cfg_res, *mem_res;
drivers/pci/controller/pci-rcar-gen2.c
99
struct resource mem_res;
drivers/pci/controller/pci-tegra.c
1419
struct resource *res;
drivers/pci/controller/pci-tegra.c
332
struct resource cs;
drivers/pci/controller/pci-tegra.c
367
struct resource regs;
drivers/pci/controller/pci-tegra.c
839
struct resource *res = entry->res;
drivers/pci/controller/pci-thunder-pem.c
307
struct resource *res_pem)
drivers/pci/controller/pci-thunder-pem.c
344
struct resource *r)
drivers/pci/controller/pci-thunder-pem.c
347
struct resource *res;
drivers/pci/controller/pci-thunder-pem.c
365
struct resource *res_pem)
drivers/pci/controller/pci-thunder-pem.c
385
struct resource *res_pem;
drivers/pci/controller/pci-thunder-pem.c
433
struct resource *res_pem;
drivers/pci/controller/pci-v3-semi.c
522
struct resource *mem;
drivers/pci/controller/pci-v3-semi.c
523
struct resource *io;
drivers/pci/controller/pci-v3-semi.c
708
struct resource *regs;
drivers/pci/controller/pci-versatile.c
67
struct resource *res;
drivers/pci/controller/pci-xgene-msi.c
349
struct resource *res;
drivers/pci/controller/pci-xgene.c
193
struct resource *res)
drivers/pci/controller/pci-xgene.c
228
struct resource csr;
drivers/pci/controller/pci-xgene.c
345
struct resource *res;
drivers/pci/controller/pci-xgene.c
362
struct resource *res, u32 offset,
drivers/pci/controller/pci-xgene.c
409
struct resource *res = window->res;
drivers/pci/controller/pcie-altera-msi.c
206
struct resource *res;
drivers/pci/controller/pcie-altera.c
109
struct resource bus_range;
drivers/pci/controller/pcie-apple.c
559
struct resource *res;
drivers/pci/controller/pcie-brcmstb.c
1274
struct resource *res = entry->res;
drivers/pci/controller/pcie-iproc-platform.c
44
struct resource reg;
drivers/pci/controller/pcie-iproc.c
1016
struct resource *res = window->res;
drivers/pci/controller/pcie-iproc.c
1223
struct resource res;
drivers/pci/controller/pcie-iproc.h
92
struct resource mem;
drivers/pci/controller/pcie-mediatek-gen3.c
517
struct resource *res = entry->res;
drivers/pci/controller/pcie-mediatek-gen3.c
872
struct resource *regs;
drivers/pci/controller/pcie-mediatek.c
1033
struct resource *regs;
drivers/pci/controller/pcie-mediatek.c
670
struct resource *mem = NULL;
drivers/pci/controller/pcie-rcar-ep.c
134
struct resource res;
drivers/pci/controller/pcie-rcar-ep.c
292
struct resource res;
drivers/pci/controller/pcie-rcar-ep.c
328
struct resource res;
drivers/pci/controller/pcie-rcar-ep.c
95
struct resource *res;
drivers/pci/controller/pcie-rcar-host.c
1063
struct resource res;
drivers/pci/controller/pcie-rcar-host.c
357
struct resource *res = win->res;
drivers/pci/controller/pcie-rcar-host.c
734
struct resource res;
drivers/pci/controller/pcie-rcar-host.c
799
struct resource res;
drivers/pci/controller/pcie-rcar.c
67
struct resource *res = window->res;
drivers/pci/controller/pcie-rockchip.c
32
struct resource *regs;
drivers/pci/controller/pcie-rockchip.h
330
struct resource *mem_res;
drivers/pci/controller/pcie-rzg3s-host.c
1026
struct resource *bus;
drivers/pci/controller/pcie-rzg3s-host.c
1343
struct resource *res = win->res;
drivers/pci/controller/pcie-rzg3s-host.c
1386
struct resource *res = win->res;
drivers/pci/controller/pcie-xilinx-cpm.c
523
struct resource *bus_range)
drivers/pci/controller/pcie-xilinx-cpm.c
527
struct resource *res;
drivers/pci/controller/pcie-xilinx-dma-pl.c
727
struct resource *bus_range)
drivers/pci/controller/pcie-xilinx-dma-pl.c
731
struct resource *res;
drivers/pci/controller/pcie-xilinx-nwl.c
781
struct resource *res;
drivers/pci/controller/pcie-xilinx.c
537
struct resource regs;
drivers/pci/controller/plda/pcie-plda-host.c
578
struct resource *cfg_res;
drivers/pci/controller/vmd.c
138
struct resource resources[3];
drivers/pci/controller/vmd.c
398
if (offset + len >= resource_size(&vmd->dev->resource[VMD_CFGBAR]))
drivers/pci/controller/vmd.c
571
vmd->dev->resource[VMD_MEMBAR1].child = &vmd->resources[1];
drivers/pci/controller/vmd.c
572
vmd->dev->resource[VMD_MEMBAR2].child = &vmd->resources[2];
drivers/pci/controller/vmd.c
577
vmd->dev->resource[VMD_MEMBAR1].child = NULL;
drivers/pci/controller/vmd.c
578
vmd->dev->resource[VMD_MEMBAR2].child = NULL;
drivers/pci/controller/vmd.c
627
*offset1 = dev->resource[VMD_MEMBAR1].start -
drivers/pci/controller/vmd.c
629
*offset2 = dev->resource[VMD_MEMBAR2].start -
drivers/pci/controller/vmd.c
777
struct resource *res;
drivers/pci/controller/vmd.c
814
res = &vmd->dev->resource[VMD_CFGBAR];
drivers/pci/controller/vmd.c
815
vmd->resources[0] = (struct resource) {
drivers/pci/controller/vmd.c
839
res = &vmd->dev->resource[VMD_MEMBAR1];
drivers/pci/controller/vmd.c
844
vmd->resources[1] = (struct resource) {
drivers/pci/controller/vmd.c
852
res = &vmd->dev->resource[VMD_MEMBAR2];
drivers/pci/controller/vmd.c
857
vmd->resources[2] = (struct resource) {
drivers/pci/controller/vmd.c
992
if (resource_size(&dev->resource[VMD_CFGBAR]) < (1 << 20))
drivers/pci/devres.c
138
struct resource **res = ptr;
drivers/pci/devres.c
152
int devm_pci_remap_iospace(struct device *dev, const struct resource *res,
drivers/pci/devres.c
155
const struct resource **ptr;
drivers/pci/devres.c
224
struct resource *res)
drivers/pci/ecam.c
28
struct resource *cfgres, struct resource *busr,
drivers/pci/ecam.c
34
struct resource *conflict;
drivers/pci/endpoint/functions/pci-epf-mhi.c
872
struct resource *res;
drivers/pci/host-bridge.c
53
struct resource *res)
drivers/pci/host-bridge.c
77
void pcibios_bus_to_resource(struct pci_bus *bus, struct resource *res,
drivers/pci/hotplug/acpiphp_glue.c
744
struct resource *res = &dev->resource[i];
drivers/pci/hotplug/cpcihp_generic.c
126
struct resource *r;
drivers/pci/hotplug/cpcihp_zt5550.c
279
struct resource *r;
drivers/pci/hotplug/ibmphp_ebda.c
1060
struct ebda_pci_rsrc *resource, *next;
drivers/pci/hotplug/ibmphp_ebda.c
1062
list_for_each_entry_safe(resource, next, &ibmphp_ebda_pci_rsrc_head,
drivers/pci/hotplug/ibmphp_ebda.c
1064
kfree (resource);
drivers/pci/hotplug/ibmphp_ebda.c
1065
resource = NULL;
drivers/pci/hotplug/shpchp_sysfs.c
27
struct resource *res;
drivers/pci/ide.c
247
struct resource *mem, *pref;
drivers/pci/iov.c
1039
struct resource *res = pci_resource_n(dev, resno);
drivers/pci/iov.c
350
struct resource *res;
drivers/pci/iov.c
372
res = &dev->resource[idx];
drivers/pci/iov.c
375
virtfn->resource[i].name = pci_name(virtfn);
drivers/pci/iov.c
376
virtfn->resource[i].flags = res->flags;
drivers/pci/iov.c
378
resource_set_range(&virtfn->resource[i],
drivers/pci/iov.c
380
rc = request_resource(res, &virtfn->resource[i]);
drivers/pci/iov.c
655
struct resource *res;
drivers/pci/iov.c
682
res = &dev->resource[idx];
drivers/pci/iov.c
804
struct resource *res;
drivers/pci/iov.c
852
res = &dev->resource[idx];
drivers/pci/iov.c
912
res = &dev->resource[pci_resource_num_from_vf_bar(i)];
drivers/pci/mmap.c
71
pci_resource_to_user(pdev, resno, &pdev->resource[resno],
drivers/pci/of.c
194
struct resource *res)
drivers/pci/of.c
325
struct resource *res, tmp_res;
drivers/pci/of.c
326
struct resource *bus_range;
drivers/pci/of.c
611
struct resource *res = win->res;
drivers/pci/of_property.c
109
struct resource *res;
drivers/pci/of_property.c
116
res = &pdev->resource[PCI_BRIDGE_RESOURCES];
drivers/pci/of_property.c
119
res = &pdev->resource[PCI_STD_RESOURCES];
drivers/pci/of_property.c
133
val64 = pci_bus_address(pdev, &res[j] - pdev->resource);
drivers/pci/of_property.c
406
static bool of_pci_is_range_resource(const struct resource *res, u32 *flags)
drivers/pci/of_property.c
425
struct resource *res;
drivers/pci/of_property.c
72
static int of_pci_get_addr_flags(const struct resource *res, u32 *flags)
drivers/pci/pci-acpi.c
1615
struct resource *bus_res = &root->secondary;
drivers/pci/pci-acpi.c
1618
struct resource cfgres;
drivers/pci/pci-acpi.c
35
static int acpi_get_rc_addr(struct acpi_device *adev, struct resource *res)
drivers/pci/pci-acpi.c
81
struct resource *res)
drivers/pci/pci-driver.c
1517
if (dev->resource[i].flags & IORESOURCE_BUSY)
drivers/pci/pci-sysfs.c
1111
struct resource *res = &pdev->resource[bar];
drivers/pci/pci-sysfs.c
1315
pdev->resource[i].flags & IORESOURCE_PREFETCH)
drivers/pci/pci-sysfs.c
1646
static ssize_t resource##n##_resize_show(struct device *dev, \
drivers/pci/pci-sysfs.c
1652
static ssize_t resource##n##_resize_store(struct device *dev, \
drivers/pci/pci-sysfs.c
1658
static DEVICE_ATTR_RW(resource##n##_resize)
drivers/pci/pci-sysfs.c
180
struct resource *res = &pci_dev->resource[i];
drivers/pci/pci-sysfs.c
181
struct resource zerores = {};
drivers/pci/pci-sysfs.c
196
static DEVICE_ATTR_RO(resource);
drivers/pci/pci-sysfs.c
718
!!(pdev->resource[PCI_ROM_RESOURCE].flags &
drivers/pci/pci.c
2085
if (dev->resource[i].flags & flags)
drivers/pci/pci.c
2088
if (dev->resource[i].flags & flags)
drivers/pci/pci.c
229
struct resource *res = &pdev->resource[bar];
drivers/pci/pci.c
3229
static struct resource *pci_ea_get_resource(struct pci_dev *dev, u8 bei,
drivers/pci/pci.c
3233
return &dev->resource[bei];
drivers/pci/pci.c
3237
return &dev->resource[PCI_IOV_RESOURCES +
drivers/pci/pci.c
3241
return &dev->resource[PCI_ROM_RESOURCE];
drivers/pci/pci.c
3249
struct resource *res;
drivers/pci/pci.c
3816
&pdev->resource[bar]);
drivers/pci/pci.c
4037
int pci_remap_iospace(const struct resource *res, phys_addr_t phys_addr)
drivers/pci/pci.c
4070
void pci_unmap_iospace(struct resource *res)
drivers/pci/pci.c
6328
const struct resource *rsrc,
drivers/pci/pci.c
6403
struct resource *r = &dev->resource[bar];
drivers/pci/pci.c
6472
struct resource *r;
drivers/pci/pci.c
6511
r = &dev->resource[i];
drivers/pci/pci.c
734
struct resource *pci_find_parent_resource(const struct pci_dev *dev,
drivers/pci/pci.c
735
struct resource *res)
drivers/pci/pci.c
738
struct resource *r;
drivers/pci/pci.c
777
struct resource *pci_find_resource(struct pci_dev *dev, struct resource *res)
drivers/pci/pci.c
782
struct resource *r = &dev->resource[i];
drivers/pci/pci.h
1045
struct resource *res)
drivers/pci/pci.h
1155
struct resource *res);
drivers/pci/pci.h
1158
u16 segment, struct resource *res)
drivers/pci/pci.h
420
unsigned long pci_cardbus_resource_alignment(struct resource *res);
drivers/pci/pci.h
429
static inline unsigned long pci_cardbus_resource_alignment(struct resource *res)
drivers/pci/pci.h
507
struct resource *res, unsigned int reg, u32 *sizes);
drivers/pci/pci.h
511
struct resource *res, resource_size_t add_size,
drivers/pci/pci.h
543
const struct resource *res)
drivers/pci/pci.h
545
int resno = res - &dev->resource[0];
drivers/pci/pci.h
554
struct resource *pbus_select_window(struct pci_bus *bus,
drivers/pci/pci.h
555
const struct resource *res);
drivers/pci/probe.c
1258
child->resource[i] = &bridge->resource[PCI_BRIDGE_RESOURCES+i];
drivers/pci/probe.c
1259
child->resource[i]->name = child->name;
drivers/pci/probe.c
2023
struct resource *res;
drivers/pci/probe.c
2128
res = &dev->resource[0];
drivers/pci/probe.c
2135
res = &dev->resource[1];
drivers/pci/probe.c
2144
res = &dev->resource[2];
drivers/pci/probe.c
2151
res = &dev->resource[3];
drivers/pci/probe.c
219
struct resource *res, unsigned int pos, u32 *sizes)
drivers/pci/probe.c
224
const char *res_name = pci_resource_name(dev, res - dev->resource);
drivers/pci/probe.c
2512
dev->driver_exclusive_resource = (struct resource) {
drivers/pci/probe.c
29
static struct resource busn_resource = {
drivers/pci/probe.c
3309
struct resource *res = &b->busn_res;
drivers/pci/probe.c
3310
struct resource *parent_res, *conflict;
drivers/pci/probe.c
3336
struct resource *res = &b->busn_res;
drivers/pci/probe.c
3337
struct resource old_res = *res;
drivers/pci/probe.c
3357
struct resource *res = &b->busn_res;
drivers/pci/probe.c
376
struct resource *res = &dev->resource[pos];
drivers/pci/probe.c
383
struct resource *res = &dev->resource[PCI_ROM_RESOURCE];
drivers/pci/probe.c
391
static void pci_read_bridge_io(struct pci_dev *dev, struct resource *res,
drivers/pci/probe.c
434
static void pci_read_bridge_mmio(struct pci_dev *dev, struct resource *res,
drivers/pci/probe.c
44
struct resource res;
drivers/pci/probe.c
460
static void pci_read_bridge_mmio_pref(struct pci_dev *dev, struct resource *res,
drivers/pci/probe.c
48
static struct resource *get_pci_domain_busn_res(int domain_nr)
drivers/pci/probe.c
521
struct resource res;
drivers/pci/probe.c
585
struct resource *res;
drivers/pci/probe.c
597
child->resource[i] = &dev->resource[PCI_BRIDGE_RESOURCES+i];
drivers/pci/probe.c
600
child->resource[PCI_BUS_BRIDGE_IO_WINDOW], false);
drivers/pci/probe.c
602
child->resource[PCI_BUS_BRIDGE_MEM_WINDOW], false);
drivers/pci/probe.c
604
child->resource[PCI_BUS_BRIDGE_PREF_MEM_WINDOW],
drivers/pci/probe.c
994
struct resource *res, *next_res;
drivers/pci/proc.c
266
if (dev->resource[i].flags & res_bit &&
drivers/pci/proc.c
276
if (dev->resource[i].flags & IORESOURCE_PREFETCH)
drivers/pci/proc.c
282
if (dev->resource[i].flags & IORESOURCE_MEM &&
drivers/pci/proc.c
283
iomem_is_exclusive(dev->resource[i].start))
drivers/pci/proc.c
286
pci_resource_to_user(dev, i, &dev->resource[i], &start, &end);
drivers/pci/proc.c
391
pci_resource_to_user(dev, i, &dev->resource[i], &start, &end);
drivers/pci/proc.c
394
(dev->resource[i].flags & PCI_REGION_FLAG_MASK)));
drivers/pci/proc.c
398
pci_resource_to_user(dev, i, &dev->resource[i], &start, &end);
drivers/pci/proc.c
400
dev->resource[i].start < dev->resource[i].end ?
drivers/pci/quirks.c
1344
struct resource *r = &dev->resource[1];
drivers/pci/quirks.c
1936
insert_resource(&iomem_resource, &pdev->resource[0]);
drivers/pci/quirks.c
1943
memset(&pdev->resource[i], 0, sizeof(pdev->resource[i]));
drivers/pci/quirks.c
2350
struct resource *r = &dev->resource[0];
drivers/pci/quirks.c
2378
struct resource *r = &dev->resource[bar];
drivers/pci/quirks.c
3537
resource_set_size(&dev->resource[2], (resource_size_t)1 << val);
drivers/pci/quirks.c
3543
resource_set_size(&dev->resource[4], (resource_size_t)1 << val);
drivers/pci/quirks.c
589
struct resource *r = &dev->resource[i];
drivers/pci/quirks.c
608
struct resource *r = &dev->resource[0];
drivers/pci/quirks.c
623
struct resource *res = pci_resource_n(dev, pos);
drivers/pci/quirks.c
673
struct resource *res = pci_resource_n(dev, nr);
drivers/pci/rebar.c
237
struct resource *res;
drivers/pci/rebar.c
266
struct resource *res = pci_resource_n(dev, resno);
drivers/pci/remove.c
12
struct resource *res;
drivers/pci/rom.c
138
struct resource *res = &pdev->resource[PCI_ROM_RESOURCE];
drivers/pci/rom.c
189
struct resource *res = &pdev->resource[PCI_ROM_RESOURCE];
drivers/pci/rom.c
26
struct resource *res = &pdev->resource[PCI_ROM_RESOURCE];
drivers/pci/rom.c
60
struct resource *res = &pdev->resource[PCI_ROM_RESOURCE];
drivers/pci/setup-bus.c
1075
struct resource *b_res = pbus_select_window_for_type(bus, IORESOURCE_IO);
drivers/pci/setup-bus.c
108
struct resource *res)
drivers/pci/setup-bus.c
1089
struct resource *r;
drivers/pci/setup-bus.c
121
struct resource *res)
drivers/pci/setup-bus.c
1224
struct resource *res = pci_resource_n(dev, resno);
drivers/pci/setup-bus.c
1278
static void pbus_size_mem(struct pci_bus *bus, struct resource *b_res,
drivers/pci/setup-bus.c
1300
struct resource *r;
drivers/pci/setup-bus.c
131
struct resource *res = dev_res->res;
drivers/pci/setup-bus.c
1386
struct resource *b_res;
drivers/pci/setup-bus.c
1457
static void assign_fixed_resource_on_bus(struct pci_bus *b, struct resource *r)
drivers/pci/setup-bus.c
1459
struct resource *parent_r;
drivers/pci/setup-bus.c
1479
struct resource *r;
drivers/pci/setup-bus.c
1544
struct resource *r = &dev->resource[i];
drivers/pci/setup-bus.c
1558
struct resource *r = &dev->resource[i];
drivers/pci/setup-bus.c
157
static struct resource *find_bus_resource_of_type(struct pci_bus *bus,
drivers/pci/setup-bus.c
161
struct resource *r, *r_assigned = NULL;
drivers/pci/setup-bus.c
1640
struct resource *b_win)
drivers/pci/setup-bus.c
1670
struct resource *b_win,
drivers/pci/setup-bus.c
1678
struct resource *res;
drivers/pci/setup-bus.c
1711
struct resource *res;
drivers/pci/setup-bus.c
1791
struct resource *r = &dev->resource[idx];
drivers/pci/setup-bus.c
1835
static void adjust_bridge_window(struct pci_dev *bridge, struct resource *res,
drivers/pci/setup-bus.c
1866
static void remove_dev_resource(struct resource *avail, struct pci_dev *dev,
drivers/pci/setup-bus.c
1867
struct resource *res)
drivers/pci/setup-bus.c
1882
struct resource available[PCI_P2P_BRIDGE_RESOURCE_NUM])
drivers/pci/setup-bus.c
1884
struct resource *res, *b_win;
drivers/pci/setup-bus.c
1910
struct resource available_in[PCI_P2P_BRIDGE_RESOURCE_NUM])
drivers/pci/setup-bus.c
1912
struct resource available[PCI_P2P_BRIDGE_RESOURCE_NUM];
drivers/pci/setup-bus.c
1920
struct resource *res =
drivers/pci/setup-bus.c
1984
struct resource *res;
drivers/pci/setup-bus.c
200
static struct resource *pbus_select_window_for_type(struct pci_bus *bus,
drivers/pci/setup-bus.c
2026
struct resource *res, available[PCI_P2P_BRIDGE_RESOURCE_NUM];
drivers/pci/setup-bus.c
204
struct resource *mmio, *mmio_pref, *win;
drivers/pci/setup-bus.c
2046
const struct resource *r;
drivers/pci/setup-bus.c
2054
r = &dev->resource[PCI_BRIDGE_IO_WINDOW];
drivers/pci/setup-bus.c
2057
r = &dev->resource[PCI_BRIDGE_MEM_WINDOW];
drivers/pci/setup-bus.c
2060
r = &dev->resource[PCI_BRIDGE_PREF_MEM_WINDOW];
drivers/pci/setup-bus.c
2105
struct resource *b_win;
drivers/pci/setup-bus.c
2255
static int pbus_reassign_bridge_resources(struct pci_bus *bus, struct resource *res,
drivers/pci/setup-bus.c
2329
struct resource *res = pci_resource_n(pdev, resno);
drivers/pci/setup-bus.c
2332
struct resource *b_win, *r;
drivers/pci/setup-bus.c
2391
struct resource *res = dev_res->res;
drivers/pci/setup-bus.c
277
struct resource *pbus_select_window(struct pci_bus *bus,
drivers/pci/setup-bus.c
278
const struct resource *res)
drivers/pci/setup-bus.c
304
static bool pdev_resource_assignable(struct pci_dev *dev, struct resource *res)
drivers/pci/setup-bus.c
317
static bool pdev_resource_should_fit(struct pci_dev *dev, struct resource *res)
drivers/pci/setup-bus.c
331
struct resource *r;
drivers/pci/setup-bus.c
382
const struct resource *res = pci_resource_n(dev, resno);
drivers/pci/setup-bus.c
394
static void reset_resource(struct pci_dev *dev, struct resource *res)
drivers/pci/setup-bus.c
427
struct resource *res;
drivers/pci/setup-bus.c
43
struct resource *res;
drivers/pci/setup-bus.c
490
struct resource *res;
drivers/pci/setup-bus.c
534
static bool pci_need_to_release(unsigned long mask, struct resource *res)
drivers/pci/setup-bus.c
609
struct resource *res;
drivers/pci/setup-bus.c
688
struct resource *res = save_res->res;
drivers/pci/setup-bus.c
71
struct resource *res, resource_size_t add_size,
drivers/pci/setup-bus.c
797
struct resource *res;
drivers/pci/setup-bus.c
810
res = &bridge->resource[PCI_BRIDGE_IO_WINDOW];
drivers/pci/setup-bus.c
836
struct resource *res;
drivers/pci/setup-bus.c
842
res = &bridge->resource[PCI_BRIDGE_MEM_WINDOW];
drivers/pci/setup-bus.c
857
struct resource *res;
drivers/pci/setup-bus.c
871
res = &bridge->resource[PCI_BRIDGE_PREF_MEM_WINDOW];
drivers/pci/setup-bus.c
94
struct resource *res)
drivers/pci/setup-bus.c
974
struct resource *b_res;
drivers/pci/setup-bus.c
976
b_res = &bridge->resource[PCI_BRIDGE_MEM_WINDOW];
drivers/pci/setup-bus.c
980
b_res = &bridge->resource[PCI_BRIDGE_IO_WINDOW];
drivers/pci/setup-bus.c
985
b_res = &bridge->resource[PCI_BRIDGE_PREF_MEM_WINDOW];
drivers/pci/setup-cardbus.c
112
b_res = &bridge->resource[PCI_CB_BRIDGE_MEM_1_WINDOW];
drivers/pci/setup-cardbus.c
130
struct resource *res;
drivers/pci/setup-cardbus.c
136
res = bus->resource[0];
drivers/pci/setup-cardbus.c
150
res = bus->resource[1];
drivers/pci/setup-cardbus.c
160
res = bus->resource[2];
drivers/pci/setup-cardbus.c
170
res = bus->resource[3];
drivers/pci/setup-cardbus.c
25
unsigned long pci_cardbus_resource_alignment(struct resource *res)
drivers/pci/setup-cardbus.c
38
struct resource *b_res;
drivers/pci/setup-cardbus.c
42
b_res = &bridge->resource[PCI_CB_BRIDGE_IO_0_WINDOW];
drivers/pci/setup-cardbus.c
59
b_res = &bridge->resource[PCI_CB_BRIDGE_IO_1_WINDOW];
drivers/pci/setup-cardbus.c
88
b_res = &bridge->resource[PCI_CB_BRIDGE_MEM_0_WINDOW];
drivers/pci/setup-res.c
134
int pci_claim_resource(struct pci_dev *dev, int resource)
drivers/pci/setup-res.c
136
struct resource *res = &dev->resource[resource];
drivers/pci/setup-res.c
137
const char *res_name = pci_resource_name(dev, resource);
drivers/pci/setup-res.c
138
struct resource *root, *conflict;
drivers/pci/setup-res.c
199
static int pci_revert_fw_address(struct resource *res, struct pci_dev *dev,
drivers/pci/setup-res.c
202
struct resource *root, *conflict;
drivers/pci/setup-res.c
253
const struct resource *res,
drivers/pci/setup-res.c
263
struct resource *res = pci_resource_n(dev, resno);
drivers/pci/setup-res.c
32
struct resource *res = pci_resource_n(dev, resno);
drivers/pci/setup-res.c
326
struct resource *res = pci_resource_n(dev, resno);
drivers/pci/setup-res.c
376
struct resource *res = pci_resource_n(dev, resno);
drivers/pci/setup-res.c
414
struct resource *res = pci_resource_n(dev, resno);
drivers/pci/setup-res.c
438
struct resource *r;
drivers/pci/xen-pcifront.c
390
struct resource *r;
drivers/pci/xen-pcifront.c
445
static struct resource busn_res = {
drivers/pcmcia/bcm63xx_pcmcia.c
302
struct resource *res;
drivers/pcmcia/bcm63xx_pcmcia.c
330
struct resource *res;
drivers/pcmcia/bcm63xx_pcmcia.c
443
struct resource *res;
drivers/pcmcia/bcm63xx_pcmcia.h
32
struct resource *reg_res;
drivers/pcmcia/bcm63xx_pcmcia.h
53
struct resource *attr_res;
drivers/pcmcia/bcm63xx_pcmcia.h
54
struct resource *common_res;
drivers/pcmcia/bcm63xx_pcmcia.h
55
struct resource *io_res;
drivers/pcmcia/cs_internal.h
141
extern struct resource *pcmcia_find_mem_region(u_long base,
drivers/pcmcia/cs_internal.h
33
struct resource io[MAX_IO_WIN]; /* io ports */
drivers/pcmcia/cs_internal.h
34
struct resource mem[MAX_WIN]; /* mem areas */
drivers/pcmcia/cs_internal.h
53
struct resource **parent);
drivers/pcmcia/cs_internal.h
54
struct resource* (*find_mem) (unsigned long base, unsigned long num,
drivers/pcmcia/cs_internal.h
80
extern struct resource *pcmcia_make_resource(resource_size_t start,
drivers/pcmcia/db1xxx_ss.c
427
struct resource *r;
drivers/pcmcia/ds.c
1040
at += sysfs_emit_at(buf, at, "%pr\n", p_dev->resource[i]);
drivers/pcmcia/ds.c
299
p_dev->resource[0], p_dev->resource[1], p_dev->resource[2],
drivers/pcmcia/ds.c
300
p_dev->resource[3], p_dev->resource[4]);
drivers/pcmcia/ds.c
562
p_dev->resource[i] = &p_dev->function_config->io[i];
drivers/pcmcia/ds.c
564
p_dev->resource[i] = &p_dev->function_config->mem[i-MAX_IO_WIN];
drivers/pcmcia/electra_cf.c
180
struct resource mem, io;
drivers/pcmcia/electra_cf.c
44
struct resource iomem;
drivers/pcmcia/i82092.c
388
struct resource res = { .start = 0, .end = 0x0fff };
drivers/pcmcia/i82365.c
1207
struct resource res = { .start = 0, .end = 0x1000 };
drivers/pcmcia/omap_cf.c
205
struct resource *res;
drivers/pcmcia/omap_cf.c
206
struct resource iospace = DEFINE_RES_IO(SZ_64, SZ_4K);
drivers/pcmcia/omap_cf.c
65
struct resource iomem;
drivers/pcmcia/pcmcia_cis.c
201
p_dev->resource[0]->start = p_dev->resource[0]->end = 0;
drivers/pcmcia/pcmcia_cis.c
202
p_dev->resource[1]->start = p_dev->resource[1]->end = 0;
drivers/pcmcia/pcmcia_cis.c
206
p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH;
drivers/pcmcia/pcmcia_cis.c
207
p_dev->resource[0]->flags |=
drivers/pcmcia/pcmcia_cis.c
214
p_dev->resource[1]->flags = p_dev->resource[0]->flags;
drivers/pcmcia/pcmcia_cis.c
215
p_dev->resource[1]->start = io->win[1-i].base;
drivers/pcmcia/pcmcia_cis.c
216
p_dev->resource[1]->end = io->win[1-i].len;
drivers/pcmcia/pcmcia_cis.c
218
p_dev->resource[0]->start = io->win[i].base;
drivers/pcmcia/pcmcia_cis.c
219
p_dev->resource[0]->end = io->win[i].len;
drivers/pcmcia/pcmcia_cis.c
228
p_dev->resource[2]->start = p_dev->resource[2]->end = 0;
drivers/pcmcia/pcmcia_cis.c
232
p_dev->resource[2]->start = mem->win[0].host_addr;
drivers/pcmcia/pcmcia_cis.c
233
p_dev->resource[2]->end = mem->win[0].len;
drivers/pcmcia/pcmcia_cis.c
234
if (p_dev->resource[2]->end < 0x1000)
drivers/pcmcia/pcmcia_cis.c
235
p_dev->resource[2]->end = 0x1000;
drivers/pcmcia/pcmcia_cis.c
241
p_dev->config_index, p_dev->resource[0], p_dev->resource[1],
drivers/pcmcia/pcmcia_cis.c
242
p_dev->resource[2], p_dev->io_lines);
drivers/pcmcia/pcmcia_resource.c
223
int pcmcia_map_mem_page(struct pcmcia_device *p_dev, struct resource *res,
drivers/pcmcia/pcmcia_resource.c
425
int pcmcia_release_window(struct pcmcia_device *p_dev, struct resource *res)
drivers/pcmcia/pcmcia_resource.c
45
struct resource *pcmcia_find_mem_region(u_long base, u_long num, u_long align,
drivers/pcmcia/pcmcia_resource.c
60
static void release_io_space(struct pcmcia_socket *s, struct resource *res)
drivers/pcmcia/pcmcia_resource.c
654
struct resource tmp = c->io[0];
drivers/pcmcia/pcmcia_resource.c
833
int pcmcia_request_window(struct pcmcia_device *p_dev, struct resource *res,
drivers/pcmcia/pcmcia_resource.c
943
struct resource *res = p_dev->resource[MAX_IO_WIN + i];
drivers/pcmcia/pcmcia_resource.c
96
static int alloc_io_space(struct pcmcia_socket *s, struct resource *res,
drivers/pcmcia/pd6729.c
547
struct resource res = { .end = 0x0fff };
drivers/pcmcia/rsrc_mgr.c
30
struct resource *pcmcia_make_resource(resource_size_t start,
drivers/pcmcia/rsrc_mgr.c
34
struct resource *res = kzalloc_obj(*res);
drivers/pcmcia/rsrc_mgr.c
47
unsigned int align, struct resource **parent)
drivers/pcmcia/rsrc_nonstatic.c
184
struct resource *res;
drivers/pcmcia/rsrc_nonstatic.c
262
static int readable(struct pcmcia_socket *s, struct resource *res,
drivers/pcmcia/rsrc_nonstatic.c
293
static int checksum(struct pcmcia_socket *s, struct resource *res,
drivers/pcmcia/rsrc_nonstatic.c
346
struct resource *res,
drivers/pcmcia/rsrc_nonstatic.c
350
struct resource *res1, *res2;
drivers/pcmcia/rsrc_nonstatic.c
403
struct resource *res,
drivers/pcmcia/rsrc_nonstatic.c
406
struct resource *res,
drivers/pcmcia/rsrc_nonstatic.c
604
pcmcia_align(void *align_data, const struct resource *res,
drivers/pcmcia/rsrc_nonstatic.c
683
static struct resource *__nonstatic_find_io_region(struct pcmcia_socket *s,
drivers/pcmcia/rsrc_nonstatic.c
687
struct resource *res = pcmcia_make_resource(0, num, IORESOURCE_IO,
drivers/pcmcia/rsrc_nonstatic.c
719
unsigned int align, struct resource **parent)
drivers/pcmcia/rsrc_nonstatic.c
72
static struct resource *
drivers/pcmcia/rsrc_nonstatic.c
739
struct resource *res = s->io[i].res;
drivers/pcmcia/rsrc_nonstatic.c
76
struct resource *res, *parent;
drivers/pcmcia/rsrc_nonstatic.c
806
static struct resource *nonstatic_find_mem_region(u_long base, u_long num,
drivers/pcmcia/rsrc_nonstatic.c
809
struct resource *res = pcmcia_make_resource(0, num, IORESOURCE_MEM,
drivers/pcmcia/rsrc_nonstatic.c
937
struct resource *res;
drivers/pcmcia/rsrc_nonstatic.c
94
static void free_region(struct resource *res)
drivers/pcmcia/rsrc_nonstatic.c
966
res = s->cb_dev->bus->resource[i];
drivers/pcmcia/soc_common.c
616
struct resource *res;
drivers/pcmcia/soc_common.c
817
skt->res_io_io = (struct resource)
drivers/pcmcia/tcic.c
321
struct resource *res = request_region(base, num, "tcic-2");
drivers/pcmcia/tcic.c
779
struct resource res = { .start = 0, .end = 0x1000 };
drivers/pcmcia/xxs1500_ss.c
212
struct resource *r;
drivers/pcmcia/yenta_socket.c
1050
pcibios_resource_to_bus(socket->dev->bus, ®ion, &dev->resource[0]);
drivers/pcmcia/yenta_socket.c
553
struct resource res = { .start = 0, .end = 0x0fff };
drivers/pcmcia/yenta_socket.c
631
static int yenta_search_one_res(struct resource *root, struct resource *res,
drivers/pcmcia/yenta_socket.c
673
static int yenta_search_res(struct yenta_socket *socket, struct resource *res,
drivers/pcmcia/yenta_socket.c
676
struct resource *root;
drivers/pcmcia/yenta_socket.c
696
struct resource *res;
drivers/pcmcia/yenta_socket.c
700
res = &dev->resource[nr];
drivers/pcmcia/yenta_socket.c
754
struct resource *res;
drivers/pcmcia/yenta_socket.c
756
res = &dev->resource[nr];
drivers/perf/alibaba_uncore_drw_pmu.c
667
struct resource *res;
drivers/perf/arm-cmn.c
2530
struct resource *cfg, *root;
drivers/perf/arm-ni.c
675
struct resource *res;
drivers/perf/arm_dmc620_pmu.c
665
struct resource *res;
drivers/perf/arm_pmu_acpi.c
120
pdev->resource[0].start = irq;
drivers/perf/arm_pmu_acpi.c
129
static struct resource spe_resources[] = {
drivers/perf/arm_pmu_acpi.c
139
.resource = spe_resources,
drivers/perf/arm_pmu_acpi.c
167
static struct resource trbe_resources[] = {
drivers/perf/arm_pmu_acpi.c
177
.resource = trbe_resources,
drivers/perf/arm_pmu_acpi.c
86
if (pdev->resource[0].flags != IORESOURCE_IRQ)
drivers/perf/arm_smmuv3_pmu.c
850
struct resource *res_0;
drivers/perf/fujitsu_uncore_pmu.c
451
struct resource *memrc;
drivers/perf/marvell_cn10k_ddr_pmu.c
990
struct resource *res;
drivers/perf/marvell_cn10k_tad_pmu.c
295
struct resource *res;
drivers/perf/marvell_pem_pmu.c
317
struct resource *res;
drivers/perf/qcom_l3_pmu.c
724
struct resource *memrc;
drivers/perf/starfive_starlink_pmu.c
511
struct resource *res;
drivers/perf/thunderx2_pmu.c
788
struct resource res;
drivers/perf/xgene_pmu.c
1452
struct resource res;
drivers/perf/xgene_pmu.c
1620
struct resource res;
drivers/phy/amlogic/phy-meson8-hdmi-tx.c
112
struct resource *res;
drivers/phy/apple/atc.c
2165
struct resource *res;
drivers/phy/apple/atc.c
2196
struct resource **res;
drivers/phy/apple/atc.c
2204
struct resource *res;
drivers/phy/apple/atc.c
618
struct resource *core;
drivers/phy/apple/atc.c
619
struct resource *axi2af;
drivers/phy/broadcom/phy-bcm-ns-usb3.c
196
struct resource res;
drivers/phy/broadcom/phy-brcm-usb.c
366
struct resource *res;
drivers/phy/freescale/phy-fsl-imx8mq-usb.c
249
struct resource *res;
drivers/phy/hisilicon/phy-hix5hd2-sata.c
138
struct resource *res;
drivers/phy/marvell/phy-armada38x-comphy.c
200
struct resource *res;
drivers/phy/marvell/phy-berlin-sata.c
195
struct resource *res;
drivers/phy/marvell/phy-mvebu-a3700-comphy.c
1246
struct resource *res;
drivers/phy/marvell/phy-mvebu-cp110-comphy.c
1002
struct resource *res;
drivers/phy/mediatek/phy-mtk-tphy.c
1571
struct resource *sif_res;
drivers/phy/mediatek/phy-mtk-tphy.c
1573
struct resource res;
drivers/phy/mediatek/phy-mtk-xsphy.c
515
struct resource *glb_res;
drivers/phy/mediatek/phy-mtk-xsphy.c
517
struct resource res;
drivers/phy/microchip/sparx5_serdes.c
2655
struct resource *iores;
drivers/phy/mscc/phy-ocelot-serdes.c
497
struct resource *res;
drivers/phy/qualcomm/phy-qcom-ipq806x-usb.c
483
struct resource *res;
drivers/phy/qualcomm/phy-qcom-qmp-usb.c
2252
struct resource res;
drivers/phy/qualcomm/phy-qcom-uniphy-pcie-28lp.c
204
struct resource *res;
drivers/phy/rockchip/phy-rockchip-naneng-combphy.c
393
struct resource *res;
drivers/phy/rockchip/phy-rockchip-samsung-dcphy.c
1558
struct resource *res;
drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c
2430
struct resource *res;
drivers/phy/rockchip/phy-rockchip-typec.c
1105
struct resource *res;
drivers/phy/rockchip/phy-rockchip-usbdp.c
1457
struct resource *res;
drivers/phy/st/phy-miphy28lp.c
829
char *rname, struct resource *res)
drivers/phy/st/phy-miphy28lp.c
844
struct resource res;
drivers/phy/sunplus/phy-sunplus-usb2.c
69
struct resource *phy_res_mem;
drivers/phy/sunplus/phy-sunplus-usb2.c
70
struct resource *moon4_res_mem;
drivers/phy/tegra/xusb-tegra186.c
1515
struct resource *res;
drivers/phy/ti/phy-dm816x-usb.c
174
struct resource *res;
drivers/phy/ti/phy-j721e-wiz.c
1456
struct resource res;
drivers/pinctrl/bcm/pinctrl-bcm2835.c
1294
struct resource iomem;
drivers/pinctrl/bcm/pinctrl-iproc-gpio.c
807
struct resource *res;
drivers/pinctrl/bcm/pinctrl-ns.c
214
struct resource *res;
drivers/pinctrl/bcm/pinctrl-ns2-mux.c
1027
struct resource *res;
drivers/pinctrl/bcm/pinctrl-nsp-mux.c
557
struct resource *res;
drivers/pinctrl/berlin/berlin-bg4ct.c
457
struct resource *res;
drivers/pinctrl/berlin/pinctrl-as370.c
338
struct resource *res;
drivers/pinctrl/freescale/pinctrl-imx1-core.c
590
struct resource *res;
drivers/pinctrl/intel/pinctrl-lynxpoint.c
709
struct resource *io_rc;
drivers/pinctrl/meson/pinctrl-amlogic-a4.c
851
struct resource res;
drivers/pinctrl/meson/pinctrl-meson.c
643
struct resource res;
drivers/pinctrl/mvebu/pinctrl-dove.c
766
struct resource *res, *mpp_res;
drivers/pinctrl/mvebu/pinctrl-dove.c
767
struct resource fb_res;
drivers/pinctrl/mvebu/pinctrl-dove.c
803
memcpy(&fb_res, mpp_res, sizeof(struct resource));
drivers/pinctrl/nxp/pinctrl-s32cc.c
844
struct resource *res;
drivers/pinctrl/pinctrl-amd.c
1163
struct resource *res;
drivers/pinctrl/pinctrl-amd.h
104
struct resource *res;
drivers/pinctrl/pinctrl-amdisp.c
178
struct resource *res;
drivers/pinctrl/pinctrl-equilibrium.c
223
struct resource res;
drivers/pinctrl/pinctrl-falcon.c
435
struct resource res;
drivers/pinctrl/pinctrl-rockchip.c
4188
struct resource *res;
drivers/pinctrl/pinctrl-single.c
172
struct resource *res;
drivers/pinctrl/pinctrl-single.c
1783
struct resource *res;
drivers/pinctrl/pinctrl-st.c
1496
struct resource res, irq_res;
drivers/pinctrl/pinctrl-zynq.c
1164
struct resource *res;
drivers/pinctrl/qcom/pinctrl-msm.c
1533
struct resource *res;
drivers/pinctrl/qcom/pinctrl-sc8180x.c
1625
struct resource *mres = NULL;
drivers/pinctrl/qcom/pinctrl-sc8180x.c
1626
struct resource *nres, *res;
drivers/pinctrl/qcom/pinctrl-sc8180x.c
1644
struct resource *r = &pdev->resource[i];
drivers/pinctrl/qcom/tlmm-test.c
577
static int tlmm_reg_base(struct device_node *tlmm, struct resource *res)
drivers/pinctrl/qcom/tlmm-test.c
621
struct resource res;
drivers/pinctrl/renesas/core.c
36
struct resource *res;
drivers/pinctrl/renesas/pinctrl-rzn1.c
853
struct resource *res;
drivers/pinctrl/renesas/pinctrl-rzt2h.c
923
struct resource *res;
drivers/pinctrl/samsung/pinctrl-samsung.c
1192
struct resource *res;
drivers/pinctrl/stm32/pinctrl-stm32.c
1643
struct resource res;
drivers/pinctrl/tegra/pinctrl-tegra.c
760
struct resource *res;
drivers/pinctrl/tegra/pinctrl-tegra.c
829
struct resource *res;
drivers/pinctrl/ti/pinctrl-ti-iodelay.c
832
struct resource *res;
drivers/platform/chrome/chromeos_laptop.c
50
struct resource irq_resource;
drivers/platform/chrome/chromeos_pstore.c
91
struct resource *res;
drivers/platform/chrome/wilco_ec/core.c
22
static struct resource *wilco_get_resource(struct platform_device *pdev,
drivers/platform/chrome/wilco_ec/core.c
26
struct resource *res;
drivers/platform/goldfish/goldfish_pipe.c
876
struct resource *r;
drivers/platform/mellanox/mlx-platform.c
405
struct resource *hotplug_resources;
drivers/platform/mellanox/mlx-platform.c
416
static const struct resource mlxplat_lpc_resources[] = {
drivers/platform/mellanox/mlx-platform.c
7389
static struct resource mlxplat_mlxcpld_resources[] = {
drivers/platform/mellanox/mlx-platform.c
8137
static int mlxplat_lpc_cpld_device_init(struct resource **hotplug_resources,
drivers/platform/mellanox/mlx-platform.c
8231
mlxplat_pci_fpga_devices_init(struct resource **hotplug_resources,
drivers/platform/mellanox/mlx-platform.c
8272
mlxplat_logicdev_init(struct resource **hotplug_resources, unsigned int *hotplug_resources_size)
drivers/platform/mellanox/mlx-platform.c
8531
struct resource *hotplug_resources = NULL;
drivers/platform/mellanox/nvsw-sn2201.c
324
static const struct resource nvsw_sn2201_lpc_io_resources[] = {
drivers/platform/mellanox/nvsw-sn2201.c
330
static struct resource nvsw_sn2201_cpld_res[] = {
drivers/platform/mellanox/nvsw-sn2201.c
334
static struct resource nvsw_sn2201_lpc_res[] = {
drivers/platform/mips/rs780e-acpi.c
133
struct resource *res;
drivers/platform/x86/amd/hsmp/acpi.c
87
struct resource r;
drivers/platform/x86/amd/pmf/pmf.h
435
struct resource *res;
drivers/platform/x86/apple-gmux.c
783
struct resource *res;
drivers/platform/x86/barco-p50-gpio.c
314
struct resource *res;
drivers/platform/x86/barco-p50-gpio.c
429
struct resource res = DEFINE_RES_IO(P50_GPIO_IO_PORT_BASE, P50_PORT_CMD + 1);
drivers/platform/x86/intel/plr_tpmi.c
263
struct resource *res;
drivers/platform/x86/intel/pmt/class.c
209
struct resource *disc_res)
drivers/platform/x86/intel/pmt/class.c
299
struct resource res = {0};
drivers/platform/x86/intel/pmt/class.c
375
struct resource *disc_res;
drivers/platform/x86/intel/pmt/class.c
378
disc_res = &intel_vsec_dev->resource[idx];
drivers/platform/x86/intel/pmt/discovery.c
334
struct resource *disc_res,
drivers/platform/x86/intel/pmt/discovery.c
374
struct resource *disc_res)
drivers/platform/x86/intel/pmt/discovery.c
378
struct resource res = {};
drivers/platform/x86/intel/pmt/discovery.c
471
struct resource *disc_res = &ivdev->resource[idx];
drivers/platform/x86/intel/sdsi.c
603
struct disc_table *disc_table, struct resource *disc_res)
drivers/platform/x86/intel/sdsi.c
609
struct resource res = {};
drivers/platform/x86/intel/sdsi.c
655
struct resource *disc_res;
drivers/platform/x86/intel/sdsi.c
669
disc_res = &intel_cap_dev->resource[0];
drivers/platform/x86/intel/speed_select_if/isst_if_mmio.c
97
struct resource r;
drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c
1644
struct resource *res;
drivers/platform/x86/intel/uncore-frequency/uncore-frequency-tpmi.c
603
struct resource *res;
drivers/platform/x86/intel/vsec.c
112
kfree(intel_vsec_dev->resource);
drivers/platform/x86/intel/vsec.c
220
kfree(intel_vsec_dev->resource);
drivers/platform/x86/intel/vsec.c
228
kfree(intel_vsec_dev->resource);
drivers/platform/x86/intel/vsec.c
277
struct resource __free(kfree) *res = NULL;
drivers/platform/x86/intel/vsec.c
278
struct resource *tmp;
drivers/platform/x86/intel/vsec.c
316
base_addr = pdev->resource[header->tbir].start;
drivers/platform/x86/intel/vsec.c
336
intel_vsec_dev->resource = no_free_ptr(res);
drivers/platform/x86/intel/vsec_tpmi.c
209
struct resource *tpmi_get_resource_at_index(struct auxiliary_device *auxdev, int index)
drivers/platform/x86/intel/vsec_tpmi.c
214
return &vsec_dev->resource[index];
drivers/platform/x86/intel/vsec_tpmi.c
606
struct resource *res, *tmp;
drivers/platform/x86/intel/vsec_tpmi.c
646
feature_vsec_dev->resource = res;
drivers/platform/x86/intel/vsec_tpmi.c
766
struct resource *res;
drivers/platform/x86/intel/vsec_tpmi.c
773
res = &vsec_dev->resource[i];
drivers/platform/x86/intel_scu_pcidrv.c
27
scu_data.mem = pdev->resource[0];
drivers/platform/x86/intel_scu_pltdrv.c
24
const struct resource *res;
drivers/platform/x86/p2sb.c
180
struct resource *mem)
drivers/platform/x86/p2sb.c
196
struct resource *mem)
drivers/platform/x86/p2sb.c
229
int p2sb_bar(struct pci_bus *bus, unsigned int devfn, struct resource *mem)
drivers/platform/x86/p2sb.c
42
struct resource res;
drivers/platform/x86/p2sb.c
60
static bool p2sb_valid_resource(const struct resource *res)
drivers/platform/x86/p2sb.c
66
static void p2sb_read_bar0(struct pci_dev *pdev, struct resource *mem)
drivers/platform/x86/p2sb.c
68
struct resource *bar0 = pci_resource_n(pdev, 0);
drivers/platform/x86/siemens/simatic-ipc-batt.c
64
static struct resource simatic_ipc_batt_io_res =
drivers/platform/x86/siemens/simatic-ipc-batt.c
70
struct resource *res = &simatic_ipc_batt_io_res;
drivers/platform/x86/sony-laptop.c
4155
sony_pic_read_possible_resource(struct acpi_resource *resource, void *context)
drivers/platform/x86/sony-laptop.c
4160
switch (resource->type) {
drivers/platform/x86/sony-laptop.c
4178
struct acpi_resource_irq *p = &resource->data.irq;
drivers/platform/x86/sony-laptop.c
4209
struct acpi_resource_io *io = &resource->data.io;
drivers/platform/x86/sony-laptop.c
4234
resource->type);
drivers/platform/x86/sony-laptop.c
4318
} *resource;
drivers/platform/x86/sony-laptop.c
4325
resource = kzalloc(sizeof(*resource) + 1, GFP_KERNEL);
drivers/platform/x86/sony-laptop.c
4326
if (!resource)
drivers/platform/x86/sony-laptop.c
4329
buffer.length = sizeof(*resource) + 1;
drivers/platform/x86/sony-laptop.c
4330
buffer.pointer = resource;
drivers/platform/x86/sony-laptop.c
4336
resource->res1.type = ACPI_RESOURCE_TYPE_IO;
drivers/platform/x86/sony-laptop.c
4337
resource->res1.length = sizeof(struct acpi_resource);
drivers/platform/x86/sony-laptop.c
4338
memcpy(&resource->res1.data.io, &ioport->io1,
drivers/platform/x86/sony-laptop.c
4341
resource->res2.type = ACPI_RESOURCE_TYPE_IO;
drivers/platform/x86/sony-laptop.c
4342
resource->res2.length = sizeof(struct acpi_resource);
drivers/platform/x86/sony-laptop.c
4343
memcpy(&resource->res2.data.io, &ioport->io2,
drivers/platform/x86/sony-laptop.c
4347
resource->res3.type = ACPI_RESOURCE_TYPE_IRQ;
drivers/platform/x86/sony-laptop.c
4348
resource->res3.length = sizeof(struct acpi_resource);
drivers/platform/x86/sony-laptop.c
4349
memcpy(&resource->res3.data.irq, &irq->irq,
drivers/platform/x86/sony-laptop.c
4352
resource->res3.data.irq.shareable = ACPI_SHARED;
drivers/platform/x86/sony-laptop.c
4354
resource->res4.type = ACPI_RESOURCE_TYPE_END_TAG;
drivers/platform/x86/sony-laptop.c
4355
resource->res4.length = sizeof(struct acpi_resource);
drivers/platform/x86/sony-laptop.c
4360
resource->res1.type = ACPI_RESOURCE_TYPE_IO;
drivers/platform/x86/sony-laptop.c
4361
resource->res1.length = sizeof(struct acpi_resource);
drivers/platform/x86/sony-laptop.c
4362
memcpy(&resource->res1.data.io, &ioport->io1,
drivers/platform/x86/sony-laptop.c
4366
resource->res2.type = ACPI_RESOURCE_TYPE_IRQ;
drivers/platform/x86/sony-laptop.c
4367
resource->res2.length = sizeof(struct acpi_resource);
drivers/platform/x86/sony-laptop.c
4368
memcpy(&resource->res2.data.irq, &irq->irq,
drivers/platform/x86/sony-laptop.c
4371
resource->res2.data.irq.shareable = ACPI_SHARED;
drivers/platform/x86/sony-laptop.c
4373
resource->res3.type = ACPI_RESOURCE_TYPE_END_TAG;
drivers/platform/x86/sony-laptop.c
4374
resource->res3.length = sizeof(struct acpi_resource);
drivers/platform/x86/sony-laptop.c
4394
kfree(resource);
drivers/pmdomain/imx/scu-pd.c
342
msg.data.req.resource = rsrc;
drivers/pmdomain/imx/scu-pd.c
366
msg.resource = pd->rsrc;
drivers/pmdomain/imx/scu-pd.c
71
u16 resource;
drivers/pmdomain/imx/scu-pd.c
76
u16 resource;
drivers/pmdomain/mediatek/mtk-mfg-pmdomain.c
880
struct resource res;
drivers/pmdomain/ti/omap_prm.c
946
struct resource *res;
drivers/pnp/base.h
139
int pnp_check_port(struct pnp_dev *dev, struct resource *res);
drivers/pnp/base.h
140
int pnp_check_mem(struct pnp_dev *dev, struct resource *res);
drivers/pnp/base.h
141
int pnp_check_irq(struct pnp_dev *dev, struct resource *res);
drivers/pnp/base.h
143
int pnp_check_dma(struct pnp_dev *dev, struct resource *res);
drivers/pnp/base.h
146
char *pnp_resource_type_name(struct resource *res);
drivers/pnp/base.h
150
unsigned long pnp_resource_type(struct resource *res);
drivers/pnp/base.h
154
struct resource res;
drivers/pnp/base.h
160
struct resource *res);
drivers/pnp/interface.c
254
struct resource *res;
drivers/pnp/isapnp/core.c
889
struct resource *res;
drivers/pnp/manager.c
134
struct resource *res, local_res;
drivers/pnp/manager.c
193
struct resource *res, local_res;
drivers/pnp/manager.c
22
static struct resource *pnp_find_resource(struct pnp_dev *dev,
drivers/pnp/manager.c
27
struct resource *res = pnp_get_resource(dev, type, bar);
drivers/pnp/manager.c
40
struct resource *res, local_res;
drivers/pnp/manager.c
83
struct resource *res, local_res;
drivers/pnp/pnpacpi/rsparser.c
101
static void pnpacpi_add_irqresource(struct pnp_dev *dev, struct resource *r)
drivers/pnp/pnpacpi/rsparser.c
172
struct resource *r = &win.res;
drivers/pnp/pnpacpi/rsparser.c
608
struct acpi_resource **resource = data;
drivers/pnp/pnpacpi/rsparser.c
611
(*resource)->type = res->type;
drivers/pnp/pnpacpi/rsparser.c
612
(*resource)->length = sizeof(struct acpi_resource);
drivers/pnp/pnpacpi/rsparser.c
614
(*resource)->data.irq.descriptor_length =
drivers/pnp/pnpacpi/rsparser.c
616
(*resource)++;
drivers/pnp/pnpacpi/rsparser.c
627
struct acpi_resource *resource;
drivers/pnp/pnpacpi/rsparser.c
644
resource = (struct acpi_resource *)buffer->pointer;
drivers/pnp/pnpacpi/rsparser.c
646
pnpacpi_type_resources, &resource);
drivers/pnp/pnpacpi/rsparser.c
653
resource->type = ACPI_RESOURCE_TYPE_END_TAG;
drivers/pnp/pnpacpi/rsparser.c
654
resource->length = sizeof(struct acpi_resource);
drivers/pnp/pnpacpi/rsparser.c
660
struct acpi_resource *resource,
drivers/pnp/pnpacpi/rsparser.c
661
struct resource *p)
drivers/pnp/pnpacpi/rsparser.c
663
struct acpi_resource_irq *irq = &resource->data.irq;
drivers/pnp/pnpacpi/rsparser.c
689
struct acpi_resource *resource,
drivers/pnp/pnpacpi/rsparser.c
690
struct resource *p)
drivers/pnp/pnpacpi/rsparser.c
692
struct acpi_resource_extended_irq *extended_irq = &resource->data.extended_irq;
drivers/pnp/pnpacpi/rsparser.c
717
struct acpi_resource *resource,
drivers/pnp/pnpacpi/rsparser.c
718
struct resource *p)
drivers/pnp/pnpacpi/rsparser.c
720
struct acpi_resource_dma *dma = &resource->data.dma;
drivers/pnp/pnpacpi/rsparser.c
765
struct acpi_resource *resource,
drivers/pnp/pnpacpi/rsparser.c
766
struct resource *p)
drivers/pnp/pnpacpi/rsparser.c
768
struct acpi_resource_io *io = &resource->data.io;
drivers/pnp/pnpacpi/rsparser.c
788
struct acpi_resource *resource,
drivers/pnp/pnpacpi/rsparser.c
789
struct resource *p)
drivers/pnp/pnpacpi/rsparser.c
791
struct acpi_resource_fixed_io *fixed_io = &resource->data.fixed_io;
drivers/pnp/pnpacpi/rsparser.c
806
struct acpi_resource *resource,
drivers/pnp/pnpacpi/rsparser.c
807
struct resource *p)
drivers/pnp/pnpacpi/rsparser.c
809
struct acpi_resource_memory24 *memory24 = &resource->data.memory24;
drivers/pnp/pnpacpi/rsparser.c
831
struct acpi_resource *resource,
drivers/pnp/pnpacpi/rsparser.c
832
struct resource *p)
drivers/pnp/pnpacpi/rsparser.c
834
struct acpi_resource_memory32 *memory32 = &resource->data.memory32;
drivers/pnp/pnpacpi/rsparser.c
855
struct acpi_resource *resource,
drivers/pnp/pnpacpi/rsparser.c
856
struct resource *p)
drivers/pnp/pnpacpi/rsparser.c
858
struct acpi_resource_fixed_memory32 *fixed_memory32 = &resource->data.fixed_memory32;
drivers/pnp/pnpacpi/rsparser.c
882
struct acpi_resource *resource = buffer->pointer;
drivers/pnp/pnpacpi/rsparser.c
887
switch (resource->type) {
drivers/pnp/pnpacpi/rsparser.c
889
pnpacpi_encode_irq(dev, resource,
drivers/pnp/pnpacpi/rsparser.c
895
pnpacpi_encode_dma(dev, resource,
drivers/pnp/pnpacpi/rsparser.c
900
pnpacpi_encode_io(dev, resource,
drivers/pnp/pnpacpi/rsparser.c
905
pnpacpi_encode_fixed_io(dev, resource,
drivers/pnp/pnpacpi/rsparser.c
910
pnpacpi_encode_mem24(dev, resource,
drivers/pnp/pnpacpi/rsparser.c
915
pnpacpi_encode_mem32(dev, resource,
drivers/pnp/pnpacpi/rsparser.c
920
pnpacpi_encode_fixed_mem32(dev, resource,
drivers/pnp/pnpacpi/rsparser.c
925
pnpacpi_encode_ext_irq(dev, resource,
drivers/pnp/pnpacpi/rsparser.c
941
resource->type);
drivers/pnp/pnpacpi/rsparser.c
944
resource++;
drivers/pnp/pnpbios/rsparser.c
502
struct resource *res)
drivers/pnp/pnpbios/rsparser.c
526
struct resource *res)
drivers/pnp/pnpbios/rsparser.c
556
struct resource *res)
drivers/pnp/pnpbios/rsparser.c
583
struct resource *res)
drivers/pnp/pnpbios/rsparser.c
599
struct resource *res)
drivers/pnp/pnpbios/rsparser.c
614
struct resource *res)
drivers/pnp/pnpbios/rsparser.c
637
struct resource *res)
drivers/pnp/quirks.c
231
struct resource *res, *r;
drivers/pnp/quirks.c
298
struct resource *res;
drivers/pnp/quirks.c
299
struct resource mmconfig_res, *mmconfig;
drivers/pnp/quirks.c
357
struct resource mch;
drivers/pnp/quirks.c
359
struct resource *res;
drivers/pnp/resource.c
167
int pnp_check_port(struct pnp_dev *dev, struct resource *res)
drivers/pnp/resource.c
171
struct resource *tres;
drivers/pnp/resource.c
230
int pnp_check_mem(struct pnp_dev *dev, struct resource *res)
drivers/pnp/resource.c
234
struct resource *tres;
drivers/pnp/resource.c
353
int pnp_check_irq(struct pnp_dev *dev, struct resource *res)
drivers/pnp/resource.c
357
struct resource *tres;
drivers/pnp/resource.c
417
int pnp_check_dma(struct pnp_dev *dev, struct resource *res)
drivers/pnp/resource.c
421
struct resource *tres;
drivers/pnp/resource.c
476
unsigned long pnp_resource_type(struct resource *res)
drivers/pnp/resource.c
483
struct resource *pnp_get_resource(struct pnp_dev *dev,
drivers/pnp/resource.c
487
struct resource *res;
drivers/pnp/resource.c
511
struct resource *res)
drivers/pnp/resource.c
531
struct resource *res;
drivers/pnp/resource.c
552
struct resource *res;
drivers/pnp/resource.c
574
struct resource *res;
drivers/pnp/resource.c
598
struct resource *res;
drivers/pnp/resource.c
622
struct resource *res;
drivers/pnp/support.c
62
char *pnp_resource_type_name(struct resource *res)
drivers/pnp/system.c
26
static void reserve_range(struct pnp_dev *dev, struct resource *r, int port)
drivers/pnp/system.c
31
struct resource *res;
drivers/pnp/system.c
58
struct resource *res;
drivers/power/reset/mt6323-poweroff.c
54
struct resource *res;
drivers/power/reset/qnap-poweroff.c
75
struct resource *res;
drivers/power/supply/goldfish_battery.c
201
struct resource *r;
drivers/power/supply/lp8788-charger.c
471
struct resource *r;
drivers/powercap/intel_rapl_tpmi.c
258
struct resource *res;
drivers/ptp/ptp_ocp.c
1937
struct resource res = DEFINE_RES_MEM_NAMED(start, size, "ptp_ocp");
drivers/ptp/ptp_ocp.c
1957
struct resource res[2];
drivers/ptp/ptp_ocp.c
1984
struct resource res[2];
drivers/ptp/ptp_vmclock.c
45
struct resource res;
drivers/ptp/ptp_vmclock.c
498
struct resource *res = &win.res;
drivers/ptp/ptp_vmclock.c
590
struct resource *res;
drivers/pwm/pwm-microchip-core.c
438
struct resource *regs;
drivers/rapidio/devices/tsi721.c
2797
i, &pdev->resource[i]);
drivers/rapidio/rio.c
240
struct resource *res;
drivers/rapidio/rio.c
324
struct resource *res;
drivers/rapidio/rio.c
402
rio_setup_inb_dbell(struct rio_mport *mport, void *dev_id, struct resource *res,
drivers/rapidio/rio.c
441
struct resource *res = kzalloc_obj(*res);
drivers/rapidio/rio.c
515
struct resource *rio_request_outb_dbell(struct rio_dev *rdev, u16 start,
drivers/rapidio/rio.c
518
struct resource *res = kzalloc_obj(struct resource);
drivers/rapidio/rio.c
543
int rio_release_outb_dbell(struct rio_dev *rdev, struct resource *res)
drivers/regulator/88pm8607.c
322
struct resource *res;
drivers/regulator/max8925-regulator.c
224
struct resource *res;
drivers/regulator/pbias-regulator.c
150
struct resource *res;
drivers/regulator/qcom_rpm-regulator.c
201
vreg->resource,
drivers/regulator/qcom_rpm-regulator.c
55
int resource;
drivers/regulator/qcom_rpm-regulator.c
773
int resource;
drivers/regulator/qcom_rpm-regulator.c
965
vreg->resource = reg->resource;
drivers/regulator/ti-abb-regulator.c
690
struct resource *res;
drivers/regulator/wm831x-dcdc.c
394
struct resource *res;
drivers/regulator/wm831x-dcdc.c
553
struct resource *res;
drivers/regulator/wm831x-dcdc.c
686
struct resource *res;
drivers/regulator/wm831x-isink.c
117
struct resource *res;
drivers/regulator/wm831x-ldo.c
221
struct resource *res;
drivers/regulator/wm831x-ldo.c
432
struct resource *res;
drivers/regulator/wm831x-ldo.c
577
struct resource *res;
drivers/remoteproc/da8xx_remoteproc.c
204
struct resource *res;
drivers/remoteproc/imx_dsp_rproc.c
716
struct resource res;
drivers/remoteproc/imx_rproc.c
616
struct resource res;
drivers/remoteproc/imx_rproc.c
798
struct resource res;
drivers/remoteproc/ingenic_rproc.c
169
struct resource *mem;
drivers/remoteproc/keystone_remoteproc.c
300
struct resource *res;
drivers/remoteproc/mtk_scp.c
1169
struct resource *res;
drivers/remoteproc/mtk_scp.c
1403
struct resource *res;
drivers/remoteproc/omap_remoteproc.c
1174
struct resource *res;
drivers/remoteproc/pru_rproc.c
997
struct resource *res;
drivers/remoteproc/qcom_pil_info.c
33
struct resource imem;
drivers/remoteproc/qcom_q6v5_adsp.c
584
struct resource *efuse_region;
drivers/remoteproc/qcom_q6v5_adsp.c
629
struct resource res;
drivers/remoteproc/qcom_q6v5_mss.c
1973
struct resource res;
drivers/remoteproc/qcom_q6v5_pas.c
626
struct resource res;
drivers/remoteproc/qcom_q6v5_pas.c
674
struct resource res;
drivers/remoteproc/qcom_q6v5_wcss.c
829
struct resource *res;
drivers/remoteproc/qcom_q6v5_wcss.c
878
struct resource res;
drivers/remoteproc/qcom_wcnss.c
529
struct resource res;
drivers/remoteproc/rcar_rproc.c
61
struct resource res;
drivers/remoteproc/st_remoteproc.c
128
struct resource res;
drivers/remoteproc/st_slim_rproc.c
228
struct resource *res;
drivers/remoteproc/stm32_rproc.c
222
struct resource res;
drivers/remoteproc/ti_k3_common.c
413
struct resource *res;
drivers/remoteproc/ti_k3_common.c
505
struct resource res;
drivers/remoteproc/ti_k3_r5_remoteproc.c
969
struct resource res;
drivers/remoteproc/wkup_m3_rproc.c
144
struct resource *res;
drivers/remoteproc/xlnx_r5_remoteproc.c
1042
struct resource *res;
drivers/remoteproc/xlnx_r5_remoteproc.c
502
struct resource res;
drivers/remoteproc/xlnx_r5_remoteproc.c
66
struct resource sram_res;
drivers/remoteproc/xlnx_r5_remoteproc.c
803
struct resource res_mem;
drivers/resctrl/mpam_devices.c
1823
struct resource *msc_res;
drivers/reset/reset-brcmstb.c
87
struct resource *res;
drivers/reset/reset-microchip-sparx5.c
131
struct resource *res;
drivers/reset/reset-microchip-sparx5.c
76
struct resource res;
drivers/reset/reset-simple.c
167
struct resource *res;
drivers/reset/reset-socfpga.c
25
struct resource res;
drivers/reset/reset-sunplus.c
172
struct resource *res;
drivers/reset/reset-sunxi.c
26
struct resource res;
drivers/reset/reset-uniphier-glue.c
42
struct resource *res;
drivers/reset/reset-zynq.c
91
struct resource *res;
drivers/rpmsg/qcom_glink_rpm.c
296
struct resource r;
drivers/rtc/rtc-at91rm9200.c
472
struct resource *regs;
drivers/rtc/rtc-bq4802.c
25
struct resource *r;
drivers/rtc/rtc-cmos.c
1156
struct resource *ports;
drivers/rtc/rtc-cmos.c
1487
struct resource *resource;
drivers/rtc/rtc-cmos.c
1493
resource = platform_get_resource(pdev, IORESOURCE_IO, 0);
drivers/rtc/rtc-cmos.c
1495
resource = platform_get_resource(pdev, IORESOURCE_MEM, 0);
drivers/rtc/rtc-cmos.c
1500
return cmos_do_probe(&pdev->dev, resource, irq);
drivers/rtc/rtc-cmos.c
77
struct resource *iomem;
drivers/rtc/rtc-cmos.c
923
cmos_do_probe(struct device *dev, struct resource *ports, int rtc_irq)
drivers/rtc/rtc-ds1742.c
144
struct resource *res;
drivers/rtc/rtc-ftrtc010.c
114
struct resource *res;
drivers/rtc/rtc-gamecube.c
224
struct resource res;
drivers/rtc/rtc-lp8788.c
258
struct resource *r;
drivers/rtc/rtc-m48t35.c
152
struct resource *res;
drivers/rtc/rtc-m48t59.c
344
struct resource *res;
drivers/rtc/rtc-msm6242.c
191
struct resource *res;
drivers/rtc/rtc-mt6397.c
249
struct resource *res;
drivers/rtc/rtc-pxa.c
75
struct resource *ress;
drivers/rtc/rtc-rp5c01.c
220
struct resource *res;
drivers/rtc/rtc-sh.c
328
struct resource *res, *req_res;
drivers/rtc/rtc-stmp3xxx.c
248
struct resource *r;
drivers/rtc/rtc-sunplus.c
58
struct resource *res;
drivers/sbus/char/bbc_i2c.c
308
bp->i2c_control_regs = of_ioremap(&op->resource[0], 0, 0x2, "bbc_i2c_regs");
drivers/sbus/char/bbc_i2c.c
313
bp->i2c_bussel_reg = of_ioremap(&op->resource[1], 0, 0x1, "bbc_i2c_bussel");
drivers/sbus/char/bbc_i2c.c
354
of_iounmap(&op->resource[1], bp->i2c_bussel_reg, 1);
drivers/sbus/char/bbc_i2c.c
356
of_iounmap(&op->resource[0], bp->i2c_control_regs, 2);
drivers/sbus/char/bbc_i2c.c
374
of_iounmap(&op->resource[0], bp->i2c_bussel_reg, 1);
drivers/sbus/char/bbc_i2c.c
376
of_iounmap(&op->resource[1], bp->i2c_control_regs, 2);
drivers/sbus/char/bbc_i2c.c
394
of_iounmap(&op->resource[0], bp->i2c_bussel_reg, 1);
drivers/sbus/char/bbc_i2c.c
396
of_iounmap(&op->resource[1], bp->i2c_control_regs, 2);
drivers/sbus/char/display7seg.c
185
p->regs = of_ioremap(&op->resource[0], 0, sizeof(u8), "d7s");
drivers/sbus/char/display7seg.c
216
op->resource[0].start,
drivers/sbus/char/display7seg.c
228
of_iounmap(&op->resource[0], p->regs, sizeof(u8));
drivers/sbus/char/display7seg.c
247
of_iounmap(&op->resource[0], p->regs, sizeof(u8));
drivers/sbus/char/envctrl.c
1032
i2c = of_ioremap(&op->resource[0], 0, 0x2, DRIVER_NAME);
drivers/sbus/char/envctrl.c
1093
of_iounmap(&op->resource[0], i2c, 0x2);
drivers/sbus/char/envctrl.c
1106
of_iounmap(&op->resource[0], i2c, 0x2);
drivers/sbus/char/flash.c
171
flash.read_base = op->resource[0].start;
drivers/sbus/char/flash.c
172
flash.read_size = resource_size(&op->resource[0]);
drivers/sbus/char/flash.c
173
if (op->resource[1].flags) {
drivers/sbus/char/flash.c
174
flash.write_base = op->resource[1].start;
drivers/sbus/char/flash.c
175
flash.write_size = resource_size(&op->resource[1]);
drivers/sbus/char/flash.c
177
flash.write_base = op->resource[0].start;
drivers/sbus/char/flash.c
178
flash.write_size = resource_size(&op->resource[0]);
drivers/sbus/char/uctrl.c
357
p->regs = of_ioremap(&op->resource[0], 0,
drivers/sbus/char/uctrl.c
358
resource_size(&op->resource[0]),
drivers/sbus/char/uctrl.c
394
of_iounmap(&op->resource[0], p->regs, resource_size(&op->resource[0]));
drivers/sbus/char/uctrl.c
408
of_iounmap(&op->resource[0], p->regs, resource_size(&op->resource[0]));
drivers/scsi/a2091.c
213
if (!request_mem_region(z->resource.start, 256, "wd33c93"))
drivers/scsi/a2091.c
226
regs = ZTWO_VADDR(z->resource.start);
drivers/scsi/a2091.c
261
release_mem_region(z->resource.start, 256);
drivers/scsi/a2091.c
274
release_mem_region(z->resource.start, 256);
drivers/scsi/a3000.c
218
struct resource *res;
drivers/scsi/a3000.c
289
struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
drivers/scsi/a4000t.c
101
struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
drivers/scsi/a4000t.c
37
struct resource *res;
drivers/scsi/atari_scsi.c
721
struct resource *irq;
drivers/scsi/gvp11.c
345
address = z->resource.start;
drivers/scsi/gvp11.c
435
release_mem_region(z->resource.start, 256);
drivers/scsi/hisi_sas/hisi_sas_main.c
2480
struct resource *res;
drivers/scsi/jazz_esp.c
110
struct resource *res;
drivers/scsi/mac_scsi.c
448
struct resource *irq, *pio_mem, *pdma_mem = NULL;
drivers/scsi/mpi3mr/mpi/mpi30_cnfg.h
482
struct mpi3_man9_rsrc_entry resource[MPI3_MAN9_RSRC_NUM_RESOURCES];
drivers/scsi/nsp32.c
2549
struct resource *res;
drivers/scsi/pcmcia/aha152x_stub.c
129
if ((p_dev->resource[0]->end < 0x20) &&
drivers/scsi/pcmcia/aha152x_stub.c
130
(p_dev->resource[1]->end >= 0x20))
drivers/scsi/pcmcia/aha152x_stub.c
131
p_dev->resource[0]->start = p_dev->resource[1]->start;
drivers/scsi/pcmcia/aha152x_stub.c
133
if (p_dev->resource[0]->start >= 0xffff)
drivers/scsi/pcmcia/aha152x_stub.c
136
p_dev->resource[1]->start = p_dev->resource[1]->end = 0;
drivers/scsi/pcmcia/aha152x_stub.c
137
p_dev->resource[0]->end = 0x20;
drivers/scsi/pcmcia/aha152x_stub.c
138
p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH;
drivers/scsi/pcmcia/aha152x_stub.c
139
p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO;
drivers/scsi/pcmcia/aha152x_stub.c
167
s.io_port = link->resource[0]->start;
drivers/scsi/pcmcia/fdomain_cs.c
25
p_dev->resource[0]->end = FDOMAIN_REGION_SIZE;
drivers/scsi/pcmcia/fdomain_cs.c
26
p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH;
drivers/scsi/pcmcia/fdomain_cs.c
27
p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO;
drivers/scsi/pcmcia/fdomain_cs.c
47
if (!request_region(link->resource[0]->start, FDOMAIN_REGION_SIZE,
drivers/scsi/pcmcia/fdomain_cs.c
53
sh = fdomain_create(link->resource[0]->start, link->irq, 7, &link->dev);
drivers/scsi/pcmcia/fdomain_cs.c
65
release_region(link->resource[0]->start, FDOMAIN_REGION_SIZE);
drivers/scsi/pcmcia/fdomain_cs.c
74
release_region(link->resource[0]->start, FDOMAIN_REGION_SIZE);
drivers/scsi/pcmcia/nsp_cs.c
1561
if (resource_size(p_dev->resource[2])) {
drivers/scsi/pcmcia/nsp_cs.c
1562
p_dev->resource[2]->flags |= (WIN_DATA_WIDTH_16 |
drivers/scsi/pcmcia/nsp_cs.c
1565
if (p_dev->resource[2]->end < 0x1000)
drivers/scsi/pcmcia/nsp_cs.c
1566
p_dev->resource[2]->end = 0x1000;
drivers/scsi/pcmcia/nsp_cs.c
1567
if (pcmcia_request_window(p_dev, p_dev->resource[2], 0) != 0)
drivers/scsi/pcmcia/nsp_cs.c
1569
if (pcmcia_map_mem_page(p_dev, p_dev->resource[2],
drivers/scsi/pcmcia/nsp_cs.c
1574
ioremap(p_dev->resource[2]->start,
drivers/scsi/pcmcia/nsp_cs.c
1575
resource_size(p_dev->resource[2]));
drivers/scsi/pcmcia/nsp_cs.c
1579
data->MmioLength = resource_size(p_dev->resource[2]);
drivers/scsi/pcmcia/nsp_cs.c
1615
if (link->resource[0]) {
drivers/scsi/pcmcia/nsp_cs.c
1616
release_region(link->resource[0]->start,
drivers/scsi/pcmcia/nsp_cs.c
1617
resource_size(link->resource[0]));
drivers/scsi/pcmcia/nsp_cs.c
1619
if (link->resource[1]) {
drivers/scsi/pcmcia/nsp_cs.c
1620
release_region(link->resource[1]->start,
drivers/scsi/pcmcia/nsp_cs.c
1621
resource_size(link->resource[1]));
drivers/scsi/pcmcia/nsp_cs.c
1626
data->BaseAddress = link->resource[0]->start;
drivers/scsi/pcmcia/nsp_cs.c
1627
data->NumAddress = resource_size(link->resource[0]);
drivers/scsi/pcmcia/nsp_cs.c
1679
if (resource_size(link->resource[2])) {
drivers/scsi/pcmcia/qlogic_stub.c
182
p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH;
drivers/scsi/pcmcia/qlogic_stub.c
183
p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO;
drivers/scsi/pcmcia/qlogic_stub.c
185
if (p_dev->resource[0]->start == 0)
drivers/scsi/pcmcia/qlogic_stub.c
212
outb(0xb4, link->resource[0]->start + 0xd);
drivers/scsi/pcmcia/qlogic_stub.c
213
outb(0x24, link->resource[0]->start + 0x9);
drivers/scsi/pcmcia/qlogic_stub.c
214
outb(0x04, link->resource[0]->start + 0xd);
drivers/scsi/pcmcia/qlogic_stub.c
218
if (resource_size(link->resource[0]) == 32)
drivers/scsi/pcmcia/qlogic_stub.c
220
link->resource[0]->start + 16, link->irq);
drivers/scsi/pcmcia/qlogic_stub.c
223
link->resource[0]->start, link->irq);
drivers/scsi/pcmcia/qlogic_stub.c
269
outb(0x80, link->resource[0]->start + 0xd);
drivers/scsi/pcmcia/qlogic_stub.c
270
outb(0x24, link->resource[0]->start + 0x9);
drivers/scsi/pcmcia/qlogic_stub.c
271
outb(0x04, link->resource[0]->start + 0xd);
drivers/scsi/pcmcia/sym53c500_cs.c
689
p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH;
drivers/scsi/pcmcia/sym53c500_cs.c
690
p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO;
drivers/scsi/pcmcia/sym53c500_cs.c
692
if (p_dev->resource[0]->start == 0)
drivers/scsi/pcmcia/sym53c500_cs.c
732
outb(0xb4, link->resource[0]->start + 0xd);
drivers/scsi/pcmcia/sym53c500_cs.c
733
outb(0x24, link->resource[0]->start + 0x9);
drivers/scsi/pcmcia/sym53c500_cs.c
734
outb(0x04, link->resource[0]->start + 0xd);
drivers/scsi/pcmcia/sym53c500_cs.c
747
port_base = link->resource[0]->start;
drivers/scsi/pcmcia/sym53c500_cs.c
820
outb(0x80, link->resource[0]->start + 0xd);
drivers/scsi/pcmcia/sym53c500_cs.c
821
outb(0x24, link->resource[0]->start + 0x9);
drivers/scsi/pcmcia/sym53c500_cs.c
822
outb(0x04, link->resource[0]->start + 0xd);
drivers/scsi/pcmcia/sym53c500_cs.c
828
SYM53C500_int_host_reset(link->resource[0]->start);
drivers/scsi/qlogicpti.c
1401
of_iounmap(&op->resource[0], qpti->qregs,
drivers/scsi/qlogicpti.c
1402
resource_size(&op->resource[0]));
drivers/scsi/qlogicpti.c
1404
of_iounmap(&op->resource[0], qpti->sreg,
drivers/scsi/qlogicpti.c
1436
of_iounmap(&op->resource[0], qpti->qregs,
drivers/scsi/qlogicpti.c
1437
resource_size(&op->resource[0]));
drivers/scsi/qlogicpti.c
1439
of_iounmap(&op->resource[0], qpti->sreg, sizeof(unsigned char));
drivers/scsi/qlogicpti.c
719
qpti->qregs = of_ioremap(&op->resource[0], 0,
drivers/scsi/qlogicpti.c
720
resource_size(&op->resource[0]),
drivers/scsi/qlogicpti.c
727
qpti->sreg = of_ioremap(&op->resource[0], (16 * 4096),
drivers/scsi/sni_53c710.c
59
struct resource *res;
drivers/scsi/sun3_scsi.c
516
struct resource *irq, *mem;
drivers/scsi/sun3x_esp.c
175
struct resource *res;
drivers/scsi/sun_esp.c
519
of_iounmap(&op->resource[(hme ? 1 : 0)], esp->regs, SBUS_ESP_REG_SIZE);
drivers/scsi/sun_esp.c
52
esp->dma_regs = of_ioremap(&dma_of->resource[0], 0,
drivers/scsi/sun_esp.c
53
resource_size(&dma_of->resource[0]),
drivers/scsi/sun_esp.c
574
of_iounmap(&op->resource[(is_hme ? 1 : 0)], esp->regs,
drivers/scsi/sun_esp.c
576
of_iounmap(&dma_of->resource[0], esp->dma_regs,
drivers/scsi/sun_esp.c
577
resource_size(&dma_of->resource[0]));
drivers/scsi/sun_esp.c
86
struct resource *res;
drivers/scsi/sun_esp.c
92
res = &op->resource[1];
drivers/scsi/sun_esp.c
94
res = &op->resource[0];
drivers/scsi/sym53c8xx_2/sym_glue.c
1562
pcibios_resource_to_bus(pdev->bus, &bus_addr, &pdev->resource[1]);
drivers/scsi/sym53c8xx_2/sym_glue.c
1570
if (!pdev->resource[i].flags)
drivers/scsi/sym53c8xx_2/sym_glue.c
1573
&pdev->resource[i]);
drivers/sh/intc/core.c
202
struct resource *res;
drivers/sh/intc/core.c
225
res = desc->resource + k;
drivers/soc/amlogic/meson-clk-measure.c
910
struct resource *res;
drivers/soc/apple/tunable.c
22
struct resource *res)
drivers/soc/aspeed/aspeed-lpc-ctrl.c
227
struct resource resm;
drivers/soc/aspeed/aspeed-p2a-ctrl.c
336
struct resource resm;
drivers/soc/fsl/dpaa2-console.c
61
static struct resource mc_base_addr;
drivers/soc/fsl/qbman/bman_ccsr.c
202
struct resource *res;
drivers/soc/fsl/qbman/bman_portal.c
102
struct resource *addr_phys[2];
drivers/soc/fsl/qbman/qman_ccsr.c
734
struct resource *res;
drivers/soc/fsl/qbman/qman_portal.c
187
struct resource *addr_phys[2];
drivers/soc/fsl/qe/qe.c
70
struct resource res;
drivers/soc/fsl/qe/qe_common.c
48
struct resource r;
drivers/soc/fsl/qe/qe_ic.c
409
struct resource *res;
drivers/soc/fsl/qe/qe_io.c
29
struct resource res;
drivers/soc/fsl/qe/qmc.c
1728
struct resource *res;
drivers/soc/fsl/qe/qmc.c
1751
struct resource *res;
drivers/soc/fsl/qe/tsa.c
970
struct resource *res;
drivers/soc/ixp4xx/ixp4xx-npe.c
690
struct resource *res;
drivers/soc/ixp4xx/ixp4xx-qmgr.c
380
struct resource *res;
drivers/soc/mediatek/mtk-cmdq-helper.c
64
struct resource res;
drivers/soc/mediatek/mtk-mutex.c
1097
struct resource *regs;
drivers/soc/pxa/ssp.c
113
struct resource *res;
drivers/soc/qcom/ice.c
612
struct resource *res;
drivers/soc/qcom/ocmem.c
57
struct resource *memory;
drivers/soc/qcom/rpm_master_stats.c
74
struct resource res;
drivers/soc/qcom/smem.c
1105
struct resource r;
drivers/soc/samsung/exynos-chipid.c
130
struct resource *res;
drivers/soc/samsung/exynos-pmu.c
413
struct resource intrgen_res;
drivers/soc/samsung/exynos-pmu.c
481
struct resource *res;
drivers/soc/samsung/s3c-pm-check.c
104
static u32 *s3c_pm_makecheck(struct resource *res, u32 *val)
drivers/soc/samsung/s3c-pm-check.c
161
static u32 *s3c_pm_runcheck(struct resource *res, u32 *val)
drivers/soc/samsung/s3c-pm-check.c
39
typedef u32 *(run_fn_t)(struct resource *ptr, u32 *arg);
drivers/soc/samsung/s3c-pm-check.c
46
static void s3c_pm_run_res(struct resource *ptr, run_fn_t fn, u32 *arg)
drivers/soc/samsung/s3c-pm-check.c
69
static u32 *s3c_pm_countram(struct resource *res, u32 *val)
drivers/soc/sophgo/cv1800-rtcsys.c
18
static struct resource cv1800_rtcsys_irq_resources[] = {
drivers/soc/tegra/cbb/tegra194-cbb.c
151
struct resource res;
drivers/soc/tegra/cbb/tegra194-cbb.c
159
struct resource *res;
drivers/soc/tegra/cbb/tegra234-cbb.c
160
struct resource *res;
drivers/soc/tegra/flowctrl.c
190
struct resource res;
drivers/soc/tegra/fuse/fuse-tegra.c
144
struct resource *res;
drivers/soc/tegra/fuse/fuse-tegra.c
475
struct resource regs;
drivers/soc/tegra/fuse/tegra-apbmisc.c
167
static void tegra_init_apbmisc_resources(struct resource *apbmisc,
drivers/soc/tegra/fuse/tegra-apbmisc.c
168
struct resource *straps)
drivers/soc/tegra/fuse/tegra-apbmisc.c
195
struct resource apbmisc, straps;
drivers/soc/tegra/fuse/tegra-apbmisc.c
266
struct resource *resources[2] = { NULL };
drivers/soc/tegra/pmc.c
3101
struct resource *res;
drivers/soc/tegra/pmc.c
4078
struct resource regs;
drivers/soc/tegra/pmc.c
4725
struct resource regs;
drivers/soc/ti/knav_dma.c
521
struct resource res;
drivers/soc/ti/knav_qmss_queue.c
1371
struct resource res;
drivers/soc/ti/pruss.c
423
struct resource res;
drivers/soc/ti/pruss.c
469
struct resource res;
drivers/soundwire/amd_init.c
107
struct resource *sdw_res __free(kfree) = kzalloc_obj(*sdw_res);
drivers/soundwire/amd_manager.c
984
struct resource *res;
drivers/spi/atmel-quadspi.c
1352
struct resource *res;
drivers/spi/spi-altera-platform.c
78
struct resource *regoff;
drivers/spi/spi-aspeed-smc.c
963
struct resource *res;
drivers/spi/spi-at91-usart.c
479
struct resource *regs;
drivers/spi/spi-atcspi200.c
473
struct resource **mem_res)
drivers/spi/spi-atcspi200.c
541
struct resource *mem_res)
drivers/spi/spi-atcspi200.c
558
struct resource *mem_res;
drivers/spi/spi-atmel.c
1512
struct resource *regs;
drivers/spi/spi-au1550.c
718
struct resource *r;
drivers/spi/spi-au1550.c
72
struct resource *ioarea;
drivers/spi/spi-bcm-qspi.c
1490
struct resource *res;
drivers/spi/spi-bcm63xx.c
494
struct resource *r;
drivers/spi/spi-cadence-quadspi.c
1795
struct resource *res_ahb;
drivers/spi/spi-cadence-xspi.c
1135
struct resource *res;
drivers/spi/spi-davinci.c
927
struct resource *r;
drivers/spi/spi-dw-mmio.c
318
struct resource *mem;
drivers/spi/spi-ep93xx.c
624
struct resource *res;
drivers/spi/spi-fsl-dspi.c
1535
struct resource *res;
drivers/spi/spi-fsl-espi.c
663
static int fsl_espi_probe(struct device *dev, struct resource *mem,
drivers/spi/spi-fsl-espi.c
759
struct resource mem;
drivers/spi/spi-fsl-lib.c
81
void mpc8xxx_spi_probe(struct device *dev, struct resource *mem,
drivers/spi/spi-fsl-lib.h
107
extern void mpc8xxx_spi_probe(struct device *dev, struct resource *mem,
drivers/spi/spi-fsl-lpspi.c
905
struct resource *res;
drivers/spi/spi-fsl-qspi.c
899
struct resource *res;
drivers/spi/spi-fsl-spi.c
529
struct resource *mem, unsigned int irq)
drivers/spi/spi-fsl-spi.c
639
struct resource mem;
drivers/spi/spi-fsl-spi.c
730
struct resource *mem;
drivers/spi/spi-img-spfi.c
529
struct resource *res;
drivers/spi/spi-imx.c
2224
struct resource *res;
drivers/spi/spi-ingenic.c
65
struct resource *mem_res;
drivers/spi/spi-jcore.c
146
struct resource *res;
drivers/spi/spi-microchip-core-spi.c
293
struct resource *res;
drivers/spi/spi-mpfs.c
531
struct resource *res;
drivers/spi/spi-mxic.c
758
struct resource *res;
drivers/spi/spi-npcm-fiu.c
251
struct resource *res_mem;
drivers/spi/spi-nxp-fspi.c
1291
struct resource *res;
drivers/spi/spi-nxp-xspi.c
1217
struct resource *res;
drivers/spi/spi-offload.c
110
struct spi_controller_and_offload *resource;
drivers/spi/spi-offload.c
120
resource = kzalloc_obj(*resource);
drivers/spi/spi-offload.c
121
if (!resource)
drivers/spi/spi-offload.c
126
kfree(resource);
drivers/spi/spi-offload.c
130
resource->controller = spi->controller;
drivers/spi/spi-offload.c
131
resource->offload = offload;
drivers/spi/spi-offload.c
133
ret = devm_add_action_or_reset(dev, spi_offload_put, resource);
drivers/spi/spi-offload.c
88
struct spi_controller_and_offload *resource = data;
drivers/spi/spi-offload.c
90
resource->controller->put_offload(resource->offload);
drivers/spi/spi-offload.c
91
kfree(resource);
drivers/spi/spi-omap2-mcspi.c
1473
struct resource *r;
drivers/spi/spi-orion.c
649
struct resource *r;
drivers/spi/spi-pic32.c
710
struct resource *mem;
drivers/spi/spi-ppc4xx.c
340
struct resource resource;
drivers/spi/spi-ppc4xx.c
397
ret = of_address_to_resource(np, 0, &resource);
drivers/spi/spi-ppc4xx.c
402
hw->mapbase = resource.start;
drivers/spi/spi-ppc4xx.c
403
hw->mapsize = resource_size(&resource);
drivers/spi/spi-pxa2xx-platform.c
25
struct resource *res;
drivers/spi/spi-qpic-snand.c
1507
struct resource *res;
drivers/spi/spi-qpic-snand.c
1611
struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
drivers/spi/spi-qup.c
1028
struct resource *res;
drivers/spi/spi-rockchip.c
762
struct resource *mem;
drivers/spi/spi-rspi.c
1131
const struct resource *res)
drivers/spi/spi-rspi.c
1284
struct resource *res;
drivers/spi/spi-rzv2h-rspi.c
277
.dst_addr = rspi->pdev->resource->start + RSPI_SPDR,
drivers/spi/spi-rzv2h-rspi.c
278
.src_addr = rspi->pdev->resource->start + RSPI_SPDR,
drivers/spi/spi-s3c64xx.c
1248
struct resource *mem_res;
drivers/spi/spi-sh-hspi.c
214
struct resource *res;
drivers/spi/spi-sh-msiof.c
1099
const struct resource *res;
drivers/spi/spi-sh-sci.c
116
struct resource *r;
drivers/spi/spi-sh.c
390
struct resource *res;
drivers/spi/spi-sprd-adi.c
513
struct resource *res;
drivers/spi/spi-sprd.c
921
struct resource *res;
drivers/spi/spi-stm32-ospi.c
797
struct resource *res, _res;
drivers/spi/spi-stm32-qspi.c
783
struct resource *res;
drivers/spi/spi-stm32.c
2355
struct resource *res;
drivers/spi/spi-sun6i.c
633
struct resource *mem;
drivers/spi/spi-tegra114.c
1301
struct resource *r;
drivers/spi/spi-tegra20-slink.c
1004
struct resource *r;
drivers/spi/spi-tegra210-quad.c
1704
struct resource *r;
drivers/spi/spi-ti-qspi.c
762
struct resource *r, *res_mmap;
drivers/spi/spi-uniphier.c
645
struct resource *res;
drivers/spi/spi-wpcm-fiu.c
442
struct resource *res;
drivers/spi/spi-xilinx.c
395
struct resource *res;
drivers/spi/spi.c
2877
struct resource r;
drivers/spmi/hisi-spmi-controller.c
267
struct resource *iores;
drivers/spmi/spmi-pmic-arb.c
2003
struct resource *res;
drivers/ssb/bridge_pcmcia_80211.c
42
dev->resource[2]->flags |= WIN_ENABLE | WIN_DATA_WIDTH_16 |
drivers/ssb/bridge_pcmcia_80211.c
44
dev->resource[2]->start = 0;
drivers/ssb/bridge_pcmcia_80211.c
45
dev->resource[2]->end = SSB_CORE_SIZE;
drivers/ssb/bridge_pcmcia_80211.c
46
res = pcmcia_request_window(dev, dev->resource[2], 250);
drivers/ssb/bridge_pcmcia_80211.c
50
res = pcmcia_map_mem_page(dev, dev->resource[2], 0);
drivers/ssb/bridge_pcmcia_80211.c
61
err = ssb_bus_pcmciabus_register(ssb, dev, dev->resource[2]->start);
drivers/ssb/driver_chipcommon_pmu.c
358
u8 resource; /* The resource number */
drivers/ssb/driver_chipcommon_pmu.c
369
u8 resource; /* The resource number */
drivers/ssb/driver_chipcommon_pmu.c
375
{ .resource = SSB_PMURES_4328_EXT_SWITCHER_PWM, .updown = 0x0101, },
drivers/ssb/driver_chipcommon_pmu.c
376
{ .resource = SSB_PMURES_4328_BB_SWITCHER_PWM, .updown = 0x1F01, },
drivers/ssb/driver_chipcommon_pmu.c
377
{ .resource = SSB_PMURES_4328_BB_SWITCHER_BURST, .updown = 0x010F, },
drivers/ssb/driver_chipcommon_pmu.c
378
{ .resource = SSB_PMURES_4328_BB_EXT_SWITCHER_BURST, .updown = 0x0101, },
drivers/ssb/driver_chipcommon_pmu.c
379
{ .resource = SSB_PMURES_4328_ILP_REQUEST, .updown = 0x0202, },
drivers/ssb/driver_chipcommon_pmu.c
380
{ .resource = SSB_PMURES_4328_RADIO_SWITCHER_PWM, .updown = 0x0F01, },
drivers/ssb/driver_chipcommon_pmu.c
381
{ .resource = SSB_PMURES_4328_RADIO_SWITCHER_BURST, .updown = 0x0F01, },
drivers/ssb/driver_chipcommon_pmu.c
382
{ .resource = SSB_PMURES_4328_ROM_SWITCH, .updown = 0x0101, },
drivers/ssb/driver_chipcommon_pmu.c
383
{ .resource = SSB_PMURES_4328_PA_REF_LDO, .updown = 0x0F01, },
drivers/ssb/driver_chipcommon_pmu.c
384
{ .resource = SSB_PMURES_4328_RADIO_LDO, .updown = 0x0F01, },
drivers/ssb/driver_chipcommon_pmu.c
385
{ .resource = SSB_PMURES_4328_AFE_LDO, .updown = 0x0F01, },
drivers/ssb/driver_chipcommon_pmu.c
386
{ .resource = SSB_PMURES_4328_PLL_LDO, .updown = 0x0F01, },
drivers/ssb/driver_chipcommon_pmu.c
387
{ .resource = SSB_PMURES_4328_BG_FILTBYP, .updown = 0x0101, },
drivers/ssb/driver_chipcommon_pmu.c
388
{ .resource = SSB_PMURES_4328_TX_FILTBYP, .updown = 0x0101, },
drivers/ssb/driver_chipcommon_pmu.c
389
{ .resource = SSB_PMURES_4328_RX_FILTBYP, .updown = 0x0101, },
drivers/ssb/driver_chipcommon_pmu.c
390
{ .resource = SSB_PMURES_4328_XTAL_PU, .updown = 0x0101, },
drivers/ssb/driver_chipcommon_pmu.c
391
{ .resource = SSB_PMURES_4328_XTAL_EN, .updown = 0xA001, },
drivers/ssb/driver_chipcommon_pmu.c
392
{ .resource = SSB_PMURES_4328_BB_PLL_FILTBYP, .updown = 0x0101, },
drivers/ssb/driver_chipcommon_pmu.c
393
{ .resource = SSB_PMURES_4328_RF_PLL_FILTBYP, .updown = 0x0101, },
drivers/ssb/driver_chipcommon_pmu.c
394
{ .resource = SSB_PMURES_4328_BB_PLL_PU, .updown = 0x0701, },
drivers/ssb/driver_chipcommon_pmu.c
400
.resource = SSB_PMURES_4328_ILP_REQUEST,
drivers/ssb/driver_chipcommon_pmu.c
408
{ .resource = SSB_PMURES_4325_XTAL_PU, .updown = 0x1501, },
drivers/ssb/driver_chipcommon_pmu.c
414
.resource = SSB_PMURES_4325_HT_AVAIL,
drivers/ssb/driver_chipcommon_pmu.c
481
updown_tab[i].resource);
drivers/ssb/driver_chipcommon_pmu.c
489
depend_tab[i].resource);
drivers/ssb/driver_chipcommon_sflash.c
12
static struct resource ssb_sflash_resource = {
drivers/ssb/driver_chipcommon_sflash.c
159
ssb_sflash_dev.resource[0].end = ssb_sflash_dev.resource[0].start +
drivers/ssb/driver_chipcommon_sflash.c
21
.resource = &ssb_sflash_resource,
drivers/ssb/driver_gige.c
244
if (!pdev->resource[0].name)
drivers/ssb/driver_gige.c
246
return (strcmp(pdev->resource[0].name, SSB_GIGE_MEM_RES_NAME) == 0);
drivers/ssb/driver_gige.c
254
struct resource *res;
drivers/ssb/driver_gige.c
262
res = &(pdev->resource[0]);
drivers/ssb/driver_mipscore.c
30
static struct resource ssb_pflash_resource = {
drivers/ssb/driver_mipscore.c
40
.resource = &ssb_pflash_resource,
drivers/ssb/driver_pcicore.c
238
static struct resource ssb_pcicore_mem_resource = {
drivers/ssb/driver_pcicore.c
245
static struct resource ssb_pcicore_io_resource = {
drivers/staging/axis-fifo/axis-fifo.c
453
struct resource *r_mem;
drivers/staging/most/dim2/dim2.c
754
struct resource *res;
drivers/staging/vme_user/vme.c
105
void vme_free_consistent(struct vme_resource *resource, size_t size,
drivers/staging/vme_user/vme.c
108
struct vme_bridge *bridge = find_bridge(resource);
drivers/staging/vme_user/vme.c
1171
int vme_dma_free(struct vme_resource *resource)
drivers/staging/vme_user/vme.c
1173
struct vme_bridge *bridge = find_bridge(resource);
drivers/staging/vme_user/vme.c
1176
if (resource->type != VME_DMA) {
drivers/staging/vme_user/vme.c
1181
ctrlr = list_entry(resource->entry, struct vme_dma_resource, list);
drivers/staging/vme_user/vme.c
1199
kfree(resource);
drivers/staging/vme_user/vme.c
131
size_t vme_get_size(struct vme_resource *resource)
drivers/staging/vme_user/vme.c
133
struct vme_bridge *bridge = find_bridge(resource);
drivers/staging/vme_user/vme.c
139
switch (resource->type) {
drivers/staging/vme_user/vme.c
141
retval = vme_master_get(resource, &enabled, &base, &size,
drivers/staging/vme_user/vme.c
1430
struct vme_resource *resource = NULL;
drivers/staging/vme_user/vme.c
1461
resource = kmalloc_obj(*resource);
drivers/staging/vme_user/vme.c
1462
if (!resource)
drivers/staging/vme_user/vme.c
1465
resource->type = VME_LM;
drivers/staging/vme_user/vme.c
1466
resource->entry = &allocated_lm->list;
drivers/staging/vme_user/vme.c
1468
return resource;
drivers/staging/vme_user/vme.c
148
retval = vme_slave_get(resource, &enabled, &base, &size,
drivers/staging/vme_user/vme.c
1492
int vme_lm_count(struct vme_resource *resource)
drivers/staging/vme_user/vme.c
1494
struct vme_bridge *bridge = find_bridge(resource);
drivers/staging/vme_user/vme.c
1497
if (resource->type != VME_LM) {
drivers/staging/vme_user/vme.c
1502
lm = list_entry(resource->entry, struct vme_lm_resource, list);
drivers/staging/vme_user/vme.c
1522
int vme_lm_set(struct vme_resource *resource, unsigned long long lm_base,
drivers/staging/vme_user/vme.c
1525
struct vme_bridge *bridge = find_bridge(resource);
drivers/staging/vme_user/vme.c
1528
if (resource->type != VME_LM) {
drivers/staging/vme_user/vme.c
1533
lm = list_entry(resource->entry, struct vme_lm_resource, list);
drivers/staging/vme_user/vme.c
1558
int vme_lm_get(struct vme_resource *resource, unsigned long long *lm_base,
drivers/staging/vme_user/vme.c
1561
struct vme_bridge *bridge = find_bridge(resource);
drivers/staging/vme_user/vme.c
1564
if (resource->type != VME_LM) {
drivers/staging/vme_user/vme.c
1569
lm = list_entry(resource->entry, struct vme_lm_resource, list);
drivers/staging/vme_user/vme.c
1595
int vme_lm_attach(struct vme_resource *resource, int monitor,
drivers/staging/vme_user/vme.c
1598
struct vme_bridge *bridge = find_bridge(resource);
drivers/staging/vme_user/vme.c
1601
if (resource->type != VME_LM) {
drivers/staging/vme_user/vme.c
1606
lm = list_entry(resource->entry, struct vme_lm_resource, list);
drivers/staging/vme_user/vme.c
1629
int vme_lm_detach(struct vme_resource *resource, int monitor)
drivers/staging/vme_user/vme.c
1631
struct vme_bridge *bridge = find_bridge(resource);
drivers/staging/vme_user/vme.c
1634
if (resource->type != VME_LM) {
drivers/staging/vme_user/vme.c
1639
lm = list_entry(resource->entry, struct vme_lm_resource, list);
drivers/staging/vme_user/vme.c
1662
void vme_lm_free(struct vme_resource *resource)
drivers/staging/vme_user/vme.c
1664
struct vme_bridge *bridge = find_bridge(resource);
drivers/staging/vme_user/vme.c
1667
if (resource->type != VME_LM) {
drivers/staging/vme_user/vme.c
1672
lm = list_entry(resource->entry, struct vme_lm_resource, list);
drivers/staging/vme_user/vme.c
1685
kfree(resource);
drivers/staging/vme_user/vme.c
257
struct vme_resource *resource = NULL;
drivers/staging/vme_user/vme.c
290
resource = kmalloc_obj(*resource);
drivers/staging/vme_user/vme.c
291
if (!resource)
drivers/staging/vme_user/vme.c
294
resource->type = VME_SLAVE;
drivers/staging/vme_user/vme.c
295
resource->entry = &allocated_image->list;
drivers/staging/vme_user/vme.c
297
return resource;
drivers/staging/vme_user/vme.c
327
int vme_slave_set(struct vme_resource *resource, int enabled,
drivers/staging/vme_user/vme.c
331
struct vme_bridge *bridge = find_bridge(resource);
drivers/staging/vme_user/vme.c
335
if (resource->type != VME_SLAVE) {
drivers/staging/vme_user/vme.c
340
image = list_entry(resource->entry, struct vme_slave_resource, list);
drivers/staging/vme_user/vme.c
377
int vme_slave_get(struct vme_resource *resource, int *enabled,
drivers/staging/vme_user/vme.c
381
struct vme_bridge *bridge = find_bridge(resource);
drivers/staging/vme_user/vme.c
384
if (resource->type != VME_SLAVE) {
drivers/staging/vme_user/vme.c
389
image = list_entry(resource->entry, struct vme_slave_resource, list);
drivers/staging/vme_user/vme.c
407
void vme_slave_free(struct vme_resource *resource)
drivers/staging/vme_user/vme.c
409
struct vme_bridge *bridge = find_bridge(resource);
drivers/staging/vme_user/vme.c
412
if (resource->type != VME_SLAVE) {
drivers/staging/vme_user/vme.c
417
slave_image = list_entry(resource->entry, struct vme_slave_resource,
drivers/staging/vme_user/vme.c
429
kfree(resource);
drivers/staging/vme_user/vme.c
451
struct vme_resource *resource = NULL;
drivers/staging/vme_user/vme.c
48
static struct vme_bridge *find_bridge(struct vme_resource *resource)
drivers/staging/vme_user/vme.c
487
resource = kmalloc_obj(*resource);
drivers/staging/vme_user/vme.c
488
if (!resource)
drivers/staging/vme_user/vme.c
491
resource->type = VME_MASTER;
drivers/staging/vme_user/vme.c
492
resource->entry = &allocated_image->list;
drivers/staging/vme_user/vme.c
494
return resource;
drivers/staging/vme_user/vme.c
51
switch (resource->type) {
drivers/staging/vme_user/vme.c
524
int vme_master_set(struct vme_resource *resource, int enabled,
drivers/staging/vme_user/vme.c
528
struct vme_bridge *bridge = find_bridge(resource);
drivers/staging/vme_user/vme.c
53
return list_entry(resource->entry, struct vme_master_resource,
drivers/staging/vme_user/vme.c
532
if (resource->type != VME_MASTER) {
drivers/staging/vme_user/vme.c
537
image = list_entry(resource->entry, struct vme_master_resource, list);
drivers/staging/vme_user/vme.c
56
return list_entry(resource->entry, struct vme_slave_resource,
drivers/staging/vme_user/vme.c
575
int vme_master_get(struct vme_resource *resource, int *enabled,
drivers/staging/vme_user/vme.c
579
struct vme_bridge *bridge = find_bridge(resource);
drivers/staging/vme_user/vme.c
582
if (resource->type != VME_MASTER) {
drivers/staging/vme_user/vme.c
587
image = list_entry(resource->entry, struct vme_master_resource, list);
drivers/staging/vme_user/vme.c
59
return list_entry(resource->entry, struct vme_dma_resource,
drivers/staging/vme_user/vme.c
614
ssize_t vme_master_read(struct vme_resource *resource, void *buf, size_t count,
drivers/staging/vme_user/vme.c
617
struct vme_bridge *bridge = find_bridge(resource);
drivers/staging/vme_user/vme.c
62
return list_entry(resource->entry, struct vme_lm_resource,
drivers/staging/vme_user/vme.c
627
if (resource->type != VME_MASTER) {
drivers/staging/vme_user/vme.c
632
image = list_entry(resource->entry, struct vme_master_resource, list);
drivers/staging/vme_user/vme.c
634
length = vme_get_size(resource);
drivers/staging/vme_user/vme.c
663
ssize_t vme_master_write(struct vme_resource *resource, void *buf,
drivers/staging/vme_user/vme.c
666
struct vme_bridge *bridge = find_bridge(resource);
drivers/staging/vme_user/vme.c
675
if (resource->type != VME_MASTER) {
drivers/staging/vme_user/vme.c
680
image = list_entry(resource->entry, struct vme_master_resource, list);
drivers/staging/vme_user/vme.c
682
length = vme_get_size(resource);
drivers/staging/vme_user/vme.c
715
unsigned int vme_master_rmw(struct vme_resource *resource, unsigned int mask,
drivers/staging/vme_user/vme.c
718
struct vme_bridge *bridge = find_bridge(resource);
drivers/staging/vme_user/vme.c
726
if (resource->type != VME_MASTER) {
drivers/staging/vme_user/vme.c
731
image = list_entry(resource->entry, struct vme_master_resource, list);
drivers/staging/vme_user/vme.c
748
int vme_master_mmap(struct vme_resource *resource, struct vm_area_struct *vma)
drivers/staging/vme_user/vme.c
750
struct vme_bridge *bridge = find_bridge(resource);
drivers/staging/vme_user/vme.c
755
if (resource->type != VME_MASTER) {
drivers/staging/vme_user/vme.c
760
image = list_entry(resource->entry, struct vme_master_resource, list);
drivers/staging/vme_user/vme.c
781
void vme_master_free(struct vme_resource *resource)
drivers/staging/vme_user/vme.c
783
struct vme_bridge *bridge = find_bridge(resource);
drivers/staging/vme_user/vme.c
786
if (resource->type != VME_MASTER) {
drivers/staging/vme_user/vme.c
791
master_image = list_entry(resource->entry, struct vme_master_resource,
drivers/staging/vme_user/vme.c
80
void *vme_alloc_consistent(struct vme_resource *resource, size_t size,
drivers/staging/vme_user/vme.c
803
kfree(resource);
drivers/staging/vme_user/vme.c
822
struct vme_resource *resource = NULL;
drivers/staging/vme_user/vme.c
83
struct vme_bridge *bridge = find_bridge(resource);
drivers/staging/vme_user/vme.c
857
resource = kmalloc_obj(*resource);
drivers/staging/vme_user/vme.c
858
if (!resource)
drivers/staging/vme_user/vme.c
861
resource->type = VME_DMA;
drivers/staging/vme_user/vme.c
862
resource->entry = &allocated_ctrlr->list;
drivers/staging/vme_user/vme.c
864
return resource;
drivers/staging/vme_user/vme.c
887
struct vme_dma_list *vme_new_dma_list(struct vme_resource *resource)
drivers/staging/vme_user/vme.c
889
struct vme_bridge *bridge = find_bridge(resource);
drivers/staging/vme_user/vme.c
892
if (resource->type != VME_DMA) {
drivers/staging/vme_user/vme.c
902
dma_list->parent = list_entry(resource->entry,
drivers/staging/vme_user/vme.h
131
void *vme_alloc_consistent(struct vme_resource *resource, size_t size, dma_addr_t *dma);
drivers/staging/vme_user/vme.h
132
void vme_free_consistent(struct vme_resource *resource, size_t size, void *vaddr, dma_addr_t dma);
drivers/staging/vme_user/vme.h
134
size_t vme_get_size(struct vme_resource *resource);
drivers/staging/vme_user/vme.h
139
int vme_slave_set(struct vme_resource *resource, int enabled, unsigned long long vme_base,
drivers/staging/vme_user/vme.h
141
int vme_slave_get(struct vme_resource *resource, int *enabled, unsigned long long *vme_base,
drivers/staging/vme_user/vme.h
143
void vme_slave_free(struct vme_resource *resource);
drivers/staging/vme_user/vme.h
146
int vme_master_set(struct vme_resource *resource, int enabled, unsigned long long vme_base,
drivers/staging/vme_user/vme.h
148
int vme_master_get(struct vme_resource *resource, int *enabled, unsigned long long *vme_base,
drivers/staging/vme_user/vme.h
150
ssize_t vme_master_read(struct vme_resource *resource, void *buf, size_t count, loff_t offset);
drivers/staging/vme_user/vme.h
151
ssize_t vme_master_write(struct vme_resource *resource, void *buf, size_t count, loff_t offset);
drivers/staging/vme_user/vme.h
152
unsigned int vme_master_rmw(struct vme_resource *resource, unsigned int mask, unsigned int compare,
drivers/staging/vme_user/vme.h
154
int vme_master_mmap(struct vme_resource *resource, struct vm_area_struct *vma);
drivers/staging/vme_user/vme.h
155
void vme_master_free(struct vme_resource *resource);
drivers/staging/vme_user/vme.h
158
struct vme_dma_list *vme_new_dma_list(struct vme_resource *resource);
drivers/staging/vme_user/vme.h
168
int vme_dma_free(struct vme_resource *resource);
drivers/staging/vme_user/vme.h
176
int vme_lm_count(struct vme_resource *resource);
drivers/staging/vme_user/vme.h
177
int vme_lm_set(struct vme_resource *resource, unsigned long long lm_base, u32 aspace, u32 cycle);
drivers/staging/vme_user/vme.h
178
int vme_lm_get(struct vme_resource *resource, unsigned long long *lm_base, u32 *aspace, u32 *cycle);
drivers/staging/vme_user/vme.h
179
int vme_lm_attach(struct vme_resource *resource, int monitor, void (*callback)(void *), void *data);
drivers/staging/vme_user/vme.h
180
int vme_lm_detach(struct vme_resource *resource, int monitor);
drivers/staging/vme_user/vme.h
181
void vme_lm_free(struct vme_resource *resource);
drivers/staging/vme_user/vme_bridge.h
24
struct resource bus_resource;
drivers/staging/vme_user/vme_fake.c
1122
sizeof(struct resource));
drivers/staging/vme_user/vme_user.c
130
copied = vme_master_read(image[minor].resource, image[minor].kern_buf,
drivers/staging/vme_user/vme_user.c
150
return vme_master_write(image[minor].resource, image[minor].kern_buf,
drivers/staging/vme_user/vme_user.c
191
image_size = vme_get_size(image[minor].resource);
drivers/staging/vme_user/vme_user.c
233
image_size = vme_get_size(image[minor].resource);
drivers/staging/vme_user/vme_user.c
274
image_size = vme_get_size(image[minor].resource);
drivers/staging/vme_user/vme_user.c
329
retval = vme_master_get(image[minor].resource,
drivers/staging/vme_user/vme_user.c
360
return vme_master_set(image[minor].resource,
drivers/staging/vme_user/vme_user.c
375
retval = vme_slave_get(image[minor].resource,
drivers/staging/vme_user/vme_user.c
400
return vme_slave_set(image[minor].resource,
drivers/staging/vme_user/vme_user.c
461
err = vme_master_mmap(image[minor].resource, vma);
drivers/staging/vme_user/vme_user.c
542
image[i].resource = NULL;
drivers/staging/vme_user/vme_user.c
572
image[i].resource = vme_slave_request(vme_user_bridge,
drivers/staging/vme_user/vme_user.c
574
if (!image[i].resource) {
drivers/staging/vme_user/vme_user.c
581
image[i].kern_buf = vme_alloc_consistent(image[i].resource,
drivers/staging/vme_user/vme_user.c
588
vme_slave_free(image[i].resource);
drivers/staging/vme_user/vme_user.c
600
image[i].resource = vme_master_request(vme_user_bridge,
drivers/staging/vme_user/vme_user.c
603
if (!image[i].resource) {
drivers/staging/vme_user/vme_user.c
613
vme_master_free(image[i].resource);
drivers/staging/vme_user/vme_user.c
670
vme_master_free(image[i].resource);
drivers/staging/vme_user/vme_user.c
680
vme_free_consistent(image[i].resource, image[i].size_buf,
drivers/staging/vme_user/vme_user.c
682
vme_slave_free(image[i].resource);
drivers/staging/vme_user/vme_user.c
706
vme_master_free(image[i].resource);
drivers/staging/vme_user/vme_user.c
710
vme_slave_set(image[i].resource, 0, 0, 0, 0, VME_A32, 0);
drivers/staging/vme_user/vme_user.c
711
vme_free_consistent(image[i].resource, image[i].size_buf,
drivers/staging/vme_user/vme_user.c
713
vme_slave_free(image[i].resource);
drivers/staging/vme_user/vme_user.c
97
struct vme_resource *resource; /* VME resource */
drivers/tc/tc.c
119
tdev->resource.start = slotaddr;
drivers/tc/tc.c
120
tdev->resource.end = slotaddr + devsize - 1;
drivers/tc/tc.c
122
tdev->resource.start = extslotaddr;
drivers/tc/tc.c
123
tdev->resource.end = extslotaddr + devsize - 1;
drivers/tc/tc.c
132
tdev->resource.name = tdev->name;
drivers/tc/tc.c
133
tdev->resource.flags = IORESOURCE_MEM;
drivers/tc/tc.c
170
tc_bus.resource[0].start = tc_bus.slot_base;
drivers/tc/tc.c
171
tc_bus.resource[0].end = tc_bus.slot_base +
drivers/tc/tc.c
174
tc_bus.resource[0].name = tc_bus.name;
drivers/tc/tc.c
175
tc_bus.resource[0].flags = IORESOURCE_MEM;
drivers/tc/tc.c
177
&tc_bus.resource[0]) < 0) {
drivers/tc/tc.c
182
tc_bus.resource[1].start = tc_bus.ext_slot_base;
drivers/tc/tc.c
183
tc_bus.resource[1].end = tc_bus.ext_slot_base +
drivers/tc/tc.c
186
tc_bus.resource[1].name = tc_bus.name;
drivers/tc/tc.c
187
tc_bus.resource[1].flags = IORESOURCE_MEM;
drivers/tc/tc.c
189
&tc_bus.resource[1]) < 0) {
drivers/tc/tc.c
201
release_resource(&tc_bus.resource[0]);
drivers/thermal/airoha_thermal.c
199
struct resource scu_adc_res;
drivers/thermal/broadcom/sr-thermal.c
53
struct resource *res;
drivers/thermal/k3_bandgap.c
162
struct resource *res;
drivers/thermal/k3_j72xx_bandgap.c
388
struct resource *res;
drivers/thermal/mediatek/auxadc_thermal.c
984
struct resource res;
drivers/thermal/mediatek/lvts_thermal.c
1450
struct resource *res;
drivers/thermal/qcom/tsens.c
894
struct resource *res;
drivers/thermal/renesas/rcar_gen3_thermal.c
516
struct resource *res;
drivers/thermal/renesas/rcar_thermal.c
398
struct resource *res;
drivers/thermal/samsung/exynos_tmu.c
844
struct resource res;
drivers/thermal/ti-soc-thermal/ti-bandgap.c
823
struct resource *res;
drivers/tty/goldfish.c
288
struct resource *r;
drivers/tty/ipwireless/main.c
102
p_dev->resource[2]->flags |=
drivers/tty/ipwireless/main.c
105
ret = pcmcia_request_window(p_dev, p_dev->resource[2], 0);
drivers/tty/ipwireless/main.c
109
ret = pcmcia_map_mem_page(p_dev, p_dev->resource[2], p_dev->card_addr);
drivers/tty/ipwireless/main.c
113
ipw->is_v2_card = resource_size(p_dev->resource[2]) == 0x100;
drivers/tty/ipwireless/main.c
115
ipw->common_memory = ioremap(p_dev->resource[2]->start,
drivers/tty/ipwireless/main.c
116
resource_size(p_dev->resource[2]));
drivers/tty/ipwireless/main.c
121
if (!request_mem_region(p_dev->resource[2]->start,
drivers/tty/ipwireless/main.c
122
resource_size(p_dev->resource[2]),
drivers/tty/ipwireless/main.c
128
p_dev->resource[3]->flags |= WIN_DATA_WIDTH_16 | WIN_MEMORY_TYPE_AM |
drivers/tty/ipwireless/main.c
130
p_dev->resource[3]->end = 0; /* this used to be 0x1000 */
drivers/tty/ipwireless/main.c
131
ret = pcmcia_request_window(p_dev, p_dev->resource[3], 0);
drivers/tty/ipwireless/main.c
135
ret = pcmcia_map_mem_page(p_dev, p_dev->resource[3], 0);
drivers/tty/ipwireless/main.c
139
ipw->attr_memory = ioremap(p_dev->resource[3]->start,
drivers/tty/ipwireless/main.c
140
resource_size(p_dev->resource[3]));
drivers/tty/ipwireless/main.c
145
if (!request_mem_region(p_dev->resource[3]->start,
drivers/tty/ipwireless/main.c
146
resource_size(p_dev->resource[3]),
drivers/tty/ipwireless/main.c
157
release_mem_region(p_dev->resource[2]->start,
drivers/tty/ipwireless/main.c
158
resource_size(p_dev->resource[2]));
drivers/tty/ipwireless/main.c
162
release_region(p_dev->resource[0]->start,
drivers/tty/ipwireless/main.c
163
resource_size(p_dev->resource[0]));
drivers/tty/ipwireless/main.c
184
ipwireless_init_hardware_v1(ipw->hardware, link->resource[0]->start,
drivers/tty/ipwireless/main.c
196
": I/O ports %pR, irq %d\n", link->resource[0],
drivers/tty/ipwireless/main.c
201
link->resource[3],
drivers/tty/ipwireless/main.c
202
link->resource[2]);
drivers/tty/ipwireless/main.c
226
release_mem_region(link->resource[2]->start,
drivers/tty/ipwireless/main.c
227
resource_size(link->resource[2]));
drivers/tty/ipwireless/main.c
231
release_mem_region(link->resource[3]->start,
drivers/tty/ipwireless/main.c
232
resource_size(link->resource[3]));
drivers/tty/ipwireless/main.c
241
release_region(ipw->link->resource[0]->start,
drivers/tty/ipwireless/main.c
242
resource_size(ipw->link->resource[0]));
drivers/tty/ipwireless/main.c
244
release_mem_region(ipw->link->resource[2]->start,
drivers/tty/ipwireless/main.c
245
resource_size(ipw->link->resource[2]));
drivers/tty/ipwireless/main.c
249
release_mem_region(ipw->link->resource[3]->start,
drivers/tty/ipwireless/main.c
250
resource_size(ipw->link->resource[3]));
drivers/tty/ipwireless/main.c
84
p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH;
drivers/tty/ipwireless/main.c
85
p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO;
drivers/tty/ipwireless/main.c
95
if (!request_region(p_dev->resource[0]->start,
drivers/tty/ipwireless/main.c
96
resource_size(p_dev->resource[0]),
drivers/tty/serial/8250/8250_aspeed_vuart.c
422
struct resource *res;
drivers/tty/serial/8250/8250_bcm2835aux.c
88
struct resource *res;
drivers/tty/serial/8250/8250_bcm7271.c
954
struct resource *regs;
drivers/tty/serial/8250/8250_dw.c
700
struct resource *regs;
drivers/tty/serial/8250/8250_em.c
158
struct resource *regs;
drivers/tty/serial/8250/8250_fsl.c
111
struct resource *regs;
drivers/tty/serial/8250/8250_hp300.c
176
uart.port.mapbase = (d->resource.start + UART_OFFSET);
drivers/tty/serial/8250/8250_hp300.c
190
out_8(d->resource.start + DIO_VIRADDRBASE + DCA_IC, DCA_IC_IE);
drivers/tty/serial/8250/8250_hp300.c
194
out_8(d->resource.start + DIO_VIRADDRBASE + DCA_ID, 0xff);
drivers/tty/serial/8250/8250_hp300.c
293
if (d->resource.start) {
drivers/tty/serial/8250/8250_hp300.c
295
out_8(d->resource.start + DIO_VIRADDRBASE + DCA_IC, 0);
drivers/tty/serial/8250/8250_ingenic.c
236
struct resource *regs;
drivers/tty/serial/8250/8250_ioc3.c
38
struct resource *r;
drivers/tty/serial/8250/8250_keba.c
176
struct resource res;
drivers/tty/serial/8250/8250_loongson.c
49
struct resource *res;
drivers/tty/serial/8250/8250_lpc18xx.c
94
struct resource *res;
drivers/tty/serial/8250/8250_men_mcb.c
112
struct resource *mem_res,
drivers/tty/serial/8250/8250_men_mcb.c
161
struct resource *mem_res,
drivers/tty/serial/8250/8250_men_mcb.c
183
struct resource *mem;
drivers/tty/serial/8250/8250_men_mcb.c
80
static int read_uarts_available_from_register(struct resource *mem_res,
drivers/tty/serial/8250/8250_mtk.c
522
struct resource *regs;
drivers/tty/serial/8250/8250_ni.c
229
struct resource *regs;
drivers/tty/serial/8250/8250_of.c
103
ret = of_address_to_resource(np, 0, &resource);
drivers/tty/serial/8250/8250_of.c
113
if (resource_type(&resource) == IORESOURCE_IO) {
drivers/tty/serial/8250/8250_of.c
114
port->iobase = resource.start;
drivers/tty/serial/8250/8250_of.c
116
port->mapbase = resource.start;
drivers/tty/serial/8250/8250_of.c
117
port->mapsize = resource_size(&resource);
drivers/tty/serial/8250/8250_of.c
91
struct resource resource;
drivers/tty/serial/8250/8250_omap.c
1420
struct resource *regs;
drivers/tty/serial/8250/8250_pci.c
801
pcibios_resource_to_bus(dev->bus, ®ion, &dev->resource[bar]);
drivers/tty/serial/8250/8250_pci.c
976
struct resource *iobase = NULL;
drivers/tty/serial/8250/8250_platform.c
111
struct resource *regs;
drivers/tty/serial/8250/8250_pxa.c
94
struct resource *mmres;
drivers/tty/serial/8250/8250_tegra.c
48
struct resource *res;
drivers/tty/serial/8250/8250_uniphier.c
163
struct resource *regs;
drivers/tty/serial/8250/serial_cs.c
384
if ((p_dev->resource[1]->end != 0) &&
drivers/tty/serial/8250/serial_cs.c
385
(resource_size(p_dev->resource[1]) == 8)) {
drivers/tty/serial/8250/serial_cs.c
386
port = p_dev->resource[1]->start;
drivers/tty/serial/8250/serial_cs.c
389
(resource_size(p_dev->resource[0]) == 0x40)) {
drivers/tty/serial/8250/serial_cs.c
390
port = p_dev->resource[0]->start + 0x28;
drivers/tty/serial/8250/serial_cs.c
405
if (p_dev->resource[0]->start == 0)
drivers/tty/serial/8250/serial_cs.c
411
if (p_dev->resource[0]->end != size_table[(*try >> 1)])
drivers/tty/serial/8250/serial_cs.c
414
p_dev->resource[0]->end = 8;
drivers/tty/serial/8250/serial_cs.c
415
p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH;
drivers/tty/serial/8250/serial_cs.c
416
p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_8;
drivers/tty/serial/8250/serial_cs.c
430
p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH;
drivers/tty/serial/8250/serial_cs.c
431
p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_8;
drivers/tty/serial/8250/serial_cs.c
432
p_dev->resource[0]->end = 8;
drivers/tty/serial/8250/serial_cs.c
435
p_dev->resource[0]->start = base[j];
drivers/tty/serial/8250/serial_cs.c
481
return setup_serial(link, info, link->resource[0]->start, link->irq);
drivers/tty/serial/8250/serial_cs.c
488
if (p_dev->resource[1]->end)
drivers/tty/serial/8250/serial_cs.c
495
if (p_dev->resource[0]->end <= 8)
drivers/tty/serial/8250/serial_cs.c
498
p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH;
drivers/tty/serial/8250/serial_cs.c
499
p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_8;
drivers/tty/serial/8250/serial_cs.c
500
p_dev->resource[0]->end = *multi * 8;
drivers/tty/serial/8250/serial_cs.c
512
if (!p_dev->resource[0]->end || !p_dev->resource[1]->end ||
drivers/tty/serial/8250/serial_cs.c
513
p_dev->resource[0]->start + 8 != p_dev->resource[1]->start)
drivers/tty/serial/8250/serial_cs.c
516
p_dev->resource[0]->end = p_dev->resource[1]->end = 8;
drivers/tty/serial/8250/serial_cs.c
517
p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH;
drivers/tty/serial/8250/serial_cs.c
518
p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_8;
drivers/tty/serial/8250/serial_cs.c
523
*base2 = p_dev->resource[0]->start + 8;
drivers/tty/serial/8250/serial_cs.c
534
base2 = link->resource[0]->start + 8;
drivers/tty/serial/8250/serial_cs.c
568
base2 = link->resource[0]->start;
drivers/tty/serial/8250/serial_cs.c
570
setup_serial(link, info, link->resource[0]->start,
drivers/tty/serial/8250/serial_cs.c
585
setup_serial(link, info, link->resource[0]->start, link->irq);
drivers/tty/serial/8250/serial_cs.c
596
if (!p_dev->resource[0]->end)
drivers/tty/serial/8250/serial_cs.c
599
if ((!p_dev->resource[1]->end) && (p_dev->resource[0]->end % 8 == 0))
drivers/tty/serial/8250/serial_cs.c
600
info->multi = p_dev->resource[0]->end >> 3;
drivers/tty/serial/8250/serial_cs.c
602
if ((p_dev->resource[1]->end) && (p_dev->resource[0]->end == 8)
drivers/tty/serial/8250/serial_cs.c
603
&& (p_dev->resource[1]->end == 8))
drivers/tty/serial/altera_jtaguart.c
379
struct resource *res_mem;
drivers/tty/serial/altera_uart.c
532
struct resource *res_mem;
drivers/tty/serial/amba-pl011.c
2815
struct resource *mmiobase, int index)
drivers/tty/serial/amba-pl011.c
2986
struct resource *r;
drivers/tty/serial/ar933x_uart.c
765
struct resource *mem_res;
drivers/tty/serial/atmel_serial.c
2396
int size = resource_size(mpdev->resource);
drivers/tty/serial/atmel_serial.c
2524
port->mapbase = mpdev->resource[0].start;
drivers/tty/serial/bcm63xx_uart.c
810
struct resource *res_mem;
drivers/tty/serial/clps711x.c
442
struct resource *res;
drivers/tty/serial/cpm_uart.c
1209
struct resource res;
drivers/tty/serial/digicolor-usart.c
454
struct resource *res;
drivers/tty/serial/esp32_acm.c
371
struct resource *res;
drivers/tty/serial/esp32_uart.c
684
struct resource *res;
drivers/tty/serial/fsl_linflexuart.c
811
struct resource *res;
drivers/tty/serial/fsl_lpuart.c
2868
struct resource *res;
drivers/tty/serial/imx.c
2416
struct resource *res;
drivers/tty/serial/ip22zilog.c
1061
struct resource *res;
drivers/tty/serial/lantiq.c
512
struct resource *res;
drivers/tty/serial/lantiq.c
809
struct resource *mmres;
drivers/tty/serial/lpc32xx_hs.c
609
struct resource *res;
drivers/tty/serial/ma35d1_serial.c
687
struct resource *res_mem;
drivers/tty/serial/men_z135_uart.c
122
struct resource *mem;
drivers/tty/serial/men_z135_uart.c
735
struct resource *mem;
drivers/tty/serial/men_z135_uart.c
804
struct resource *mem;
drivers/tty/serial/meson_uart.c
699
struct resource *res_mem;
drivers/tty/serial/milbeaut_usio.c
501
struct resource *res;
drivers/tty/serial/mpc52xx_uart.c
1570
struct resource res;
drivers/tty/serial/mpc52xx_uart.c
1703
struct resource res;
drivers/tty/serial/mps2-uart.c
538
struct resource *res;
drivers/tty/serial/msm_serial.c
1361
struct resource *uart_resource;
drivers/tty/serial/msm_serial.c
1377
struct resource *uart_resource;
drivers/tty/serial/msm_serial.c
1800
struct resource *resource;
drivers/tty/serial/msm_serial.c
1850
resource = platform_get_resource(pdev, IORESOURCE_MEM, 0);
drivers/tty/serial/msm_serial.c
1851
if (unlikely(!resource))
drivers/tty/serial/msm_serial.c
1853
port->mapbase = resource->start;
drivers/tty/serial/mvebu-uart.c
1333
struct resource *res;
drivers/tty/serial/mvebu-uart.c
881
struct resource *reg;
drivers/tty/serial/mxs-auart.c
1575
struct resource *r;
drivers/tty/serial/omap-serial.c
1543
struct resource *mem;
drivers/tty/serial/owl-uart.c
382
struct resource *res;
drivers/tty/serial/owl-uart.c
399
struct resource *res;
drivers/tty/serial/owl-uart.c
648
struct resource *res_mem;
drivers/tty/serial/pic32_uart.c
680
struct resource *res_mem;
drivers/tty/serial/pic32_uart.c
705
struct resource *res_mem;
drivers/tty/serial/pic32_uart.c
868
struct resource *res_mem;
drivers/tty/serial/pmac_zilog.c
1355
struct resource r_ports;
drivers/tty/serial/pmac_zilog.c
1621
struct resource *r_ports;
drivers/tty/serial/pxa.c
802
struct resource *mmres;
drivers/tty/serial/qcom_geni_serial.c
1787
struct resource *res;
drivers/tty/serial/rda-uart.c
484
struct resource *res;
drivers/tty/serial/rda-uart.c
527
struct resource *res;
drivers/tty/serial/rda-uart.c
705
struct resource *res_mem;
drivers/tty/serial/sa1100.c
855
struct resource *res;
drivers/tty/serial/samsung_tty.c
1823
struct resource *res;
drivers/tty/serial/sccnxp.c
887
struct resource *res;
drivers/tty/serial/serial-tegra.c
1561
struct resource *resource;
drivers/tty/serial/serial-tegra.c
1590
u->membase = devm_platform_get_and_ioremap_resource(pdev, 0, &resource);
drivers/tty/serial/serial-tegra.c
1593
u->mapbase = resource->start;
drivers/tty/serial/sh-sci.c
3014
struct resource *res;
drivers/tty/serial/sh-sci.c
3276
const struct resource *res;
drivers/tty/serial/sh-sci.c
3789
struct resource *sci_res)
drivers/tty/serial/sh-sci.c
3866
struct resource *res;
drivers/tty/serial/sifive.c
976
struct resource *mem;
drivers/tty/serial/sprd_serial.c
1179
struct resource *res;
drivers/tty/serial/st-asc.c
691
struct resource *res;
drivers/tty/serial/stm32-usart.c
1567
struct resource *res;
drivers/tty/serial/sunplus-uart.c
590
struct resource *res;
drivers/tty/serial/sunsab.c
1060
of_iounmap(&op->resource[0],
drivers/tty/serial/sunsab.c
1064
of_iounmap(&op->resource[0],
drivers/tty/serial/sunsab.c
1077
of_iounmap(&op->resource[0],
drivers/tty/serial/sunsab.c
1080
of_iounmap(&op->resource[0],
drivers/tty/serial/sunsab.c
969
up->port.mapbase = op->resource[0].start + offset;
drivers/tty/serial/sunsab.c
970
up->port.membase = of_ioremap(&op->resource[0], offset,
drivers/tty/serial/sunsu.c
1390
struct resource *rp;
drivers/tty/serial/sunsu.c
1412
rp = &op->resource[0];
drivers/tty/serial/sunsu.c
1434
of_iounmap(&op->resource[0],
drivers/tty/serial/sunsu.c
1475
of_iounmap(&op->resource[0], up->port.membase, up->reg_size);
drivers/tty/serial/sunsu.c
1497
of_iounmap(&op->resource[0], up->port.membase, up->reg_size);
drivers/tty/serial/sunzilog.c
1414
sunzilog_chip_regs[inst] = of_ioremap(&op->resource[0], 0,
drivers/tty/serial/sunzilog.c
1428
up[0].port.mapbase = op->resource[0].start + 0x00;
drivers/tty/serial/sunzilog.c
1446
up[1].port.mapbase = op->resource[0].start + 0x04;
drivers/tty/serial/sunzilog.c
1470
of_iounmap(&op->resource[0],
drivers/tty/serial/sunzilog.c
1481
of_iounmap(&op->resource[0],
drivers/tty/serial/sunzilog.c
1524
of_iounmap(&op->resource[0], regs, sizeof(struct zilog_layout));
drivers/tty/serial/timbuart.c
411
struct resource *iomem;
drivers/tty/serial/uartlite.c
781
struct resource *res;
drivers/tty/serial/ucc_uart.c
1239
struct resource res;
drivers/tty/serial/vt8500_serial.c
603
struct resource *mmres;
drivers/tty/serial/xilinx_uartps.c
1646
struct resource *res;
drivers/ufs/host/ufs-qcom.c
2096
struct resource *res;
drivers/uio/uio_dfl.c
16
struct resource *r = &ddev->mmio_res;
drivers/uio/uio_dmem_genirq.c
231
struct resource *r = &pdev->resource[i];
drivers/uio/uio_fsl_elbc_gpcm.c
220
struct resource *res,
drivers/uio/uio_fsl_elbc_gpcm.c
251
struct resource *res, u32 *reg_br,
drivers/uio/uio_fsl_elbc_gpcm.c
315
struct resource res;
drivers/uio/uio_pci_generic.c
108
struct resource *r = &pdev->resource[i];
drivers/uio/uio_pci_generic_sva.c
108
struct resource *r = &pdev->resource[i];
drivers/uio/uio_pdrv_genirq.c
192
struct resource *r = &pdev->resource[i];
drivers/usb/c67x00/c67x00-drv.c
109
struct resource *res, *res2;
drivers/usb/c67x00/c67x00-drv.c
183
struct resource *res;
drivers/usb/cdns3/cdns3-pci-wrap.c
19
struct resource dev_res[6];
drivers/usb/cdns3/cdns3-pci-wrap.c
73
struct resource *res;
drivers/usb/cdns3/cdns3-plat.c
56
struct resource *res;
drivers/usb/cdns3/cdnsp-pci.c
53
struct resource *res;
drivers/usb/cdns3/core.h
89
struct resource xhci_res[CDNS_XHCI_RESOURCES_NUM];
drivers/usb/cdns3/core.h
92
struct resource otg_res;
drivers/usb/chipidea/ci_hdrc_imx.c
550
pdev->resource, pdev->num_resources,
drivers/usb/chipidea/ci_hdrc_msm.c
253
plat_ci = ci_hdrc_add_device(&pdev->dev, pdev->resource,
drivers/usb/chipidea/ci_hdrc_npcm.c
65
plat_ci = ci_hdrc_add_device(dev, pdev->resource, pdev->num_resources,
drivers/usb/chipidea/ci_hdrc_pci.c
59
struct resource res[3];
drivers/usb/chipidea/ci_hdrc_tegra.c
345
usb->dev = ci_hdrc_add_device(&pdev->dev, pdev->resource,
drivers/usb/chipidea/ci_hdrc_usb2.c
85
priv->ci_pdev = ci_hdrc_add_device(dev, pdev->resource,
drivers/usb/chipidea/core.c
1052
struct resource *res;
drivers/usb/chipidea/core.c
884
struct resource *res, int nres,
drivers/usb/chipidea/usbmisc_imx.c
1515
struct resource *res;
drivers/usb/dwc2/hcd.c
5104
struct resource *res;
drivers/usb/dwc2/pci.c
54
struct resource res[2];
drivers/usb/dwc2/pci.c
83
memset(res, 0x00, sizeof(struct resource) * ARRAY_SIZE(res));
drivers/usb/dwc2/platform.c
442
struct resource *res;
drivers/usb/dwc3/core.c
2194
struct resource dwc_res;
drivers/usb/dwc3/core.c
2197
struct resource *res = data->res;
drivers/usb/dwc3/core.c
2367
struct resource *res;
drivers/usb/dwc3/core.h
1204
struct resource xhci_resources[DWC3_XHCI_RESOURCES_NUM];
drivers/usb/dwc3/dwc3-apple.c
93
struct resource *mmio_resource;
drivers/usb/dwc3/dwc3-generic-plat.c
78
struct resource *res;
drivers/usb/dwc3/dwc3-google.c
369
struct resource *res;
drivers/usb/dwc3/dwc3-haps.c
45
struct resource res[2];
drivers/usb/dwc3/dwc3-haps.c
64
memset(res, 0x00, sizeof(struct resource) * ARRAY_SIZE(res));
drivers/usb/dwc3/dwc3-imx8mp.c
186
struct resource *res;
drivers/usb/dwc3/dwc3-pci.c
334
struct resource res[2];
drivers/usb/dwc3/dwc3-pci.c
354
memset(res, 0x00, sizeof(struct resource) * ARRAY_SIZE(res));
drivers/usb/dwc3/dwc3-qcom.c
615
struct resource res;
drivers/usb/dwc3/dwc3-qcom.c
616
struct resource *r;
drivers/usb/dwc3/dwc3-rtk.c
359
struct resource *res;
drivers/usb/dwc3/dwc3-st.c
199
struct resource *res;
drivers/usb/dwc3/glue.h
36
struct resource *res;
drivers/usb/fotg210/fotg210-core.c
43
static int fotg210_gemini_init(struct fotg210 *fotg, struct resource *res,
drivers/usb/fotg210/fotg210.h
13
struct resource *res;
drivers/usb/gadget/udc/amd5536udc_pci.c
109
resource = pci_resource_start(pdev, 0);
drivers/usb/gadget/udc/amd5536udc_pci.c
112
if (!request_mem_region(resource, len, name)) {
drivers/usb/gadget/udc/amd5536udc_pci.c
118
dev->virt_addr = ioremap(resource, len);
drivers/usb/gadget/udc/amd5536udc_pci.c
156
dev->phys_addr = resource;
drivers/usb/gadget/udc/amd5536udc_pci.c
186
release_mem_region(resource, len);
drivers/usb/gadget/udc/amd5536udc_pci.c
87
unsigned long resource;
drivers/usb/gadget/udc/aspeed-vhub/core.c
302
struct resource *res;
drivers/usb/gadget/udc/atmel_usba_udc.c
226
struct resource *regs_resource;
drivers/usb/gadget/udc/atmel_usba_udc.c
2274
struct resource *res;
drivers/usb/gadget/udc/cdns2/cdns2-pci.c
27
struct resource *res;
drivers/usb/gadget/udc/fsl_udc_core.c
2367
struct resource *res;
drivers/usb/gadget/udc/fsl_udc_core.c
2546
struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
drivers/usb/gadget/udc/goku_udc.c
1747
unsigned long resource, len;
drivers/usb/gadget/udc/goku_udc.c
1781
resource = pci_resource_start(pdev, 0);
drivers/usb/gadget/udc/goku_udc.c
1783
if (!request_mem_region(resource, len, driver_name)) {
drivers/usb/gadget/udc/goku_udc.c
1790
base = ioremap(resource, len);
drivers/usb/gadget/udc/m66592-udc.c
1538
struct resource *res, *ires;
drivers/usb/gadget/udc/net2280.c
3623
unsigned long resource, len;
drivers/usb/gadget/udc/net2280.c
3657
resource = pci_resource_start(pdev, 0);
drivers/usb/gadget/udc/net2280.c
3659
if (!request_mem_region(resource, len, driver_name)) {
drivers/usb/gadget/udc/net2280.c
3670
base = ioremap(resource, len);
drivers/usb/gadget/udc/omap_udc.c
2755
if (!request_mem_region(pdev->resource[0].start,
drivers/usb/gadget/udc/omap_udc.c
2756
resource_size(&pdev->resource[0]),
drivers/usb/gadget/udc/omap_udc.c
2871
status = devm_request_irq(&pdev->dev, pdev->resource[1].start,
drivers/usb/gadget/udc/omap_udc.c
2875
(int) pdev->resource[1].start, status);
drivers/usb/gadget/udc/omap_udc.c
2880
status = devm_request_irq(&pdev->dev, pdev->resource[2].start,
drivers/usb/gadget/udc/omap_udc.c
2884
(int) pdev->resource[2].start, status);
drivers/usb/gadget/udc/omap_udc.c
2888
status = devm_request_irq(&pdev->dev, pdev->resource[3].start,
drivers/usb/gadget/udc/omap_udc.c
2892
(int) pdev->resource[3].start, status);
drivers/usb/gadget/udc/omap_udc.c
2922
release_mem_region(pdev->resource[0].start,
drivers/usb/gadget/udc/omap_udc.c
2923
resource_size(&pdev->resource[0]));
drivers/usb/gadget/udc/omap_udc.c
2938
release_mem_region(pdev->resource[0].start,
drivers/usb/gadget/udc/omap_udc.c
2939
resource_size(&pdev->resource[0]));
drivers/usb/gadget/udc/r8a66597-udc.c
1837
struct resource *ires;
drivers/usb/gadget/udc/snps_udc_plat.c
103
struct resource *res;
drivers/usb/gadget/udc/tegra-xudc.c
3769
struct resource *res;
drivers/usb/gadget/udc/udc-xilinx.c
2063
struct resource *res;
drivers/usb/host/bcma-hcd.c
305
struct resource hci_res[2];
drivers/usb/host/ehci-atmel.c
93
struct resource *res;
drivers/usb/host/ehci-brcm.c
132
struct resource *res_mem;
drivers/usb/host/ehci-exynos.c
132
struct resource *res;
drivers/usb/host/ehci-fsl.c
51
struct resource *res;
drivers/usb/host/ehci-grlib.c
77
struct resource res;
drivers/usb/host/ehci-mv.c
109
struct resource *r;
drivers/usb/host/ehci-npcm7xx.c
51
struct resource *res;
drivers/usb/host/ehci-omap.c
85
struct resource *res;
drivers/usb/host/ehci-orion.c
216
struct resource *res;
drivers/usb/host/ehci-platform.c
240
struct resource *res_mem;
drivers/usb/host/ehci-ppc-of.c
193
struct resource res;
drivers/usb/host/ehci-ppc-of.c
99
struct resource res;
drivers/usb/host/ehci-sh.c
76
struct resource *res;
drivers/usb/host/ehci-spear.c
58
struct resource *res;
drivers/usb/host/ehci-st.c
150
struct resource *res_mem;
drivers/usb/host/ehci-xilinx-of.c
123
struct resource res;
drivers/usb/host/fhci-hcd.c
567
struct resource usb_regs;
drivers/usb/host/fsl-mph-dr-of.c
84
const struct resource *res = ofdev->resource;
drivers/usb/host/isp116x-hcd.c
1533
struct resource *res;
drivers/usb/host/isp116x-hcd.c
1557
struct resource *addr, *data, *ires;
drivers/usb/host/octeon-hcd.c
3534
struct resource *res_mem;
drivers/usb/host/ohci-at91.c
189
struct resource *res;
drivers/usb/host/ohci-da8xx.c
363
struct resource *mem;
drivers/usb/host/ohci-exynos.c
109
struct resource *res;
drivers/usb/host/ohci-nxp.c
153
struct resource *res;
drivers/usb/host/ohci-omap.c
208
if (pdev->resource[0].flags != IORESOURCE_MEM
drivers/usb/host/ohci-omap.c
209
|| pdev->resource[1].flags != IORESOURCE_IRQ) {
drivers/usb/host/ohci-omap.c
219
hcd->rsrc_start = pdev->resource[0].start;
drivers/usb/host/ohci-omap.c
220
hcd->rsrc_len = pdev->resource[0].end - pdev->resource[0].start + 1;
drivers/usb/host/ohci-platform.c
91
struct resource *res_mem;
drivers/usb/host/ohci-ppc-of.c
90
struct resource res;
drivers/usb/host/ohci-pxa27x.c
410
struct resource *r;
drivers/usb/host/ohci-s3c2410.c
365
hcd->rsrc_start = dev->resource[0].start;
drivers/usb/host/ohci-s3c2410.c
366
hcd->rsrc_len = resource_size(&dev->resource[0]);
drivers/usb/host/ohci-s3c2410.c
368
hcd->regs = devm_ioremap_resource(&dev->dev, &dev->resource[0]);
drivers/usb/host/ohci-sm501.c
191
struct resource *mem;
drivers/usb/host/ohci-sm501.c
92
struct resource *res, *mem;
drivers/usb/host/ohci-spear.c
40
struct resource *res;
drivers/usb/host/ohci-st.c
130
struct resource *res_mem;
drivers/usb/host/oxu210hp-hcd.c
4192
struct resource *res;
drivers/usb/host/r8a66597-hcd.c
2398
struct resource *res = NULL, *ires;
drivers/usb/host/sl811-hcd.c
1590
struct resource *res;
drivers/usb/host/sl811-hcd.c
1612
struct resource *addr, *data, *ires;
drivers/usb/host/sl811_cs.c
157
if (resource_size(link->resource[0]) < 2)
drivers/usb/host/sl811_cs.c
167
if (sl811_hc_init(parent, link->resource[0]->start, link->irq)
drivers/usb/host/sl811_cs.c
64
static struct resource resources[] = {
drivers/usb/host/sl811_cs.c
86
.resource = resources,
drivers/usb/host/ssb-hcd.c
106
struct resource hci_res[2];
drivers/usb/host/uhci-grlib.c
96
struct resource res;
drivers/usb/host/uhci-platform.c
74
struct resource *res;
drivers/usb/host/xhci-ext-caps.c
34
struct resource res = { 0, };
drivers/usb/host/xhci-histb.c
194
struct resource *res;
drivers/usb/host/xhci-mtk.c
516
struct resource *res;
drivers/usb/host/xhci-mvebu.c
49
struct resource *res;
drivers/usb/host/xhci-plat.c
161
struct resource *res;
drivers/usb/host/xhci-tegra.c
1589
struct resource *regs;
drivers/usb/host/xhci-tegra.c
274
struct resource *bar2;
drivers/usb/isp1760/isp1760-core.c
481
int isp1760_register(struct resource *mem, int irq, unsigned long irqflags,
drivers/usb/isp1760/isp1760-core.h
53
int isp1760_register(struct resource *mem, int irq, unsigned long irqflags,
drivers/usb/isp1760/isp1760-hcd.c
2559
int isp1760_hcd_register(struct isp1760_hcd *priv, struct resource *mem,
drivers/usb/isp1760/isp1760-hcd.h
12
struct resource;
drivers/usb/isp1760/isp1760-hcd.h
75
int isp1760_hcd_register(struct isp1760_hcd *priv, struct resource *mem,
drivers/usb/isp1760/isp1760-hcd.h
83
struct resource *mem,
drivers/usb/isp1760/isp1760-if.c
144
ret = isp1760_register(&dev->resource[3], dev->irq, 0, &dev->dev,
drivers/usb/isp1760/isp1760-if.c
194
struct resource *mem_res;
drivers/usb/misc/brcmstb-usb-pinmap.c
254
struct resource *r;
drivers/usb/misc/qcom_eud.c
194
struct resource *res;
drivers/usb/musb/da8xx.c
569
pinfo.res = pdev->resource;
drivers/usb/musb/jz4740.c
283
ret = platform_device_add_resources(musb, pdev->resource,
drivers/usb/musb/mediatek.c
481
pinfo.res = pdev->resource;
drivers/usb/musb/mpfs.c
324
ret = platform_device_add_resources(musb_pdev, pdev->resource, pdev->num_resources);
drivers/usb/musb/musb_dsps.c
431
struct resource *r;
drivers/usb/musb/musb_dsps.c
725
struct resource resources[2];
drivers/usb/musb/musb_dsps.c
726
struct resource *res;
drivers/usb/musb/omap2430.c
397
ret = platform_device_add_resources(musb, pdev->resource, pdev->num_resources);
drivers/usb/musb/omap2430.c
404
struct resource musb_res[3];
drivers/usb/musb/omap2430.c
405
struct resource *res;
drivers/usb/musb/sunxi.c
786
pinfo.res = pdev->resource;
drivers/usb/musb/tusb6010.c
1109
struct resource *mem;
drivers/usb/musb/tusb6010.c
1224
struct resource musb_resources[3];
drivers/usb/musb/tusb6010.c
1254
musb_resources[0].name = pdev->resource[0].name;
drivers/usb/musb/tusb6010.c
1255
musb_resources[0].start = pdev->resource[0].start;
drivers/usb/musb/tusb6010.c
1256
musb_resources[0].end = pdev->resource[0].end;
drivers/usb/musb/tusb6010.c
1257
musb_resources[0].flags = pdev->resource[0].flags;
drivers/usb/musb/tusb6010.c
1259
musb_resources[1].name = pdev->resource[1].name;
drivers/usb/musb/tusb6010.c
1260
musb_resources[1].start = pdev->resource[1].start;
drivers/usb/musb/tusb6010.c
1261
musb_resources[1].end = pdev->resource[1].end;
drivers/usb/musb/tusb6010.c
1262
musb_resources[1].flags = pdev->resource[1].flags;
drivers/usb/musb/ux500.c
276
ret = platform_device_add_resources(musb, pdev->resource, pdev->num_resources);
drivers/usb/musb/ux500_dma.c
362
struct resource *iomem;
drivers/usb/phy/phy-fsl-usb.c
839
struct resource *res;
drivers/usb/phy/phy-gpio-vbus-usb.c
234
struct resource *res;
drivers/usb/phy/phy-omap-otg.c
105
otg_dev->base = devm_ioremap_resource(&pdev->dev, &pdev->resource[0]);
drivers/usb/phy/phy-tegra-usb.c
1328
struct resource *res;
drivers/usb/phy/phy-tegra-usb.c
1496
struct resource *res;
drivers/usb/roles/intel-xhci-usb-role-switch.c
156
struct resource *res;
drivers/usb/typec/ucsi/ucsi_acpi.c
177
struct resource *res;
drivers/vdpa/octeon_ep/octep_vdpa_main.c
15
struct resource res;
drivers/vdpa/octeon_ep/octep_vdpa_main.c
419
struct resource *res = pf_dev->resource + PCI_STD_RESOURCES + 4;
drivers/vdpa/octeon_ep/octep_vdpa_main.c
435
struct resource *res = pf_dev->resource + PCI_STD_RESOURCES + 4;
drivers/vdpa/octeon_ep/octep_vdpa_main.c
464
struct resource *vf_res = pdev->resource + PCI_STD_RESOURCES + 4;
drivers/vdpa/octeon_ep/octep_vdpa_main.c
703
struct resource *vf_res = vf_dev->resource + PCI_STD_RESOURCES + 4;
drivers/vdpa/octeon_ep/octep_vdpa_main.c
704
struct resource *pf_res = pf_dev->resource + PCI_STD_RESOURCES + 4;
drivers/vdpa/octeon_ep/octep_vdpa_main.c
710
vf_res->parent = (pf_dev->resource + PCI_STD_RESOURCES)->parent;
drivers/vfio/cdx/main.c
25
struct resource *res = &cdx_dev->res[i];
drivers/vfio/fsl-mc/vfio_fsl_mc.c
36
struct resource *res = &mc_dev->regions[i];
drivers/vfio/pci/vfio_pci_core.c
144
struct resource *res;
drivers/vfio/pci/vfio_pci_core.c
151
res = &vdev->pdev->resource[bar];
drivers/vfio/pci/vfio_pci_core.c
182
dummy_res->resource.name = "vfio sub-page reserved";
drivers/vfio/pci/vfio_pci_core.c
183
dummy_res->resource.start = res->end + 1;
drivers/vfio/pci/vfio_pci_core.c
184
dummy_res->resource.end = res->start + PAGE_SIZE - 1;
drivers/vfio/pci/vfio_pci_core.c
185
dummy_res->resource.flags = res->flags;
drivers/vfio/pci/vfio_pci_core.c
187
&dummy_res->resource)) {
drivers/vfio/pci/vfio_pci_core.c
661
release_resource(&dummy_res->resource);
drivers/vfio/pci/vfio_pci_core.c
84
struct resource resource;
drivers/vfio/pci/vfio_pci_rdwr.c
235
struct resource *res = &vdev->pdev->resource[bar];
drivers/vfio/pci/vfio_pci_rdwr.c
499
ioeventfd->test_mem = vdev->pdev->resource[bar].flags & IORESOURCE_MEM;
drivers/vfio/pci/virtio/legacy_io.c
356
struct resource *res = pdev->resource;
drivers/vfio/platform/vfio_amba.c
21
static struct resource *get_amba_resource(struct vfio_platform_device *vdev,
drivers/vfio/platform/vfio_platform.c
25
static struct resource *get_platform_resource(struct vfio_platform_device *vdev,
drivers/vfio/platform/vfio_platform_common.c
150
struct resource *res =
drivers/vfio/platform/vfio_platform_private.h
64
struct resource*
drivers/video/backlight/88pm860x_bl.c
184
struct resource *res;
drivers/video/backlight/apple_dwi_bl.c
78
struct resource *res;
drivers/video/backlight/ep93xx_bl.c
58
struct resource *res;
drivers/video/backlight/max8925_bl.c
125
struct resource *res;
drivers/video/console/newport_con.c
702
if (!dev->resource.start)
drivers/video/console/newport_con.c
708
newport_addr = dev->resource.start + 0xF0000;
drivers/video/console/vgacon.c
225
static struct resource ega_console_resource =
drivers/video/console/vgacon.c
236
static struct resource mda1_console_resource =
drivers/video/console/vgacon.c
241
static struct resource mda2_console_resource =
drivers/video/console/vgacon.c
267
static struct resource ega_console_resource =
drivers/video/console/vgacon.c
277
static struct resource vga_console_resource =
drivers/video/console/vgacon.c
312
static struct resource cga_console_resource =
drivers/video/fbdev/arkfb.c
956
struct resource vga_res;
drivers/video/fbdev/asiliantfb.c
550
if ((dp->resource[0].flags & IORESOURCE_MEM) == 0)
drivers/video/fbdev/atmel_lcdfb.c
1024
struct resource *regs = NULL;
drivers/video/fbdev/atmel_lcdfb.c
1025
struct resource *map = NULL;
drivers/video/fbdev/aty/atyfb_base.c
2975
for (i = 0; i < 6 && pdev->resource[i].start; i++)
drivers/video/fbdev/aty/atyfb_base.c
2985
for (i = 0, j = 2; i < 6 && pdev->resource[i].start; i++) {
drivers/video/fbdev/aty/atyfb_base.c
2986
struct resource *rp = &pdev->resource[i];
drivers/video/fbdev/aty/atyfb_base.c
3436
struct resource *rrp;
drivers/video/fbdev/aty/atyfb_base.c
3440
rrp = &pdev->resource[2];
drivers/video/fbdev/aty/atyfb_base.c
3534
struct resource *rp;
drivers/video/fbdev/aty/atyfb_base.c
3549
rp = &pdev->resource[0];
drivers/video/fbdev/aty/atyfb_base.c
3551
rp = &pdev->resource[1];
drivers/video/fbdev/au1100fb.c
731
struct resource *regs_res;
drivers/video/fbdev/bw2.c
286
info->fix.smem_start = op->resource[0].start;
drivers/video/fbdev/bw2.c
287
par->which_io = op->resource[0].flags & IORESOURCE_BITS;
drivers/video/fbdev/bw2.c
298
par->regs = of_ioremap(&op->resource[0], BWTWO_REGISTER_OFFSET,
drivers/video/fbdev/bw2.c
313
info->screen_base = of_ioremap(&op->resource[0], 0,
drivers/video/fbdev/bw2.c
336
of_iounmap(&op->resource[0], info->screen_base, info->fix.smem_len);
drivers/video/fbdev/bw2.c
339
of_iounmap(&op->resource[0], par->regs, sizeof(struct bw2_regs));
drivers/video/fbdev/bw2.c
355
of_iounmap(&op->resource[0], par->regs, sizeof(struct bw2_regs));
drivers/video/fbdev/bw2.c
356
of_iounmap(&op->resource[0], info->screen_base, info->fix.smem_len);
drivers/video/fbdev/cg14.c
446
of_iounmap(&op->resource[0],
drivers/video/fbdev/cg14.c
449
of_iounmap(&op->resource[0],
drivers/video/fbdev/cg14.c
452
of_iounmap(&op->resource[0],
drivers/video/fbdev/cg14.c
455
of_iounmap(&op->resource[1],
drivers/video/fbdev/cg14.c
486
info->fix.smem_start = op->resource[0].start;
drivers/video/fbdev/cg14.c
487
par->iospace = op->resource[0].flags & IORESOURCE_BITS;
drivers/video/fbdev/cg14.c
489
info->fix.smem_start = op->resource[1].start;
drivers/video/fbdev/cg14.c
490
par->iospace = op->resource[0].flags & IORESOURCE_BITS;
drivers/video/fbdev/cg14.c
493
par->regs = of_ioremap(&op->resource[0], 0,
drivers/video/fbdev/cg14.c
495
par->clut = of_ioremap(&op->resource[0], CG14_CLUT1,
drivers/video/fbdev/cg14.c
497
par->cursor = of_ioremap(&op->resource[0], CG14_CURSORREGS,
drivers/video/fbdev/cg14.c
500
info->screen_base = of_ioremap(&op->resource[1], 0,
drivers/video/fbdev/cg14.c
506
is_8mb = (resource_size(&op->resource[1]) == (8 * 1024 * 1024));
drivers/video/fbdev/cg14.c
519
(op->resource[0].start -
drivers/video/fbdev/cg14.c
520
op->resource[1].start);
drivers/video/fbdev/cg3.c
360
info->fix.smem_start = op->resource[0].start;
drivers/video/fbdev/cg3.c
361
par->which_io = op->resource[0].flags & IORESOURCE_BITS;
drivers/video/fbdev/cg3.c
376
par->regs = of_ioremap(&op->resource[0], CG3_REGS_OFFSET,
drivers/video/fbdev/cg3.c
382
info->screen_base = of_ioremap(&op->resource[0], CG3_RAM_OFFSET,
drivers/video/fbdev/cg3.c
418
of_iounmap(&op->resource[0], info->screen_base, info->fix.smem_len);
drivers/video/fbdev/cg3.c
421
of_iounmap(&op->resource[0], par->regs, sizeof(struct cg3_regs));
drivers/video/fbdev/cg3.c
438
of_iounmap(&op->resource[0], par->regs, sizeof(struct cg3_regs));
drivers/video/fbdev/cg3.c
439
of_iounmap(&op->resource[0], info->screen_base, info->fix.smem_len);
drivers/video/fbdev/cg6.c
726
of_iounmap(&op->resource[0], par->fbc, 4096);
drivers/video/fbdev/cg6.c
728
of_iounmap(&op->resource[0], par->tec, sizeof(struct cg6_tec));
drivers/video/fbdev/cg6.c
730
of_iounmap(&op->resource[0], par->thc, sizeof(struct cg6_thc));
drivers/video/fbdev/cg6.c
732
of_iounmap(&op->resource[0], par->bt, sizeof(struct bt_regs));
drivers/video/fbdev/cg6.c
734
of_iounmap(&op->resource[0], par->fhc, sizeof(u32));
drivers/video/fbdev/cg6.c
737
of_iounmap(&op->resource[0], info->screen_base,
drivers/video/fbdev/cg6.c
758
info->fix.smem_start = op->resource[0].start;
drivers/video/fbdev/cg6.c
759
par->which_io = op->resource[0].flags & IORESOURCE_BITS;
drivers/video/fbdev/cg6.c
774
par->fbc = of_ioremap(&op->resource[0], CG6_FBC_OFFSET,
drivers/video/fbdev/cg6.c
776
par->tec = of_ioremap(&op->resource[0], CG6_TEC_OFFSET,
drivers/video/fbdev/cg6.c
778
par->thc = of_ioremap(&op->resource[0], CG6_THC_OFFSET,
drivers/video/fbdev/cg6.c
780
par->bt = of_ioremap(&op->resource[0], CG6_BROOKTREE_OFFSET,
drivers/video/fbdev/cg6.c
782
par->fhc = of_ioremap(&op->resource[0], CG6_FHC_OFFSET,
drivers/video/fbdev/cg6.c
790
info->screen_base = of_ioremap(&op->resource[0], CG6_RAM_OFFSET,
drivers/video/fbdev/chipsfb.c
365
if ((dp->resource[0].flags & IORESOURCE_MEM) == 0) {
drivers/video/fbdev/cirrusfb.c
2111
(unsigned long long)pdev->resource[0].start, cinfo->btype);
drivers/video/fbdev/cirrusfb.c
2113
(unsigned long long)pdev->resource[1].start);
drivers/video/fbdev/cirrusfb.c
2235
&ram->resource);
drivers/video/fbdev/cirrusfb.c
2248
dev_err(info->device, "Cannot reserve %pR\n", &z->resource);
drivers/video/fbdev/clps711x-fb.c
205
struct resource *res;
drivers/video/fbdev/cobalt_lcdfb.c
291
struct resource *res;
drivers/video/fbdev/controlfb.c
935
struct resource fb_res, reg_res;
drivers/video/fbdev/core/fbmon.c
1499
struct resource *res = NULL;
drivers/video/fbdev/core/fbmon.c
1506
res = &dev->resource[PCI_ROM_RESOURCE];
drivers/video/fbdev/ep93xx-fb.c
112
struct resource *res;
drivers/video/fbdev/ep93xx-fb.c
467
struct resource *res;
drivers/video/fbdev/ffb.c
1025
of_iounmap(&op->resource[1], par->dac, sizeof(struct ffb_dac));
drivers/video/fbdev/ffb.c
1028
of_iounmap(&op->resource[2], par->fbc, sizeof(struct ffb_fbc));
drivers/video/fbdev/ffb.c
1045
of_iounmap(&op->resource[2], par->fbc, sizeof(struct ffb_fbc));
drivers/video/fbdev/ffb.c
1046
of_iounmap(&op->resource[1], par->dac, sizeof(struct ffb_dac));
drivers/video/fbdev/ffb.c
928
par->fbc = of_ioremap(&op->resource[2], 0,
drivers/video/fbdev/ffb.c
933
par->dac = of_ioremap(&op->resource[1], 0,
drivers/video/fbdev/ffb.c
939
par->physbase = op->resource[0].start;
drivers/video/fbdev/goldfishfb.c
177
struct resource *r;
drivers/video/fbdev/grvga.c
380
if (!devm_request_mem_region(&dev->dev, dev->resource[0].start,
drivers/video/fbdev/grvga.c
381
resource_size(&dev->resource[0]), "grlib-svgactrl regs")) {
drivers/video/fbdev/grvga.c
387
par->regs = of_ioremap(&dev->resource[0], 0,
drivers/video/fbdev/grvga.c
388
resource_size(&dev->resource[0]),
drivers/video/fbdev/grvga.c
496
of_iounmap(&dev->resource[0], par->regs,
drivers/video/fbdev/grvga.c
497
resource_size(&dev->resource[0]));
drivers/video/fbdev/grvga.c
514
of_iounmap(&device->resource[0], par->regs,
drivers/video/fbdev/grvga.c
515
resource_size(&device->resource[0]));
drivers/video/fbdev/hpfb.c
334
paddr = d->resource.start;
drivers/video/fbdev/hpfb.c
335
if (!request_mem_region(d->resource.start, resource_size(&d->resource), d->name))
drivers/video/fbdev/hpfb.c
339
vaddr = (unsigned long)ioremap(paddr, resource_size(&d->resource));
drivers/video/fbdev/hpfb.c
348
release_mem_region(d->resource.start, resource_size(&d->resource));
drivers/video/fbdev/hpfb.c
359
release_mem_region(d->resource.start, resource_size(&d->resource));
drivers/video/fbdev/leo.c
531
of_iounmap(&op->resource[0], par->lc_ss0_usr, 0x1000);
drivers/video/fbdev/leo.c
533
of_iounmap(&op->resource[0], par->ld_ss0, 0x1000);
drivers/video/fbdev/leo.c
535
of_iounmap(&op->resource[0], par->ld_ss1, 0x1000);
drivers/video/fbdev/leo.c
537
of_iounmap(&op->resource[0], par->lx_krn, 0x1000);
drivers/video/fbdev/leo.c
539
of_iounmap(&op->resource[0],
drivers/video/fbdev/leo.c
542
of_iounmap(&op->resource[0], info->screen_base, 0x800000);
drivers/video/fbdev/leo.c
561
info->fix.smem_start = op->resource[0].start;
drivers/video/fbdev/leo.c
562
par->which_io = op->resource[0].flags & IORESOURCE_BITS;
drivers/video/fbdev/leo.c
572
of_ioremap(&op->resource[0], LEO_OFF_LC_SS0_USR,
drivers/video/fbdev/leo.c
575
of_ioremap(&op->resource[0], LEO_OFF_LD_SS0,
drivers/video/fbdev/leo.c
578
of_ioremap(&op->resource[0], LEO_OFF_LD_SS1,
drivers/video/fbdev/leo.c
581
of_ioremap(&op->resource[0], LEO_OFF_LX_KRN,
drivers/video/fbdev/leo.c
584
of_ioremap(&op->resource[0], LEO_OFF_LX_CURSOR,
drivers/video/fbdev/leo.c
587
of_ioremap(&op->resource[0], LEO_OFF_SS0,
drivers/video/fbdev/mb862xx/mb862xxfb.h
54
struct resource *res; /* framebuffer/mmio resource */
drivers/video/fbdev/mb862xx/mb862xxfbdrv.c
675
struct resource res;
drivers/video/fbdev/mmp/hw/mmp_ctrl.c
444
struct resource *res;
drivers/video/fbdev/nvidia/nvidia.c
973
struct resource *res= &par->pci_dev->resource[PCI_ROM_RESOURCE];
drivers/video/fbdev/nvidia/nvidia.c
985
struct resource *res= &par->pci_dev->resource[PCI_ROM_RESOURCE];
drivers/video/fbdev/omap2/omapfb/dss/dispc.c
3905
struct resource *dispc_mem;
drivers/video/fbdev/omap2/omapfb/dss/dsi.c
5265
struct resource *dsi_mem;
drivers/video/fbdev/omap2/omapfb/dss/dsi.c
5266
struct resource *res;
drivers/video/fbdev/omap2/omapfb/dss/dsi.c
5267
struct resource temp_res;
drivers/video/fbdev/omap2/omapfb/dss/dss.c
1069
struct resource *dss_mem;
drivers/video/fbdev/omap2/omapfb/dss/hdmi_wp.c
260
struct resource *res;
drivers/video/fbdev/omap2/omapfb/dss/venc.c
809
struct resource *venc_mem;
drivers/video/fbdev/omap2/omapfb/vrfb.c
339
struct resource *mem;
drivers/video/fbdev/p9100.c
263
info->fix.smem_start = op->resource[2].start;
drivers/video/fbdev/p9100.c
264
par->which_io = op->resource[2].flags & IORESOURCE_BITS;
drivers/video/fbdev/p9100.c
274
par->regs = of_ioremap(&op->resource[0], 0,
drivers/video/fbdev/p9100.c
280
info->screen_base = of_ioremap(&op->resource[2], 0,
drivers/video/fbdev/p9100.c
310
of_iounmap(&op->resource[2], info->screen_base, info->fix.smem_len);
drivers/video/fbdev/p9100.c
313
of_iounmap(&op->resource[0], par->regs, sizeof(struct p9100_regs));
drivers/video/fbdev/p9100.c
330
of_iounmap(&op->resource[0], par->regs, sizeof(struct p9100_regs));
drivers/video/fbdev/p9100.c
331
of_iounmap(&op->resource[2], info->screen_base, info->fix.smem_len);
drivers/video/fbdev/platinumfb.c
70
struct resource rsrc_fb, rsrc_reg;
drivers/video/fbdev/pmag-aa-fb.c
177
start = tdev->resource.start;
drivers/video/fbdev/pmag-aa-fb.c
178
len = tdev->resource.end - start + 1;
drivers/video/fbdev/pmag-aa-fb.c
256
start = tdev->resource.start;
drivers/video/fbdev/pmag-aa-fb.c
257
len = tdev->resource.end - start + 1;
drivers/video/fbdev/pmag-ba-fb.c
169
start = tdev->resource.start;
drivers/video/fbdev/pmag-ba-fb.c
170
len = tdev->resource.end - start + 1;
drivers/video/fbdev/pmag-ba-fb.c
244
start = tdev->resource.start;
drivers/video/fbdev/pmag-ba-fb.c
245
len = tdev->resource.end - start + 1;
drivers/video/fbdev/pmagb-b-fb.c
276
start = tdev->resource.start;
drivers/video/fbdev/pmagb-b-fb.c
277
len = tdev->resource.end - start + 1;
drivers/video/fbdev/pmagb-b-fb.c
362
start = tdev->resource.start;
drivers/video/fbdev/pmagb-b-fb.c
363
len = tdev->resource.end - start + 1;
drivers/video/fbdev/pxa168fb.c
596
struct resource *res;
drivers/video/fbdev/pxa3xx-gcu.c
580
struct resource *r;
drivers/video/fbdev/pxa3xx-gcu.c
90
struct resource *resource_mem;
drivers/video/fbdev/s1d13xxxfb.c
753
release_mem_region(pdev->resource[0].start,
drivers/video/fbdev/s1d13xxxfb.c
754
resource_size(&pdev->resource[0]));
drivers/video/fbdev/s1d13xxxfb.c
755
release_mem_region(pdev->resource[1].start,
drivers/video/fbdev/s1d13xxxfb.c
756
resource_size(&pdev->resource[1]));
drivers/video/fbdev/s1d13xxxfb.c
795
if (pdev->resource[0].flags != IORESOURCE_MEM
drivers/video/fbdev/s1d13xxxfb.c
796
|| pdev->resource[1].flags != IORESOURCE_MEM) {
drivers/video/fbdev/s1d13xxxfb.c
802
if (!request_mem_region(pdev->resource[0].start,
drivers/video/fbdev/s1d13xxxfb.c
803
resource_size(&pdev->resource[0]), "s1d13xxxfb mem")) {
drivers/video/fbdev/s1d13xxxfb.c
809
if (!request_mem_region(pdev->resource[1].start,
drivers/video/fbdev/s1d13xxxfb.c
810
resource_size(&pdev->resource[1]), "s1d13xxxfb regs")) {
drivers/video/fbdev/s1d13xxxfb.c
824
default_par->regs = ioremap(pdev->resource[1].start,
drivers/video/fbdev/s1d13xxxfb.c
825
resource_size(&pdev->resource[1]));
drivers/video/fbdev/s1d13xxxfb.c
833
info->screen_base = ioremap(pdev->resource[0].start,
drivers/video/fbdev/s1d13xxxfb.c
834
resource_size(&pdev->resource[0]));
drivers/video/fbdev/s1d13xxxfb.c
871
info->fix.mmio_start = pdev->resource[1].start;
drivers/video/fbdev/s1d13xxxfb.c
872
info->fix.mmio_len = resource_size(&pdev->resource[1]);
drivers/video/fbdev/s1d13xxxfb.c
873
info->fix.smem_start = pdev->resource[0].start;
drivers/video/fbdev/s1d13xxxfb.c
874
info->fix.smem_len = resource_size(&pdev->resource[0]);
drivers/video/fbdev/s3fb.c
1194
struct resource vga_res;
drivers/video/fbdev/savage/savagefb_driver.c
1766
int resource;
drivers/video/fbdev/savage/savagefb_driver.c
1771
resource = 0;
drivers/video/fbdev/savage/savagefb_driver.c
1773
resource = 1;
drivers/video/fbdev/savage/savagefb_driver.c
1775
par->video.pbase = pci_resource_start(par->pcidev, resource);
drivers/video/fbdev/sh7760fb.c
43
struct resource *ioarea;
drivers/video/fbdev/sh7760fb.c
433
struct resource *res;
drivers/video/fbdev/sh_mobile_lcdcfb.c
2498
struct resource *res;
drivers/video/fbdev/simplefb.c
105
struct resource *mem = par->mem;
drivers/video/fbdev/simplefb.c
133
struct resource memory;
drivers/video/fbdev/simplefb.c
538
struct resource *res, *mem;
drivers/video/fbdev/simplefb.c
76
struct resource *mem;
drivers/video/fbdev/sis/sis_main.c
5878
if(pdev->resource[PCI_ROM_RESOURCE].flags & IORESOURCE_ROM_SHADOW) {
drivers/video/fbdev/sm501fb.c
1538
struct resource *res;
drivers/video/fbdev/sm501fb.c
85
struct resource *fbmem_res; /* framebuffer resource */
drivers/video/fbdev/sm501fb.c
86
struct resource *regs_res; /* registers resource */
drivers/video/fbdev/sm501fb.c
87
struct resource *regs2d_res; /* 2d registers resource */
drivers/video/fbdev/sunxvr1000.c
130
gp->fb_base_phys = op->resource[6].start;
drivers/video/fbdev/sunxvr1000.c
140
gp->fb_base = of_ioremap(&op->resource[6], 0,
drivers/video/fbdev/sunxvr1000.c
165
of_iounmap(&op->resource[6], gp->fb_base, gp->fb_size);
drivers/video/fbdev/tcx.c
343
of_iounmap(&op->resource[7],
drivers/video/fbdev/tcx.c
346
of_iounmap(&op->resource[9],
drivers/video/fbdev/tcx.c
349
of_iounmap(&op->resource[8],
drivers/video/fbdev/tcx.c
352
of_iounmap(&op->resource[4],
drivers/video/fbdev/tcx.c
355
of_iounmap(&op->resource[0],
drivers/video/fbdev/tcx.c
386
par->tec = of_ioremap(&op->resource[7], 0,
drivers/video/fbdev/tcx.c
388
par->thc = of_ioremap(&op->resource[9], 0,
drivers/video/fbdev/tcx.c
390
par->bt = of_ioremap(&op->resource[8], 0,
drivers/video/fbdev/tcx.c
392
info->screen_base = of_ioremap(&op->resource[0], 0,
drivers/video/fbdev/tcx.c
400
par->cplane = of_ioremap(&op->resource[4], 0,
drivers/video/fbdev/tcx.c
412
info->fix.smem_start = op->resource[0].start;
drivers/video/fbdev/tcx.c
413
par->which_io = op->resource[0].flags & IORESOURCE_BITS;
drivers/video/fbdev/tcx.c
431
par->mmap_map[i].poff = op->resource[j].start - info->fix.smem_start;
drivers/video/fbdev/tgafb.c
1447
bar0_start = to_tc_dev(dev)->resource.start;
drivers/video/fbdev/tgafb.c
1448
bar0_len = to_tc_dev(dev)->resource.end - bar0_start + 1;
drivers/video/fbdev/tgafb.c
1565
bar0_start = to_tc_dev(dev)->resource.start;
drivers/video/fbdev/tgafb.c
1566
bar0_len = to_tc_dev(dev)->resource.end - bar0_start + 1;
drivers/video/fbdev/valkyriefb.c
324
struct resource r;
drivers/video/fbdev/vesafb.c
38
struct resource *region;
drivers/video/fbdev/vt8500lcdfb.c
271
struct resource *res;
drivers/video/fbdev/vt8500lcdfb.c
448
struct resource *res;
drivers/video/fbdev/vt8623fb.c
673
struct resource vga_res;
drivers/video/fbdev/wmt_ge_rops.c
151
struct resource *res;
drivers/video/fbdev/xilinxfb.c
271
struct resource *res;
drivers/video/screen_info_generic.c
10
static void resource_init_named(struct resource *r,
drivers/video/screen_info_generic.c
22
static void resource_init_io_named(struct resource *r,
drivers/video/screen_info_generic.c
29
static void resource_init_mem_named(struct resource *r,
drivers/video/screen_info_generic.c
76
ssize_t screen_info_resources(const struct screen_info *si, struct resource *r, size_t num)
drivers/video/screen_info_generic.c
78
struct resource *pos = r;
drivers/video/screen_info_pci.c
109
screen_info_lfb_bar = pr - pdev->resource;
drivers/video/screen_info_pci.c
116
static struct pci_dev *__screen_info_pci_dev(struct resource *res)
drivers/video/screen_info_pci.c
119
const struct resource *r = NULL;
drivers/video/screen_info_pci.c
14
static bool __screen_info_relocation_is_valid(const struct screen_info *si, struct resource *pr)
drivers/video/screen_info_pci.c
142
struct resource res[SCREEN_INFO_MAX_RESOURCES];
drivers/video/screen_info_pci.c
33
struct resource *pr = &screen_info_lfb_pdev->resource[screen_info_lfb_bar];
drivers/video/screen_info_pci.c
75
struct resource r = {
drivers/video/screen_info_pci.c
78
const struct resource *pr;
drivers/virtio/virtio_mem.c
140
struct resource *parent_resource;
drivers/virtio/virtio_mem.c
2921
static int virtio_mem_range_has_system_ram(struct resource *res, void *arg)
drivers/virtio/virtio_mmio.c
676
struct resource resources[2] = {};
drivers/virtio/virtio_mmio.c
736
pdev->resource[0].end - pdev->resource[0].start + 1ULL,
drivers/virtio/virtio_mmio.c
737
(unsigned long long)pdev->resource[0].start,
drivers/virtio/virtio_mmio.c
738
(unsigned long long)pdev->resource[1].start,
drivers/watchdog/aspeed_wdt.c
263
const struct resource *res;
drivers/watchdog/cpwd.c
531
p->regs = of_ioremap(&op->resource[0], 0,
drivers/watchdog/cpwd.c
611
of_iounmap(&op->resource[0], p->regs, 4 * WD_TIMER_REGSZ);
drivers/watchdog/cpwd.c
637
of_iounmap(&op->resource[0], p->regs, 4 * WD_TIMER_REGSZ);
drivers/watchdog/exar_wdt.c
258
struct resource *res;
drivers/watchdog/exar_wdt.c
58
struct resource wdt_res;
drivers/watchdog/f71808e_wdt.c
452
struct resource *res;
drivers/watchdog/f71808e_wdt.c
618
struct resource wdt_res = {};
drivers/watchdog/iTCO_wdt.c
95
struct resource *tco_res;
drivers/watchdog/iTCO_wdt.c
96
struct resource *smi_res;
drivers/watchdog/ie6xx_wdt.c
226
struct resource *res;
drivers/watchdog/ie6xx_wdt.c
271
struct resource *res;
drivers/watchdog/intel_oc_wdt.c
43
struct resource *ctrl_res;
drivers/watchdog/menz69_wdt.c
105
struct resource *mem;
drivers/watchdog/menz69_wdt.c
16
struct resource *mem;
drivers/watchdog/mpc8xxx_wdt.c
132
struct resource *res;
drivers/watchdog/nic7018_wdt.c
174
struct resource *io_rc;
drivers/watchdog/orion_wdt.c
410
struct resource *res;
drivers/watchdog/orion_wdt.c
505
struct resource *res;
drivers/watchdog/qcom-wdt.c
200
struct resource *res;
drivers/watchdog/rc32434_wdt.c
261
struct resource *r;
drivers/watchdog/rdc321x_wdt.c
216
struct resource *r;
drivers/watchdog/riowd.c
191
p->regs = of_ioremap(&op->resource[0], 0, 2, DRIVER_NAME);
drivers/watchdog/riowd.c
213
of_iounmap(&op->resource[0], p->regs, 2);
drivers/watchdog/riowd.c
224
of_iounmap(&op->resource[0], p->regs, 2);
drivers/watchdog/rti_wdt.c
218
struct resource res;
drivers/watchdog/s32g_wdt.c
217
struct resource *res;
drivers/watchdog/sa1100_wdt.c
187
struct resource *res;
drivers/watchdog/simatic-ipc-wdt.c
153
struct resource *res;
drivers/watchdog/simatic-ipc-wdt.c
47
static struct resource gp_status_reg_227e_res =
drivers/watchdog/simatic-ipc-wdt.c
50
static struct resource io_resource_enable =
drivers/watchdog/simatic-ipc-wdt.c
54
static struct resource io_resource_trigger =
drivers/watchdog/simatic-ipc-wdt.c
59
static struct resource mem_resource =
drivers/watchdog/sp5100_tco.c
357
struct resource *res;
drivers/watchdog/tqmx86_wdt.c
75
struct resource *res;
drivers/watchdog/via_wdt.c
67
static struct resource wdt_res;
drivers/watchdog/wdat_wdt.c
318
struct resource *res;
drivers/watchdog/wdat_wdt.c
363
res = &pdev->resource[i];
drivers/watchdog/wdat_wdt.c
391
struct resource r;
drivers/watchdog/wdat_wdt.c
426
res = &pdev->resource[j];
drivers/xen/arm-device.c
110
if (pdev->num_resources == 0 || pdev->resource == NULL)
drivers/xen/arm-device.c
115
r = xen_map_device_mmio(pdev->resource, pdev->num_resources);
drivers/xen/arm-device.c
118
r = xen_unmap_device_mmio(pdev->resource, pdev->num_resources);
drivers/xen/arm-device.c
14
static int xen_unmap_device_mmio(const struct resource *resources,
drivers/xen/arm-device.c
19
const struct resource *r;
drivers/xen/arm-device.c
41
static int xen_map_device_mmio(const struct resource *resources,
drivers/xen/arm-device.c
46
const struct resource *r;
drivers/xen/balloon.c
227
static void release_memory_resource(struct resource *resource)
drivers/xen/balloon.c
229
if (!resource)
drivers/xen/balloon.c
236
release_resource(resource);
drivers/xen/balloon.c
237
kfree(resource);
drivers/xen/balloon.c
240
static struct resource *additional_memory_resource(phys_addr_t size)
drivers/xen/balloon.c
242
struct resource *res;
drivers/xen/balloon.c
267
struct resource *resource;
drivers/xen/balloon.c
283
resource = additional_memory_resource(balloon_hotplug * PAGE_SIZE);
drivers/xen/balloon.c
284
if (!resource)
drivers/xen/balloon.c
287
nid = memory_add_physaddr_to_nid(resource->start);
drivers/xen/balloon.c
308
pfn = PFN_DOWN(resource->start);
drivers/xen/balloon.c
327
rc = add_memory_resource(nid, resource, MHP_MERGE_RESOURCE);
drivers/xen/balloon.c
340
release_memory_resource(resource);
drivers/xen/unpopulated-alloc.c
19
static struct resource *target_resource;
drivers/xen/unpopulated-alloc.c
30
int __weak __init arch_xen_unpopulated_init(struct resource **res)
drivers/xen/unpopulated-alloc.c
40
struct resource *res, *tmp_res = NULL;
drivers/xen/xen-pciback/conf_space_header.c
164
const struct resource *res = dev->resource;
drivers/xen/xen-pciback/conf_space_header.c
213
const struct resource *res = dev->resource;
drivers/zorro/zorro-sysfs.c
61
static DEVICE_ATTR_RO(resource);
drivers/zorro/zorro.c
115
static struct resource __init *zorro_find_parent_resource(
drivers/zorro/zorro.c
121
if (resource_contains(&bridge->resource[i], &z->resource))
drivers/zorro/zorro.c
122
return &bridge->resource[i];
drivers/zorro/zorro.c
133
struct resource *r;
drivers/zorro/zorro.c
175
z->resource = DEFINE_RES_MEM_NAMED(zi->boardaddr, zi->boardsize, z->name);
drivers/zorro/zorro.c
177
error = request_resource(r, &z->resource);
drivers/zorro/zorro.c
181
z->name, &z->resource);
fs/pstore/ram.c
651
struct resource *res;
include/acpi/acpi_bus.h
725
struct resource secondary; /* downstream bus range */
include/acpi/acpixf.h
797
acpi_status (*acpi_walk_resource_callback) (struct acpi_resource * resource,
include/acpi/acpixf.h
839
*resource,
include/acpi/actbl2.h
171
u32 resource;
include/clocksource/timer-davinci.h
36
struct resource reg;
include/clocksource/timer-davinci.h
37
struct resource irq[DAVINCI_TIMER_NUM_IRQS];
include/drm/intel/i915_drm.h
39
extern struct resource intel_graphics_stolen_res;
include/drm/ttm/ttm_bo.h
120
struct ttm_resource *resource;
include/drm/ttm/ttm_bo.h
340
WARN_ON(bo->resource);
include/drm/ttm/ttm_bo.h
341
bo->resource = new_mem;
include/drm/ttm/ttm_bo.h
354
ttm_resource_free(bo, &bo->resource);
include/linux/acpi.h
1069
static inline struct acpi_device *acpi_resource_consumer(struct resource *res)
include/linux/acpi.h
1122
int hmat_get_extended_linear_cache_size(struct resource *backing_res, int nid,
include/linux/acpi.h
1125
static inline int hmat_get_extended_linear_cache_size(struct resource *backing_res,
include/linux/acpi.h
1508
int acpi_irq_get(acpi_handle handle, unsigned int index, struct resource *res);
include/linux/acpi.h
1513
int acpi_irq_get(acpi_handle handle, unsigned int index, struct resource *res)
include/linux/acpi.h
504
bool acpi_dev_resource_memory(struct acpi_resource *ares, struct resource *res);
include/linux/acpi.h
505
bool acpi_dev_resource_io(struct acpi_resource *ares, struct resource *res);
include/linux/acpi.h
513
struct resource *res);
include/linux/acpi.h
531
struct acpi_device *acpi_resource_consumer(struct resource *res);
include/linux/acpi.h
533
int acpi_check_resource_conflict(const struct resource *res);
include/linux/acpi.h
925
static inline int acpi_check_resource_conflict(struct resource *res)
include/linux/amba/bus.h
142
int amba_device_add(struct amba_device *, struct resource *);
include/linux/amba/bus.h
143
int amba_device_register(struct amba_device *, struct resource *);
include/linux/amba/bus.h
66
struct resource res;
include/linux/apple-gmux.h
103
struct resource *res;
include/linux/ata_platform.h
17
struct resource *io_res,
include/linux/ata_platform.h
18
struct resource *ctl_res,
include/linux/ata_platform.h
19
struct resource *irq_res,
include/linux/bcma/bcma_driver_pci.h
220
struct resource mem_resource;
include/linux/bcma/bcma_driver_pci.h
221
struct resource io_resource;
include/linux/cdx/cdx_bus.h
157
struct resource res[MAX_CDX_DEV_RESOURCES];
include/linux/compat.h
725
asmlinkage long compat_sys_getrlimit(unsigned int resource,
include/linux/compat.h
727
asmlinkage long compat_sys_setrlimit(unsigned int resource,
include/linux/crash_reserve.h
14
extern struct resource crashk_res;
include/linux/crash_reserve.h
15
extern struct resource crashk_low_res;
include/linux/dax.h
304
void hmem_register_resource(int target_nid, struct resource *r);
include/linux/dax.h
306
static inline void hmem_register_resource(int target_nid, struct resource *r)
include/linux/dax.h
312
const struct resource *res);
include/linux/device/devres.h
117
void __iomem *devm_ioremap_resource(struct device *dev, const struct resource *res);
include/linux/device/devres.h
118
void __iomem *devm_ioremap_resource_wc(struct device *dev, const struct resource *res);
include/linux/device/devres.h
125
void __iomem *devm_ioremap_resource(struct device *dev, const struct resource *res)
include/linux/device/devres.h
131
void __iomem *devm_ioremap_resource_wc(struct device *dev, const struct resource *res)
include/linux/device/devres.h
16
struct resource;
include/linux/dfl.h
46
struct resource mmio_res;
include/linux/dio.h
251
#define dio_resource_start(d) ((d)->resource.start)
include/linux/dio.h
252
#define dio_resource_end(d) ((d)->resource.end)
include/linux/dio.h
253
#define dio_resource_len(d) (resource_size(&(d)->resource))
include/linux/dio.h
254
#define dio_resource_flags(d) ((d)->resource.flags)
include/linux/dio.h
53
struct resource resource;
include/linux/dio.h
65
struct resource resources[2]; /* address space routed to this bus */
include/linux/ehl_pse_io_aux.h
20
struct resource mem;
include/linux/eisa.h
104
struct resource eisa_root_res; /* ditto */
include/linux/eisa.h
43
struct resource res[EISA_MAX_RESOURCES];
include/linux/eisa.h
98
struct resource *res;
include/linux/firmware/imx/svc/misc.h
50
int imx_sc_misc_set_control(struct imx_sc_ipc *ipc, u32 resource,
include/linux/firmware/imx/svc/misc.h
53
int imx_sc_misc_get_control(struct imx_sc_ipc *ipc, u32 resource,
include/linux/firmware/imx/svc/misc.h
56
int imx_sc_pm_cpu_start(struct imx_sc_ipc *ipc, u32 resource,
include/linux/firmware/imx/svc/misc.h
60
u32 resource, u8 ctrl, u32 val)
include/linux/firmware/imx/svc/misc.h
66
u32 resource, u8 ctrl, u32 *val)
include/linux/firmware/imx/svc/misc.h
71
static inline int imx_sc_pm_cpu_start(struct imx_sc_ipc *ipc, u32 resource,
include/linux/firmware/imx/svc/rm.h
61
bool imx_sc_rm_is_resource_owned(struct imx_sc_ipc *ipc, u16 resource);
include/linux/firmware/imx/svc/rm.h
62
int imx_sc_rm_get_resource_owner(struct imx_sc_ipc *ipc, u16 resource, u8 *pt);
include/linux/firmware/imx/svc/rm.h
65
imx_sc_rm_is_resource_owned(struct imx_sc_ipc *ipc, u16 resource)
include/linux/firmware/imx/svc/rm.h
69
static inline int imx_sc_rm_get_resource_owner(struct imx_sc_ipc *ipc, u16 resource, u8 *pt)
include/linux/fsl/mc.h
111
struct fsl_mc_resource resource;
include/linux/fsl/mc.h
115
container_of(_mc_resource, struct fsl_mc_device_irq, resource)
include/linux/fsl/mc.h
213
struct resource *regions;
include/linux/fsl/mc.h
215
struct fsl_mc_resource *resource;
include/linux/fsl/ptp_qoriq.h
147
struct resource *rsrc;
include/linux/hyperv.h
1331
int vmbus_allocate_mmio(struct resource **new, struct hv_device *device_obj,
include/linux/i2c.h
433
const struct resource *resources;
include/linux/intel_dg_nvm_aux.h
24
struct resource bar;
include/linux/intel_dg_nvm_aux.h
25
struct resource bar2;
include/linux/intel_tpmi.h
32
struct resource *tpmi_get_resource_at_index(struct auxiliary_device *auxdev, int index);
include/linux/intel_vsec.h
139
struct resource *resource;
include/linux/intel_vsec.h
33
struct resource;
include/linux/ioport.h
159
(struct resource) { \
include/linux/ioport.h
214
const struct resource *res,
include/linux/ioport.h
238
extern struct resource ioport_resource;
include/linux/ioport.h
239
extern struct resource iomem_resource;
include/linux/ioport.h
240
extern struct resource soft_reserve_resource;
include/linux/ioport.h
242
extern struct resource *request_resource_conflict(struct resource *root, struct resource *new);
include/linux/ioport.h
243
extern int request_resource(struct resource *root, struct resource *new);
include/linux/ioport.h
244
extern int release_resource(struct resource *new);
include/linux/ioport.h
245
void release_child_resources(struct resource *new);
include/linux/ioport.h
246
extern void reserve_region_with_split(struct resource *root,
include/linux/ioport.h
249
extern struct resource *insert_resource_conflict(struct resource *parent, struct resource *new);
include/linux/ioport.h
250
extern int insert_resource(struct resource *parent, struct resource *new);
include/linux/ioport.h
251
extern void insert_resource_expand_to_fit(struct resource *root, struct resource *new);
include/linux/ioport.h
252
extern int remove_resource(struct resource *old);
include/linux/ioport.h
253
extern void arch_remove_reservations(struct resource *avail);
include/linux/ioport.h
254
extern int allocate_resource(struct resource *root, struct resource *new,
include/linux/ioport.h
259
struct resource *lookup_resource(struct resource *root, resource_size_t start);
include/linux/ioport.h
260
int adjust_resource(struct resource *res, resource_size_t start,
include/linux/ioport.h
262
resource_size_t resource_alignment(struct resource *res);
include/linux/ioport.h
274
static inline void resource_set_size(struct resource *res, resource_size_t size)
include/linux/ioport.h
28
struct resource *parent, *sibling, *child;
include/linux/ioport.h
287
static inline void resource_set_range(struct resource *res,
include/linux/ioport.h
295
static inline resource_size_t resource_size(const struct resource *res)
include/linux/ioport.h
299
static inline unsigned long resource_type(const struct resource *res)
include/linux/ioport.h
303
static inline unsigned long resource_ext_type(const struct resource *res)
include/linux/ioport.h
308
static inline bool resource_contains(const struct resource *r1, const struct resource *r2)
include/linux/ioport.h
318
static inline bool resource_overlaps(const struct resource *r1, const struct resource *r2)
include/linux/ioport.h
323
static inline bool resource_intersection(const struct resource *r1, const struct resource *r2,
include/linux/ioport.h
324
struct resource *r)
include/linux/ioport.h
333
static inline bool resource_union(const struct resource *r1, const struct resource *r2,
include/linux/ioport.h
334
struct resource *r)
include/linux/ioport.h
347
static inline bool resource_assigned(const struct resource *res)
include/linux/ioport.h
352
int find_resource_space(struct resource *root, struct resource *new,
include/linux/ioport.h
366
extern struct resource * __request_region(struct resource *,
include/linux/ioport.h
375
extern void __release_region(struct resource *, resource_size_t,
include/linux/ioport.h
381
extern void merge_system_ram_resource(struct resource *res);
include/linux/ioport.h
387
extern int devm_request_resource(struct device *dev, struct resource *root,
include/linux/ioport.h
388
struct resource *new);
include/linux/ioport.h
389
extern void devm_release_resource(struct device *dev, struct resource *new);
include/linux/ioport.h
396
extern struct resource * __devm_request_region(struct device *dev,
include/linux/ioport.h
397
struct resource *parent, resource_size_t start,
include/linux/ioport.h
405
extern void __devm_release_region(struct device *dev, struct resource *parent,
include/linux/ioport.h
409
extern bool resource_is_exclusive(struct resource *resource, u64 addr,
include/linux/ioport.h
417
int (*func)(struct resource *, void *));
include/linux/ioport.h
420
int (*func)(struct resource *, void *));
include/linux/ioport.h
423
int (*func)(struct resource *, void *));
include/linux/ioport.h
426
void *arg, int (*func)(struct resource *, void *));
include/linux/ioport.h
428
int (*func)(struct resource *, void *));
include/linux/ioport.h
432
struct resource *devm_request_free_mem_region(struct device *dev,
include/linux/ioport.h
433
struct resource *base, unsigned long size);
include/linux/ioport.h
434
struct resource *request_free_mem_region(struct resource *base,
include/linux/ioport.h
436
struct resource *alloc_free_mem_region(struct resource *base,
include/linux/ioport.h
439
static inline void irqresource_disabled(struct resource *res, u32 irq)
include/linux/irqchip/arm-vgic-info.h
26
struct resource vcpu;
include/linux/irqchip/arm-vgic-info.h
34
struct resource vctrl;
include/linux/libnvdimm.h
127
struct resource;
include/linux/libnvdimm.h
130
struct resource *res;
include/linux/libnvdimm.h
269
struct resource *flush_wpq, const char *dimm_id,
include/linux/libnvdimm.h
275
struct resource *flush_wpq)
include/linux/logic_iomem.h
59
int logic_iomem_add_region(struct resource *resource,
include/linux/lsm_hook_defs.h
251
LSM_HOOK(int, 0, task_setrlimit, struct task_struct *p, unsigned int resource,
include/linux/mbus.h
16
struct resource;
include/linux/mbus.h
87
void mvebu_mbus_get_pcie_mem_aperture(struct resource *res);
include/linux/mbus.h
88
void mvebu_mbus_get_pcie_io_aperture(struct resource *res);
include/linux/mcb.h
125
extern struct resource *mcb_request_mem(struct mcb_device *dev,
include/linux/mcb.h
127
extern void mcb_release_mem(struct resource *mem);
include/linux/mcb.h
129
extern struct resource *mcb_get_resource(struct mcb_device *dev,
include/linux/mcb.h
73
struct resource irq;
include/linux/mcb.h
74
struct resource mem;
include/linux/mei_aux.h
23
struct resource bar;
include/linux/mei_aux.h
24
struct resource ext_op_mem;
include/linux/memory_hotplug.h
15
struct resource;
include/linux/memory_hotplug.h
294
extern int add_memory_resource(int nid, struct resource *resource,
include/linux/memremap.h
10
struct resource;
include/linux/mfd/core.h
105
const struct resource *resources;
include/linux/mfd/core.h
134
struct resource *mem_base,
include/linux/mfd/core.h
149
struct resource *mem_base,
include/linux/mfd/core.h
15
#define MFD_RES_SIZE(arr) (sizeof(arr) / sizeof(struct resource))
include/linux/mfd/intel_pmc_bxt.h
27
struct resource *telem_base;
include/linux/mfd/kempld.h
110
struct resource *ioresource;
include/linux/mfd/macsmc.h
118
struct resource *sram;
include/linux/mfd/ocelot.h
14
struct resource;
include/linux/mfd/ocelot.h
22
struct resource *res;
include/linux/mfd/palmas.h
81
struct palmas_resource *resource;
include/linux/mfd/qcom_rpm.h
12
int qcom_rpm_write(struct qcom_rpm *rpm, int state, int resource, u32 *buf, size_t count);
include/linux/mfd/twl.h
630
u8 resource;
include/linux/misc/keba.h
21
struct resource io;
include/linux/misc/keba.h
35
struct resource io;
include/linux/misc/keba.h
47
struct resource io;
include/linux/misc/keba.h
57
struct resource io;
include/linux/misc/keba.h
68
struct resource io;
include/linux/nd.h
121
struct resource res;
include/linux/of_address.h
137
struct resource *r)
include/linux/of_address.h
144
struct resource *res)
include/linux/of_address.h
150
struct resource *res)
include/linux/of_address.h
163
struct resource *r);
include/linux/of_address.h
167
struct resource *r)
include/linux/of_address.h
193
struct resource res;
include/linux/of_address.h
64
struct resource *r);
include/linux/of_address.h
86
struct resource *r);
include/linux/of_address.h
89
struct resource *res);
include/linux/of_address.h
91
struct resource *res);
include/linux/of_irq.h
116
struct resource *res, int nr_irqs)
include/linux/of_irq.h
62
struct resource *r);
include/linux/of_irq.h
74
struct resource *res, int nr_irqs);
include/linux/of_reserved_mem.h
10
struct resource;
include/linux/of_reserved_mem.h
44
unsigned int idx, struct resource *res);
include/linux/of_reserved_mem.h
46
const char *name, struct resource *res);
include/linux/of_reserved_mem.h
76
struct resource *res)
include/linux/of_reserved_mem.h
83
struct resource *res)
include/linux/pci-acpi.h
30
extern int pci_mcfg_lookup(struct acpi_pci_root *root, struct resource *cfgres,
include/linux/pci-ecam.h
60
struct resource res;
include/linux/pci-ecam.h
61
struct resource busr;
include/linux/pci-ecam.h
74
struct resource *cfgres, struct resource *busr,
include/linux/pci.h
1209
resource_size_t pcibios_align_resource(void *, const struct resource *,
include/linux/pci.h
1216
struct resource *res);
include/linux/pci.h
1217
void pcibios_bus_to_resource(struct pci_bus *bus, struct resource *res,
include/linux/pci.h
1252
struct resource *pci_find_parent_resource(const struct pci_dev *dev,
include/linux/pci.h
1253
struct resource *res);
include/linux/pci.h
1558
struct resource *pci_find_resource(struct pci_dev *dev, struct resource *res);
include/linux/pci.h
1569
static inline __must_check struct resource *
include/linux/pci.h
1585
void pci_add_resource(struct list_head *resources, struct resource *res);
include/linux/pci.h
1586
void pci_add_resource_offset(struct list_head *resources, struct resource *res,
include/linux/pci.h
1589
void pci_bus_add_resource(struct pci_bus *bus, struct resource *res);
include/linux/pci.h
1590
struct resource *pci_bus_resource_n(const struct pci_bus *bus, int n);
include/linux/pci.h
1592
void pci_bus_remove_resource(struct pci_bus *bus, struct resource *res);
include/linux/pci.h
1639
struct resource *res, resource_size_t size,
include/linux/pci.h
1650
int pci_remap_iospace(const struct resource *res, phys_addr_t phys_addr);
include/linux/pci.h
1651
int devm_pci_remap_iospace(struct device *dev, const struct resource *res,
include/linux/pci.h
1653
void pci_unmap_iospace(struct resource *res);
include/linux/pci.h
1658
struct resource *res);
include/linux/pci.h
1664
pcibios_resource_to_bus(pdev->bus, ®ion, &pdev->resource[bar]);
include/linux/pci.h
2178
static inline struct resource *pci_find_resource(struct pci_dev *dev,
include/linux/pci.h
2179
struct resource *res)
include/linux/pci.h
2276
#define pci_resource_n(dev, bar) (&(dev)->resource[(bar)])
include/linux/pci.h
2319
const struct resource *rsrc,
include/linux/pci.h
446
struct resource resource[DEVICE_COUNT_RESOURCE]; /* I/O and memory regions + expansion ROMs */
include/linux/pci.h
447
struct resource driver_exclusive_resource; /* driver exclusive resource ranges */
include/linux/pci.h
664
const struct resource *res,
include/linux/pci.h
706
struct resource *resource[PCI_BRIDGE_RESOURCE_NUM];
include/linux/pci.h
708
struct resource busn_res; /* Bus numbers routed to this bus */
include/linux/platform_data/wilco-ec.h
21
struct resource;
include/linux/platform_data/wilco-ec.h
42
struct resource *io_command;
include/linux/platform_data/wilco-ec.h
43
struct resource *io_data;
include/linux/platform_data/wilco-ec.h
44
struct resource *io_packet;
include/linux/platform_data/x86/intel_scu_ipc.h
20
struct resource mem;
include/linux/platform_data/x86/p2sb.h
13
struct resource;
include/linux/platform_data/x86/p2sb.h
17
int p2sb_bar(struct pci_bus *bus, unsigned int devfn, struct resource *mem);
include/linux/platform_data/x86/p2sb.h
21
static inline int p2sb_bar(struct pci_bus *bus, unsigned int devfn, struct resource *mem)
include/linux/platform_data/xtalk-bridge.h
12
struct resource mem;
include/linux/platform_data/xtalk-bridge.h
13
struct resource io;
include/linux/platform_device.h
108
extern struct resource *platform_get_resource_byname(struct platform_device *,
include/linux/platform_device.h
124
const struct resource *res;
include/linux/platform_device.h
152
const struct resource *res, unsigned int num,
include/linux/platform_device.h
193
const struct resource *res, unsigned int num)
include/linux/platform_device.h
225
const struct resource *res,
include/linux/platform_device.h
31
struct resource *resource;
include/linux/platform_device.h
338
struct resource *res, unsigned int n_res,
include/linux/platform_device.h
53
extern struct resource *platform_get_resource(struct platform_device *,
include/linux/platform_device.h
55
extern struct resource *platform_get_mem_or_io(struct platform_device *,
include/linux/platform_device.h
65
unsigned int index, struct resource **res);
include/linux/platform_device.h
76
unsigned int index, struct resource **res)
include/linux/pnp.h
108
struct resource *res = pnp_get_resource(dev, IORESOURCE_MEM, bar);
include/linux/pnp.h
118
struct resource *res = pnp_get_resource(dev, IORESOURCE_MEM, bar);
include/linux/pnp.h
127
struct resource *res = pnp_get_resource(dev, IORESOURCE_MEM, bar);
include/linux/pnp.h
142
struct resource *res = pnp_get_resource(dev, IORESOURCE_MEM, bar);
include/linux/pnp.h
152
struct resource *res = pnp_get_resource(dev, IORESOURCE_IRQ, bar);
include/linux/pnp.h
161
struct resource *res = pnp_get_resource(dev, IORESOURCE_IRQ, bar);
include/linux/pnp.h
176
struct resource *res = pnp_get_resource(dev, IORESOURCE_DMA, bar);
include/linux/pnp.h
185
struct resource *res = pnp_get_resource(dev, IORESOURCE_DMA, bar);
include/linux/pnp.h
27
struct resource *pnp_get_resource(struct pnp_dev *dev, unsigned long type,
include/linux/pnp.h
30
static inline struct resource *pnp_get_resource(struct pnp_dev *dev,
include/linux/pnp.h
37
static inline int pnp_resource_valid(struct resource *res)
include/linux/pnp.h
44
static inline int pnp_resource_enabled(struct resource *res)
include/linux/pnp.h
51
static inline resource_size_t pnp_resource_len(struct resource *res)
include/linux/pnp.h
62
struct resource *res = pnp_get_resource(dev, IORESOURCE_IO, bar);
include/linux/pnp.h
72
struct resource *res = pnp_get_resource(dev, IORESOURCE_IO, bar);
include/linux/pnp.h
82
struct resource *res = pnp_get_resource(dev, IORESOURCE_IO, bar);
include/linux/pnp.h
97
struct resource *res = pnp_get_resource(dev, IORESOURCE_IO, bar);
include/linux/resource_ext.h
15
struct resource res; /* In master (CPU) address space */
include/linux/resource_ext.h
25
struct resource *res; /* In master (CPU) address space */
include/linux/resource_ext.h
27
struct resource __res; /* Default storage for res */
include/linux/resource_ext.h
31
resource_list_create_entry(struct resource *res, size_t extra_size);
include/linux/rio.h
198
struct resource riores[RIO_MAX_DEV_RESOURCES];
include/linux/rio.h
220
struct resource *res;
include/linux/rio.h
233
struct resource *res;
include/linux/rio.h
272
struct resource iores;
include/linux/rio.h
273
struct resource riores[RIO_MAX_MPORT_RESOURCES];
include/linux/rio_drv.h
256
static inline void rio_init_mbox_res(struct resource *res, int start, int end)
include/linux/rio_drv.h
258
memset(res, 0, sizeof(struct resource));
include/linux/rio_drv.h
274
static inline void rio_init_dbell_res(struct resource *res, u16 start, u16 end)
include/linux/rio_drv.h
276
memset(res, 0, sizeof(struct resource));
include/linux/rio_drv.h
354
extern struct resource *rio_request_outb_dbell(struct rio_dev *, u16, u16);
include/linux/rio_drv.h
355
extern int rio_release_outb_dbell(struct rio_dev *, struct resource *);
include/linux/screen_info.h
137
ssize_t screen_info_resources(const struct screen_info *si, struct resource *r, size_t num);
include/linux/screen_info.h
16
struct resource;
include/linux/security.h
1367
unsigned int resource,
include/linux/security.h
526
int security_task_setrlimit(struct task_struct *p, unsigned int resource,
include/linux/sh_intc.h
115
struct resource *resource;
include/linux/soc/apple/tunable.h
52
struct resource *res);
include/linux/ssb/ssb_driver_gige.h
50
struct resource mem_resource;
include/linux/ssb/ssb_driver_gige.h
51
struct resource io_resource;
include/linux/syscalls.h
1206
asmlinkage long sys_old_getrlimit(unsigned int resource, struct rlimit __user *rlim);
include/linux/syscalls.h
712
asmlinkage long sys_getrlimit(unsigned int resource,
include/linux/syscalls.h
714
asmlinkage long sys_setrlimit(unsigned int resource,
include/linux/syscalls.h
881
asmlinkage long sys_prlimit64(pid_t pid, unsigned int resource,
include/linux/tc.h
66
struct resource resource[2]; /* Address space routed to this bus. */
include/linux/tc.h
86
struct resource resource; /* Address space of this device. */
include/linux/usb/chipidea.h
110
struct resource *res, int nres,
include/linux/vmw_vmci_defs.h
195
u32 resource;
include/linux/vmw_vmci_defs.h
199
(struct vmci_handle){ .context = _cid, .resource = _rid }
include/linux/vmw_vmci_defs.h
204
return h1.context == h2.context && h1.resource == h2.resource;
include/linux/vmw_vmci_defs.h
210
.resource = VMCI_INVALID_ID
include/linux/vmw_vmci_defs.h
226
.resource = VMCI_ANON_SRC_RESOURCE_ID
include/linux/zorro.h
36
struct resource resource;
include/linux/zorro.h
94
#define zorro_resource_start(z) ((z)->resource.start)
include/linux/zorro.h
95
#define zorro_resource_end(z) ((z)->resource.end)
include/linux/zorro.h
96
#define zorro_resource_len(z) (resource_size(&(z)->resource))
include/linux/zorro.h
97
#define zorro_resource_flags(z) ((z)->resource.flags)
include/net/phonet/phonet.h
31
u8 resource;
include/pcmcia/ds.h
106
struct resource *resource[PCMCIA_NUM_RESOURCES];
include/pcmcia/ds.h
211
int pcmcia_request_window(struct pcmcia_device *p_dev, struct resource *res,
include/pcmcia/ds.h
213
int pcmcia_release_window(struct pcmcia_device *p_dev, struct resource *res);
include/pcmcia/ds.h
214
int pcmcia_map_mem_page(struct pcmcia_device *p_dev, struct resource *res,
include/pcmcia/soc_common.h
47
struct resource res_skt;
include/pcmcia/soc_common.h
48
struct resource res_io;
include/pcmcia/soc_common.h
49
struct resource res_io_io;
include/pcmcia/soc_common.h
50
struct resource res_mem;
include/pcmcia/soc_common.h
51
struct resource res_attr;
include/pcmcia/ss.h
102
struct resource *res;
include/pcmcia/ss.h
97
struct resource *res;
include/soc/mscc/ocelot.h
998
struct regmap *ocelot_regmap_init(struct ocelot *ocelot, struct resource *res);
include/sound/ad1816a.h
116
struct resource *res_port;
include/sound/core.h
342
struct resource;
include/sound/core.h
343
void release_and_free_resource(struct resource *res);
include/sound/es1688.h
22
struct resource *res_port;
include/sound/gus.h
288
struct resource *res_port1;
include/sound/gus.h
289
struct resource *res_port2;
include/sound/mpu401.h
63
struct resource *res; /* port resource */
include/sound/opl3.h
286
struct resource *res_l_port;
include/sound/opl3.h
287
struct resource *res_r_port;
include/sound/sb.h
52
struct resource *res_port;
include/sound/snd_wavefront.h
53
struct resource *res_base; /* i/o port resource allocation */
include/sound/wss.h
66
struct resource *res_port;
include/sound/wss.h
68
struct resource *res_cport;
include/uapi/linux/phonet.h
159
__u8 resource)
include/uapi/linux/phonet.h
161
spn->spn_resource = resource;
include/xen/xen.h
76
int arch_xen_unpopulated_init(struct resource **res);
kernel/crash_core.c
168
static inline resource_size_t crash_resource_size(const struct resource *res)
kernel/crash_core.c
366
static int __crash_shrink_memory(struct resource *old_res,
kernel/crash_core.c
369
struct resource *ram_res;
kernel/crash_reserve.c
29
struct resource crashk_res = {
kernel/crash_reserve.c
36
struct resource crashk_low_res = {
kernel/kexec_file.c
559
static int locate_mem_hole_callback(struct resource *res, void *arg)
kernel/kexec_file.c
588
int (*func)(struct resource *, void *))
kernel/kexec_file.c
593
struct resource res = { };
kernel/kexec_file.c
639
int (*func)(struct resource *, void *))
kernel/kexec_file.c
655
int (*func)(struct resource *, void *))
kernel/kexec_internal.h
47
int (*func)(struct resource *, void *));
kernel/kexec_internal.h
51
int (*func)(struct resource *, void *))
kernel/liveupdate/kexec_handover.c
1579
int (*func)(struct resource *, void *))
kernel/liveupdate/kexec_handover.c
1585
struct resource res = {
kernel/liveupdate/kexec_handover.c
1600
int (*func)(struct resource *, void *))
kernel/resource.c
1009
int insert_resource(struct resource *parent, struct resource *new)
kernel/resource.c
1011
struct resource *conflict;
kernel/resource.c
1026
void insert_resource_expand_to_fit(struct resource *root, struct resource *new)
kernel/resource.c
1033
struct resource *conflict;
kernel/resource.c
1074
int remove_resource(struct resource *old)
kernel/resource.c
1085
static int __adjust_resource(struct resource *res, resource_size_t start,
kernel/resource.c
1088
struct resource *tmp, *parent = res->parent;
kernel/resource.c
113
struct resource *p = v;
kernel/resource.c
1132
int adjust_resource(struct resource *res, resource_size_t start,
kernel/resource.c
1145
__reserve_region_with_split(struct resource *root, resource_size_t start,
kernel/resource.c
1148
struct resource *parent = root;
kernel/resource.c
1149
struct resource *conflict;
kernel/resource.c
1150
struct resource *res = alloc_resource(GFP_ATOMIC);
kernel/resource.c
1151
struct resource *next_res = NULL;
kernel/resource.c
1206
reserve_region_with_split(struct resource *root, resource_size_t start,
kernel/resource.c
1240
resource_size_t resource_alignment(struct resource *res)
kernel/resource.c
1268
static void revoke_iomem(struct resource *res)
kernel/resource.c
128
struct resource *root = pde_data(file_inode(m->file));
kernel/resource.c
129
struct resource *r = v, *p;
kernel/resource.c
1300
static void revoke_iomem(struct resource *res) {}
kernel/resource.c
1314
static int __request_region_locked(struct resource *res, struct resource *parent,
kernel/resource.c
1325
struct resource *conflict;
kernel/resource.c
1374
struct resource *__request_region(struct resource *parent,
kernel/resource.c
1378
struct resource *res = alloc_resource(GFP_KERNEL);
kernel/resource.c
1408
void __release_region(struct resource *parent, resource_size_t start,
kernel/resource.c
1411
struct resource **p;
kernel/resource.c
1420
struct resource *res = *p;
kernel/resource.c
1448
static void append_child_to_parent(struct resource *new_parent, struct resource *new_child)
kernel/resource.c
1450
struct resource *child;
kernel/resource.c
1470
static void reparent_children_after_split(struct resource *low,
kernel/resource.c
1471
struct resource *high,
kernel/resource.c
1474
struct resource *child, *next, **p;
kernel/resource.c
1508
struct resource *parent = &iomem_resource;
kernel/resource.c
1509
struct resource *new_res = NULL;
kernel/resource.c
1511
struct resource **p;
kernel/resource.c
1512
struct resource *res;
kernel/resource.c
1599
static bool system_ram_resources_mergeable(struct resource *r1,
kernel/resource.c
1600
struct resource *r2)
kernel/resource.c
1626
void merge_system_ram_resource(struct resource *res)
kernel/resource.c
1629
struct resource *cur;
kernel/resource.c
1663
struct resource **r = ptr;
kernel/resource.c
1686
int devm_request_resource(struct device *dev, struct resource *root,
kernel/resource.c
1687
struct resource *new)
kernel/resource.c
1689
struct resource *conflict, **ptr;
kernel/resource.c
171
static void free_resource(struct resource *res)
kernel/resource.c
1712
struct resource **ptr = res;
kernel/resource.c
1724
void devm_release_resource(struct device *dev, struct resource *new)
kernel/resource.c
1732
struct resource *parent;
kernel/resource.c
1752
struct resource *
kernel/resource.c
1753
__devm_request_region(struct device *dev, struct resource *parent,
kernel/resource.c
1757
struct resource *res;
kernel/resource.c
1778
void __devm_release_region(struct device *dev, struct resource *parent,
kernel/resource.c
1795
static struct resource reserve[MAXRESERVE];
kernel/resource.c
1800
struct resource *parent;
kernel/resource.c
1807
struct resource *res = reserve + x;
kernel/resource.c
183
static struct resource *alloc_resource(gfp_t flags)
kernel/resource.c
1836
struct resource *p;
kernel/resource.c
185
return kzalloc_obj(struct resource, flags);
kernel/resource.c
1883
bool resource_is_exclusive(struct resource *root, u64 addr, resource_size_t size)
kernel/resource.c
1888
struct resource *p;
kernel/resource.c
189
static struct resource * __request_resource(struct resource *root, struct resource *new)
kernel/resource.c
193
struct resource *tmp, **p;
kernel/resource.c
1936
struct resource_entry *resource_list_create_entry(struct resource *res,
kernel/resource.c
1969
static resource_size_t gfr_start(struct resource *base, resource_size_t size,
kernel/resource.c
1982
static bool gfr_continue(struct resource *base, resource_size_t addr,
kernel/resource.c
2005
struct resource *res = _res;
kernel/resource.c
2012
static struct resource *
kernel/resource.c
2013
get_free_mem_region(struct device *dev, struct resource *base,
kernel/resource.c
2019
struct resource *res;
kernel/resource.c
2106
struct resource *devm_request_free_mem_region(struct device *dev,
kernel/resource.c
2107
struct resource *base, unsigned long size)
kernel/resource.c
2117
struct resource *request_free_mem_region(struct resource *base,
kernel/resource.c
2139
struct resource *alloc_free_mem_region(struct resource *base,
kernel/resource.c
217
static int __release_resource(struct resource *old, bool release_child)
kernel/resource.c
219
struct resource *tmp, **p, *chd;
kernel/resource.c
246
static void __release_child_resources(struct resource *r)
kernel/resource.c
248
struct resource *tmp, *p;
kernel/resource.c
269
void release_child_resources(struct resource *r)
kernel/resource.c
283
struct resource *request_resource_conflict(struct resource *root, struct resource *new)
kernel/resource.c
285
struct resource *conflict;
kernel/resource.c
300
int request_resource(struct resource *root, struct resource *new)
kernel/resource.c
302
struct resource *conflict;
kernel/resource.c
314
int release_resource(struct resource *old)
kernel/resource.c
326
static bool is_type_match(struct resource *p, unsigned long flags, unsigned long desc)
kernel/resource.c
349
static int find_next_res(struct resource *parent, resource_size_t start,
kernel/resource.c
35
struct resource ioport_resource = {
kernel/resource.c
351
unsigned long desc, struct resource *res)
kernel/resource.c
355
struct resource *p;
kernel/resource.c
389
*res = (struct resource) {
kernel/resource.c
404
struct resource *res)
kernel/resource.c
409
static int walk_res_desc(struct resource *parent, resource_size_t start,
kernel/resource.c
412
int (*func)(struct resource *, void *))
kernel/resource.c
414
struct resource res;
kernel/resource.c
43
struct resource iomem_resource = {
kernel/resource.c
432
int (*func)(struct resource *, void *))
kernel/resource.c
456
u64 end, void *arg, int (*func)(struct resource *, void *))
kernel/resource.c
467
int (*func)(struct resource *, void *))
kernel/resource.c
482
int (*func)(struct resource *, void *))
kernel/resource.c
497
int (*func)(struct resource *, void *))
kernel/resource.c
499
struct resource res, *rams;
kernel/resource.c
505
rams = kvzalloc_objs(struct resource, rams_size);
kernel/resource.c
51
struct resource soft_reserve_resource = {
kernel/resource.c
515
struct resource *rams_new;
kernel/resource.c
517
rams_new = kvrealloc(rams, (rams_size + 16) * sizeof(struct resource),
kernel/resource.c
547
int (*func)(struct resource *, void *))
kernel/resource.c
565
struct resource res;
kernel/resource.c
600
static int __region_intersects(struct resource *parent, resource_size_t start,
kernel/resource.c
605
struct resource *p, *dp;
kernel/resource.c
606
struct resource res, o;
kernel/resource.c
67
static struct resource *next_resource(struct resource *p, bool skip_children,
kernel/resource.c
68
struct resource *subtree_root)
kernel/resource.c
708
void __weak arch_remove_reservations(struct resource *avail)
kernel/resource.c
712
static void resource_clip(struct resource *res, resource_size_t min,
kernel/resource.c
725
static int __find_resource_space(struct resource *root, struct resource *old,
kernel/resource.c
726
struct resource *new, resource_size_t size,
kernel/resource.c
729
struct resource *this = root->child;
kernel/resource.c
730
struct resource tmp = *new, avail, alloc;
kernel/resource.c
799
int find_resource_space(struct resource *root, struct resource *new,
kernel/resource.c
817
static int reallocate_resource(struct resource *root, struct resource *old,
kernel/resource.c
822
struct resource new = *old;
kernel/resource.c
823
struct resource *conflict;
kernel/resource.c
868
int allocate_resource(struct resource *root, struct resource *new,
kernel/resource.c
906
struct resource *lookup_resource(struct resource *root, resource_size_t start)
kernel/resource.c
908
struct resource *res;
kernel/resource.c
924
static struct resource * __insert_resource(struct resource *parent, struct resource *new)
kernel/resource.c
926
struct resource *first, *next;
kernel/resource.c
98
struct resource *root = pde_data(file_inode(m->file));
kernel/resource.c
989
struct resource *insert_resource_conflict(struct resource *parent, struct resource *new)
kernel/resource.c
99
struct resource *p;
kernel/resource.c
991
struct resource *conflict;
kernel/resource_kunit.c
120
struct resource result;
kernel/resource_kunit.c
176
struct resource *res = (struct resource *)ctx;
kernel/resource_kunit.c
190
static void resource_test_request_region(struct kunit *test, struct resource *parent,
kernel/resource_kunit.c
194
struct resource *res;
kernel/resource_kunit.c
201
static void resource_test_insert_resource(struct kunit *test, struct resource *parent,
kernel/resource_kunit.c
205
struct resource *res;
kernel/resource_kunit.c
225
struct resource *parent;
kernel/resource_kunit.c
24
static struct resource r0 = { .start = R0_START, .end = R0_END };
kernel/resource_kunit.c
25
static struct resource r1 = { .start = R1_START, .end = R1_END };
kernel/resource_kunit.c
26
static struct resource r2 = { .start = R2_START, .end = R2_END };
kernel/resource_kunit.c
27
static struct resource r3 = { .start = R3_START, .end = R3_END };
kernel/resource_kunit.c
28
static struct resource r4 = { .start = R4_START, .end = R4_END };
kernel/resource_kunit.c
31
struct resource *r1;
kernel/resource_kunit.c
32
struct resource *r2;
kernel/resource_kunit.c
33
struct resource r;
kernel/resource_kunit.c
85
static void resource_do_test(struct kunit *test, bool ret, struct resource *r,
kernel/resource_kunit.c
86
bool exp_ret, struct resource *exp_r,
kernel/resource_kunit.c
87
struct resource *r1, struct resource *r2)
kernel/resource_kunit.c
96
struct resource result;
kernel/sys.c
1500
static int do_prlimit(struct task_struct *tsk, unsigned int resource,
kernel/sys.c
1506
if (resource >= RLIM_NLIMITS)
kernel/sys.c
1508
resource = array_index_nospec(resource, RLIM_NLIMITS);
kernel/sys.c
1513
if (resource == RLIMIT_NOFILE &&
kernel/sys.c
1519
rlim = tsk->signal->rlim + resource;
kernel/sys.c
1530
retval = security_task_setrlimit(tsk, resource, new_rlim);
kernel/sys.c
1545
if (!retval && new_rlim && resource == RLIMIT_CPU &&
kernel/sys.c
1563
SYSCALL_DEFINE2(getrlimit, unsigned int, resource, struct rlimit __user *, rlim)
kernel/sys.c
1568
ret = do_prlimit(current, resource, NULL, &value);
kernel/sys.c
1577
COMPAT_SYSCALL_DEFINE2(setrlimit, unsigned int, resource,
kernel/sys.c
1594
return do_prlimit(current, resource, &r, NULL);
kernel/sys.c
1597
COMPAT_SYSCALL_DEFINE2(getrlimit, unsigned int, resource,
kernel/sys.c
1603
ret = do_prlimit(current, resource, NULL, &r);
kernel/sys.c
1628
SYSCALL_DEFINE2(old_getrlimit, unsigned int, resource,
kernel/sys.c
1632
if (resource >= RLIM_NLIMITS)
kernel/sys.c
1635
resource = array_index_nospec(resource, RLIM_NLIMITS);
kernel/sys.c
1637
x = current->signal->rlim[resource];
kernel/sys.c
1647
COMPAT_SYSCALL_DEFINE2(old_getrlimit, unsigned int, resource,
kernel/sys.c
1652
if (resource >= RLIM_NLIMITS)
kernel/sys.c
1655
resource = array_index_nospec(resource, RLIM_NLIMITS);
kernel/sys.c
1657
r = current->signal->rlim[resource];
kernel/sys.c
1729
SYSCALL_DEFINE4(prlimit64, pid_t, pid, unsigned int, resource,
kernel/sys.c
1777
ret = do_prlimit(tsk, resource, new_rlim ? &new : NULL,
kernel/sys.c
1794
SYSCALL_DEFINE2(setrlimit, unsigned int, resource, struct rlimit __user *, rlim)
kernel/sys.c
1800
return do_prlimit(current, resource, &new_rlim, NULL);
kernel/trace/trace_mmiotrace.c
71
start = dev->resource[i].start;
kernel/trace/trace_mmiotrace.c
74
(dev->resource[i].flags & PCI_REGION_FLAG_MASK)));
kernel/trace/trace_mmiotrace.c
77
start = dev->resource[i].start;
kernel/trace/trace_mmiotrace.c
78
end = dev->resource[i].end;
kernel/trace/trace_mmiotrace.c
80
dev->resource[i].start < dev->resource[i].end ?
lib/devres.c
124
__devm_ioremap_resource(struct device *dev, const struct resource *res,
lib/devres.c
189
const struct resource *res)
lib/devres.c
205
const struct resource *res)
lib/devres.c
244
struct resource res;
lib/logic_iomem.c
12
const struct resource *res;
lib/logic_iomem.c
39
int logic_iomem_add_region(struct resource *resource,
lib/logic_iomem.c
45
if (WARN_ON(!resource || !ops))
lib/logic_iomem.c
48
if (WARN_ON((resource->flags & IORESOURCE_TYPE_BITS) != IORESOURCE_MEM))
lib/logic_iomem.c
55
err = request_resource(&iomem_resource, resource);
lib/logic_iomem.c
62
rreg->res = resource;
lib/test_hmm.c
500
struct resource *res = NULL;
lib/tests/fortify_kunit.c
68
struct kunit_resource *resource;
lib/tests/fortify_kunit.c
75
resource = kunit_find_named_resource(current_test,
lib/tests/fortify_kunit.c
78
if (!resource)
lib/tests/fortify_kunit.c
81
(*(int *)resource->data)++;
lib/tests/fortify_kunit.c
82
kunit_put_resource(resource);
lib/tests/printf_kunit.c
327
struct resource test_resource = {
lib/tests/printf_kunit.c
336
test_resource = (struct resource) {
lib/tests/printf_kunit.c
344
test_resource = (struct resource) {
lib/tests/printf_kunit.c
352
test_resource = (struct resource) {
lib/tests/printf_kunit.c
361
test_resource = (struct resource) {
lib/tests/slub_kunit.c
12
static struct kunit_resource resource;
lib/tests/slub_kunit.c
298
kunit_add_named_resource(test, NULL, NULL, &resource,
lib/vsprintf.c
1066
char *resource_string(char *buf, char *end, struct resource *res,
mm/damon/core.c
2875
static int walk_system_ram(struct resource *res, void *arg)
mm/damon/stat.c
150
struct resource res;
mm/damon/stat.c
153
static int damon_stat_system_ram_walk_fn(struct resource *res, void *arg)
mm/memory_hotplug.c
1498
int add_memory_resource(int nid, struct resource *res, mhp_t mhp_flags)
mm/memory_hotplug.c
1608
struct resource *res;
mm/memory_hotplug.c
1657
struct resource *res;
mm/memory_hotplug.c
274
static struct resource *register_memory_resource(u64 start, u64 size,
mm/memory_hotplug.c
277
struct resource *res;
mm/memory_hotplug.c
311
static void release_memory_resource(struct resource *res)
mm/slub.c
923
struct kunit_resource *resource;
mm/slub.c
928
resource = kunit_find_named_resource(current->kunit_test, "slab_errors");
mm/slub.c
929
if (!resource)
mm/slub.c
932
(*(int *)resource->data)++;
mm/slub.c
933
kunit_put_resource(resource);
mm/slub.c
939
struct kunit_resource *resource;
mm/slub.c
944
resource = kunit_find_named_resource(current->kunit_test, "slab_errors");
mm/slub.c
945
if (!resource)
mm/slub.c
948
kunit_put_resource(resource);
net/devlink/devl_internal.h
296
struct devlink_resource *resource,
net/devlink/resource.c
111
struct devlink_resource *resource;
net/devlink/resource.c
121
resource = devlink_resource_find(devlink, NULL, resource_id);
net/devlink/resource.c
122
if (!resource)
net/devlink/resource.c
126
err = devlink_resource_validate_size(resource, size, info->extack);
net/devlink/resource.c
130
resource->size_new = size;
net/devlink/resource.c
131
devlink_resource_validate_children(resource);
net/devlink/resource.c
132
if (resource->parent)
net/devlink/resource.c
133
devlink_resource_validate_children(resource->parent);
net/devlink/resource.c
138
devlink_resource_size_params_put(struct devlink_resource *resource,
net/devlink/resource.c
143
size_params = &resource->size_params;
net/devlink/resource.c
155
static int devlink_resource_occ_put(struct devlink_resource *resource,
net/devlink/resource.c
158
if (!resource->occ_get)
net/devlink/resource.c
161
resource->occ_get(resource->occ_get_priv));
net/devlink/resource.c
165
struct devlink_resource *resource)
net/devlink/resource.c
175
if (nla_put_string(skb, DEVLINK_ATTR_RESOURCE_NAME, resource->name) ||
net/devlink/resource.c
176
devlink_nl_put_u64(skb, DEVLINK_ATTR_RESOURCE_SIZE, resource->size) ||
net/devlink/resource.c
177
devlink_nl_put_u64(skb, DEVLINK_ATTR_RESOURCE_ID, resource->id))
net/devlink/resource.c
179
if (resource->size != resource->size_new &&
net/devlink/resource.c
181
resource->size_new))
net/devlink/resource.c
183
if (devlink_resource_occ_put(resource, skb))
net/devlink/resource.c
185
if (devlink_resource_size_params_put(resource, skb))
net/devlink/resource.c
187
if (list_empty(&resource->resource_list))
net/devlink/resource.c
191
resource->size_valid))
net/devlink/resource.c
199
list_for_each_entry(child_resource, &resource->resource_list, list) {
net/devlink/resource.c
220
struct devlink_resource *resource;
net/devlink/resource.c
229
resource = list_first_entry(&devlink->resource_list,
net/devlink/resource.c
253
list_for_each_entry_from(resource, &devlink->resource_list, list) {
net/devlink/resource.c
254
err = devlink_resource_put(devlink, skb, resource);
net/devlink/resource.c
296
struct devlink_resource *resource,
net/devlink/resource.c
302
if (resource)
net/devlink/resource.c
303
resource_list = &resource->resource_list;
net/devlink/resource.c
307
list_for_each_entry(resource, resource_list, list) {
net/devlink/resource.c
308
if (!resource->size_valid)
net/devlink/resource.c
310
err = devlink_resources_validate(devlink, resource, info);
net/devlink/resource.c
338
struct devlink_resource *resource;
net/devlink/resource.c
346
resource = devlink_resource_find(devlink, NULL, resource_id);
net/devlink/resource.c
347
if (resource)
net/devlink/resource.c
350
resource = kzalloc_obj(*resource);
net/devlink/resource.c
351
if (!resource)
net/devlink/resource.c
363
resource->parent = parent_resource;
net/devlink/resource.c
365
kfree(resource);
net/devlink/resource.c
370
resource->name = resource_name;
net/devlink/resource.c
371
resource->size = resource_size;
net/devlink/resource.c
372
resource->size_new = resource_size;
net/devlink/resource.c
373
resource->id = resource_id;
net/devlink/resource.c
374
resource->size_valid = true;
net/devlink/resource.c
375
memcpy(&resource->size_params, size_params,
net/devlink/resource.c
376
sizeof(resource->size_params));
net/devlink/resource.c
377
INIT_LIST_HEAD(&resource->resource_list);
net/devlink/resource.c
378
list_add_tail(&resource->list, resource_list);
net/devlink/resource.c
385
struct devlink_resource *resource)
net/devlink/resource.c
389
list_for_each_entry_safe(child_resource, tmp, &resource->resource_list,
net/devlink/resource.c
40
struct devlink_resource *resource, u64 resource_id)
net/devlink/resource.c
44
if (resource)
net/devlink/resource.c
443
struct devlink_resource *resource;
net/devlink/resource.c
447
resource = devlink_resource_find(devlink, NULL, resource_id);
net/devlink/resource.c
448
if (!resource)
net/devlink/resource.c
45
resource_list = &resource->resource_list;
net/devlink/resource.c
450
*p_resource_size = resource->size_new;
net/devlink/resource.c
451
resource->size = resource->size_new;
net/devlink/resource.c
469
struct devlink_resource *resource;
net/devlink/resource.c
473
resource = devlink_resource_find(devlink, NULL, resource_id);
net/devlink/resource.c
474
if (WARN_ON(!resource))
net/devlink/resource.c
476
WARN_ON(resource->occ_get);
net/devlink/resource.c
478
resource->occ_get = occ_get;
net/devlink/resource.c
479
resource->occ_get_priv = occ_get_priv;
net/devlink/resource.c
49
list_for_each_entry(resource, resource_list, list) {
net/devlink/resource.c
492
struct devlink_resource *resource;
net/devlink/resource.c
496
resource = devlink_resource_find(devlink, NULL, resource_id);
net/devlink/resource.c
497
if (WARN_ON(!resource))
net/devlink/resource.c
499
WARN_ON(!resource->occ_get);
net/devlink/resource.c
501
resource->occ_get = NULL;
net/devlink/resource.c
502
resource->occ_get_priv = NULL;
net/devlink/resource.c
52
if (resource->id == resource_id)
net/devlink/resource.c
53
return resource;
net/devlink/resource.c
55
child_resource = devlink_resource_find(devlink, resource,
net/devlink/resource.c
64
devlink_resource_validate_children(struct devlink_resource *resource)
net/devlink/resource.c
70
if (list_empty(&resource->resource_list))
net/devlink/resource.c
73
list_for_each_entry(child_resource, &resource->resource_list, list)
net/devlink/resource.c
76
if (parts_size > resource->size_new)
net/devlink/resource.c
79
resource->size_valid = size_valid;
net/devlink/resource.c
83
devlink_resource_validate_size(struct devlink_resource *resource, u64 size,
net/devlink/resource.c
89
if (size > resource->size_params.size_max) {
net/devlink/resource.c
94
if (size < resource->size_params.size_min) {
net/devlink/resource.c
99
div64_u64_rem(size, resource->size_params.size_granularity, &reminder);
net/mac80211/tests/util.c
193
int t_sdata_init(struct kunit_resource *resource, void *ctx)
net/mac80211/tests/util.c
201
resource->data = t_sdata;
net/mac80211/tests/util.c
202
resource->name = "sdata";
net/mac80211/tests/util.c
296
void t_sdata_exit(struct kunit_resource *resource)
net/mac80211/tests/util.c
298
struct t_sdata *t_sdata = resource->data;
net/mac80211/tests/util.h
33
int t_sdata_init(struct kunit_resource *resource, void *data);
net/mac80211/tests/util.h
34
void t_sdata_exit(struct kunit_resource *resource);
net/phonet/af_phonet.c
101
pn->resource = 0;
net/phonet/af_phonet.c
243
res = pn->resource;
net/phonet/pep.c
857
newpn->pn_sk.resource = pn_sockaddr_get_resource(&dst);
net/phonet/socket.c
191
pn->resource = spn->spn_resource;
net/phonet/socket.c
252
pn->resource = pn_sockaddr_get_resource(spn);
net/phonet/socket.c
585
pn->resource, sk->sk_state,
net/phonet/socket.c
87
if (pn->resource != res)
net/vmw_vsock/vmci_transport.c
1697
vmci_trans(vsk)->dg_handle.resource);
net/vmw_vsock/vmci_transport.c
1785
vsock_addr_init(vm_addr, dg->src.context, dg->src.resource);
net/vmw_vsock/vmci_transport.c
692
if (vmci_transport_peer_rid(dg->src.context) != dg->src.resource)
net/wireless/tests/util.c
13
int t_wiphy_init(struct kunit_resource *resource, void *ctx)
net/wireless/tests/util.c
36
resource->data = wiphy;
net/wireless/tests/util.c
37
resource->name = "wiphy";
net/wireless/tests/util.c
42
void t_wiphy_exit(struct kunit_resource *resource)
net/wireless/tests/util.c
47
priv = wiphy_priv(resource->data);
net/wireless/tests/util.c
54
wiphy_free(resource->data);
net/wireless/tests/util.h
54
int t_wiphy_init(struct kunit_resource *resource, void *data);
net/wireless/tests/util.h
55
void t_wiphy_exit(struct kunit_resource *resource);
rust/helpers/io.c
110
__rust_helper resource_size_t rust_helper_resource_size(struct resource *res)
rust/helpers/io.c
115
__rust_helper struct resource *
rust/helpers/io.c
128
__rust_helper struct resource *rust_helper_request_region(resource_size_t start,
rust/helpers/io.c
135
__rust_helper struct resource *
security/apparmor/include/resource.h
35
int aa_map_resource(int resource);
security/apparmor/include/resource.h
38
unsigned int resource, struct rlimit *new_rlim);
security/apparmor/lsm.c
1004
unsigned int resource, struct rlimit *new_rlim)
security/apparmor/lsm.c
1014
resource, new_rlim);
security/apparmor/resource.c
116
unsigned int resource, struct rlimit *new_rlim)
security/apparmor/resource.c
136
audit_resource(subj_cred, profile, resource,
security/apparmor/resource.c
141
profile_setrlimit(subj_cred, profile, resource,
security/apparmor/resource.c
57
struct aa_profile *profile, unsigned int resource,
security/apparmor/resource.c
65
ad.rlim.rlim = resource;
security/apparmor/resource.c
83
int aa_map_resource(int resource)
security/apparmor/resource.c
85
return rlim_map[resource];
security/apparmor/resource.c
89
struct aa_profile *profile, unsigned int resource,
security/apparmor/resource.c
95
if (rules->rlimits.mask & (1 << resource) && new_rlim->rlim_max >
security/apparmor/resource.c
96
rules->rlimits.limits[resource].rlim_max)
security/apparmor/resource.c
98
return audit_resource(subj_cred, profile, resource, new_rlim->rlim_max,
security/security.c
3134
int security_task_setrlimit(struct task_struct *p, unsigned int resource,
security/security.c
3137
return call_int_hook(task_setrlimit, p, resource, new_rlim);
security/selinux/hooks.c
4436
static int selinux_task_setrlimit(struct task_struct *p, unsigned int resource,
security/selinux/hooks.c
4439
struct rlimit *old_rlim = p->signal->rlim + resource;
sound/aoa/soundbus/i2sbus/core.c
114
int layout, struct resource *res)
sound/aoa/soundbus/i2sbus/core.c
157
struct resource *r;
sound/aoa/soundbus/i2sbus/i2sbus.h
63
struct resource resources[3];
sound/aoa/soundbus/i2sbus/i2sbus.h
64
struct resource *allocated_resource[3];
sound/atmel/ac97c.c
697
struct resource *regs;
sound/core/misc.c
16
void release_and_free_resource(struct resource *res)
sound/drivers/mtpav.c
126
struct resource *res_port;
sound/drivers/opl4/opl4_local.h
175
struct resource *res_fm_port;
sound/drivers/opl4/opl4_local.h
176
struct resource *res_pcm_port;
sound/hda/controllers/acpi.c
72
struct resource *res;
sound/hda/controllers/cix-ipbloq.c
105
struct resource *res;
sound/hda/controllers/tegra.c
250
struct resource *res;
sound/isa/cmi8328.c
224
struct resource *res;
sound/isa/galaxy/galaxy.c
186
struct resource *res_port;
sound/isa/galaxy/galaxy.c
187
struct resource *res_config_port;
sound/isa/galaxy/galaxy.c
188
struct resource *res_wss_port;
sound/isa/gus/interwave.c
99
struct resource *i2c_res;
sound/isa/opl3sa2.c
107
struct resource *res_port; /* control port resource */
sound/isa/opti9xx/miro.c
96
struct resource *res_mc_base;
sound/isa/opti9xx/miro.c
97
struct resource *res_aci_port;
sound/isa/opti9xx/opti92x-ad1848.c
118
struct resource *res_mc_base;
sound/isa/opti9xx/opti92x-ad1848.c
122
struct resource *res_mc_indir;
sound/isa/sb/sb16.c
107
struct resource *fm_res; /* used to block FM i/o region for legacy cards */
sound/isa/sb/sb8.c
43
struct resource *fm_res; /* used to block FM i/o region for legacy cards */
sound/isa/sscape.c
136
struct resource *io_res;
sound/isa/sscape.c
137
struct resource *wss_res;
sound/isa/sscape.c
901
struct resource *io_res;
sound/isa/sscape.c
902
struct resource *wss_res;
sound/pci/als300.c
114
struct resource *res_port;
sound/pci/als4000.c
737
struct resource *r;
sound/pci/asihpi/hpi6000.c
417
ao.pci = *phm->u.s.resource.r.pci;
sound/pci/asihpi/hpi6205.c
471
ao.pci = *phm->u.s.resource.r.pci;
sound/pci/asihpi/hpi_internal.h
634
struct hpi_resource resource;
sound/pci/asihpi/hpimsgx.c
704
hpi_lookup_entry_point_function(phm->u.s.resource.r.pci);
sound/pci/asihpi/hpioctl.c
383
&pci_dev->resource[idx]);
sound/pci/asihpi/hpioctl.c
400
hm.u.s.resource.bus_type = HPI_BUS_PCI;
sound/pci/asihpi/hpioctl.c
401
hm.u.s.resource.r.pci = &pci;
sound/pci/atiixp_modem.c
224
struct resource *res; /* memory i/o */
sound/pci/cmipci.c
2790
struct resource *r = NULL;
sound/pci/echoaudio/echoaudio.h
335
struct resource *iores;
sound/pci/es1968.c
2377
struct resource *r;
sound/pci/mixart/mixart.h
31
struct resource *res;
sound/pci/riptide/riptide.c
442
struct resource *res_port;
sound/pci/sonicvibes.c
193
struct resource *res_dmaa;
sound/pci/sonicvibes.c
195
struct resource *res_dmac;
sound/pci/via82xx.c
344
struct resource *mpu_res;
sound/pci/ymfpci/ymfpci.c
160
struct resource *fm_res = NULL;
sound/pci/ymfpci/ymfpci.c
161
struct resource *mpu_res = NULL;
sound/pci/ymfpci/ymfpci.c
65
struct resource *r = NULL;
sound/pcmcia/pdaudiocf/pdaudiocf.c
127
link->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO;
sound/pcmcia/pdaudiocf/pdaudiocf.c
128
link->resource[0]->end = 16;
sound/pcmcia/pdaudiocf/pdaudiocf.c
226
if (snd_pdacf_assign_resources(pdacf, link->resource[0]->start,
sound/pcmcia/vx/vxpocket.c
125
link->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO;
sound/pcmcia/vx/vxpocket.c
126
link->resource[0]->end = 16;
sound/pcmcia/vx/vxpocket.c
207
if (snd_vxpocket_assign_resources(chip, link->resource[0]->start,
sound/ppc/pmac.c
1277
struct resource r;
sound/ppc/pmac.h
105
struct resource rsrc[3];
sound/sh/aica.c
51
static struct resource aica_memory_space[2] = {
sound/soc/adi/axi-i2s.c
189
struct resource *res;
sound/soc/adi/axi-spdif.c
183
struct resource *res;
sound/soc/amd/acp/acp-pci.c
42
const struct resource *res,
sound/soc/amd/acp/acp-pci.c
66
chip->res = devm_kzalloc(&pci->dev, sizeof(struct resource), GFP_KERNEL);
sound/soc/amd/acp/amd.h
143
struct resource *res;
sound/soc/amd/ps/acp63.h
352
struct resource *res;
sound/soc/amd/ps/pci-ps.c
458
const struct resource *res,
sound/soc/amd/ps/pci-ps.c
482
adata->res = devm_kzalloc(&pci->dev, sizeof(struct resource), GFP_KERNEL);
sound/soc/amd/ps/ps-pdm-dma.c
359
struct resource *res;
sound/soc/amd/ps/ps-sdw-dma.c
644
struct resource *res;
sound/soc/amd/raven/acp3x-i2s.c
289
struct resource *res;
sound/soc/amd/raven/acp3x-pcm-dma.c
371
struct resource *res;
sound/soc/amd/raven/pci-acp3x.c
179
sizeof(struct resource) * 4,
sound/soc/amd/raven/pci-acp3x.c
20
struct resource *res;
sound/soc/amd/renoir/acp3x-pdm-dma.c
385
struct resource *res;
sound/soc/amd/renoir/rn-pci-acp3x.c
293
sizeof(struct resource) * 2,
sound/soc/amd/renoir/rn-pci-acp3x.c
34
struct resource *res;
sound/soc/amd/vangogh/acp5x-i2s.c
376
struct resource *res;
sound/soc/amd/vangogh/acp5x-pcm-dma.c
365
struct resource *res;
sound/soc/amd/vangogh/pci-acp5x.c
180
sizeof(struct resource) * ACP5x_RES,
sound/soc/amd/vangogh/pci-acp5x.c
21
struct resource *res;
sound/soc/amd/yc/acp6x-pdm-dma.c
355
struct resource *res;
sound/soc/amd/yc/pci-acp6x.c
21
struct resource *res;
sound/soc/amd/yc/pci-acp6x.c
213
sizeof(struct resource),
sound/soc/apple/mca.c
1037
struct resource *res;
sound/soc/atmel/atmel-classd.c
523
struct resource *res;
sound/soc/atmel/atmel-i2s.c
617
struct resource *mem;
sound/soc/atmel/atmel-pdmic.c
573
struct resource *res;
sound/soc/atmel/mchp-i2s-mcc.c
1029
struct resource *mem;
sound/soc/atmel/mchp-pdmc.c
1015
struct resource *res;
sound/soc/atmel/mchp-spdifrx.c
1078
struct resource *mem;
sound/soc/atmel/mchp-spdiftx.c
784
struct resource *mem;
sound/soc/au1x/ac97c.c
233
struct resource *iores, *dmares;
sound/soc/au1x/i2sc.c
236
struct resource *iores, *dmares;
sound/soc/au1x/psc-ac97.c
366
struct resource *dmares;
sound/soc/au1x/psc-i2s.c
295
struct resource *dmares;
sound/soc/codecs/88pm860x-codec.c
1355
struct resource *res;
sound/soc/codecs/cros_ec_codec.c
963
struct resource res;
sound/soc/dwc/dwc-i2s.c
641
struct resource *res,
sound/soc/dwc/dwc-i2s.c
696
struct resource *res)
sound/soc/dwc/dwc-i2s.c
921
struct resource *res;
sound/soc/fsl/fsl_asrc.c
1234
struct resource *res;
sound/soc/fsl/fsl_aud2htx.c
189
struct resource *res;
sound/soc/fsl/fsl_dma.c
832
struct resource res;
sound/soc/fsl/fsl_easrc.c
2102
struct resource *res;
sound/soc/fsl/fsl_esai.c
958
struct resource *res;
sound/soc/fsl/fsl_micfil.c
1373
struct resource *res;
sound/soc/fsl/fsl_sai.h
289
struct resource *res;
sound/soc/fsl/fsl_spdif.c
1536
struct resource *res;
sound/soc/fsl/fsl_ssi.c
1512
struct resource *res;
sound/soc/fsl/fsl_utils.c
35
struct resource res;
sound/soc/fsl/fsl_xcvr.c
1542
struct resource *rx_res, *tx_res;
sound/soc/fsl/lpc3xxx-i2s.c
305
struct resource *res;
sound/soc/fsl/mpc5200_dma.c
317
struct resource res;
sound/soc/fsl/p1022_ds.c
429
struct resource res;
sound/soc/fsl/p1022_rdk.c
393
struct resource res;
sound/soc/hisilicon/hi6210-i2s.c
549
struct resource *res;
sound/soc/img/img-i2s-in.c
422
struct resource *res;
sound/soc/img/img-i2s-out.c
428
struct resource *res;
sound/soc/img/img-parallel-out.c
211
struct resource *res;
sound/soc/img/img-spdif-in.c
721
struct resource *res;
sound/soc/img/img-spdif-out.c
326
struct resource *res;
sound/soc/intel/atom/sst/sst_acpi.c
173
struct resource *rsrc;
sound/soc/intel/atom/sst/sst_acpi.c
295
struct resource *rsrc;
sound/soc/intel/catpt/core.h
122
void catpt_dsp_update_srampge(struct catpt_dev *cdev, struct resource *sram,
sound/soc/intel/catpt/core.h
159
struct resource *persistent;
sound/soc/intel/catpt/core.h
20
void catpt_sram_init(struct resource *sram, u32 start, u32 size);
sound/soc/intel/catpt/core.h
21
void catpt_sram_free(struct resource *sram);
sound/soc/intel/catpt/core.h
22
struct resource *
sound/soc/intel/catpt/core.h
23
catpt_request_region(struct resource *root, resource_size_t size);
sound/soc/intel/catpt/core.h
91
struct resource dram;
sound/soc/intel/catpt/core.h
92
struct resource iram;
sound/soc/intel/catpt/core.h
93
struct resource *scratch;
sound/soc/intel/catpt/device.c
253
struct resource *res;
sound/soc/intel/catpt/dsp.c
151
static void catpt_dsp_set_srampge(struct catpt_dev *cdev, struct resource *sram,
sound/soc/intel/catpt/dsp.c
186
void catpt_dsp_update_srampge(struct catpt_dev *cdev, struct resource *sram,
sound/soc/intel/catpt/dsp.c
189
struct resource *res;
sound/soc/intel/catpt/loader.c
211
struct resource r = {};
sound/soc/intel/catpt/loader.c
244
struct resource r1 = {};
sound/soc/intel/catpt/loader.c
256
struct resource common = {};
sound/soc/intel/catpt/loader.c
257
struct resource r2 = {};
sound/soc/intel/catpt/loader.c
293
struct resource *sram, *res;
sound/soc/intel/catpt/loader.c
53
void catpt_sram_init(struct resource *sram, u32 start, u32 size)
sound/soc/intel/catpt/loader.c
59
void catpt_sram_free(struct resource *sram)
sound/soc/intel/catpt/loader.c
61
struct resource *res, *save;
sound/soc/intel/catpt/loader.c
636
struct resource *res;
sound/soc/intel/catpt/loader.c
71
struct resource *
sound/soc/intel/catpt/loader.c
72
catpt_request_region(struct resource *root, resource_size_t size)
sound/soc/intel/catpt/loader.c
74
struct resource *res = root->child;
sound/soc/intel/catpt/messages.c
47
struct resource *persistent,
sound/soc/intel/catpt/messages.c
48
struct resource *scratch,
sound/soc/intel/catpt/messages.h
214
struct resource *persistent,
sound/soc/intel/catpt/messages.h
215
struct resource *scratch,
sound/soc/intel/catpt/pcm.c
1139
struct resource *res;
sound/soc/intel/catpt/pcm.c
261
struct resource *res;
sound/soc/intel/keembay/kmb_platform.c
825
struct resource *res;
sound/soc/jz4740/jz4740-i2s.c
542
struct resource *mem;
sound/soc/loongson/loongson1_ac97.c
293
struct resource *res;
sound/soc/loongson/loongson_i2s_plat.c
117
struct resource *res;
sound/soc/mediatek/mt8365/mt8365-afe-pcm.c
2095
struct resource *res;
sound/soc/pxa/mmp-sspa.c
493
struct resource *res;
sound/soc/pxa/pxa2xx-ac97.c
225
struct resource *regs;
sound/soc/pxa/pxa2xx-i2s.c
373
struct resource *res;
sound/soc/qcom/lpass-cpu.c
1106
struct resource *res;
sound/soc/renesas/fsi.c
1920
struct resource *res;
sound/soc/renesas/rcar/dma.c
846
struct resource *res;
sound/soc/renesas/rcar/gen.c
165
struct resource *res;
sound/soc/renesas/rcar/msiof.c
563
struct resource *res;
sound/soc/renesas/rz-ssi.c
1129
struct resource *res;
sound/soc/renesas/siu_dai.c
719
struct resource *res, *region;
sound/soc/rockchip/rockchip_i2s.c
666
static int rockchip_i2s_init_dai(struct rk_i2s_dev *i2s, struct resource *res,
sound/soc/rockchip/rockchip_i2s.c
740
struct resource *res;
sound/soc/rockchip/rockchip_i2s_tdm.c
1236
struct resource *res;
sound/soc/rockchip/rockchip_pdm.c
575
struct resource *res;
sound/soc/rockchip/rockchip_sai.c
1098
static int rockchip_sai_init_dai(struct rk_sai_dev *sai, struct resource *res,
sound/soc/rockchip/rockchip_sai.c
1388
struct resource *res;
sound/soc/rockchip/rockchip_spdif.c
337
struct resource *res;
sound/soc/samsung/i2s.c
1402
struct resource *res;
sound/soc/samsung/pcm.c
490
struct resource *mem_res;
sound/soc/samsung/spdif.c
364
struct resource *mem_res;
sound/soc/samsung/spdif.c
466
struct resource *mem_res;
sound/soc/sof/imx/imx-common.c
282
struct resource *res, _res;
sound/soc/sof/imx/imx9.c
34
struct resource *res;
sound/soc/sof/intel/bdw.c
410
struct resource *mmio;
sound/soc/sof/intel/byt.c
114
struct resource *mmio;
sound/soc/sof/mediatek/mt8186/mt8186.c
46
struct resource *mmio;
sound/soc/sof/mediatek/mt8186/mt8186.c
47
struct resource res;
sound/soc/sof/mediatek/mt8195/mt8195.c
46
struct resource *mmio;
sound/soc/sof/mediatek/mt8195/mt8195.c
47
struct resource res;
sound/soc/sophgo/cv1800b-tdm.c
637
struct resource *res;
sound/soc/spacemit/k1_i2s.c
393
struct resource *res;
sound/soc/spear/spdif_in.c
206
struct resource *res_fifo;
sound/soc/spear/spdif_out.c
285
struct resource *res;
sound/soc/sprd/sprd-mcdt.c
915
struct resource *res)
sound/soc/sprd/sprd-mcdt.c
945
struct resource *res;
sound/soc/starfive/jh7110_pwmdac.c
446
struct resource *res;
sound/soc/sti/uniperif.h
1308
struct resource *mem_region;
sound/soc/stm/stm32_i2s.c
1194
struct resource *res;
sound/soc/stm/stm32_sai_sub.c
1509
struct resource *res;
sound/soc/stm/stm32_spdifrx.c
911
struct resource *res;
sound/soc/sunxi/sun4i-codec.c
2297
struct resource *res;
sound/soc/sunxi/sun4i-i2s.c
1529
struct resource *res;
sound/soc/sunxi/sun4i-spdif.c
654
struct resource *res;
sound/soc/sunxi/sun50i-dmic.c
345
struct resource *res;
sound/soc/tegra/tegra20_ac97.c
304
struct resource *mem;
sound/soc/tegra/tegra20_i2s.c
402
struct resource *mem;
sound/soc/tegra/tegra20_spdif.c
346
struct resource *mem;
sound/soc/tegra/tegra210_admaif.c
914
struct resource *res;
sound/soc/tegra/tegra210_mbdrc.c
985
struct resource mem;
sound/soc/tegra/tegra210_peq.c
405
struct resource mem;
sound/soc/tegra/tegra30_ahub.c
516
struct resource *res0;
sound/soc/ti/davinci-i2s.c
784
struct resource *mem, *res;
sound/soc/ti/davinci-mcasp.c
2544
struct resource *mem, *dat;
sound/soc/ti/omap-dmic.c
463
struct resource *res;
sound/soc/ti/omap-mcbsp-st.c
338
struct resource *res;
sound/soc/ti/omap-mcbsp.c
617
struct resource *res;
sound/soc/ti/omap-mcpdm.c
545
struct resource *res;
sound/soc/ux500/ux500_msp_i2s.c
630
struct resource *res = NULL;
sound/sparc/amd7930.c
878
of_iounmap(&op->resource[0], amd->regs,
sound/sparc/amd7930.c
879
resource_size(&op->resource[0]));
sound/sparc/amd7930.c
914
amd->regs = of_ioremap(&op->resource[0], 0,
sound/sparc/amd7930.c
915
resource_size(&op->resource[0]), "amd7930");
sound/sparc/amd7930.c
967
struct resource *rp = &op->resource[0];
sound/sparc/cs4231.c
1689
of_iounmap(&op->resource[0], chip->port, chip->regs_size);
sound/sparc/cs4231.c
1718
chip->regs_size = resource_size(&op->resource[0]);
sound/sparc/cs4231.c
1722
chip->port = of_ioremap(&op->resource[0], 0,
sound/sparc/cs4231.c
1773
struct resource *rp = &op->resource[0];
sound/sparc/cs4231.c
1850
of_iounmap(&op->resource[2], chip->c_dma.ebus_info.regs, 0x10);
sound/sparc/cs4231.c
1854
of_iounmap(&op->resource[1], chip->p_dma.ebus_info.regs, 0x10);
sound/sparc/cs4231.c
1858
of_iounmap(&op->resource[0], chip->port, 0x10);
sound/sparc/cs4231.c
1911
chip->port = of_ioremap(&op->resource[0], 0, 0x10, "cs4231");
sound/sparc/cs4231.c
1913
of_ioremap(&op->resource[1], 0, 0x10, "cs4231_pdma");
sound/sparc/cs4231.c
1915
of_ioremap(&op->resource[2], 0, 0x10, "cs4231_cdma");
sound/sparc/cs4231.c
1980
op->resource[0].start,
sound/sparc/dbri.c
2528
dbri->regs_size = resource_size(&op->resource[0]);
sound/sparc/dbri.c
2529
dbri->regs = of_ioremap(&op->resource[0], 0,
sound/sparc/dbri.c
2542
of_iounmap(&op->resource[0], dbri->regs, dbri->regs_size);
sound/sparc/dbri.c
2568
of_iounmap(&dbri->op->resource[0], dbri->regs, dbri->regs_size);
sound/sparc/dbri.c
2579
struct resource *rp;
sound/sparc/dbri.c
2605
rp = &op->resource[0];
sound/x86/intel_hdmi_audio.c
1645
struct resource *res_mmio;
tools/include/nolibc/sys/resource.h
23
int sys_prlimit64(pid_t pid, int resource,
tools/include/nolibc/sys/resource.h
26
return my_syscall4(__NR_prlimit64, pid, resource, new_limit, old_limit);
tools/include/nolibc/sys/resource.h
30
int getrlimit(int resource, struct rlimit *rlim)
tools/include/nolibc/sys/resource.h
35
ret = __sysret(sys_prlimit64(0, resource, NULL, &rlim64));
tools/include/nolibc/sys/resource.h
43
int setrlimit(int resource, const struct rlimit *rlim)
tools/include/nolibc/sys/resource.h
50
return __sysret(sys_prlimit64(0, resource, &rlim64, NULL));
tools/perf/builtin-trace.c
1226
.arg = { [0] = STRARRAY(resource, rlimit_resources), }, },
tools/perf/builtin-trace.c
1332
.arg = { [1] = STRARRAY(resource, rlimit_resources),
tools/perf/builtin-trace.c
1380
.arg = { [0] = STRARRAY(resource, rlimit_resources),
tools/testing/cxl/test/cxl.c
1098
struct resource *res = &cxlds->part[i].res;
tools/testing/cxl/test/cxl.c
616
mock_hmat_get_extended_linear_cache_size(struct resource *backing_res,
tools/testing/cxl/test/cxl.c
620
struct resource cfmws0_res =
tools/testing/cxl/test/mock.c
102
int __wrap_hmat_get_extended_linear_cache_size(struct resource *backing_res,
tools/testing/cxl/test/mock.h
27
int (*hmat_get_extended_linear_cache_size)(struct resource *backing_res,
tools/testing/nvdimm/test/iomap.c
190
struct resource *parent, resource_size_t start,
tools/testing/nvdimm/test/iomap.c
195
struct resource *res = *((struct resource **) data);
tools/testing/nvdimm/test/iomap.c
203
struct resource *res = *((struct resource **) __res);
tools/testing/nvdimm/test/iomap.c
210
struct resource *parent, resource_size_t start,
tools/testing/nvdimm/test/iomap.c
218
struct resource *res = NULL;
tools/testing/nvdimm/test/iomap.c
246
static struct resource *nfit_test_request_region(struct device *dev,
tools/testing/nvdimm/test/iomap.c
247
struct resource *parent, resource_size_t start,
tools/testing/nvdimm/test/iomap.c
256
struct resource *res = NULL;
tools/testing/nvdimm/test/iomap.c
295
struct resource **d;
tools/testing/nvdimm/test/iomap.c
298
sizeof(struct resource *),
tools/testing/nvdimm/test/iomap.c
315
struct resource *__wrap___request_region(struct resource *parent,
tools/testing/nvdimm/test/iomap.c
323
int __wrap_insert_resource(struct resource *parent, struct resource *res)
tools/testing/nvdimm/test/iomap.c
331
int __wrap_remove_resource(struct resource *res)
tools/testing/nvdimm/test/iomap.c
339
struct resource *__wrap___devm_request_region(struct device *dev,
tools/testing/nvdimm/test/iomap.c
340
struct resource *parent, resource_size_t start,
tools/testing/nvdimm/test/iomap.c
349
void __wrap___release_region(struct resource *parent, resource_size_t start,
tools/testing/nvdimm/test/iomap.c
357
void __wrap___devm_release_region(struct device *dev, struct resource *parent,
tools/testing/nvdimm/test/iomap.c
42
static struct nfit_test_resource *__get_nfit_res(resource_size_t resource)
tools/testing/nvdimm/test/iomap.c
48
return ops->nfit_test_lookup(resource);
tools/testing/nvdimm/test/iomap.c
52
struct nfit_test_resource *get_nfit_res(resource_size_t resource)
tools/testing/nvdimm/test/iomap.c
57
res = __get_nfit_res(resource);
tools/testing/nvdimm/test/ndtest.c
417
struct resource res;
tools/testing/nvdimm/test/nfit_test.h
15
struct resource res;
tools/testing/nvdimm/test/nfit_test.h
21
struct resource res;
tools/testing/nvdimm/test/nfit_test.h
222
struct resource *__wrap___request_region(struct resource *parent,
tools/testing/nvdimm/test/nfit_test.h
225
int __wrap_insert_resource(struct resource *parent, struct resource *res);
tools/testing/nvdimm/test/nfit_test.h
226
int __wrap_remove_resource(struct resource *res);
tools/testing/nvdimm/test/nfit_test.h
227
struct resource *__wrap___devm_request_region(struct device *dev,
tools/testing/nvdimm/test/nfit_test.h
228
struct resource *parent, resource_size_t start,
tools/testing/nvdimm/test/nfit_test.h
230
void __wrap___release_region(struct resource *parent, resource_size_t start,
tools/testing/nvdimm/test/nfit_test.h
232
void __wrap___devm_release_region(struct device *dev, struct resource *parent,
tools/testing/nvdimm/test/nfit_test.h
242
struct nfit_test_resource *get_nfit_res(resource_size_t resource);
tools/testing/selftests/resctrl/cat_test.c
200
ret = write_schemata("", schemata, uparams->cpu, test->resource);
tools/testing/selftests/resctrl/cat_test.c
204
ret = write_schemata(param->ctrlgrp, schemata, uparams->cpu, test->resource);
tools/testing/selftests/resctrl/cat_test.c
245
ret = get_full_cbm(test->resource, &full_cache_mask);
tools/testing/selftests/resctrl/cat_test.c
249
ret = get_mask_no_shareable(test->resource, &long_mask);
tools/testing/selftests/resctrl/cat_test.c
254
ret = get_cache_size(uparams->cpu, test->resource, &cache_total_size);
tools/testing/selftests/resctrl/cat_test.c
286
ret = check_results(¶m, test->resource,
tools/testing/selftests/resctrl/cat_test.c
302
if (!strcmp(test->resource, "L3"))
tools/testing/selftests/resctrl/cat_test.c
304
else if (!strcmp(test->resource, "L2"))
tools/testing/selftests/resctrl/cat_test.c
324
ret = resource_info_unsigned_get(test->resource, "sparse_masks", &sparse_masks);
tools/testing/selftests/resctrl/cat_test.c
334
ret = get_full_cbm(test->resource, &full_cache_mask);
tools/testing/selftests/resctrl/cat_test.c
350
ret = write_schemata("", schemata, uparams->cpu, test->resource);
tools/testing/selftests/resctrl/cat_test.c
362
ret = write_schemata("", schemata, uparams->cpu, test->resource);
tools/testing/selftests/resctrl/cat_test.c
375
if (!resctrl_resource_exists(test->resource))
tools/testing/selftests/resctrl/cat_test.c
378
return resource_info_file_exists(test->resource, "sparse_masks");
tools/testing/selftests/resctrl/cat_test.c
384
.resource = "L3",
tools/testing/selftests/resctrl/cat_test.c
393
.resource = "L3",
tools/testing/selftests/resctrl/cat_test.c
401
.resource = "L2",
tools/testing/selftests/resctrl/cmt_test.c
186
.resource = "L3",
tools/testing/selftests/resctrl/mba_test.c
218
.resource = "MB",
tools/testing/selftests/resctrl/mba_test.c
59
ret = write_schemata(p->ctrlgrp, allocation_str, uparams->cpu, test->resource);
tools/testing/selftests/resctrl/mbm_test.c
111
ret = write_schemata(p->ctrlgrp, "100", uparams->cpu, test->resource);
tools/testing/selftests/resctrl/mbm_test.c
177
.resource = "MB",
tools/testing/selftests/resctrl/resctrl.h
107
const char *resource;
tools/testing/selftests/resctrl/resctrl.h
171
int get_domain_id(const char *resource, int cpu_no, int *domain_id);
tools/testing/selftests/resctrl/resctrl.h
174
bool resctrl_resource_exists(const char *resource);
tools/testing/selftests/resctrl/resctrl.h
175
bool resctrl_mon_feature_exists(const char *resource, const char *feature);
tools/testing/selftests/resctrl/resctrl.h
176
bool resource_info_file_exists(const char *resource, const char *file);
tools/testing/selftests/resctrl/resctrl.h
182
const char *resource);
tools/testing/selftests/resctrl/resctrl.h
203
int resource_info_unsigned_get(const char *resource, const char *filename, unsigned int *val);
tools/testing/selftests/resctrl/resctrl_val.c
553
ret = get_domain_id(test->resource, uparams->cpu, &domain_id);
tools/testing/selftests/resctrl/resctrlfs.c
116
static int get_resource_cache_level(const char *resource)
tools/testing/selftests/resctrl/resctrlfs.c
119
if (!strcmp(resource, "MB"))
tools/testing/selftests/resctrl/resctrlfs.c
121
return get_cache_level(resource);
tools/testing/selftests/resctrl/resctrlfs.c
132
int get_domain_id(const char *resource, int cpu_no, int *domain_id)
tools/testing/selftests/resctrl/resctrlfs.c
138
cache_num = get_resource_cache_level(resource);
tools/testing/selftests/resctrl/resctrlfs.c
378
int resource_info_unsigned_get(const char *resource, const char *filename,
tools/testing/selftests/resctrl/resctrlfs.c
384
snprintf(file_path, sizeof(file_path), "%s/%s/%s", INFO_PATH, resource,
tools/testing/selftests/resctrl/resctrlfs.c
705
const char *resource)
tools/testing/selftests/resctrl/resctrlfs.c
716
if (get_domain_id(resource, cpu_no, &domain_id) < 0) {
tools/testing/selftests/resctrl/resctrlfs.c
729
resource, domain_id, schemata);
tools/testing/selftests/resctrl/resctrlfs.c
826
bool resctrl_resource_exists(const char *resource)
tools/testing/selftests/resctrl/resctrlfs.c
832
if (!resource)
tools/testing/selftests/resctrl/resctrlfs.c
839
snprintf(res_path, sizeof(res_path), "%s/%s", INFO_PATH, resource);
tools/testing/selftests/resctrl/resctrlfs.c
855
bool resctrl_mon_feature_exists(const char *resource, const char *feature)
tools/testing/selftests/resctrl/resctrlfs.c
861
if (!feature || !resource)
tools/testing/selftests/resctrl/resctrlfs.c
864
snprintf(res_path, sizeof(res_path), "%s/%s/mon_features", INFO_PATH, resource);
tools/testing/selftests/resctrl/resctrlfs.c
884
bool resource_info_file_exists(const char *resource, const char *file)
tools/testing/selftests/resctrl/resctrlfs.c
889
if (!file || !resource)
tools/testing/selftests/resctrl/resctrlfs.c
892
snprintf(res_path, sizeof(res_path), "%s/%s/%s", INFO_PATH, resource,
tools/testing/selftests/resctrl/resctrlfs.c
903
return resctrl_resource_exists(test->resource);