Symbol: resource
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
114
__pci_dev_resource_attr(_bar, resource##_bar,, \
arch/alpha/kernel/pci-sysfs.c
118
__pci_dev_resource_attr(_bar, resource##_bar##_sparse, _sparse, \
arch/alpha/kernel/pci-sysfs.c
122
__pci_dev_resource_attr(_bar, resource##_bar##_dense, _dense, \
arch/alpha/kernel/pci.c
127
pcibios_align_resource(void *data, const struct resource *res,
arch/alpha/kernel/pci.c
128
const struct resource *empty_res,
arch/alpha/kernel/pci.c
292
struct resource *r;
arch/alpha/kernel/pci.c
403
struct resource * __init
arch/alpha/kernel/pci.c
406
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
192
struct resource;
arch/arm/include/asm/io.h
195
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
563
const struct resource *empty_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
53
static struct resource nokia770_kp_resources[] = {
arch/arm/mach-omap1/board-nokia770.c
80
.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
118
static struct resource omap16xx_gpio2_resources[] = {
arch/arm/mach-omap1/gpio16xx.c
145
static struct resource omap16xx_gpio3_resources[] = {
arch/arm/mach-omap1/gpio16xx.c
172
static struct resource omap16xx_gpio4_resources[] = {
arch/arm/mach-omap1/gpio16xx.c
215
const struct resource *res;
arch/arm/mach-omap1/gpio16xx.c
29
static struct resource omap16xx_mpu_gpio_resources[] = {
arch/arm/mach-omap1/gpio16xx.c
72
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
103
.resource = pxa2xx_udc_resources,
arch/arm/mach-pxa/devices.c
113
.resource = pxa2xx_udc_resources,
arch/arm/mach-pxa/devices.c
120
static struct resource pxafb_resources[] = {
arch/arm/mach-pxa/devices.c
143
.resource = pxafb_resources,
arch/arm/mach-pxa/devices.c
152
static struct resource pxa_resource_ffuart[] = {
arch/arm/mach-pxa/devices.c
167
.resource = pxa_resource_ffuart,
arch/arm/mach-pxa/devices.c
176
static struct resource pxa_resource_btuart[] = {
arch/arm/mach-pxa/devices.c
191
.resource = pxa_resource_btuart,
arch/arm/mach-pxa/devices.c
200
static struct resource pxa_resource_stuart[] = {
arch/arm/mach-pxa/devices.c
215
.resource = pxa_resource_stuart,
arch/arm/mach-pxa/devices.c
224
static struct resource pxa_resource_hwuart[] = {
arch/arm/mach-pxa/devices.c
239
.resource = pxa_resource_hwuart,
arch/arm/mach-pxa/devices.c
251
static struct resource pxai2c_resources[] = {
arch/arm/mach-pxa/devices.c
266
.resource = pxai2c_resources,
arch/arm/mach-pxa/devices.c
276
static struct resource pxa27x_resources_i2c_power[] = {
arch/arm/mach-pxa/devices.c
291
.resource = pxa27x_resources_i2c_power,
arch/arm/mach-pxa/devices.c
296
static struct resource pxai2s_resources[] = {
arch/arm/mach-pxa/devices.c
311
.resource = pxai2s_resources,
arch/arm/mach-pxa/devices.c
340
static struct resource pxa_rtc_resources[] = {
arch/arm/mach-pxa/devices.c
364
.resource = pxa_rtc_resources,
arch/arm/mach-pxa/devices.c
37
static struct resource pxa_resource_pmu = {
arch/arm/mach-pxa/devices.c
371
.resource = pxa_rtc_resources,
arch/arm/mach-pxa/devices.c
376
static struct resource pxa25x_resource_pwm0[] = {
arch/arm/mach-pxa/devices.c
387
.resource = pxa25x_resource_pwm0,
arch/arm/mach-pxa/devices.c
391
static struct resource pxa25x_resource_pwm1[] = {
arch/arm/mach-pxa/devices.c
402
.resource = pxa25x_resource_pwm1,
arch/arm/mach-pxa/devices.c
408
static struct resource pxa25x_resource_ssp[] = {
arch/arm/mach-pxa/devices.c
428
.resource = pxa25x_resource_ssp,
arch/arm/mach-pxa/devices.c
434
static struct resource pxa25x_resource_nssp[] = {
arch/arm/mach-pxa/devices.c
454
.resource = pxa25x_resource_nssp,
arch/arm/mach-pxa/devices.c
46
.resource = &pxa_resource_pmu,
arch/arm/mach-pxa/devices.c
460
static struct resource pxa25x_resource_assp[] = {
arch/arm/mach-pxa/devices.c
481
.resource = pxa25x_resource_assp,
arch/arm/mach-pxa/devices.c
489
static struct resource pxa27x_resource_ohci[] = {
arch/arm/mach-pxa/devices.c
50
static const struct resource pxamci_resources[] = {
arch/arm/mach-pxa/devices.c
510
.resource = pxa27x_resource_ohci,
arch/arm/mach-pxa/devices.c
522
static struct resource pxa27x_resource_ssp1[] = {
arch/arm/mach-pxa/devices.c
542
.resource = pxa27x_resource_ssp1,
arch/arm/mach-pxa/devices.c
548
static struct resource pxa27x_resource_ssp2[] = {
arch/arm/mach-pxa/devices.c
568
.resource = pxa27x_resource_ssp2,
arch/arm/mach-pxa/devices.c
574
static struct resource pxa27x_resource_ssp3[] = {
arch/arm/mach-pxa/devices.c
594
.resource = pxa27x_resource_ssp3,
arch/arm/mach-pxa/devices.c
598
static struct resource pxa27x_resource_pwm0[] = {
arch/arm/mach-pxa/devices.c
609
.resource = pxa27x_resource_pwm0,
arch/arm/mach-pxa/devices.c
613
static struct resource pxa27x_resource_pwm1[] = {
arch/arm/mach-pxa/devices.c
624
.resource = pxa27x_resource_pwm1,
arch/arm/mach-pxa/devices.c
634
struct resource pxa_resource_gpio[] = {
arch/arm/mach-pxa/devices.c
666
.resource = pxa_resource_gpio,
arch/arm/mach-pxa/devices.c
676
.resource = pxa_resource_gpio,
arch/arm/mach-pxa/devices.c
683
static struct resource pxa_dma_resource[] = {
arch/arm/mach-pxa/devices.c
706
.resource = pxa_dma_resource,
arch/arm/mach-pxa/devices.c
716
struct resource res = DEFINE_RES_MEM(OST_PHYS, OST_LEN);
arch/arm/mach-pxa/devices.c
85
static struct resource pxa2xx_udc_resources[] = {
arch/arm/mach-pxa/gumstix.c
47
static struct resource flash_resource = {
arch/arm/mach-pxa/gumstix.c
79
.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
904
static struct resource spitz_nand_resources[] = {
arch/arm/mach-pxa/spitz.c
915
.resource = spitz_nand_resources,
arch/arm/mach-pxa/spitz.c
953
static struct resource spitz_rom_resources[] = {
arch/arm/mach-pxa/spitz.c
964
.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
312
static struct resource xen_resource = {
arch/arm/xen/enlighten.c
316
int __init arch_xen_unpopulated_init(struct resource **res)
arch/arm/xen/enlighten.c
319
struct resource *regs, *tmp_res;
arch/arm/xen/enlighten.c
418
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
548
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
102
struct resource *cfgres, struct resource *busr, const struct pci_ecam_ops *ops)
arch/loongarch/pci/acpi.c
105
struct resource *conflict;
arch/loongarch/pci/acpi.c
168
struct resource cfgres;
arch/loongarch/pci/acpi.c
169
struct resource *bus_res = &root->secondary;
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
102
.resource = &dac1_resource,
arch/m68k/coldfire/stmark2.c
65
static struct resource dspi_spi0_resource[] = {
arch/m68k/coldfire/stmark2.c
79
.resource = dspi_spi0_resource,
arch/m68k/coldfire/stmark2.c
87
static struct resource dac0_resource = DEFINE_RES_MEM(MCFDAC_BASE0, 0x100);
arch/m68k/coldfire/stmark2.c
93
.resource = &dac0_resource,
arch/m68k/coldfire/stmark2.c
96
static struct resource dac1_resource = DEFINE_RES_MEM(MCFDAC_BASE1, 0x100);
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/kernel/pcibios.c
30
const struct resource *empty_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
265
static const struct resource q40_pata_rsrc_0[] __initconst = {
arch/m68k/q40/config.c
273
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/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/m68k/virt/platform.c
33
const struct resource virt_ctrl_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
257
static struct resource alchemy_pci_host_res[] = {
arch/mips/alchemy/board-gpr.c
291
.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
235
static struct resource mtx1_mtd_resource = {
arch/mips/alchemy/board-mtx1.c
247
.resource = &mtx1_mtd_resource,
arch/mips/alchemy/board-mtx1.c
250
static struct resource alchemy_pci_host_res[] = {
arch/mips/alchemy/board-mtx1.c
309
.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
100
static struct resource au1100_lcd_resources[] = {
arch/mips/alchemy/devboards/db1000.c
121
.resource = au1100_lcd_resources,
arch/mips/alchemy/devboards/db1000.c
124
static struct resource alchemy_ac97c_res[] = {
arch/mips/alchemy/devboards/db1000.c
145
.resource = alchemy_ac97c_res,
arch/mips/alchemy/devboards/db1000.c
306
static struct resource au1100_mmc0_resources[] = {
arch/mips/alchemy/devboards/db1000.c
338
.resource = au1100_mmc0_resources,
arch/mips/alchemy/devboards/db1000.c
341
static struct resource au1100_mmc1_res[] = {
arch/mips/alchemy/devboards/db1000.c
373
.resource = au1100_mmc1_res,
arch/mips/alchemy/devboards/db1000.c
75
static struct resource alchemy_pci_host_res[] = {
arch/mips/alchemy/devboards/db1000.c
92
.resource = alchemy_pci_host_res,
arch/mips/alchemy/devboards/db1200.c
242
static struct resource db1200_nand_res[] = {
arch/mips/alchemy/devboards/db1200.c
253
.resource = db1200_nand_res,
arch/mips/alchemy/devboards/db1200.c
268
static struct resource db1200_eth_res[] = {
arch/mips/alchemy/devboards/db1200.c
288
.resource = db1200_eth_res,
arch/mips/alchemy/devboards/db1200.c
298
static struct resource db1200_ide_res[] = {
arch/mips/alchemy/devboards/db1200.c
325
.resource = db1200_ide_res,
arch/mips/alchemy/devboards/db1200.c
520
static struct resource au1200_mmc0_resources[] = {
arch/mips/alchemy/devboards/db1200.c
552
.resource = au1200_mmc0_resources,
arch/mips/alchemy/devboards/db1200.c
555
static struct resource au1200_mmc1_res[] = {
arch/mips/alchemy/devboards/db1200.c
587
.resource = au1200_mmc1_res,
arch/mips/alchemy/devboards/db1200.c
620
static struct resource au1200_lcd_res[] = {
arch/mips/alchemy/devboards/db1200.c
642
.resource = au1200_lcd_res,
arch/mips/alchemy/devboards/db1200.c
647
static struct resource au1200_psc0_res[] = {
arch/mips/alchemy/devboards/db1200.c
674
.resource = au1200_psc0_res,
arch/mips/alchemy/devboards/db1200.c
700
.resource = au1200_psc0_res,
arch/mips/alchemy/devboards/db1200.c
703
static struct resource au1200_psc1_res[] = {
arch/mips/alchemy/devboards/db1200.c
731
.resource = au1200_psc1_res,
arch/mips/alchemy/devboards/db1300.c
208
static struct resource db1300_nand_res[] = {
arch/mips/alchemy/devboards/db1300.c
219
.resource = db1300_nand_res,
arch/mips/alchemy/devboards/db1300.c
228
static struct resource db1300_eth_res[] = {
arch/mips/alchemy/devboards/db1300.c
275
static struct resource au1300_psc1_res[] = {
arch/mips/alchemy/devboards/db1300.c
302
.resource = au1300_psc1_res,
arch/mips/alchemy/devboards/db1300.c
307
static struct resource au1300_psc2_res[] = {
arch/mips/alchemy/devboards/db1300.c
334
.resource = au1300_psc2_res,
arch/mips/alchemy/devboards/db1300.c
339
static struct resource au1300_psc3_res[] = {
arch/mips/alchemy/devboards/db1300.c
366
.resource = au1300_psc3_res,
arch/mips/alchemy/devboards/db1300.c
500
static struct resource db1300_ide_res[] = {
arch/mips/alchemy/devboards/db1300.c
525
.resource = db1300_ide_res,
arch/mips/alchemy/devboards/db1300.c
613
static struct resource au1300_sd1_res[] = {
arch/mips/alchemy/devboards/db1300.c
644
.resource = au1300_sd1_res,
arch/mips/alchemy/devboards/db1300.c
680
static struct resource au1300_sd0_res[] = {
arch/mips/alchemy/devboards/db1300.c
711
.resource = au1300_sd0_res,
arch/mips/alchemy/devboards/db1300.c
778
static struct resource au1300_lcd_res[] = {
arch/mips/alchemy/devboards/db1300.c
801
.resource = au1300_lcd_res,
arch/mips/alchemy/devboards/db1550.c
187
static struct resource db1550_nand_res[] = {
arch/mips/alchemy/devboards/db1550.c
198
.resource = db1550_nand_res,
arch/mips/alchemy/devboards/db1550.c
214
.resource = db1550_nand_res,
arch/mips/alchemy/devboards/db1550.c
240
static struct resource au1550_psc0_res[] = {
arch/mips/alchemy/devboards/db1550.c
287
.resource = au1550_psc0_res,
arch/mips/alchemy/devboards/db1550.c
292
static struct resource au1550_psc1_res[] = {
arch/mips/alchemy/devboards/db1550.c
319
.resource = au1550_psc1_res,
arch/mips/alchemy/devboards/db1550.c
323
static struct resource au1550_psc2_res[] = {
arch/mips/alchemy/devboards/db1550.c
350
.resource = au1550_psc2_res,
arch/mips/alchemy/devboards/db1550.c
355
static struct resource au1550_psc3_res[] = {
arch/mips/alchemy/devboards/db1550.c
382
.resource = au1550_psc3_res,
arch/mips/alchemy/devboards/db1550.c
468
static struct resource alchemy_pci_host_res[] = {
arch/mips/alchemy/devboards/db1550.c
485
.resource = alchemy_pci_host_res,
arch/mips/alchemy/devboards/platform.c
138
pd->resource = sr;
arch/mips/alchemy/devboards/platform.c
160
struct resource *res;
arch/mips/alchemy/devboards/platform.c
171
res = kzalloc_obj(struct resource);
arch/mips/alchemy/devboards/platform.c
234
pd->resource = res;
arch/mips/alchemy/devboards/platform.c
83
struct resource *sr;
arch/mips/alchemy/devboards/platform.c
92
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
111
dec_dz_device.resource[0].start = base;
arch/mips/dec/platform.c
112
dec_dz_device.resource[0].end = base + dec_kn_slot_size - 1;
arch/mips/dec/platform.c
113
dec_dz_device.resource[1].start = irq;
arch/mips/dec/platform.c
114
dec_dz_device.resource[1].end = irq;
arch/mips/dec/platform.c
124
dec_zs_device[i].resource[0].start = base;
arch/mips/dec/platform.c
125
dec_zs_device[i].resource[0].end = base + dec_kn_slot_size - 1;
arch/mips/dec/platform.c
126
dec_zs_device[i].resource[1].start = irq;
arch/mips/dec/platform.c
127
dec_zs_device[i].resource[1].end = irq;
arch/mips/dec/platform.c
135
dec_zs_device[i].resource[0].start = base;
arch/mips/dec/platform.c
136
dec_zs_device[i].resource[0].end = base + dec_kn_slot_size - 1;
arch/mips/dec/platform.c
137
dec_zs_device[i].resource[1].start = irq;
arch/mips/dec/platform.c
138
dec_zs_device[i].resource[1].end = irq;
arch/mips/dec/platform.c
21
static struct resource dec_rtc_resources[] = {
arch/mips/dec/platform.c
37
.resource = dec_rtc_resources,
arch/mips/dec/platform.c
45
static struct resource dec_dz_resources[] = {
arch/mips/dec/platform.c
53
.resource = dec_dz_resources,
arch/mips/dec/platform.c
61
static struct resource dec_zs_resources[][2] = {
arch/mips/dec/platform.c
76
.resource = dec_zs_resources[0],
arch/mips/dec/platform.c
82
.resource = dec_zs_resources[1],
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
491
static void __init request_crashkernel(struct resource *res)
arch/mips/kernel/setup.c
699
struct resource *res;
arch/mips/kernel/setup.c
701
res = memblock_alloc_or_panic(sizeof(struct resource), SMP_CACHE_BYTES);
arch/mips/kernel/setup.c
84
static struct resource code_resource = { .name = "Kernel code", };
arch/mips/kernel/setup.c
85
static struct resource data_resource = { .name = "Kernel data", };
arch/mips/kernel/setup.c
86
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
71
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
25
const struct resource *empty_res,
arch/mips/pci/pci-generic.c
53
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
159
struct resource *res = NULL;
arch/mips/pci/pci-legacy.c
194
struct resource *parent;
arch/mips/pci/pci-legacy.c
54
pcibios_align_resource(void *data, const struct resource *res,
arch/mips/pci/pci-legacy.c
55
const struct resource *empty_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
228
static struct resource mt7620_res_pci_mem1;
arch/mips/pci/pci-mt7620.c
229
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
123
static struct resource rt2880_pci_mem_resource = {
arch/mips/pci/pci-rt2880.c
130
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
102
.resource = korina_dev0_res,
arch/mips/rb532/devices.c
109
static struct resource cf_slot0_res[] = {
arch/mips/rb532/devices.c
133
.resource = cf_slot0_res,
arch/mips/rb532/devices.c
154
static struct resource nand_slot0_res[] = {
arch/mips/rb532/devices.c
198
static struct resource rb532_wdt_res[] = {
arch/mips/rb532/devices.c
210
.resource = rb532_wdt_res,
arch/mips/rb532/devices.c
245
static struct resource rb532_gpio_reg0_res[] = {
arch/mips/rb532/devices.c
65
static struct resource korina_dev0_res[] = {
arch/mips/rb532/gpio.c
195
struct resource *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
359
gio_dev->resource.start = addr;
arch/mips/sgi-ip22/ip22-gio.c
360
gio_dev->resource.end = addr + 0x3fffff;
arch/mips/sgi-ip22/ip22-gio.c
361
gio_dev->resource.flags = IORESOURCE_MEM;
arch/mips/sgi-ip22/ip22-gio.c
380
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
9
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
199
resource_size_t pcibios_align_resource(void *data, const struct resource *res,
arch/parisc/kernel/pci.c
200
const struct resource *empty_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
103
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
1135
const struct resource *empty_res,
arch/powerpc/kernel/pci-common.c
1159
static int reparent_resources(struct resource *parent,
arch/powerpc/kernel/pci-common.c
1160
struct resource *res)
arch/powerpc/kernel/pci-common.c
1162
struct resource *p, **pp;
arch/powerpc/kernel/pci-common.c
1163
struct resource **firstpp = NULL;
arch/powerpc/kernel/pci-common.c
1227
struct resource *res, *pr;
arch/powerpc/kernel/pci-common.c
1296
struct resource *pr, *r = &dev->resource[idx];
arch/powerpc/kernel/pci-common.c
1320
struct resource *r;
arch/powerpc/kernel/pci-common.c
1325
r = &dev->resource[idx];
arch/powerpc/kernel/pci-common.c
1344
r = &dev->resource[PCI_ROM_RESOURCE];
arch/powerpc/kernel/pci-common.c
1366
struct resource *res, *pres;
arch/powerpc/kernel/pci-common.c
1375
res = kzalloc_obj(struct resource);
arch/powerpc/kernel/pci-common.c
1403
res = kzalloc_obj(struct resource);
arch/powerpc/kernel/pci-common.c
1459
struct resource *r;
arch/powerpc/kernel/pci-common.c
1535
struct resource *res;
arch/powerpc/kernel/pci-common.c
1714
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
910
unsigned long resource, unsigned long value1,
arch/powerpc/kvm/book3s_hv.c
913
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
331
struct resource *res;
arch/powerpc/mm/mem.c
333
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
1904
struct resource *res)
arch/powerpc/platforms/powernv/pci-ioda.c
1980
pnv_ioda_setup_pe_res(pe, &pdev->resource[i]);
arch/powerpc/platforms/powernv/pci-ioda.c
1991
&pdev->resource[PCI_BRIDGE_RESOURCES + i]);
arch/powerpc/platforms/powernv/pci-ioda.c
202
struct resource *r;
arch/powerpc/platforms/powernv/pci-ioda.c
2168
struct resource *r, *w;
arch/powerpc/platforms/powernv/pci-ioda.c
2179
r = &bridge->resource[PCI_BRIDGE_RESOURCES + i];
arch/powerpc/platforms/powernv/pci-ioda.c
2492
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
345
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
594
switch (hp_elog->resource) {
arch/powerpc/platforms/pseries/dlpar.c
610
hp_elog->resource);
arch/powerpc/platforms/pseries/dlpar.c
656
hp_elog->resource = PSERIES_HP_ELOG_RESOURCE_MEM;
arch/powerpc/platforms/pseries/dlpar.c
658
hp_elog->resource = PSERIES_HP_ELOG_RESOURCE_CPU;
arch/powerpc/platforms/pseries/dlpar.c
660
hp_elog->resource = PSERIES_HP_ELOG_RESOURCE_DT;
arch/powerpc/platforms/pseries/hotplug-memory.c
263
struct resource res;
arch/powerpc/platforms/pseries/hotplug-memory.c
869
struct resource res;
arch/powerpc/platforms/pseries/papr_scm.c
68
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
700
struct resource *res;
arch/powerpc/platforms/pseries/setup.c
708
res = &dev->resource[r + PCI_IOV_RESOURCES];
arch/powerpc/platforms/pseries/setup.c
722
struct resource *res, *root, *conflict;
arch/powerpc/platforms/pseries/setup.c
734
res = &dev->resource[r + PCI_IOV_RESOURCES];
arch/powerpc/platforms/pseries/setup.c
761
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
808
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
40
static int get_nr_ram_ranges_callback(struct resource *res, void *arg)
arch/riscv/kernel/machine_kexec_file.c
48
static int prepare_elf64_ram_headers_callback(struct resource *res, void *arg)
arch/riscv/kernel/setup.c
138
struct resource *res = NULL;
arch/riscv/kernel/setup.c
139
struct resource *mem_res = NULL;
arch/riscv/kernel/setup.c
232
struct resource *mem = &standard_resources[i];
arch/riscv/kernel/setup.c
59
static struct resource kimage_res = { .name = "Kernel image", };
arch/riscv/kernel/setup.c
60
static struct resource code_res = { .name = "Kernel code", };
arch/riscv/kernel/setup.c
61
static struct resource data_res = { .name = "Kernel data", };
arch/riscv/kernel/setup.c
62
static struct resource rodata_res = { .name = "Kernel rodata", };
arch/riscv/kernel/setup.c
63
static struct resource bss_res = { .name = "Kernel bss", };
arch/riscv/kernel/setup.c
65
static struct resource elfcorehdr_res = { .name = "ELF Core hdr", };
arch/riscv/kernel/setup.c
69
static struct resource *standard_resources;
arch/riscv/kernel/setup.c
71
static int __init add_resource(struct resource *parent,
arch/riscv/kernel/setup.c
72
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
269
const struct resource *empty_res,
arch/s390/pci/pci.c
442
pdev->resource[i].start =
arch/s390/pci/pci.c
445
pdev->resource[i].start = (resource_size_t __force)
arch/s390/pci/pci.c
447
pdev->resource[i].end = pdev->resource[i].start + len - 1;
arch/s390/pci/pci.c
467
pdev->resource[i].start);
arch/s390/pci/pci.c
522
static struct resource *__alloc_res(struct zpci_dev *zdev, unsigned long start,
arch/s390/pci/pci.c
525
struct resource *r;
arch/s390/pci/pci.c
546
struct resource *res;
arch/s390/pci/pci.c
587
struct resource *res;
arch/s390/pci/pci.c
609
struct resource *res;
arch/s390/pci/pci.c
620
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
171
const struct resource *empty_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
271
op->resource = op->archdata.resource;
arch/sparc/kernel/of_device_32.c
274
struct resource *r = &op->resource[index];
arch/sparc/kernel/of_device_64.c
17
void __iomem *of_ioremap(struct resource *res, unsigned long offset, unsigned long size, char *name)
arch/sparc/kernel/of_device_64.c
20
struct resource *r;
arch/sparc/kernel/of_device_64.c
33
void of_iounmap(struct resource *res, void __iomem *base, unsigned long size)
arch/sparc/kernel/of_device_64.c
349
op->resource = op->archdata.resource;
arch/sparc/kernel/of_device_64.c
352
struct resource *r = &op->resource[index];
arch/sparc/kernel/of_device_common.c
27
struct resource *r)
arch/sparc/kernel/of_device_common.c
34
memcpy(r, &op->archdata.resource[index], sizeof(*r));
arch/sparc/kernel/of_device_common.c
42
struct resource *r;
arch/sparc/kernel/of_device_common.c
47
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, &region, (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 = &central_op->resource[5];
arch/sparc/kernel/prom_irqtrans.c
732
res = &central_op->resource[4];
arch/sparc/kernel/prom_irqtrans.c
734
res = &central_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
2983
static struct resource code_resource = {
arch/sparc/mm/init_64.c
2988
static struct resource data_resource = {
arch/sparc/mm/init_64.c
2993
static struct resource bss_resource = {
arch/sparc/mm/init_64.c
3016
struct resource *res;
arch/sparc/mm/init_64.c
3021
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
173
static struct resource lapic_resource = {
arch/x86/kernel/apic/io_apic.c
118
struct resource *iomem_res;
arch/x86/kernel/apic/io_apic.c
2498
static struct resource *ioapic_resources;
arch/x86/kernel/apic/io_apic.c
2500
static struct resource * __init ioapic_setup_resources(void)
arch/x86/kernel/apic/io_apic.c
2502
struct resource *res;
arch/x86/kernel/apic/io_apic.c
2510
n = IOAPIC_RESOURCE_NAME_SIZE + sizeof(struct resource);
arch/x86/kernel/apic/io_apic.c
2516
mem += sizeof(struct resource) * nr_ioapics;
arch/x86/kernel/apic/io_apic.c
2552
struct resource *ioapic_res;
arch/x86/kernel/apic/io_apic.c
2589
struct resource *r = ioapic_resources;
arch/x86/kernel/crash.c
150
static int get_nr_ram_ranges_callback(struct resource *res, void *arg)
arch/x86/kernel/crash.c
227
static int prepare_elf64_ram_headers_callback(struct resource *res, void *arg)
arch/x86/kernel/crash.c
284
static int memmap_entry_callback(struct resource *res, void *arg)
arch/x86/kernel/devicetree.c
114
struct resource r;
arch/x86/kernel/devicetree.c
143
struct resource res;
arch/x86/kernel/devicetree.c
195
struct resource r;
arch/x86/kernel/devicetree.c
287
struct resource r;
arch/x86/kernel/e820.c
1078
__initdata static struct resource *e820_res;
arch/x86/kernel/e820.c
1084
__init static bool e820_device_region(enum e820_type type, struct resource *res)
arch/x86/kernel/e820.c
1116
struct resource *res;
arch/x86/kernel/e820.c
1185
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
156
const struct resource *empty_res,
arch/x86/pci/i386.c
215
struct resource *r;
arch/x86/pci/i386.c
218
r = &dev->resource[idx];
arch/x86/pci/i386.c
256
struct resource *r;
arch/x86/pci/i386.c
268
r = &dev->resource[idx];
arch/x86/pci/i386.c
296
r = &dev->resource[PCI_ROM_RESOURCE];
arch/x86/pci/i386.c
326
struct resource *r;
arch/x86/pci/i386.c
333
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
444
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
42
const struct resource *empty_res,
arch/xtensa/kernel/pci.c
51
pci_name(dev), dev->resource - res,
arch/xtensa/platforms/xt2000/setup.c
114
static struct resource xt2000_sonic_res[] = {
arch/xtensa/platforms/xt2000/setup.c
130
.resource = xt2000_sonic_res,
arch/xtensa/platforms/xtfpga/setup.c
159
static struct resource ethoc_res[] = {
arch/xtensa/platforms/xtfpga/setup.c
192
.resource = ethoc_res,
arch/xtensa/platforms/xtfpga/setup.c
202
static struct resource c67x00_res[] = {
arch/xtensa/platforms/xtfpga/setup.c
224
.resource = c67x00_res,
arch/xtensa/platforms/xtfpga/setup.c
234
static struct resource serial_resource = {
arch/xtensa/platforms/xtfpga/setup.c
260
.resource = &serial_resource,
drivers/accel/ivpu/ivpu_drv.c
617
struct resource *bar0 = &pdev->resource[0];
drivers/accel/ivpu/ivpu_drv.c
618
struct resource *bar4 = &pdev->resource[4];
drivers/accel/qaic/qaic_drv.c
504
qdev->bar_mhi = devm_ioremap_resource(&pdev->dev, &pdev->resource[config->mhi_bar_idx]);
drivers/accel/qaic/qaic_drv.c
508
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
59
acpi_memory_get_resource(struct acpi_resource *resource, void *context)
drivers/acpi/acpi_memhotplug.c
66
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
423
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
357
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
1409
ec_parse_io_ports(struct acpi_resource *resource, void *context);
drivers/acpi/ec.c
1774
ec_parse_io_ports(struct acpi_resource *resource, void *context)
drivers/acpi/ec.c
1778
if (resource->type != ACPI_RESOURCE_TYPE_IO)
drivers/acpi/ec.c
1787
ec->data_addr = resource->data.io.minimum;
drivers/acpi/ec.c
1789
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
1100
sizeof(struct resource),
drivers/acpi/nfit/core.c
1105
struct resource *res = &nfit_mem->flush_wpq[i];
drivers/acpi/nfit/core.c
2527
struct resource *res = data;
drivers/acpi/nfit/core.c
2535
struct resource *res, *nd_res = ndr_desc->res;
drivers/acpi/nfit/core.c
2617
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
1503
int acpi_check_resource_conflict(const struct resource *res)
drivers/acpi/osl.c
1535
struct resource res = DEFINE_RES_IO_NAMED(start, n, name);
drivers/acpi/pci_link.c
121
&resource->data.extended_irq;
drivers/acpi/pci_link.c
146
resource->type);
drivers/acpi/pci_link.c
171
static acpi_status acpi_pci_link_check_current(struct acpi_resource *resource,
drivers/acpi/pci_link.c
176
switch (resource->type) {
drivers/acpi/pci_link.c
182
struct acpi_resource_irq *p = &resource->data.irq;
drivers/acpi/pci_link.c
197
&resource->data.extended_irq;
drivers/acpi/pci_link.c
212
resource->type);
drivers/acpi/pci_link.c
280
} *resource;
drivers/acpi/pci_link.c
289
resource = kzalloc(sizeof(*resource) + 1, irqs_disabled() ? GFP_ATOMIC: GFP_KERNEL);
drivers/acpi/pci_link.c
290
if (!resource)
drivers/acpi/pci_link.c
293
buffer.length = sizeof(*resource) + 1;
drivers/acpi/pci_link.c
294
buffer.pointer = resource;
drivers/acpi/pci_link.c
298
resource->res.type = ACPI_RESOURCE_TYPE_IRQ;
drivers/acpi/pci_link.c
299
resource->res.length = sizeof(struct acpi_resource);
drivers/acpi/pci_link.c
300
resource->res.data.irq.triggering = link->irq.triggering;
drivers/acpi/pci_link.c
301
resource->res.data.irq.polarity =
drivers/acpi/pci_link.c
304
resource->res.data.irq.shareable =
drivers/acpi/pci_link.c
307
resource->res.data.irq.shareable = ACPI_SHARED;
drivers/acpi/pci_link.c
308
resource->res.data.irq.interrupt_count = 1;
drivers/acpi/pci_link.c
309
resource->res.data.irq.interrupts[0] = irq;
drivers/acpi/pci_link.c
313
resource->res.type = ACPI_RESOURCE_TYPE_EXTENDED_IRQ;
drivers/acpi/pci_link.c
314
resource->res.length = sizeof(struct acpi_resource);
drivers/acpi/pci_link.c
315
resource->res.data.extended_irq.producer_consumer =
drivers/acpi/pci_link.c
317
resource->res.data.extended_irq.triggering =
drivers/acpi/pci_link.c
319
resource->res.data.extended_irq.polarity =
drivers/acpi/pci_link.c
322
resource->res.data.extended_irq.shareable =
drivers/acpi/pci_link.c
325
resource->res.data.extended_irq.shareable = ACPI_SHARED;
drivers/acpi/pci_link.c
326
resource->res.data.extended_irq.interrupt_count = 1;
drivers/acpi/pci_link.c
327
resource->res.data.extended_irq.interrupts[0] = irq;
drivers/acpi/pci_link.c
337
resource->end.type = ACPI_RESOURCE_TYPE_END_TAG;
drivers/acpi/pci_link.c
338
resource->end.length = sizeof(struct acpi_resource);
drivers/acpi/pci_link.c
382
kfree(resource);
drivers/acpi/pci_link.c
82
static acpi_status acpi_pci_link_check_possible(struct acpi_resource *resource,
drivers/acpi/pci_link.c
89
switch (resource->type) {
drivers/acpi/pci_link.c
95
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
101
struct resource *res)
drivers/acpi/pci_root.c
804
struct resource *res1, *res2, *root = NULL;
drivers/acpi/pci_root.c
81
get_root_bridge_busnr_callback(struct acpi_resource *resource, void *data)
drivers/acpi/pci_root.c
83
struct resource *res = data;
drivers/acpi/pci_root.c
864
struct resource *res = entry->res;
drivers/acpi/pci_root.c
87
status = acpi_resource_to_address64(resource, &address);
drivers/acpi/pci_root.c
932
struct resource *res, *conflict, *root = NULL;
drivers/acpi/pci_root.c
962
struct resource *res;
drivers/acpi/pci_root.c
981
struct resource *res;
drivers/acpi/power.c
1007
static void acpi_resume_on_eb_gp12pxp(struct acpi_power_resource *resource)
drivers/acpi/power.c
1009
acpi_handle_notice(resource->device.handle,
drivers/acpi/power.c
1012
__acpi_power_off(resource);
drivers/acpi/power.c
1013
__acpi_power_on(resource);
drivers/acpi/power.c
102
if (!resource || !list)
drivers/acpi/power.c
1029
struct acpi_power_resource *resource;
drivers/acpi/power.c
1033
list_for_each_entry(resource, &acpi_power_resource_list, list_node) {
drivers/acpi/power.c
1037
mutex_lock(&resource->resource_lock);
drivers/acpi/power.c
1039
resource->state = ACPI_POWER_RESOURCE_STATE_UNKNOWN;
drivers/acpi/power.c
1040
result = acpi_power_get_state(resource, &state);
drivers/acpi/power.c
1042
mutex_unlock(&resource->resource_lock);
drivers/acpi/power.c
1047
&& resource->ref_count) {
drivers/acpi/power.c
1049
resource_is_gp12pxp(resource->device.handle)) {
drivers/acpi/power.c
1050
acpi_resume_on_eb_gp12pxp(resource);
drivers/acpi/power.c
1052
acpi_handle_debug(resource->device.handle,
drivers/acpi/power.c
1054
__acpi_power_on(resource);
drivers/acpi/power.c
1058
mutex_unlock(&resource->resource_lock);
drivers/acpi/power.c
109
entry->resource = resource;
drivers/acpi/power.c
1133
struct acpi_power_resource *resource;
drivers/acpi/power.c
114
if (e->resource->order > resource->order) {
drivers/acpi/power.c
1140
list_for_each_entry_reverse(resource, &acpi_power_resource_list, list_node) {
drivers/acpi/power.c
1141
mutex_lock(&resource->resource_lock);
drivers/acpi/power.c
1143
if (!resource->ref_count &&
drivers/acpi/power.c
1144
resource->state == ACPI_POWER_RESOURCE_STATE_ON) {
drivers/acpi/power.c
1145
acpi_handle_debug(resource->device.handle, "Turning OFF\n");
drivers/acpi/power.c
1146
__acpi_power_off(resource);
drivers/acpi/power.c
1149
mutex_unlock(&resource->resource_lock);
drivers/acpi/power.c
209
static int acpi_power_get_state(struct acpi_power_resource *resource, u8 *state)
drivers/acpi/power.c
211
if (resource->state == ACPI_POWER_RESOURCE_STATE_UNKNOWN) {
drivers/acpi/power.c
214
ret = __get_state(resource->device.handle, &resource->state);
drivers/acpi/power.c
219
*state = resource->state;
drivers/acpi/power.c
233
struct acpi_power_resource *resource = entry->resource;
drivers/acpi/power.c
236
mutex_lock(&resource->resource_lock);
drivers/acpi/power.c
237
result = acpi_power_get_state(resource, &cur_state);
drivers/acpi/power.c
238
mutex_unlock(&resource->resource_lock);
drivers/acpi/power.c
253
acpi_power_resource_add_dependent(struct acpi_power_resource *resource,
drivers/acpi/power.c
259
mutex_lock(&resource->resource_lock);
drivers/acpi/power.c
260
list_for_each_entry(dep, &resource->dependents, node) {
drivers/acpi/power.c
273
list_add_tail(&dep->node, &resource->dependents);
drivers/acpi/power.c
275
resource_dev_name(resource));
drivers/acpi/power.c
278
mutex_unlock(&resource->resource_lock);
drivers/acpi/power.c
283
acpi_power_resource_remove_dependent(struct acpi_power_resource *resource,
drivers/acpi/power.c
288
mutex_lock(&resource->resource_lock);
drivers/acpi/power.c
289
list_for_each_entry(dep, &resource->dependents, node) {
drivers/acpi/power.c
294
resource_dev_name(resource));
drivers/acpi/power.c
298
mutex_unlock(&resource->resource_lock);
drivers/acpi/power.c
328
ret = acpi_power_resource_add_dependent(entry->resource, dev);
drivers/acpi/power.c
337
acpi_power_resource_remove_dependent(entry->resource, dev);
drivers/acpi/power.c
362
acpi_power_resource_remove_dependent(entry->resource, dev);
drivers/acpi/power.c
365
static int __acpi_power_on(struct acpi_power_resource *resource)
drivers/acpi/power.c
367
acpi_handle handle = resource->device.handle;
drivers/acpi/power.c
373
resource->state = ACPI_POWER_RESOURCE_STATE_UNKNOWN;
drivers/acpi/power.c
377
resource->state = ACPI_POWER_RESOURCE_STATE_ON;
drivers/acpi/power.c
386
if (list_empty(&resource->dependents) ||
drivers/acpi/power.c
387
list_is_singular(&resource->dependents))
drivers/acpi/power.c
390
list_for_each_entry(dep, &resource->dependents, node) {
drivers/acpi/power.c
392
resource_dev_name(resource));
drivers/acpi/power.c
399
static int acpi_power_on_unlocked(struct acpi_power_resource *resource)
drivers/acpi/power.c
403
if (resource->ref_count++) {
drivers/acpi/power.c
404
acpi_handle_debug(resource->device.handle,
drivers/acpi/power.c
407
result = __acpi_power_on(resource);
drivers/acpi/power.c
409
resource->ref_count--;
drivers/acpi/power.c
414
static int acpi_power_on(struct acpi_power_resource *resource)
drivers/acpi/power.c
418
mutex_lock(&resource->resource_lock);
drivers/acpi/power.c
419
result = acpi_power_on_unlocked(resource);
drivers/acpi/power.c
420
mutex_unlock(&resource->resource_lock);
drivers/acpi/power.c
424
static int __acpi_power_off(struct acpi_power_resource *resource)
drivers/acpi/power.c
426
acpi_handle handle = resource->device.handle;
drivers/acpi/power.c
431
resource->state = ACPI_POWER_RESOURCE_STATE_UNKNOWN;
drivers/acpi/power.c
435
resource->state = ACPI_POWER_RESOURCE_STATE_OFF;
drivers/acpi/power.c
442
static int acpi_power_off_unlocked(struct acpi_power_resource *resource)
drivers/acpi/power.c
446
if (!resource->ref_count) {
drivers/acpi/power.c
447
acpi_handle_debug(resource->device.handle,
drivers/acpi/power.c
452
if (--resource->ref_count) {
drivers/acpi/power.c
453
acpi_handle_debug(resource->device.handle,
drivers/acpi/power.c
456
result = __acpi_power_off(resource);
drivers/acpi/power.c
458
resource->ref_count++;
drivers/acpi/power.c
463
static int acpi_power_off(struct acpi_power_resource *resource)
drivers/acpi/power.c
467
mutex_lock(&resource->resource_lock);
drivers/acpi/power.c
468
result = acpi_power_off_unlocked(resource);
drivers/acpi/power.c
469
mutex_unlock(&resource->resource_lock);
drivers/acpi/power.c
479
result = acpi_power_off(entry->resource);
drivers/acpi/power.c
487
acpi_power_on(entry->resource);
drivers/acpi/power.c
498
result = acpi_power_on(entry->resource);
drivers/acpi/power.c
506
acpi_power_off(entry->resource);
drivers/acpi/power.c
549
struct acpi_device *res_dev = &entry->resource->device;
drivers/acpi/power.c
573
struct acpi_device *res_dev = &entry->resource->device;
drivers/acpi/power.c
62
struct acpi_power_resource *resource;
drivers/acpi/power.c
620
struct acpi_power_resource *resource = entry->resource;
drivers/acpi/power.c
623
mutex_lock(&resource->resource_lock);
drivers/acpi/power.c
629
if (!resource->ref_count &&
drivers/acpi/power.c
630
!acpi_power_get_state(resource, &state) &&
drivers/acpi/power.c
632
__acpi_power_off(resource);
drivers/acpi/power.c
634
if (system_level > resource->system_level)
drivers/acpi/power.c
635
system_level = resource->system_level;
drivers/acpi/power.c
637
mutex_unlock(&resource->resource_lock);
drivers/acpi/power.c
791
ret = acpi_power_off(entry->resource);
drivers/acpi/power.c
886
struct acpi_power_resource *resource;
drivers/acpi/power.c
888
resource = container_of(device, struct acpi_power_resource, device);
drivers/acpi/power.c
891
list_del(&resource->list_node);
drivers/acpi/power.c
895
kfree(resource);
drivers/acpi/power.c
902
struct acpi_power_resource *resource;
drivers/acpi/power.c
904
resource = to_power_resource(to_acpi_device(dev));
drivers/acpi/power.c
905
return sprintf(buf, "%u\n", !!resource->ref_count);
drivers/acpi/power.c
914
static void acpi_power_add_resource_to_list(struct acpi_power_resource *resource)
drivers/acpi/power.c
922
if (r->order > resource->order) {
drivers/acpi/power.c
923
list_add_tail(&resource->list_node, &r->list_node);
drivers/acpi/power.c
927
list_add_tail(&resource->list_node, &acpi_power_resource_list);
drivers/acpi/power.c
936
struct acpi_power_resource *resource;
drivers/acpi/power.c
946
resource = kzalloc_obj(*resource);
drivers/acpi/power.c
947
if (!resource)
drivers/acpi/power.c
950
device = &resource->device;
drivers/acpi/power.c
953
mutex_init(&resource->resource_lock);
drivers/acpi/power.c
954
INIT_LIST_HEAD(&resource->list_node);
drivers/acpi/power.c
955
INIT_LIST_HEAD(&resource->dependents);
drivers/acpi/power.c
964
resource->system_level = acpi_object.power_resource.system_level;
drivers/acpi/power.c
965
resource->order = acpi_object.power_resource.resource_order;
drivers/acpi/power.c
966
resource->state = ACPI_POWER_RESOURCE_STATE_UNKNOWN;
drivers/acpi/power.c
969
if (acpi_power_get_state(resource, &state_dummy))
drivers/acpi/power.c
970
__acpi_power_on(resource);
drivers/acpi/power.c
985
acpi_power_add_resource_to_list(resource);
drivers/acpi/power.c
99
struct acpi_power_resource *resource = acpi_power_get_context(handle);
drivers/acpi/pptt.c
166
int resource = 0;
drivers/acpi/pptt.c
171
while ((res = acpi_get_pptt_resource(table_hdr, cpu_node, resource))) {
drivers/acpi/pptt.c
172
resource++;
drivers/acpi/pptt.c
73
int resource)
drivers/acpi/pptt.c
77
if (resource >= node->number_of_priv_resources)
drivers/acpi/pptt.c
81
ref += resource;
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
88
struct resource *res;
drivers/acpi/scan.c
1923
struct resource *res = context;
drivers/acpi/scan.c
1934
struct resource res;
drivers/acpi/scan.c
2643
struct resource *res = rentry->res;
drivers/acpi/scan.c
2644
struct resource *r;
drivers/acpi/viot.c
112
struct resource res = {
drivers/acpi/viot.c
344
struct resource *mem;
drivers/amba/bus.c
530
int amba_device_add(struct amba_device *dev, struct resource *parent)
drivers/amba/bus.c
610
int amba_device_register(struct amba_device *dev, struct resource *parent)
drivers/amba/bus.c
95
amba_attr_func(resource, "\t%016llx\t%016llx\t%016lx\n",
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
519
struct resource *res;
drivers/ata/ahci_xgene.c
732
struct resource *res;
drivers/ata/pata_arasan_cf.c
802
struct resource *res;
drivers/ata/pata_buddha.c
164
board = z->resource.start;
drivers/ata/pata_ep93xx.c
923
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
131
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
1128
struct resource *res;
drivers/ata/sata_highbank.c
458
struct resource *mem;
drivers/ata/sata_mv.c
4020
struct resource *res;
drivers/base/platform.c
100
unsigned int index, struct resource **res)
drivers/base/platform.c
102
struct resource *r;
drivers/base/platform.c
1043
struct resource *res, unsigned int n_res,
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
652
const struct resource *res, unsigned int num)
drivers/base/platform.c
654
struct resource *r = NULL;
drivers/base/platform.c
662
kfree(pdev->resource);
drivers/base/platform.c
663
pdev->resource = r;
drivers/base/platform.c
70
struct resource *platform_get_mem_or_io(struct platform_device *dev,
drivers/base/platform.c
737
struct resource *p, *r = &pdev->resource[i];
drivers/base/platform.c
76
struct resource *r = &dev->resource[i];
drivers/base/platform.c
775
struct resource *r = &pdev->resource[i];
drivers/base/platform.c
805
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
1360
extern void drbd_free_resource(struct drbd_resource *resource);
drivers/block/drbd/drbd_int.h
1362
extern int set_resource_options(struct drbd_resource *resource, struct res_opts *res_opts);
drivers/block/drbd/drbd_int.h
1507
void drbd_bump_write_ordering(struct drbd_resource *resource, struct drbd_backing_dev *bdev,
drivers/block/drbd/drbd_int.h
1600
struct drbd_resource *resource = device->resource;
drivers/block/drbd/drbd_int.h
1604
rv.susp = resource->susp;
drivers/block/drbd/drbd_int.h
1605
rv.susp_nod = resource->susp_nod;
drivers/block/drbd/drbd_int.h
1606
rv.susp_fen = resource->susp_fen;
drivers/block/drbd/drbd_int.h
1688
spin_lock_irqsave(&device->resource->req_lock, flags);
drivers/block/drbd/drbd_int.h
1690
spin_unlock_irqrestore(&device->resource->req_lock, flags);
drivers/block/drbd/drbd_int.h
170
struct drbd_resource *resource;
drivers/block/drbd/drbd_int.h
2117
struct drbd_resource *resource = device->resource;
drivers/block/drbd/drbd_int.h
2119
return resource->susp || resource->susp_fen || resource->susp_nod;
drivers/block/drbd/drbd_int.h
2152
spin_lock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_int.h
2156
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_int.h
2218
static inline struct drbd_connection *first_connection(struct drbd_resource *resource)
drivers/block/drbd/drbd_int.h
2220
return list_first_entry_or_null(&resource->connections,
drivers/block/drbd/drbd_int.h
623
struct drbd_resource *resource;
drivers/block/drbd/drbd_int.h
750
struct drbd_resource *resource;
drivers/block/drbd/drbd_int.h
938
struct drbd_resource *resource;
drivers/block/drbd/drbd_int.h
958
#define for_each_resource(resource, _resources) \
drivers/block/drbd/drbd_int.h
959
list_for_each_entry(resource, _resources, resources)
drivers/block/drbd/drbd_int.h
961
#define for_each_resource_rcu(resource, _resources) \
drivers/block/drbd/drbd_int.h
962
list_for_each_entry_rcu(resource, _resources, resources)
drivers/block/drbd/drbd_int.h
964
#define for_each_resource_safe(resource, tmp, _resources) \
drivers/block/drbd/drbd_int.h
965
list_for_each_entry_safe(resource, tmp, _resources, resources)
drivers/block/drbd/drbd_int.h
967
#define for_each_connection(connection, resource) \
drivers/block/drbd/drbd_int.h
968
list_for_each_entry(connection, &resource->connections, connections)
drivers/block/drbd/drbd_int.h
970
#define for_each_connection_rcu(connection, resource) \
drivers/block/drbd/drbd_int.h
971
list_for_each_entry_rcu(connection, &resource->connections, connections)
drivers/block/drbd/drbd_int.h
973
#define for_each_connection_safe(connection, tmp, resource) \
drivers/block/drbd/drbd_int.h
974
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
1416
spin_lock_irq(&connection->resource->req_lock);
drivers/block/drbd/drbd_nl.c
1419
spin_unlock_irq(&connection->resource->req_lock);
drivers/block/drbd/drbd_nl.c
1439
spin_lock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_nl.c
1442
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_nl.c
1573
mutex_lock(&adm_ctx->resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
1588
mutex_lock(&device->resource->conf_update);
drivers/block/drbd/drbd_nl.c
1661
mutex_unlock(&device->resource->conf_update);
drivers/block/drbd/drbd_nl.c
1674
drbd_bump_write_ordering(device->resource, NULL, WO_BDEV_FLUSH);
drivers/block/drbd/drbd_nl.c
1695
mutex_unlock(&device->resource->conf_update);
drivers/block/drbd/drbd_nl.c
1702
mutex_unlock(&adm_ctx->resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
1820
mutex_lock(&adm_ctx->resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
2053
drbd_bump_write_ordering(device->resource, device->ldev, WO_BDEV_FLUSH);
drivers/block/drbd/drbd_nl.c
2062
!(device->state.role == R_PRIMARY && device->resource->susp_nod))
drivers/block/drbd/drbd_nl.c
2122
spin_lock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_nl.c
2174
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_nl.c
2192
mutex_unlock(&adm_ctx->resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
2212
mutex_unlock(&adm_ctx->resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
2256
mutex_lock(&adm_ctx->resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
2258
mutex_unlock(&adm_ctx->resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
236
adm_ctx->resource = drbd_find_resource(adm_ctx->resource_name);
drivers/block/drbd/drbd_nl.c
243
if (!adm_ctx->resource && (flags & DRBD_ADM_NEED_RESOURCE)) {
drivers/block/drbd/drbd_nl.c
2451
mutex_lock(&adm_ctx->resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
2462
mutex_lock(&connection->resource->conf_update);
drivers/block/drbd/drbd_nl.c
251
if (adm_ctx->resource) {
drivers/block/drbd/drbd_nl.c
2539
mutex_unlock(&connection->resource->conf_update);
drivers/block/drbd/drbd_nl.c
2554
mutex_unlock(&connection->resource->conf_update);
drivers/block/drbd/drbd_nl.c
2561
mutex_unlock(&adm_ctx->resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
2596
struct drbd_resource *resource;
drivers/block/drbd/drbd_nl.c
2617
for_each_resource(resource, &drbd_resources) {
drivers/block/drbd/drbd_nl.c
2618
for_each_connection(connection, resource) {
drivers/block/drbd/drbd_nl.c
2635
mutex_lock(&adm_ctx->resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
2636
connection = first_connection(adm_ctx->resource);
drivers/block/drbd/drbd_nl.c
2672
mutex_lock(&adm_ctx->resource->conf_update);
drivers/block/drbd/drbd_nl.c
2676
mutex_unlock(&adm_ctx->resource->conf_update);
drivers/block/drbd/drbd_nl.c
2708
mutex_unlock(&adm_ctx->resource->conf_update);
drivers/block/drbd/drbd_nl.c
271
if (adm_ctx->device && adm_ctx->resource &&
drivers/block/drbd/drbd_nl.c
272
adm_ctx->device->resource != adm_ctx->resource) {
drivers/block/drbd/drbd_nl.c
2721
mutex_unlock(&adm_ctx->resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
2730
mutex_unlock(&adm_ctx->resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
274
adm_ctx->minor, adm_ctx->resource->name,
drivers/block/drbd/drbd_nl.c
275
adm_ctx->device->resource->name);
drivers/block/drbd/drbd_nl.c
2759
spin_lock_irq(&connection->resource->req_lock);
drivers/block/drbd/drbd_nl.c
2761
spin_unlock_irq(&connection->resource->req_lock);
drivers/block/drbd/drbd_nl.c
2828
mutex_lock(&adm_ctx->resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
2830
mutex_unlock(&adm_ctx->resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
284
adm_ctx->device->vnr, adm_ctx->device->resource->name);
drivers/block/drbd/drbd_nl.c
2876
mutex_lock(&adm_ctx->resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
290
if (!adm_ctx->resource) {
drivers/block/drbd/drbd_nl.c
291
adm_ctx->resource = adm_ctx->device ? adm_ctx->device->resource
drivers/block/drbd/drbd_nl.c
292
: adm_ctx->connection ? adm_ctx->connection->resource : NULL;
drivers/block/drbd/drbd_nl.c
293
if (adm_ctx->resource)
drivers/block/drbd/drbd_nl.c
294
kref_get(&adm_ctx->resource->kref);
drivers/block/drbd/drbd_nl.c
2948
mutex_lock(&device->resource->conf_update);
drivers/block/drbd/drbd_nl.c
2953
mutex_unlock(&device->resource->conf_update);
drivers/block/drbd/drbd_nl.c
2982
mutex_unlock(&adm_ctx->resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
3006
res_opts = adm_ctx->resource->res_opts;
drivers/block/drbd/drbd_nl.c
3017
mutex_lock(&adm_ctx->resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
3018
err = set_resource_options(adm_ctx->resource, &res_opts);
drivers/block/drbd/drbd_nl.c
3024
mutex_unlock(&adm_ctx->resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
3049
mutex_lock(&adm_ctx->resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
3072
mutex_unlock(&adm_ctx->resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
3091
mutex_lock(&adm_ctx->resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
3093
mutex_unlock(&adm_ctx->resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
3127
mutex_lock(&adm_ctx->resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
3153
mutex_unlock(&adm_ctx->resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
3171
mutex_lock(&adm_ctx->resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
3174
mutex_unlock(&adm_ctx->resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
3192
mutex_lock(&adm_ctx->resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
3202
mutex_unlock(&adm_ctx->resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
3225
mutex_lock(&adm_ctx->resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
3263
mutex_unlock(&adm_ctx->resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
3275
struct drbd_resource *resource,
drivers/block/drbd/drbd_nl.c
3286
if (nla_put_string(skb, DRBD_A_DRBD_CFG_CONTEXT_CTX_RESOURCE_NAME, resource->name))
drivers/block/drbd/drbd_nl.c
3331
struct drbd_resource *resource;
drivers/block/drbd/drbd_nl.c
3338
for_each_resource_rcu(resource, &drbd_resources)
drivers/block/drbd/drbd_nl.c
3339
if (resource == (struct drbd_resource *)cb->args[0])
drivers/block/drbd/drbd_nl.c
3344
resource = list_entry(&drbd_resources,
drivers/block/drbd/drbd_nl.c
3348
list_for_each_entry_continue_rcu(resource, &drbd_resources, resources) {
drivers/block/drbd/drbd_nl.c
3363
err = nla_put_drbd_cfg_context(skb, resource, NULL, NULL);
drivers/block/drbd/drbd_nl.c
3366
err = res_opts_to_skb(skb, &resource->res_opts);
drivers/block/drbd/drbd_nl.c
3369
resource_to_info(&resource_info, resource);
drivers/block/drbd/drbd_nl.c
3373
resource_statistics.res_stat_write_ordering = resource->write_ordering;
drivers/block/drbd/drbd_nl.c
3377
cb->args[0] = (long)resource;
drivers/block/drbd/drbd_nl.c
3425
struct drbd_resource *resource =
drivers/block/drbd/drbd_nl.c
3427
kref_put(&resource->kref, drbd_destroy_resource);
drivers/block/drbd/drbd_nl.c
3442
struct drbd_resource *resource;
drivers/block/drbd/drbd_nl.c
3450
resource = (struct drbd_resource *)cb->args[0];
drivers/block/drbd/drbd_nl.c
3456
resource = drbd_find_resource(nla_data(resource_filter));
drivers/block/drbd/drbd_nl.c
3457
if (!resource) {
drivers/block/drbd/drbd_nl.c
3461
cb->args[0] = (long)resource;
drivers/block/drbd/drbd_nl.c
3467
idr_to_search = resource ? &resource->devices : &drbd_devices;
drivers/block/drbd/drbd_nl.c
3491
err = nla_put_drbd_cfg_context(skb, device->resource, NULL, device);
drivers/block/drbd/drbd_nl.c
352
if (adm_ctx->resource) {
drivers/block/drbd/drbd_nl.c
353
kref_put(&adm_ctx->resource->kref, drbd_destroy_resource);
drivers/block/drbd/drbd_nl.c
3534
struct drbd_resource *resource = NULL, *next_resource;
drivers/block/drbd/drbd_nl.c
354
adm_ctx->resource = NULL;
drivers/block/drbd/drbd_nl.c
3542
resource = (struct drbd_resource *)cb->args[0];
drivers/block/drbd/drbd_nl.c
3548
resource = drbd_find_resource(nla_data(resource_filter));
drivers/block/drbd/drbd_nl.c
3549
if (!resource)
drivers/block/drbd/drbd_nl.c
3551
cb->args[0] = (long)resource;
drivers/block/drbd/drbd_nl.c
3555
if (!resource) {
drivers/block/drbd/drbd_nl.c
3558
resource = list_first_entry(&drbd_resources, struct drbd_resource, resources);
drivers/block/drbd/drbd_nl.c
3559
kref_get(&resource->kref);
drivers/block/drbd/drbd_nl.c
3560
cb->args[0] = (long)resource;
drivers/block/drbd/drbd_nl.c
3566
mutex_lock(&resource->conf_update);
drivers/block/drbd/drbd_nl.c
3569
for_each_connection_rcu(connection, resource)
drivers/block/drbd/drbd_nl.c
3575
connection = list_entry(&resource->connections, struct drbd_connection, connections);
drivers/block/drbd/drbd_nl.c
3578
list_for_each_entry_continue_rcu(connection, &resource->connections, connections) {
drivers/block/drbd/drbd_nl.c
3588
if (next_resource == resource)
drivers/block/drbd/drbd_nl.c
3597
mutex_unlock(&resource->conf_update);
drivers/block/drbd/drbd_nl.c
3598
kref_put(&resource->kref, drbd_destroy_resource);
drivers/block/drbd/drbd_nl.c
3599
resource = next_resource;
drivers/block/drbd/drbd_nl.c
3600
kref_get(&resource->kref);
drivers/block/drbd/drbd_nl.c
3601
cb->args[0] = (long)resource;
drivers/block/drbd/drbd_nl.c
3619
err = nla_put_drbd_cfg_context(skb, resource, connection, NULL);
drivers/block/drbd/drbd_nl.c
3643
if (resource)
drivers/block/drbd/drbd_nl.c
3644
mutex_unlock(&resource->conf_update);
drivers/block/drbd/drbd_nl.c
3697
struct drbd_resource *resource;
drivers/block/drbd/drbd_nl.c
3704
resource = (struct drbd_resource *)cb->args[0];
drivers/block/drbd/drbd_nl.c
3710
resource = drbd_find_resource(nla_data(resource_filter));
drivers/block/drbd/drbd_nl.c
3711
if (!resource) {
drivers/block/drbd/drbd_nl.c
3716
cb->args[0] = (long)resource;
drivers/block/drbd/drbd_nl.c
3721
idr_to_search = resource ? &resource->devices : &drbd_devices;
drivers/block/drbd/drbd_nl.c
3766
err = nla_put_drbd_cfg_context(skb, device->resource, peer_device->connection, device);
drivers/block/drbd/drbd_nl.c
3792
static struct drbd_connection *the_only_connection(struct drbd_resource *resource)
drivers/block/drbd/drbd_nl.c
3794
struct list_head *connections = &resource->connections;
drivers/block/drbd/drbd_nl.c
3798
return list_first_entry(&resource->connections, struct drbd_connection, connections);
drivers/block/drbd/drbd_nl.c
3804
struct drbd_resource *resource = device->resource;
drivers/block/drbd/drbd_nl.c
3828
if (nla_put_drbd_cfg_context(skb, resource, the_only_connection(resource), device))
drivers/block/drbd/drbd_nl.c
3831
if (res_opts_to_skb(skb, &device->resource->res_opts))
drivers/block/drbd/drbd_nl.c
3979
struct drbd_resource *resource = NULL;
drivers/block/drbd/drbd_nl.c
4011
resource = pos;
drivers/block/drbd/drbd_nl.c
4015
resource = pos;
drivers/block/drbd/drbd_nl.c
4019
if (resource) {
drivers/block/drbd/drbd_nl.c
4021
device = idr_get_next(&resource->devices, &volume);
drivers/block/drbd/drbd_nl.c
4025
pos = list_entry_rcu(resource->resources.next,
drivers/block/drbd/drbd_nl.c
4035
resource = pos;
drivers/block/drbd/drbd_nl.c
4054
connection = the_only_connection(resource);
drivers/block/drbd/drbd_nl.c
4055
if (nla_put_drbd_cfg_context(skb, resource, connection, NULL))
drivers/block/drbd/drbd_nl.c
4068
D_ASSERT(device, device->resource == resource);
drivers/block/drbd/drbd_nl.c
4086
cb->args[1] = (pos == resource) ? volume + 1 : 0;
drivers/block/drbd/drbd_nl.c
4108
struct drbd_resource *resource;
drivers/block/drbd/drbd_nl.c
4135
resource = drbd_find_resource(resource_name);
drivers/block/drbd/drbd_nl.c
4136
if (!resource)
drivers/block/drbd/drbd_nl.c
4139
kref_put(&resource->kref, drbd_destroy_resource); /* get_one_status() revalidates the resource */
drivers/block/drbd/drbd_nl.c
4143
cb->args[0] = (long)resource;
drivers/block/drbd/drbd_nl.c
4145
cb->args[2] = (long)resource;
drivers/block/drbd/drbd_nl.c
4206
mutex_lock(&adm_ctx->resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
4219
mutex_unlock(&adm_ctx->resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
4252
mutex_lock(&adm_ctx->resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
4285
spin_lock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_nl.c
4288
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_nl.c
4297
mutex_unlock(&adm_ctx->resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
4321
struct drbd_resource *resource)
drivers/block/drbd/drbd_nl.c
4323
info->res_role = conn_highest_role(first_connection(resource));
drivers/block/drbd/drbd_nl.c
4324
info->res_susp = resource->susp;
drivers/block/drbd/drbd_nl.c
4325
info->res_susp_nod = resource->susp_nod;
drivers/block/drbd/drbd_nl.c
4326
info->res_susp_fen = resource->susp_fen;
drivers/block/drbd/drbd_nl.c
4355
if (adm_ctx->resource) {
drivers/block/drbd/drbd_nl.c
4373
resource_to_info(&resource_info, connection->resource);
drivers/block/drbd/drbd_nl.c
4374
notify_resource_state(NULL, 0, connection->resource,
drivers/block/drbd/drbd_nl.c
4424
mutex_lock(&adm_ctx->resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
4456
mutex_unlock(&adm_ctx->resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
447
char *resource_name = connection->resource->name;
drivers/block/drbd/drbd_nl.c
4472
first_connection(device->resource);
drivers/block/drbd/drbd_nl.c
4510
mutex_lock(&adm_ctx->resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
4512
mutex_unlock(&adm_ctx->resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
4518
static int adm_del_resource(struct drbd_resource *resource)
drivers/block/drbd/drbd_nl.c
4522
for_each_connection(connection, resource) {
drivers/block/drbd/drbd_nl.c
4526
if (!idr_is_empty(&resource->devices))
drivers/block/drbd/drbd_nl.c
4533
notify_resource_state(NULL, 0, resource, NULL, NOTIFY_DESTROY);
drivers/block/drbd/drbd_nl.c
4537
list_del_rcu(&resource->resources);
drivers/block/drbd/drbd_nl.c
4541
list_for_each_entry(connection, &resource->connections, connections)
drivers/block/drbd/drbd_nl.c
4544
drbd_free_resource(resource);
drivers/block/drbd/drbd_nl.c
4551
struct drbd_resource *resource;
drivers/block/drbd/drbd_nl.c
4563
resource = adm_ctx->resource;
drivers/block/drbd/drbd_nl.c
4564
mutex_lock(&resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
4566
for_each_connection(connection, resource) {
drivers/block/drbd/drbd_nl.c
4585
idr_for_each_entry(&resource->devices, device, i) {
drivers/block/drbd/drbd_nl.c
4594
idr_for_each_entry(&resource->devices, device, i) {
drivers/block/drbd/drbd_nl.c
4603
retcode = adm_del_resource(resource);
drivers/block/drbd/drbd_nl.c
4605
mutex_unlock(&resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
4614
struct drbd_resource *resource;
drivers/block/drbd/drbd_nl.c
4622
resource = adm_ctx->resource;
drivers/block/drbd/drbd_nl.c
4624
mutex_lock(&resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
4625
retcode = adm_del_resource(resource);
drivers/block/drbd/drbd_nl.c
4626
mutex_unlock(&resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
4681
struct drbd_resource *resource,
drivers/block/drbd/drbd_nl.c
4705
if (nla_put_drbd_cfg_context(skb, resource, NULL, NULL) ||
drivers/block/drbd/drbd_nl.c
4710
resource_statistics.res_stat_write_ordering = resource->write_ordering;
drivers/block/drbd/drbd_nl.c
4726
drbd_err(resource, "Error %d while broadcasting event. Event seq:%u\n",
drivers/block/drbd/drbd_nl.c
4757
if (nla_put_drbd_cfg_context(skb, device->resource, NULL, device) ||
drivers/block/drbd/drbd_nl.c
4807
if (nla_put_drbd_cfg_context(skb, connection->resource, connection, NULL) ||
drivers/block/drbd/drbd_nl.c
4838
struct drbd_resource *resource = peer_device->device->resource;
drivers/block/drbd/drbd_nl.c
4858
if (nla_put_drbd_cfg_context(skb, resource, peer_device->connection, peer_device->device) ||
drivers/block/drbd/drbd_nl.c
4886
struct drbd_resource *resource = device ? device->resource : connection->resource;
drivers/block/drbd/drbd_nl.c
4909
if (nla_put_drbd_cfg_context(skb, resource, connection, device) ||
drivers/block/drbd/drbd_nl.c
4926
drbd_err(resource, "Error %d while broadcasting event. Event seq:%u\n",
drivers/block/drbd/drbd_nl.c
497
static bool resource_is_supended(struct drbd_resource *resource)
drivers/block/drbd/drbd_nl.c
499
return resource->susp || resource->susp_fen || resource->susp_nod;
drivers/block/drbd/drbd_nl.c
4992
err = notify_resource_state_change(skb, seq, state_change->resource,
drivers/block/drbd/drbd_nl.c
5033
struct drbd_resource *resource;
drivers/block/drbd/drbd_nl.c
504
struct drbd_resource * const resource = connection->resource;
drivers/block/drbd/drbd_nl.c
5052
for_each_resource(resource, &drbd_resources) {
drivers/block/drbd/drbd_nl.c
5055
state_change = remember_old_state(resource, GFP_KERNEL);
drivers/block/drbd/drbd_nl.c
512
spin_lock_irq(&resource->req_lock);
drivers/block/drbd/drbd_nl.c
515
spin_unlock_irq(&resource->req_lock);
drivers/block/drbd/drbd_nl.c
520
spin_unlock_irq(&resource->req_lock);
drivers/block/drbd/drbd_nl.c
526
spin_lock_irq(&resource->req_lock);
drivers/block/drbd/drbd_nl.c
535
if (!resource_is_supended(resource))
drivers/block/drbd/drbd_nl.c
544
spin_unlock_irq(&resource->req_lock);
drivers/block/drbd/drbd_nl.c
605
spin_lock_irq(&resource->req_lock);
drivers/block/drbd/drbd_nl.c
614
spin_unlock_irq(&resource->req_lock);
drivers/block/drbd/drbd_nl.c
665
for_each_connection(connection, device->resource)
drivers/block/drbd/drbd_nl.c
757
mutex_lock(&device->resource->conf_update);
drivers/block/drbd/drbd_nl.c
761
mutex_unlock(&device->resource->conf_update);
drivers/block/drbd/drbd_nl.c
823
mutex_lock(&adm_ctx->resource->adm_mutex);
drivers/block/drbd/drbd_nl.c
830
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
1896
spin_lock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
1898
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
1906
spin_lock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
1908
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
1949
spin_lock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
1951
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
2051
spin_lock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
2056
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
2135
spin_lock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
2143
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
2254
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
2257
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
2487
spin_lock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
2490
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
2499
spin_lock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
2507
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
2526
spin_lock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
2529
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
2796
spin_lock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
2798
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
2821
spin_lock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
2823
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
3560
mutex_lock(&connection->resource->conf_update);
drivers/block/drbd/drbd_receiver.c
3571
mutex_unlock(&connection->resource->conf_update);
drivers/block/drbd/drbd_receiver.c
3713
mutex_lock(&connection->resource->conf_update);
drivers/block/drbd/drbd_receiver.c
3719
mutex_unlock(&connection->resource->conf_update);
drivers/block/drbd/drbd_receiver.c
3836
mutex_unlock(&connection->resource->conf_update);
drivers/block/drbd/drbd_receiver.c
3850
mutex_unlock(&connection->resource->conf_update);
drivers/block/drbd/drbd_receiver.c
3859
mutex_unlock(&connection->resource->conf_update);
drivers/block/drbd/drbd_receiver.c
3946
mutex_lock(&connection->resource->conf_update);
drivers/block/drbd/drbd_receiver.c
3952
mutex_unlock(&connection->resource->conf_update);
drivers/block/drbd/drbd_receiver.c
4238
spin_lock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
4241
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
4363
spin_lock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
4377
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
4387
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
4799
spin_lock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
4801
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
4807
spin_lock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
4809
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
4972
spin_lock_irq(&connection->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
4977
spin_unlock_irq(&connection->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
4989
spin_lock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
4993
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
5484
spin_lock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
5487
spin_unlock_irq(&device->resource->req_lock);
drivers/block/drbd/drbd_receiver.c
5491
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/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
1049
struct resource *plat_res;
drivers/bus/fsl-mc/fsl-mc-bus.c
1226
struct resource *res;
drivers/bus/fsl-mc/fsl-mc-bus.c
637
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
77
struct resource *res;
drivers/bus/stm32_rifsc.c
735
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
125
struct resource *mem;
drivers/cache/sifive_ccache.c
295
struct resource res;
drivers/cdx/cdx.c
556
struct resource *res = &cdx_dev->res[i];
drivers/cdx/cdx.c
686
struct resource *res;
drivers/cdx/cdx.c
767
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
349
struct resource *r;
drivers/char/agp/efficeon-agp.c
388
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
318
struct resource *res;
drivers/char/tpm/eventlog/of.c
27
struct resource res;
drivers/char/tpm/tpm_crb.c
541
struct resource *iores_array = data;
drivers/char/tpm/tpm_crb.c
543
struct resource *res = &(win.res);
drivers/char/tpm/tpm_crb.c
560
static void __iomem *crb_map_res(struct device *dev, struct resource *iores,
drivers/char/tpm/tpm_crb.c
563
struct resource new_res = {
drivers/char/tpm/tpm_crb.c
590
static u64 crb_fixup_cmd_size(struct device *dev, struct resource *io_res,
drivers/char/tpm/tpm_crb.c
611
struct resource iores_array[TPM_CRB_MAX_RESOURCES + 1] = { {0} };
drivers/char/tpm/tpm_crb.c
613
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
345
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
1079
struct resource res;
drivers/clk/clk-qoriq.c
1368
struct resource res;
drivers/clk/clk-xgene.c
389
struct resource res;
drivers/clk/clk-xgene.c
678
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
248
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
610
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
137
struct resource *res;
drivers/crypto/atmel-aes.c
2334
struct resource *aes_res;
drivers/crypto/atmel-sha.c
2570
struct resource *sha_res;
drivers/crypto/atmel-tdes.c
945
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
1324
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
925
struct resource *hash_res;
drivers/crypto/marvell/cesa/cesa.c
373
struct resource *res;
drivers/crypto/omap-aes.c
1112
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
960
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
2063
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
89
struct resource *res;
drivers/crypto/stm32/stm32-hash.c
2332
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
108
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/memdev.c
223
const struct resource *res = &cxlds->part[i].res;
drivers/cxl/core/memdev.c
686
cxlds->reg_map.resource = CXL_RESOURCE_NONE;
drivers/cxl/core/pci.c
70
return devm_cxl_add_dport(port, dport_dev, port_num, map.resource);
drivers/cxl/core/pci.c
707
.resource = CXL_RESOURCE_NONE,
drivers/cxl/core/pci.c
714
map->resource = component_reg_phys;
drivers/cxl/core/port.c
1562
return map.resource;
drivers/cxl/core/port.c
761
.resource = component_reg_phys,
drivers/cxl/core/region.c
2912
const struct resource *res;
drivers/cxl/core/region.c
2913
struct resource *p, *last;
drivers/cxl/core/region.c
3638
struct resource *res)
drivers/cxl/core/region.c
3683
struct resource *res;
drivers/cxl/core/region.c
3890
static int is_system_ram(struct resource *res, void *arg)
drivers/cxl/core/region.c
4043
const struct resource *res = data;
drivers/cxl/core/region.c
4062
bool cxl_region_contains_resource(const struct resource *res)
drivers/cxl/core/region.c
622
u64 resource = -1ULL;
drivers/cxl/core/region.c
630
resource = p->res->start;
drivers/cxl/core/region.c
631
return sysfs_emit(buf, "%#llx\n", resource);
drivers/cxl/core/region.c
633
static DEVICE_ATTR_RO(resource);
drivers/cxl/core/region.c
656
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
332
struct resource *dpa_res;
drivers/cxl/cxl.h
382
struct resource *res;
drivers/cxl/cxl.h
430
struct resource *res;
drivers/cxl/cxl.h
874
bool cxl_region_contains_resource(const struct resource *res);
drivers/cxl/cxl.h
897
static inline bool cxl_region_contains_resource(const struct resource *res)
drivers/cxl/pmem.c
406
struct resource *res;
drivers/dax/bus.c
1011
static bool adjust_ok(struct dev_dax *dev_dax, struct resource *res)
drivers/dax/bus.c
1038
struct resource *region_res = &dax_region->res;
drivers/dax/bus.c
1040
struct resource *res, *first;
drivers/dax/bus.c
1070
struct resource *next = res->sibling;
drivers/dax/bus.c
13
static struct resource dax_regions = DEFINE_RES_MEM_NAMED(0, -1, "DAX Regions");
drivers/dax/bus.c
1314
static DEVICE_ATTR(resource, 0400, resource_show, NULL);
drivers/dax/bus.c
299
struct resource *res;
drivers/dax/bus.c
665
dax_region->res = (struct resource) {
drivers/dax/bus.c
855
struct resource *res = &dax_region->res;
drivers/dax/bus.c
859
struct resource *alloc;
drivers/dax/bus.c
912
static int adjust_dev_dax_range(struct dev_dax *dev_dax, struct resource *res, resource_size_t size)
drivers/dax/bus.c
977
struct resource *adjust = NULL, *res;
drivers/dax/bus.h
11
struct resource;
drivers/dax/dax-private.h
38
struct resource res;
drivers/dax/hmem/device.c
14
static struct resource hmem_active = {
drivers/dax/hmem/device.c
23
struct resource *res;
drivers/dax/hmem/device.c
50
static void __hmem_register_resource(int target_nid, struct resource *res)
drivers/dax/hmem/device.c
52
struct resource *new;
drivers/dax/hmem/device.c
76
void hmem_register_resource(int target_nid, struct resource *res)
drivers/dax/hmem/device.c
86
static __init int hmem_register_one(struct resource *res, void *data)
drivers/dax/hmem/hmem.c
130
const struct resource *res)
drivers/dax/hmem/hmem.c
166
const struct resource *res)
drivers/dax/hmem/hmem.c
71
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
774
struct resource **res, void __iomem **ptr,
drivers/dma/altera-msgdma.c
777
struct resource *region;
drivers/dma/altera-msgdma.c
819
struct resource *dma_res;
drivers/dma/amd/qdma/qdma.c
1042
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
196
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
751
struct resource *trca_resource;
drivers/dma/qcom/hidma.c
752
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
3498
struct resource *res;
drivers/dma/ste_dma40.c
3499
struct resource res_lcpa;
drivers/dma/stm32/stm32-dma.c
1570
struct resource *res;
drivers/dma/tegra210-adma.c
1038
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
1619
struct resource *res;
drivers/dma/xilinx/xdma.c
1200
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
498
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
150
struct resource r;
drivers/edac/mpc85xx_edac.c
491
struct resource r;
drivers/edac/pnd2_edac.c
243
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
1329
unsigned long index = r->resource.handle;
drivers/firewire/core-cdev.c
137
struct client_resource resource;
drivers/firewire/core-cdev.c
1411
e->iso_resource.handle = r->resource.handle;
drivers/firewire/core-cdev.c
1428
static void release_iso_resource_auto(struct client *client, struct client_resource *resource)
drivers/firewire/core-cdev.c
1430
struct iso_resource_auto *r = to_iso_resource_auto(resource);
drivers/firewire/core-cdev.c
1464
r->resource.release = release_iso_resource_auto;
drivers/firewire/core-cdev.c
1465
err = add_client_resource(client, &r->resource, GFP_KERNEL);
drivers/firewire/core-cdev.c
1468
request->handle = r->resource.handle;
drivers/firewire/core-cdev.c
162
static struct address_handler_resource *to_address_handler_resource(struct client_resource *resource)
drivers/firewire/core-cdev.c
164
return container_of(resource, struct address_handler_resource, resource);
drivers/firewire/core-cdev.c
167
static struct inbound_transaction_resource *to_inbound_transaction_resource(struct client_resource *resource)
drivers/firewire/core-cdev.c
169
return container_of(resource, struct inbound_transaction_resource, resource);
drivers/firewire/core-cdev.c
172
static struct descriptor_resource *to_descriptor_resource(struct client_resource *resource)
drivers/firewire/core-cdev.c
174
return container_of(resource, struct descriptor_resource, resource);
drivers/firewire/core-cdev.c
177
static struct iso_resource_auto *to_iso_resource_auto(struct client_resource *resource)
drivers/firewire/core-cdev.c
179
return container_of(resource, struct iso_resource_auto, resource);
drivers/firewire/core-cdev.c
184
static int is_iso_resource_auto(const struct client_resource *resource)
drivers/firewire/core-cdev.c
186
return resource->release == release_iso_resource_auto;
drivers/firewire/core-cdev.c
190
struct client_resource *resource);
drivers/firewire/core-cdev.c
1909
struct client_resource *resource;
drivers/firewire/core-cdev.c
1914
xa_for_each(&client->resource_xa, index, resource) {
drivers/firewire/core-cdev.c
1915
if (is_outbound_transaction_resource(resource))
drivers/firewire/core-cdev.c
192
static int is_outbound_transaction_resource(const struct client_resource *resource)
drivers/firewire/core-cdev.c
1926
struct client_resource *resource;
drivers/firewire/core-cdev.c
194
return resource->release == release_transaction;
drivers/firewire/core-cdev.c
1950
xa_for_each(&client->resource_xa, index, resource) {
drivers/firewire/core-cdev.c
1951
resource->release(client, resource);
drivers/firewire/core-cdev.c
430
struct client_resource *resource;
drivers/firewire/core-cdev.c
444
xa_for_each(&client->resource_xa, index, resource) {
drivers/firewire/core-cdev.c
445
if (is_iso_resource_auto(resource))
drivers/firewire/core-cdev.c
446
schedule_iso_resource_auto(to_iso_resource_auto(resource), 0);
drivers/firewire/core-cdev.c
525
static int add_client_resource(struct client *client, struct client_resource *resource,
drivers/firewire/core-cdev.c
536
ret = xa_alloc(&client->resource_xa, &index, resource, xa_limit_32b,
drivers/firewire/core-cdev.c
539
ret = xa_alloc_bh(&client->resource_xa, &index, resource,
drivers/firewire/core-cdev.c
545
resource->handle = index;
drivers/firewire/core-cdev.c
557
struct client_resource *resource;
drivers/firewire/core-cdev.c
563
resource = xa_load(&client->resource_xa, index);
drivers/firewire/core-cdev.c
564
if (!resource || resource->release != release)
drivers/firewire/core-cdev.c
571
*return_resource = resource;
drivers/firewire/core-cdev.c
573
resource->release(client, resource);
drivers/firewire/core-cdev.c
581
struct client_resource *resource)
drivers/firewire/core-cdev.c
590
unsigned long index = e->r.resource.handle;
drivers/firewire/core-cdev.c
690
e->r.resource.release = release_transaction;
drivers/firewire/core-cdev.c
691
ret = add_client_resource(client, &e->r.resource, GFP_KERNEL);
drivers/firewire/core-cdev.c
730
struct client_resource *resource)
drivers/firewire/core-cdev.c
732
struct inbound_transaction_resource *r = to_inbound_transaction_resource(resource);
drivers/firewire/core-cdev.c
774
r->resource.release = release_request;
drivers/firewire/core-cdev.c
775
ret = add_client_resource(handler->client, &r->resource, GFP_ATOMIC);
drivers/firewire/core-cdev.c
789
req->handle = r->resource.handle;
drivers/firewire/core-cdev.c
803
req->handle = r->resource.handle;
drivers/firewire/core-cdev.c
817
req->handle = r->resource.handle;
drivers/firewire/core-cdev.c
840
struct client_resource *resource)
drivers/firewire/core-cdev.c
842
struct address_handler_resource *r = to_address_handler_resource(resource);
drivers/firewire/core-cdev.c
878
r->resource.release = release_address_handler;
drivers/firewire/core-cdev.c
879
ret = add_client_resource(client, &r->resource, GFP_KERNEL);
drivers/firewire/core-cdev.c
881
release_address_handler(client, &r->resource);
drivers/firewire/core-cdev.c
884
a->handle = r->resource.handle;
drivers/firewire/core-cdev.c
898
struct client_resource *resource;
drivers/firewire/core-cdev.c
903
release_request, &resource) < 0)
drivers/firewire/core-cdev.c
906
r = to_inbound_transaction_resource(resource);
drivers/firewire/core-cdev.c
938
struct client_resource *resource)
drivers/firewire/core-cdev.c
940
struct descriptor_resource *r = to_descriptor_resource(resource);
drivers/firewire/core-cdev.c
978
r->resource.release = release_descriptor;
drivers/firewire/core-cdev.c
979
ret = add_client_resource(client, &r->resource, GFP_KERNEL);
drivers/firewire/core-cdev.c
984
a->handle = r->resource.handle;
drivers/firmware/arm_scmi/common.h
414
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
1075
struct resource *res, *parent;
drivers/firmware/efi/efi.c
1078
res = kzalloc_obj(struct resource, GFP_ATOMIC);
drivers/firmware/efi/riscv-runtime.c
81
struct resource *res;
drivers/firmware/google/coreboot_table.c
174
struct resource *res;
drivers/firmware/google/framebuffer-coreboot.c
41
static struct pci_dev *framebuffer_parent_pci_dev(struct resource *res)
drivers/firmware/google/framebuffer-coreboot.c
44
const struct resource *r = NULL;
drivers/firmware/google/framebuffer-coreboot.c
60
static struct pci_dev *framebuffer_parent_pci_dev(struct resource *res)
drivers/firmware/google/framebuffer-coreboot.c
66
static struct device *framebuffer_parent_dev(struct resource *res)
drivers/firmware/google/framebuffer-coreboot.c
84
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
2047
struct resource res;
drivers/firmware/qemu_fw_cfg.c
236
struct resource *range, *ctrl, *data, *dma;
drivers/firmware/qemu_fw_cfg.c
798
struct resource res[4] = {};
drivers/firmware/qemu_fw_cfg.c
870
(fw_cfg_cmdline_dev->resource[0].flags == IORESOURCE_MEM)))
drivers/firmware/qemu_fw_cfg.c
876
resource_size(&fw_cfg_cmdline_dev->resource[0]),
drivers/firmware/qemu_fw_cfg.c
877
fw_cfg_cmdline_dev->resource[0].start);
drivers/firmware/qemu_fw_cfg.c
880
resource_size(&fw_cfg_cmdline_dev->resource[0]),
drivers/firmware/qemu_fw_cfg.c
881
fw_cfg_cmdline_dev->resource[0].start,
drivers/firmware/qemu_fw_cfg.c
882
fw_cfg_cmdline_dev->resource[1].start,
drivers/firmware/qemu_fw_cfg.c
883
fw_cfg_cmdline_dev->resource[2].start);
drivers/firmware/qemu_fw_cfg.c
886
resource_size(&fw_cfg_cmdline_dev->resource[0]),
drivers/firmware/qemu_fw_cfg.c
887
fw_cfg_cmdline_dev->resource[0].start,
drivers/firmware/qemu_fw_cfg.c
888
fw_cfg_cmdline_dev->resource[1].start,
drivers/firmware/qemu_fw_cfg.c
889
fw_cfg_cmdline_dev->resource[2].start,
drivers/firmware/qemu_fw_cfg.c
890
fw_cfg_cmdline_dev->resource[3].start);
drivers/firmware/samsung/exynos-acpm.c
709
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
186
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
969
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
1153
link->resource[0]->end = 32;
drivers/gpib/ines/ines_gpib.c
1154
link->resource[0]->flags &= ~IO_DATA_PATH_WIDTH;
drivers/gpib/ines/ines_gpib.c
1155
link->resource[0]->flags |= IO_DATA_PATH_WIDTH_8;
drivers/gpib/ines/ines_gpib.c
1214
link->resource[2]->flags |= WIN_MEMORY_TYPE_AM | WIN_DATA_WIDTH_8 | WIN_ENABLE;
drivers/gpib/ines/ines_gpib.c
1215
link->resource[2]->end = 0x1000;
drivers/gpib/ines/ines_gpib.c
1216
retval = pcmcia_request_window(link, link->resource[2], 250);
drivers/gpib/ines/ines_gpib.c
1222
retval = pcmcia_map_mem_page(link, link->resource[2], 0);
drivers/gpib/ines/ines_gpib.c
1228
virt = ioremap(link->resource[2]->start, resource_size(link->resource[2]));
drivers/gpib/ines/ines_gpib.c
1229
writeb((link->resource[2]->start >> 2) & 0xff, virt + 0xf0); // IOWindow base
drivers/gpib/ines/ines_gpib.c
1410
if (!request_region(curr_dev->resource[0]->start,
drivers/gpib/ines/ines_gpib.c
1411
resource_size(curr_dev->resource[0]), DRV_NAME)) {
drivers/gpib/ines/ines_gpib.c
1413
(unsigned long)(curr_dev->resource[0]->start));
drivers/gpib/ines/ines_gpib.c
1417
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
387
struct device_node *np, struct resource *res)
drivers/gpio/gpio-brcmstb.c
633
struct resource *res;
drivers/gpio/gpio-cs5535.c
288
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
81
struct resource *res;
drivers/gpio/gpio-mlxbf2.c
85
static struct resource yu_arm_gpio_lock_res =
drivers/gpio/gpio-mlxbf2.c
99
struct resource *res;
drivers/gpio/gpio-mmio.c
705
struct resource *r;
drivers/gpio/gpio-mmio.c
734
struct resource *r;
drivers/gpio/gpio-nomadik.c
514
struct resource *res;
drivers/gpio/gpio-novalake-events.c
247
struct resource *res;
drivers/gpio/gpio-rdc321x.c
122
struct resource *r;
drivers/gpio/gpio-realtek-otto.c
370
struct resource *res;
drivers/gpio/gpio-rockchip.c
650
struct resource res;
drivers/gpio/gpio-sch.c
328
struct resource *res;
drivers/gpio/gpio-tegra186.c
860
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
268
adev->acp.acp_res = kzalloc_objs(struct resource, 3);
drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c
332
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
2079
bo->tbo.resource->mem_type == TTM_PL_SYSTEM)
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
2584
if (bo->tbo.resource->mem_type != TTM_PL_SYSTEM) {
drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c
509
struct resource *res = &adev->pdev->resource[PCI_ROM_RESOURCE];
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
1805
if ((*bo)->tbo.resource->mem_type == TTM_PL_VRAM &&
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
1806
!((*bo)->tbo.resource->placement & TTM_PL_FLAG_CONTIGUOUS)) {
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
833
amdgpu_res_cpu_visible(adev, bo->tbo.resource))
drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c
295
if (abo->tbo.resource->mem_type != TTM_PL_VRAM)
drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c
298
amdgpu_res_first(abo->tbo.resource, offset,
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
1124
struct resource *res;
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
1855
amdgpu_res_first(abo->tbo.resource, offset, 4, &cursor);
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
1894
if (abo->tbo.resource->mem_type != TTM_PL_VRAM) {
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
204
switch (bo->tbo.resource->mem_type) {
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
223
r = amdgpu_vram_mgr_alloc_sgt(adev, bo->tbo.resource, 0,
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
231
r = amdgpu_ttm_mmio_remap_alloc_sgt(adev, bo->tbo.resource,
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
265
if (bo->tbo.resource &&
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
266
bo->tbo.resource->mem_type == AMDGPU_PL_MMIO_REMAP) {
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
478
if (!bo->tbo.resource || bo->tbo.resource->mem_type == TTM_PL_SYSTEM)
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
696
if (robj->tbo.resource &&
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
697
robj->tbo.resource->mem_type == AMDGPU_PL_MMIO_REMAP) {
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
117
switch (bo->tbo.resource->mem_type) {
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
128
*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
1028
if (bo->tbo.resource->mem_type == TTM_PL_VRAM) {
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
1032
} else if (bo->tbo.resource->mem_type == TTM_PL_TT) {
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
1129
WARN_ON_ONCE(bo->tbo.resource &&
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
1130
bo->tbo.resource->mem_type == AMDGPU_PL_MMIO_REMAP);
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
1158
WARN_ON_ONCE(bo->tbo.resource &&
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
1159
bo->tbo.resource->mem_type == AMDGPU_PL_MMIO_REMAP);
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
1271
struct ttm_resource *old_mem = bo->resource;
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
1326
if (!bo->resource || bo->resource->mem_type != TTM_PL_VRAM ||
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
1341
amdgpu_vram_mgr_set_cleared(bo->resource);
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
1370
if (amdgpu_res_cpu_visible(adev, bo->resource))
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
1392
if (bo->resource->mem_type == TTM_PL_VRAM &&
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
1393
!amdgpu_res_cpu_visible(adev, bo->resource))
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
1483
WARN_ON_ONCE(bo->tbo.resource->mem_type == TTM_PL_SYSTEM);
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
1486
WARN_ON_ONCE(bo->tbo.resource->start == AMDGPU_BO_INVALID_OFFSET);
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
1487
WARN_ON_ONCE(bo->tbo.resource->mem_type == TTM_PL_VRAM &&
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
1505
WARN_ON_ONCE(bo->tbo.resource->mem_type != TTM_PL_VRAM);
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
1509
offset = (bo->tbo.resource->start << PAGE_SHIFT) + fb_base;
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
1525
if (bo->tbo.resource->mem_type == TTM_PL_TT)
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
1529
offset = (bo->tbo.resource->start << PAGE_SHIFT) +
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
1530
amdgpu_ttm_domain_start(adev, bo->tbo.resource->mem_type);
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
1556
if (bo->tbo.resource && bo->tbo.resource->mem_type == AMDGPU_PL_MMIO_REMAP)
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
1633
if (!bo->tbo.resource) {
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
1636
switch (bo->tbo.resource->mem_type) {
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
1638
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
468
ttm_resource_free(&(*bo_ptr)->tbo, &(*bo_ptr)->tbo.resource);
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
475
&(*bo_ptr)->tbo.resource, &ctx);
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
713
amdgpu_res_cpu_visible(adev, bo->tbo.resource))
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
720
bo->tbo.resource->mem_type == TTM_PL_VRAM) {
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
954
uint32_t mem_type = bo->tbo.resource->mem_type;
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
955
uint32_t mem_flags = bo->tbo.resource->placement;
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
995
if (bo->tbo.resource->mem_type == TTM_PL_VRAM) {
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
999
} else if (bo->tbo.resource->mem_type == TTM_PL_TT) {
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
5748
if (!bo || !bo->tbo.resource)
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
5751
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
1000
if (bo->resource->start != AMDGPU_BO_INVALID_OFFSET)
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
1013
placements.flags = bo->resource->placement;
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
1026
ttm_resource_free(bo, &bo->resource);
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
1046
flags = amdgpu_ttm_tt_pte_flags(adev, tbo->ttm, tbo->resource);
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
124
switch (bo->resource->mem_type) {
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
140
amdgpu_res_cpu_visible(adev, bo->resource)) {
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
1496
if (bo->resource->mem_type == TTM_PL_SYSTEM)
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
1521
if (bo->resource->mem_type == AMDGPU_PL_PREEMPT)
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
1524
if (bo->resource->mem_type == TTM_PL_TT &&
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
1601
amdgpu_res_first(abo->tbo.resource, offset, len, &src_mm);
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
1602
src_addr = amdgpu_ttm_domain_start(adev, bo->resource->mem_type) +
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
1646
if (bo->resource->mem_type != TTM_PL_VRAM)
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
1653
amdgpu_res_first(bo->resource, offset, len, &cursor);
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
1987
ttm_resource_free(tbo, &tbo->resource);
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
2591
amdgpu_res_first(bo->tbo.resource, 0, amdgpu_bo_size(bo), &dst);
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
2606
r = amdgpu_ttm_map_buffer(entity, &bo->tbo, bo->tbo.resource, &dst,
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
346
(abo_src->tbo.resource->mem_type == TTM_PL_VRAM))
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
429
amdgpu_vram_mgr_set_cleared(bo->resource);
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
514
struct ttm_resource *old_mem = bo->resource;
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
558
ttm_resource_free(bo, &bo->resource);
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
567
ttm_resource_free(bo, &bo->resource);
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
687
amdgpu_res_first(bo->resource, (u64)page_offset << PAGE_SHIFT, 0,
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
690
if (bo->resource->mem_type == AMDGPU_PL_DOORBELL)
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
692
else if (bo->resource->mem_type == AMDGPU_PL_MMIO_REMAP)
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c
559
amdgpu_res_first(vcpu_bo->tbo.resource, 0,
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c
566
bo->placements[0].mem_type = vcpu_bo->tbo.resource->mem_type;
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
1306
if (abo->tbo.resource &&
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
1307
abo->tbo.resource->mem_type == TTM_PL_VRAM)
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
1310
mem = bo->tbo.resource;
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
1383
if (bo->tbo.resource &&
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
1385
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
2202
amdgpu_vm_update_stats(*base, bo->tbo.resource, -1);
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
2313
amdgpu_vm_update_stats_locked(bo_base, bo->tbo.resource, -1);
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
422
amdgpu_vm_update_stats_locked(base, bo->tbo.resource, +1);
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
437
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
281
struct ttm_resource *res = bo->tbo.resource;
drivers/gpu/drm/amd/amdgpu/gmc_v12_1.c
533
bool is_vram = bo->tbo.resource &&
drivers/gpu/drm/amd/amdgpu/gmc_v12_1.c
534
bo->tbo.resource->mem_type == TTM_PL_VRAM;
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
1052
bool is_vram = bo->tbo.resource &&
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
1053
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
1030
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
642
prange->ttm_res = bo->tbo.resource;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
10132
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
715
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
3337
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
246
if (WARN_ON_ONCE(!gbo->bo.resource ||
drivers/gpu/drm/drm_gem_vram_helper.c
247
gbo->bo.resource->mem_type == TTM_PL_SYSTEM))
drivers/gpu/drm/drm_gem_vram_helper.c
250
return gbo->bo.resource->start;
drivers/gpu/drm/drm_gem_vram_helper.c
771
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
2014
capture->vma_res = i915_vma_resource_get(vma->resource);
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c
3326
i915_vma_resource_get(eb->batches[i]->vma->resource);
drivers/gpu/drm/i915/gem/i915_gem_object.c
516
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
1008
if (i915_ttm_cpu_maps_iomem(bo->resource) &&
drivers/gpu/drm/i915/gem/i915_gem_ttm.c
1072
if (!bo->resource) {
drivers/gpu/drm/i915/gem/i915_gem_ttm.c
1086
} else if (!i915_ttm_resource_mappable(bo->resource)) {
drivers/gpu/drm/i915/gem/i915_gem_ttm.c
1114
if (i915_ttm_cpu_maps_iomem(bo->resource))
drivers/gpu/drm/i915/gem/i915_gem_ttm.c
1138
GEM_WARN_ON(!i915_ttm_cpu_maps_iomem(bo->resource));
drivers/gpu/drm/i915/gem/i915_gem_ttm.c
1209
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
475
if (!bo->ttm || i915_ttm_cpu_maps_iomem(bo->resource))
drivers/gpu/drm/i915/gem/i915_gem_ttm.c
520
if ((bo->resource || bo->ttm) && !i915_ttm_is_ghost_object(bo)) {
drivers/gpu/drm/i915/gem/i915_gem_ttm.c
587
if (bo->resource == res) {
drivers/gpu/drm/i915/gem/i915_gem_ttm.c
722
if (!i915_ttm_resource_mappable(bo->resource))
drivers/gpu/drm/i915/gem/i915_gem_ttm.c
828
i915_ttm_resource_get_st(obj, bo->resource);
drivers/gpu/drm/i915/gem/i915_gem_ttm.c
998
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
1327
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 = &gt->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
209
stringify_page_sizes(vma->resource->page_sizes_gtt,
drivers/gpu/drm/i915/i915_drv.h
196
struct resource mch_res;
drivers/gpu/drm/i915/i915_drv.h
79
struct resource stolen;
drivers/gpu/drm/i915/i915_drv.h
84
struct resource reserved;
drivers/gpu/drm/i915/i915_gpu_error.c
1535
next = capture_vma_snapshot(next, vma->resource, gfp, name);
drivers/gpu/drm/i915/i915_gpu_error.c
1574
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
465
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
88
struct resource *res_pec;
drivers/gpu/drm/imx/dc/dc-de.c
54
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
194
struct resource *res_pec;
drivers/gpu/drm/imx/dc/dc-fg.c
306
struct resource *res;
drivers/gpu/drm/imx/dc/dc-fl.c
99
struct resource *res_pec;
drivers/gpu/drm/imx/dc/dc-fw.c
128
struct resource *res_pec;
drivers/gpu/drm/imx/dc/dc-lb.c
248
struct resource *res_pec;
drivers/gpu/drm/imx/dc/dc-tc.c
76
struct resource *res;
drivers/gpu/drm/imx/dcss/dcss-dev.c
167
struct resource *res;
drivers/gpu/drm/ingenic/ingenic-drm-drv.c
1116
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
347
struct ttm_resource *resource = tbo->resource;
drivers/gpu/drm/loongson/lsdc_drv.c
352
lsdc_mem_type_to_str(resource->mem_type), pin_count);
drivers/gpu/drm/loongson/lsdc_drv.c
357
if (resource->mem_type == TTM_PL_VRAM) {
drivers/gpu/drm/loongson/lsdc_gem.c
260
struct ttm_resource *resource = tbo->resource;
drivers/gpu/drm/loongson/lsdc_gem.c
264
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
121
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
2168
struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
drivers/gpu/drm/msm/adreno/a6xx_gmu.c
2195
struct resource *res;
drivers/gpu/drm/msm/adreno/a6xx_gmu.c
2282
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
1056
struct resource *res;
drivers/gpu/drm/msm/dp/dp_display.c
987
struct resource *res;
drivers/gpu/drm/msm/dsi/dsi_host.c
1981
struct resource *res;
drivers/gpu/drm/msm/dsi/phy/dsi_phy.c
598
struct resource *res;
drivers/gpu/drm/msm/hdmi/hdmi.c
272
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
459
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
189
static struct resource *
drivers/gpu/drm/nouveau/nvkm/engine/device/tegra.c
209
struct resource *res = nvkm_device_tegra_resource(device, bar);
drivers/gpu/drm/nouveau/nvkm/engine/device/tegra.c
216
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
169
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
516
cur_placement = READ_ONCE(robj->tbo.resource->mem_type);
drivers/gpu/drm/radeon/radeon_gem.c
547
cur_placement = READ_ONCE(robj->tbo.resource->mem_type);
drivers/gpu/drm/radeon/radeon_gem.c
638
domain = radeon_mem_type_to_domain(entry->robj->tbo.resource->mem_type);
drivers/gpu/drm/radeon/radeon_gem.c
651
r = radeon_vm_bo_update(rdev, bo_va, bo_va->bo->tbo.resource);
drivers/gpu/drm/radeon/radeon_gem.c
885
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
423
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
380
struct resource *res;
drivers/gpu/drm/rockchip/dw_hdmi_qp-rockchip.c
473
struct resource *res;
drivers/gpu/drm/rockchip/rockchip_drm_vop.c
2189
struct resource *res;
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
2645
struct resource *res;
drivers/gpu/drm/rockchip/rockchip_drm_vop2.h
303
struct resource *res;
drivers/gpu/drm/sti/sti_hda.c
742
struct resource *res;
drivers/gpu/drm/sysfb/corebootdrm.c
320
struct resource *res, *mem = NULL;
drivers/gpu/drm/sysfb/corebootdrm.c
321
struct resource aperture;
drivers/gpu/drm/sysfb/drm_sysfb_helper.h
47
struct resource *drm_sysfb_get_memory_si(struct drm_device *dev,
drivers/gpu/drm/sysfb/drm_sysfb_helper.h
49
struct resource *res);
drivers/gpu/drm/sysfb/drm_sysfb_screen_info.c
39
struct resource *drm_sysfb_get_memory_si(struct drm_device *dev,
drivers/gpu/drm/sysfb/drm_sysfb_screen_info.c
41
struct resource *res)
drivers/gpu/drm/sysfb/efidrm.c
157
struct resource resbuf;
drivers/gpu/drm/sysfb/efidrm.c
158
struct resource *res;
drivers/gpu/drm/sysfb/efidrm.c
162
struct resource *mem = NULL;
drivers/gpu/drm/sysfb/ofdrm.c
401
static struct resource *ofdrm_find_fb_resource(struct ofdrm_device *odev,
drivers/gpu/drm/sysfb/ofdrm.c
402
struct resource *fb_res)
drivers/gpu/drm/sysfb/ofdrm.c
405
struct resource *res, *max_res = NULL;
drivers/gpu/drm/sysfb/ofdrm.c
834
struct resource *res, *mem;
drivers/gpu/drm/sysfb/ofdrm.c
930
struct resource fb_res = DEFINE_RES_MEM(address, fb_size);
drivers/gpu/drm/sysfb/ofdrm.c
940
struct resource fb_res = DEFINE_RES_MEM(0u, fb_size);
drivers/gpu/drm/sysfb/simpledrm.c
183
static struct resource *
drivers/gpu/drm/sysfb/simpledrm.c
186
struct resource r, *res;
drivers/gpu/drm/sysfb/simpledrm.c
607
struct resource *res, *mem = NULL;
drivers/gpu/drm/sysfb/vesadrm.c
406
struct resource resbuf;
drivers/gpu/drm/sysfb/vesadrm.c
407
struct resource *res;
drivers/gpu/drm/sysfb/vesadrm.c
411
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
1012
KUNIT_EXPECT_EQ(test, bo_small->resource->mem_type, mem_type);
drivers/gpu/drm/ttm/tests/ttm_bo_validate_test.c
1015
KUNIT_EXPECT_NULL(test, bo_big->resource);
drivers/gpu/drm/ttm/tests/ttm_bo_validate_test.c
1066
KUNIT_EXPECT_EQ(test, bo_init->resource->mem_type, mem_type);
drivers/gpu/drm/ttm/tests/ttm_bo_validate_test.c
1067
KUNIT_EXPECT_NULL(test, bo_val->resource);
drivers/gpu/drm/ttm/tests/ttm_bo_validate_test.c
1110
KUNIT_EXPECT_EQ(test, bo->resource->mem_type, mem_type);
drivers/gpu/drm/ttm/tests/ttm_bo_validate_test.c
1111
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
795
KUNIT_EXPECT_EQ(test, bo->resource->mem_type, TTM_PL_SYSTEM);
drivers/gpu/drm/ttm/tests/ttm_bo_validate_test.c
844
KUNIT_EXPECT_EQ(test, bos[0].resource->mem_type, mem_type_evict);
drivers/gpu/drm/ttm/tests/ttm_bo_validate_test.c
848
KUNIT_EXPECT_EQ(test, bos[1].resource->mem_type, mem_type);
drivers/gpu/drm/ttm/tests/ttm_bo_validate_test.c
955
KUNIT_EXPECT_EQ(test, bo->resource->mem_type, mem_type);
drivers/gpu/drm/ttm/tests/ttm_bo_validate_test.c
956
KUNIT_EXPECT_EQ(test, bo_pinned->resource->mem_type, mem_type);
drivers/gpu/drm/ttm/tests/ttm_bo_validate_test.c
957
KUNIT_EXPECT_EQ(test, bo_evictable->resource->mem_type, mem_type_evict);
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
1057
ttm_mem_io_free(bdev, bo->resource);
drivers/gpu/drm/ttm/ttm_bo.c
1109
struct ttm_place place = { .mem_type = bo->resource->mem_type };
drivers/gpu/drm/ttm/ttm_bo.c
112
if (bo->resource)
drivers/gpu/drm/ttm/ttm_bo.c
113
ttm_resource_del_bulk_move(bo->resource, bo);
drivers/gpu/drm/ttm/ttm_bo.c
1149
if (bo->resource->mem_type != TTM_PL_SYSTEM) {
drivers/gpu/drm/ttm/ttm_bo.c
115
if (bo->resource)
drivers/gpu/drm/ttm/ttm_bo.c
116
ttm_resource_add_bulk_move(bo->resource, bo);
drivers/gpu/drm/ttm/ttm_bo.c
1183
ttm_resource_del_bulk_move_unevictable(bo->resource, bo);
drivers/gpu/drm/ttm/ttm_bo.c
1184
ttm_resource_move_to_lru_tail(bo->resource);
drivers/gpu/drm/ttm/ttm_bo.c
1276
bo->resource) {
drivers/gpu/drm/ttm/ttm_bo.c
1278
ttm_resource_add_bulk_move(bo->resource, bo);
drivers/gpu/drm/ttm/ttm_bo.c
1279
ttm_resource_move_to_lru_tail(bo->resource);
drivers/gpu/drm/ttm/ttm_bo.c
130
old_use_tt = !bo->resource || ttm_manager_type(bdev, bo->resource->mem_type)->use_tt;
drivers/gpu/drm/ttm/ttm_bo.c
189
ttm_resource_free(bo, &bo->resource);
drivers/gpu/drm/ttm/ttm_bo.c
274
ttm_mem_io_free(bdev, bo->resource);
drivers/gpu/drm/ttm/ttm_bo.c
297
ttm_resource_move_to_lru_tail(bo->resource);
drivers/gpu/drm/ttm/ttm_bo.c
423
struct ttm_resource *res = bo->resource;
drivers/gpu/drm/ttm/ttm_bo.c
470
if (!bo->resource || bo->resource->mem_type != mem_type)
drivers/gpu/drm/ttm/ttm_bo.c
520
if (!dmem_cgroup_state_evict_valuable(evict_walk->limit_pool, bo->resource->css,
drivers/gpu/drm/ttm/ttm_bo.c
629
if (bo->resource)
drivers/gpu/drm/ttm/ttm_bo.c
630
ttm_resource_del_bulk_move(bo->resource, bo);
drivers/gpu/drm/ttm/ttm_bo.c
631
if (!bo->pin_count++ && bo->resource)
drivers/gpu/drm/ttm/ttm_bo.c
632
ttm_resource_move_to_lru_tail(bo->resource);
drivers/gpu/drm/ttm/ttm_bo.c
651
if (!--bo->pin_count && bo->resource) {
drivers/gpu/drm/ttm/ttm_bo.c
652
ttm_resource_add_bulk_move(bo->resource, bo);
drivers/gpu/drm/ttm/ttm_bo.c
653
ttm_resource_move_to_lru_tail(bo->resource);
drivers/gpu/drm/ttm/ttm_bo.c
838
if (bo->resource &&
drivers/gpu/drm/ttm/ttm_bo.c
839
ttm_resource_compatible(bo->resource, placement,
drivers/gpu/drm/ttm/ttm_bo.c
84
if (bo->resource)
drivers/gpu/drm/ttm/ttm_bo.c
85
ttm_resource_move_to_lru_tail(bo->resource);
drivers/gpu/drm/ttm/ttm_bo.c
887
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
1121
ttm_resource_del_bulk_move_unevictable(bo->resource, bo);
drivers/gpu/drm/ttm/ttm_bo_util.c
1122
ttm_resource_move_to_lru_tail(bo->resource);
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
3027
struct resource *res;
drivers/gpu/drm/vmwgfx/vmwgfx_blit.c
465
size_t dst_size = dst->tbo.resource->size;
drivers/gpu/drm/vmwgfx/vmwgfx_blit.c
466
size_t src_size = src->tbo.resource->size;
drivers/gpu/drm/vmwgfx/vmwgfx_blit.c
638
d.dst_num_pages = PFN_UP(dst->resource->size);
drivers/gpu/drm/vmwgfx/vmwgfx_blit.c
639
d.src_num_pages = PFN_UP(src->resource->size);
drivers/gpu/drm/vmwgfx/vmwgfx_blit.c
640
d.dst_prot = ttm_io_prot(dst, dst->resource, PAGE_KERNEL);
drivers/gpu/drm/vmwgfx/vmwgfx_blit.c
641
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
3779
switch (bo->resource->mem_type) {
drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c
3781
reloc->location->offset += bo->resource->start << PAGE_SHIFT;
drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c
3785
reloc->location->gmrId = bo->resource->start;
drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c
3788
*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
257
BUG_ON(bo->resource->mem_type != VMW_PL_MOB);
drivers/gpu/drm/vmwgfx/vmwgfx_shader.c
266
cmd->body.mobid = bo->resource->start;
drivers/gpu/drm/vmwgfx/vmwgfx_shader.c
285
BUG_ON(res->guest_memory_bo->tbo.resource->mem_type != VMW_PL_MOB);
drivers/gpu/drm/vmwgfx/vmwgfx_shader.c
405
cmd->body.mobid = res->guest_memory_bo->tbo.resource->start;
drivers/gpu/drm/vmwgfx/vmwgfx_shader.c
453
BUG_ON(bo->resource->mem_type != VMW_PL_MOB);
drivers/gpu/drm/vmwgfx/vmwgfx_shader.c
516
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
111
fence = xe_migrate_clear(m, remote, remote->ttm.resource,
drivers/gpu/drm/xe/tests/xe_migrate.c
129
fence = xe_migrate_copy(m, remote, bo, remote->ttm.resource,
drivers/gpu/drm/xe/tests/xe_migrate.c
130
bo->ttm.resource, false);
drivers/gpu/drm/xe/tests/xe_migrate.c
146
fence = xe_migrate_copy(m, bo, remote, bo->ttm.resource,
drivers/gpu/drm/xe/tests/xe_migrate.c
147
remote->ttm.resource, false);
drivers/gpu/drm/xe/tests/xe_migrate.c
176
if (bo->ttm.resource->mem_type == XE_PL_SYSTEM)
drivers/gpu/drm/xe/tests/xe_migrate.c
179
if (bo->ttm.resource->mem_type == XE_PL_VRAM0)
drivers/gpu/drm/xe/tests/xe_migrate.c
254
xe_res_first(pt->ttm.resource, 0, xe_bo_size(pt), &src_it);
drivers/gpu/drm/xe/tests/xe_migrate.c
259
&src_it, XE_PAGE_SIZE, pt->ttm.resource);
drivers/gpu/drm/xe/tests/xe_migrate.c
287
fence = xe_migrate_clear(m, tiny, tiny->ttm.resource,
drivers/gpu/drm/xe/tests/xe_migrate.c
309
fence = xe_migrate_clear(m, big, big->ttm.resource,
drivers/gpu/drm/xe/tests/xe_migrate.c
379
struct ttm_resource *src = src_bo->ttm.resource, *dst = dst_bo->ttm.resource;
drivers/gpu/drm/xe/tests/xe_migrate.c
611
fence = xe_migrate_clear(tile->migrate, vram_bo, vram_bo->ttm.resource,
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
1172
if ((!ttm_bo->resource || ttm_bo->resource->mem_type == XE_PL_SYSTEM) &&
drivers/gpu/drm/xe/xe_bo.c
1199
if (bo->resource->mem_type != XE_PL_SYSTEM) {
drivers/gpu/drm/xe/xe_bo.c
1271
struct ttm_place place = {.mem_type = bo->resource->mem_type};
drivers/gpu/drm/xe/xe_bo.c
1288
if (bo->resource->mem_type != XE_PL_SYSTEM)
drivers/gpu/drm/xe/xe_bo.c
1299
needs_rpm = (!IS_DGFX(xe) && bo->resource->mem_type != XE_PL_SYSTEM &&
drivers/gpu/drm/xe/xe_bo.c
1415
migrate = mem_type_to_migrate(xe, bo->ttm.resource->mem_type);
drivers/gpu/drm/xe/xe_bo.c
1422
fence = xe_migrate_copy(migrate, bo, backup, bo->ttm.resource,
drivers/gpu/drm/xe/xe_bo.c
1423
backup->ttm.resource, false);
drivers/gpu/drm/xe/xe_bo.c
1484
if (WARN_ON(!bo->ttm.resource)) {
drivers/gpu/drm/xe/xe_bo.c
1565
migrate = mem_type_to_migrate(xe, bo->ttm.resource->mem_type);
drivers/gpu/drm/xe/xe_bo.c
1572
backup->ttm.resource, bo->ttm.resource,
drivers/gpu/drm/xe/xe_bo.c
1647
if (ttm_bo->resource->mem_type == XE_PL_STOLEN)
drivers/gpu/drm/xe/xe_bo.c
1650
vram = xe_map_resource_to_region(ttm_bo->resource);
drivers/gpu/drm/xe/xe_bo.c
1651
xe_res_first(ttm_bo->resource, (u64)page_offset << PAGE_SHIFT, 0, &cursor);
drivers/gpu/drm/xe/xe_bo.c
1778
if (!mem_type_is_vram(ttm_bo->resource->mem_type))
drivers/gpu/drm/xe/xe_bo.c
1783
mem_type_to_migrate(xe, ttm_bo->resource->mem_type);
drivers/gpu/drm/xe/xe_bo.c
1790
vram = xe_map_resource_to_region(ttm_bo->resource);
drivers/gpu/drm/xe/xe_bo.c
1791
xe_res_first(ttm_bo->resource, offset & PAGE_MASK,
drivers/gpu/drm/xe/xe_bo.c
1940
if (ttm_manager_type(tbo->bdev, tbo->resource->mem_type)->use_tt) {
drivers/gpu/drm/xe/xe_bo.c
1968
mem_type_is_vram(bo->ttm.resource->mem_type)) {
drivers/gpu/drm/xe/xe_bo.c
3199
xe_res_first(bo->ttm.resource, page << PAGE_SHIFT,
drivers/gpu/drm/xe/xe_bo.c
3201
return cur.start + offset + vram_region_gpu_offset(bo->ttm.resource);
drivers/gpu/drm/xe/xe_bo.c
348
switch (tbo->resource->mem_type) {
drivers/gpu/drm/xe/xe_bo.c
3559
if (!bo->ttm.resource || !mem_type_is_vram(bo->ttm.resource->mem_type))
drivers/gpu/drm/xe/xe_bo.c
3575
bo->ttm.resource);
drivers/gpu/drm/xe/xe_bo.c
3693
if (bo->ttm.resource->mem_type == mem_type)
drivers/gpu/drm/xe/xe_bo.c
617
return xe_ttm_resource_visible(xe_bo_device(bo), bo->ttm.resource);
drivers/gpu/drm/xe/xe_bo.c
798
struct ttm_resource *old_mem = ttm_bo->resource;
drivers/gpu/drm/xe/xe_bo.c
957
struct ttm_resource *old_mem = ttm_bo->resource;
drivers/gpu/drm/xe/xe_bo.h
600
return bo->ttm.resource->mem_type == mem_type;
drivers/gpu/drm/xe/xe_dma_buf.c
119
switch (bo->ttm.resource->mem_type) {
drivers/gpu/drm/xe/xe_dma_buf.c
135
bo->ttm.resource, 0,
drivers/gpu/drm/xe/xe_drm_client.c
180
if (!bo->ttm.resource)
drivers/gpu/drm/xe/xe_drm_client.c
183
mem_type = bo->ttm.resource->mem_type;
drivers/gpu/drm/xe/xe_ggtt.c
708
pte |= vram_region_gpu_offset(bo->ttm.resource);
drivers/gpu/drm/xe/xe_ggtt.c
710
for (xe_res_first(bo->ttm.resource, 0, xe_bo_size(bo), &cur);
drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c
2912
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
119
struct resource res;
drivers/gpu/drm/xe/xe_lmtt.c
495
vram_offset = vram_region_gpu_offset(bo->ttm.resource);
drivers/gpu/drm/xe/xe_lmtt.c
496
xe_res_first(bo->ttm.resource, 0, xe_bo_size(bo), &cur);
drivers/gpu/drm/xe/xe_migrate.c
1395
struct ttm_resource *vram = vram_bo->ttm.resource;
drivers/gpu/drm/xe/xe_migrate.c
1396
struct ttm_resource *sysmem = sysmem_bo->ttm.resource;
drivers/gpu/drm/xe/xe_migrate.c
2531
xe_res_first(bo->ttm.resource, offset, xe_bo_size(bo) - offset, &cursor);
drivers/gpu/drm/xe/xe_migrate.c
2535
u64 vram_addr = vram_region_gpu_offset(bo->ttm.resource) +
drivers/gpu/drm/xe/xe_nvm.c
147
nvm->bar.parent = &pdev->resource[0];
drivers/gpu/drm/xe/xe_nvm.c
148
nvm->bar.start = GEN12_GUNIT_NVM_BASE + pdev->resource[0].start;
drivers/gpu/drm/xe/xe_nvm.c
154
nvm->bar2.parent = &pdev->resource[0];
drivers/gpu/drm/xe/xe_nvm.c
155
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
791
xe_walk.dma_offset = (bo && !is_purged) ? vram_region_gpu_offset(bo->ttm.resource) : 0;
drivers/gpu/drm/xe/xe_pt.c
800
xe_res_first(bo->ttm.resource, xe_vma_bo_offset(vma),
drivers/gpu/drm/xe/xe_svm.c
1766
struct resource *res;
drivers/gpu/drm/xe/xe_svm.c
787
struct ttm_resource *res = bo->ttm.resource;
drivers/gpu/drm/xe/xe_ttm_stolen_mgr.c
178
extern struct resource intel_graphics_stolen_res;
drivers/gpu/drm/xe/xe_ttm_stolen_mgr.c
262
return mgr->io_base + (bo->ttm.resource->start << PAGE_SHIFT) + offset;
drivers/gpu/drm/xe/xe_vm.c
4515
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
1077
struct resource *mem;
drivers/hsi/controllers/omap_ssi_port.c
1078
struct resource *ioarea;
drivers/hv/vmbus_drv.c
103
static struct resource *fb_mmio;
drivers/hv/vmbus_drv.c
104
static struct resource *hyperv_mmio;
drivers/hv/vmbus_drv.c
2258
struct resource *new_res;
drivers/hv/vmbus_drv.c
2259
struct resource **old_res = &hyperv_mmio;
drivers/hv/vmbus_drv.c
2260
struct resource **prev_res = NULL;
drivers/hv/vmbus_drv.c
2261
struct resource r;
drivers/hv/vmbus_drv.c
2362
struct resource *cur_res;
drivers/hv/vmbus_drv.c
2363
struct resource *next_res;
drivers/hv/vmbus_drv.c
2416
if (pdev->resource[0].flags & IORESOURCE_MEM) {
drivers/hv/vmbus_drv.c
2468
int vmbus_allocate_mmio(struct resource **new, struct hv_device *device_obj,
drivers/hv/vmbus_drv.c
2473
struct resource *iter, *shadow;
drivers/hv/vmbus_drv.c
2549
struct resource *iter;
drivers/hv/vmbus_drv.c
2666
struct resource **cur_res = &hyperv_mmio;
drivers/hv/vmbus_drv.c
2684
struct resource *res;
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
102
static int update_avg_interval(struct acpi_power_meter_resource *resource)
drivers/hwmon/acpi_power_meter.c
107
status = acpi_evaluate_integer(resource->acpi_dev->handle, "_GAI",
drivers/hwmon/acpi_power_meter.c
110
acpi_evaluation_failure_warn(resource->acpi_dev->handle, "_GAI",
drivers/hwmon/acpi_power_meter.c
115
resource->avg_interval = data;
drivers/hwmon/acpi_power_meter.c
120
static int update_cap(struct acpi_power_meter_resource *resource)
drivers/hwmon/acpi_power_meter.c
125
status = acpi_evaluate_integer(resource->acpi_dev->handle, "_GHL",
drivers/hwmon/acpi_power_meter.c
128
acpi_evaluation_failure_warn(resource->acpi_dev->handle, "_GHL",
drivers/hwmon/acpi_power_meter.c
133
resource->cap = data;
drivers/hwmon/acpi_power_meter.c
138
static int set_acpi_trip(struct acpi_power_meter_resource *resource)
drivers/hwmon/acpi_power_meter.c
149
if (resource->trip[0] < 0 || resource->trip[1] < 0)
drivers/hwmon/acpi_power_meter.c
153
arg_objs[0].integer.value = resource->trip[1];
drivers/hwmon/acpi_power_meter.c
154
arg_objs[1].integer.value = resource->trip[0];
drivers/hwmon/acpi_power_meter.c
156
status = acpi_evaluate_integer(resource->acpi_dev->handle, "_PTP",
drivers/hwmon/acpi_power_meter.c
159
acpi_evaluation_failure_warn(resource->acpi_dev->handle, "_PTP",
drivers/hwmon/acpi_power_meter.c
172
static int update_meter(struct acpi_power_meter_resource *resource)
drivers/hwmon/acpi_power_meter.c
178
if (time_before(local_jiffies, resource->sensors_last_updated +
drivers/hwmon/acpi_power_meter.c
179
msecs_to_jiffies(resource->caps.sampling_time)) &&
drivers/hwmon/acpi_power_meter.c
180
resource->sensors_valid)
drivers/hwmon/acpi_power_meter.c
183
status = acpi_evaluate_integer(resource->acpi_dev->handle, "_PMM",
drivers/hwmon/acpi_power_meter.c
186
acpi_evaluation_failure_warn(resource->acpi_dev->handle, "_PMM",
drivers/hwmon/acpi_power_meter.c
191
resource->power = data;
drivers/hwmon/acpi_power_meter.c
192
resource->sensors_valid = 1;
drivers/hwmon/acpi_power_meter.c
193
resource->sensors_last_updated = jiffies;
drivers/hwmon/acpi_power_meter.c
198
static void remove_domain_devices(struct acpi_power_meter_resource *resource)
drivers/hwmon/acpi_power_meter.c
202
if (!resource->num_domain_devices)
drivers/hwmon/acpi_power_meter.c
205
for (i = 0; i < resource->num_domain_devices; i++) {
drivers/hwmon/acpi_power_meter.c
206
struct acpi_device *obj = resource->domain_devices[i];
drivers/hwmon/acpi_power_meter.c
211
sysfs_remove_link(resource->holders_dir,
drivers/hwmon/acpi_power_meter.c
216
kfree(resource->domain_devices);
drivers/hwmon/acpi_power_meter.c
217
kobject_put(resource->holders_dir);
drivers/hwmon/acpi_power_meter.c
218
resource->num_domain_devices = 0;
drivers/hwmon/acpi_power_meter.c
221
static int read_domain_devices(struct acpi_power_meter_resource *resource)
drivers/hwmon/acpi_power_meter.c
229
status = acpi_evaluate_object(resource->acpi_dev->handle, "_PMD", NULL,
drivers/hwmon/acpi_power_meter.c
232
acpi_evaluation_failure_warn(resource->acpi_dev->handle, "_PMD",
drivers/hwmon/acpi_power_meter.c
240
dev_err(&resource->acpi_dev->dev, ACPI_POWER_METER_NAME
drivers/hwmon/acpi_power_meter.c
249
resource->domain_devices = kzalloc_objs(struct acpi_device *,
drivers/hwmon/acpi_power_meter.c
251
if (!resource->domain_devices) {
drivers/hwmon/acpi_power_meter.c
256
resource->holders_dir = kobject_create_and_add("measures",
drivers/hwmon/acpi_power_meter.c
257
&resource->acpi_dev->dev.kobj);
drivers/hwmon/acpi_power_meter.c
258
if (!resource->holders_dir) {
drivers/hwmon/acpi_power_meter.c
263
resource->num_domain_devices = pss->package.count;
drivers/hwmon/acpi_power_meter.c
275
resource->domain_devices[i] = obj;
drivers/hwmon/acpi_power_meter.c
279
res = sysfs_create_link(resource->holders_dir, &obj->dev.kobj,
drivers/hwmon/acpi_power_meter.c
283
resource->domain_devices[i] = NULL;
drivers/hwmon/acpi_power_meter.c
291
kfree(resource->domain_devices);
drivers/hwmon/acpi_power_meter.c
297
static int set_trip(struct acpi_power_meter_resource *resource, u16 trip_idx,
drivers/hwmon/acpi_power_meter.c
304
trip_bk = resource->trip[trip_idx];
drivers/hwmon/acpi_power_meter.c
306
resource->trip[trip_idx] = trip;
drivers/hwmon/acpi_power_meter.c
307
ret = set_acpi_trip(resource);
drivers/hwmon/acpi_power_meter.c
309
dev_err(&resource->acpi_dev->dev, "set %s failed.\n",
drivers/hwmon/acpi_power_meter.c
312
resource->trip[trip_idx] = trip_bk;
drivers/hwmon/acpi_power_meter.c
318
static int set_cap(struct acpi_power_meter_resource *resource,
drivers/hwmon/acpi_power_meter.c
327
if (cap > resource->caps.max_cap || cap < resource->caps.min_cap)
drivers/hwmon/acpi_power_meter.c
331
status = acpi_evaluate_integer(resource->acpi_dev->handle, "_SHL",
drivers/hwmon/acpi_power_meter.c
334
acpi_evaluation_failure_warn(resource->acpi_dev->handle, "_SHL",
drivers/hwmon/acpi_power_meter.c
338
resource->cap = cap;
drivers/hwmon/acpi_power_meter.c
347
static int set_avg_interval(struct acpi_power_meter_resource *resource,
drivers/hwmon/acpi_power_meter.c
355
if (val > resource->caps.max_avg_interval ||
drivers/hwmon/acpi_power_meter.c
356
val < resource->caps.min_avg_interval)
drivers/hwmon/acpi_power_meter.c
360
status = acpi_evaluate_integer(resource->acpi_dev->handle, "_PAI",
drivers/hwmon/acpi_power_meter.c
363
acpi_evaluation_failure_warn(resource->acpi_dev->handle, "_PAI",
drivers/hwmon/acpi_power_meter.c
367
resource->avg_interval = val;
drivers/hwmon/acpi_power_meter.c
376
static int get_power_alarm_state(struct acpi_power_meter_resource *resource,
drivers/hwmon/acpi_power_meter.c
381
ret = update_meter(resource);
drivers/hwmon/acpi_power_meter.c
386
if (!(resource->caps.flags & POWER_METER_CAN_NOTIFY)) {
drivers/hwmon/acpi_power_meter.c
387
ret = update_cap(resource);
drivers/hwmon/acpi_power_meter.c
390
resource->power_alarm = resource->power > resource->cap;
drivers/hwmon/acpi_power_meter.c
391
*val = resource->power_alarm;
drivers/hwmon/acpi_power_meter.c
393
*val = resource->power_alarm || resource->power > resource->cap;
drivers/hwmon/acpi_power_meter.c
394
resource->power_alarm = resource->power > resource->cap;
drivers/hwmon/acpi_power_meter.c
725
static void free_capabilities(struct acpi_power_meter_resource *resource)
drivers/hwmon/acpi_power_meter.c
730
str = &resource->model_number;
drivers/hwmon/acpi_power_meter.c
737
static int read_capabilities(struct acpi_power_meter_resource *resource)
drivers/hwmon/acpi_power_meter.c
748
status = acpi_evaluate_object(resource->acpi_dev->handle, "_PMC", NULL,
drivers/hwmon/acpi_power_meter.c
751
acpi_evaluation_failure_warn(resource->acpi_dev->handle, "_PMC",
drivers/hwmon/acpi_power_meter.c
760
dev_err(&resource->acpi_dev->dev, ACPI_POWER_METER_NAME
drivers/hwmon/acpi_power_meter.c
768
state.pointer = &resource->caps;
drivers/hwmon/acpi_power_meter.c
772
dev_err(&resource->acpi_dev->dev, ACPI_POWER_METER_NAME
drivers/hwmon/acpi_power_meter.c
779
if (resource->caps.units) {
drivers/hwmon/acpi_power_meter.c
780
dev_err(&resource->acpi_dev->dev, ACPI_POWER_METER_NAME
drivers/hwmon/acpi_power_meter.c
782
resource->caps.units);
drivers/hwmon/acpi_power_meter.c
788
str = &resource->model_number;
drivers/hwmon/acpi_power_meter.c
808
dev_info(&resource->acpi_dev->dev, "Found ACPI power meter.\n");
drivers/hwmon/acpi_power_meter.c
811
free_capabilities(resource);
drivers/hwmon/acpi_power_meter.c
821
struct acpi_power_meter_resource *resource = dev_get_drvdata(dev);
drivers/hwmon/acpi_power_meter.c
828
if (!IS_ERR(resource->hwmon_dev))
drivers/hwmon/acpi_power_meter.c
829
hwmon_device_unregister(resource->hwmon_dev);
drivers/hwmon/acpi_power_meter.c
831
mutex_lock(&resource->lock);
drivers/hwmon/acpi_power_meter.c
833
free_capabilities(resource);
drivers/hwmon/acpi_power_meter.c
834
remove_domain_devices(resource);
drivers/hwmon/acpi_power_meter.c
835
res = read_capabilities(resource);
drivers/hwmon/acpi_power_meter.c
838
res = read_domain_devices(resource);
drivers/hwmon/acpi_power_meter.c
842
mutex_unlock(&resource->lock);
drivers/hwmon/acpi_power_meter.c
844
resource->hwmon_dev =
drivers/hwmon/acpi_power_meter.c
847
resource,
drivers/hwmon/acpi_power_meter.c
850
if (IS_ERR(resource->hwmon_dev))
drivers/hwmon/acpi_power_meter.c
858
mutex_lock(&resource->lock);
drivers/hwmon/acpi_power_meter.c
859
res = update_cap(resource);
drivers/hwmon/acpi_power_meter.c
862
mutex_unlock(&resource->lock);
drivers/hwmon/acpi_power_meter.c
869
mutex_lock(&resource->lock);
drivers/hwmon/acpi_power_meter.c
870
resource->power_alarm = true;
drivers/hwmon/acpi_power_meter.c
871
mutex_unlock(&resource->lock);
drivers/hwmon/acpi_power_meter.c
881
dev_name(&resource->acpi_dev->dev),
drivers/hwmon/acpi_power_meter.c
887
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
905
platform_set_drvdata(pdev, resource);
drivers/hwmon/acpi_power_meter.c
923
res = read_capabilities(resource);
drivers/hwmon/acpi_power_meter.c
927
resource->trip[0] = -1;
drivers/hwmon/acpi_power_meter.c
928
resource->trip[1] = -1;
drivers/hwmon/acpi_power_meter.c
931
res = read_domain_devices(resource);
drivers/hwmon/acpi_power_meter.c
935
resource->hwmon_dev =
drivers/hwmon/acpi_power_meter.c
937
ACPI_POWER_METER_NAME, resource,
drivers/hwmon/acpi_power_meter.c
940
if (IS_ERR(resource->hwmon_dev)) {
drivers/hwmon/acpi_power_meter.c
941
res = PTR_ERR(resource->hwmon_dev);
drivers/hwmon/acpi_power_meter.c
954
hwmon_device_unregister(resource->hwmon_dev);
drivers/hwmon/acpi_power_meter.c
956
remove_domain_devices(resource);
drivers/hwmon/acpi_power_meter.c
958
free_capabilities(resource);
drivers/hwmon/acpi_power_meter.c
960
kfree(resource);
drivers/hwmon/acpi_power_meter.c
967
struct acpi_power_meter_resource *resource = platform_get_drvdata(pdev);
drivers/hwmon/acpi_power_meter.c
969
acpi_dev_remove_notify_handler(resource->acpi_dev, ACPI_DEVICE_NOTIFY,
drivers/hwmon/acpi_power_meter.c
972
if (!IS_ERR(resource->hwmon_dev))
drivers/hwmon/acpi_power_meter.c
973
hwmon_device_unregister(resource->hwmon_dev);
drivers/hwmon/acpi_power_meter.c
975
remove_domain_devices(resource);
drivers/hwmon/acpi_power_meter.c
976
free_capabilities(resource);
drivers/hwmon/acpi_power_meter.c
978
kfree(resource);
drivers/hwmon/acpi_power_meter.c
983
struct acpi_power_meter_resource *resource = dev_get_drvdata(dev);
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
629
const struct resource *region;
drivers/hwmon/gpd-fan.c
630
const struct resource *res;
drivers/hwmon/gpd-fan.c
709
struct resource gpd_fan_resources[] = {
drivers/hwmon/i5k_amb.c
494
struct resource *reso;
drivers/hwmon/it87.c
3461
struct resource *res;
drivers/hwmon/it87.c
3695
struct resource res = {
drivers/hwmon/lm78.c
789
struct resource *res;
drivers/hwmon/lm78.c
919
struct resource res = {
drivers/hwmon/nct6683.c
1204
struct resource *res;
drivers/hwmon/nct6683.c
1443
struct resource res;
drivers/hwmon/nct6775-platform.c
1531
struct resource res;
drivers/hwmon/nct6775-platform.c
946
struct resource *res;
drivers/hwmon/npcm750-pwm-fan.c
933
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
1925
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
512
static int __catu_probe(struct device *dev, struct resource *res)
drivers/hwtracing/coresight/coresight-catu.c
627
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
664
struct resource *res = &adev->res;
drivers/hwtracing/coresight/coresight-etb10.c
720
struct resource *res = &adev->res;
drivers/hwtracing/coresight/coresight-etm3x-core.c
797
struct resource *res = &adev->res;
drivers/hwtracing/coresight/coresight-etm4x-core.c
2279
struct resource *res = &adev->res;
drivers/hwtracing/coresight/coresight-etm4x-core.c
2302
struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
drivers/hwtracing/coresight/coresight-funnel.c
212
static int funnel_probe(struct device *dev, struct resource *res)
drivers/hwtracing/coresight/coresight-funnel.c
314
struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
drivers/hwtracing/coresight/coresight-replicator.c
218
static int replicator_probe(struct device *dev, struct resource *res)
drivers/hwtracing/coresight/coresight-replicator.c
293
struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
drivers/hwtracing/coresight/coresight-stm.c
1006
struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
drivers/hwtracing/coresight/coresight-stm.c
663
static int of_stm_get_stimulus_area(struct device *dev, struct resource *res)
drivers/hwtracing/coresight/coresight-stm.c
687
struct resource *res)
drivers/hwtracing/coresight/coresight-stm.c
694
static int acpi_stm_get_stimulus_area(struct device *dev, struct resource *res)
drivers/hwtracing/coresight/coresight-stm.c
731
struct resource *res)
drivers/hwtracing/coresight/coresight-stm.c
737
static int stm_get_stimulus_area(struct device *dev, struct resource *res)
drivers/hwtracing/coresight/coresight-stm.c
826
static int __stm_probe(struct device *dev, struct resource *res)
drivers/hwtracing/coresight/coresight-stm.c
832
struct resource ch_res;
drivers/hwtracing/coresight/coresight-tmc-core.c
631
struct resource *res)
drivers/hwtracing/coresight/coresight-tmc-core.c
648
struct resource res;
drivers/hwtracing/coresight/coresight-tmc-core.c
767
static int __tmc_probe(struct device *dev, struct resource *res)
drivers/hwtracing/coresight/coresight-tmc-core.c
969
struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
drivers/hwtracing/coresight/coresight-tnoc.c
185
static int _tnoc_probe(struct device *dev, struct resource *res)
drivers/hwtracing/coresight/coresight-tnoc.c
283
struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
drivers/hwtracing/coresight/coresight-tpdm.c
1403
static int tpdm_probe(struct device *dev, struct resource *res)
drivers/hwtracing/coresight/coresight-tpdm.c
1521
struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
drivers/hwtracing/coresight/coresight-tpiu.c
127
static int __tpiu_probe(struct device *dev, struct resource *res)
drivers/hwtracing/coresight/coresight-tpiu.c
266
struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
drivers/hwtracing/coresight/ultrasoc-smb.c
422
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
879
struct resource *devres, unsigned int ndevres)
drivers/hwtracing/intel_th/core.c
907
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
2129
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
303
struct resource *eoi_addr;
drivers/i2c/busses/i2c-amd-asf-plat.c
54
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
1474
struct resource *res;
drivers/i2c/busses/i2c-imx.c
1747
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
1253
struct resource *params;
drivers/i2c/busses/i2c-mlxbf.c
1291
struct resource *params;
drivers/i2c/busses/i2c-mlxbf.c
1317
struct resource *params;
drivers/i2c/busses/i2c-mlxbf.c
1356
struct resource *params;
drivers/i2c/busses/i2c-mlxbf.c
1655
struct resource *params;
drivers/i2c/busses/i2c-mlxbf.c
1709
struct resource *params;
drivers/i2c/busses/i2c-mlxbf.c
2374
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
584
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
1432
struct resource *res;
drivers/i2c/busses/i2c-qcom-cci.c
504
struct resource *r;
drivers/i2c/busses/i2c-rcar.c
161
struct resource *res;
drivers/i2c/busses/i2c-rzv2m.c
414
struct resource *res;
drivers/i2c/busses/i2c-s3c2410.c
1012
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
264
retval = acpi_check_resource_conflict(&dev->resource[SIS96x_BAR]);
drivers/i2c/busses/i2c-st.c
795
struct resource *res;
drivers/i2c/busses/i2c-stm32f4.c
756
struct resource *res;
drivers/i2c/busses/i2c-stm32f7.c
2158
struct resource *res;
drivers/i2c/busses/i2c-tegra.c
2271
struct resource *res;
drivers/i2c/busses/i2c-xiic.c
1428
struct resource *res;
drivers/i2c/busses/scx200_acb.c
500
struct resource *res;
drivers/i2c/i2c-core-acpi.c
182
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
24
int i2c_dev_irq_from_resources(const struct resource *resources,
drivers/i2c/muxes/i2c-mux-reg.c
152
struct resource *res;
drivers/i3c/master/mipi-i3c-hci/mipi-i3c-hci-pci.c
359
struct resource res;
drivers/iio/adc/ad7606_par.c
180
struct resource *res;
drivers/iio/adc/at91-sama5d2_adc.c
2301
struct resource *res;
drivers/iio/adc/lpc32xx_adc.c
147
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
910
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/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
218
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/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
205
struct resource *res; /* IO mem resources */
drivers/interconnect/qcom/icc-rpm.c
520
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
5312
struct resource res = DEFINE_RES_MEM(start, size);
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c
5400
struct resource *res;
drivers/iommu/arm/arm-smmu-v3/tegra241-cmdqv.c
894
__tegra241_cmdqv_probe(struct arm_smmu_device *smmu, struct resource *res,
drivers/iommu/arm/arm-smmu-v3/tegra241-cmdqv.c
983
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
172
struct resource *phys,
drivers/iommu/of_iommu.c
212
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
1207
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
409
struct resource res;
drivers/irqchip/irq-gic-its-msi-parent.c
25
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
5097
static void __init __iomem *its_map_one(struct resource *res, int *err)
drivers/irqchip/irq-gic-v3-its.c
5479
static int __init its_reset_one(struct resource *res)
drivers/irqchip/irq-gic-v3-its.c
5500
static struct its_node __init *its_node_init(struct resource *res,
drivers/irqchip/irq-gic-v3-its.c
5547
struct resource res;
drivers/irqchip/irq-gic-v3-its.c
5706
struct resource res;
drivers/irqchip/irq-gic-v3-its.c
5756
struct resource res;
drivers/irqchip/irq-gic-v3-its.c
5759
res = (struct resource) {
drivers/irqchip/irq-gic-v3-mbi.c
265
struct resource res;
drivers/irqchip/irq-gic-v3.c
2160
struct resource r;
drivers/irqchip/irq-gic-v3.c
2187
const char *name, struct resource *res)
drivers/irqchip/irq-gic-v3.c
2207
struct resource res;
drivers/irqchip/irq-gic-v3.c
2525
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
1232
struct resource res = {};
drivers/irqchip/irq-gic-v5-its.c
1287
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-lpc.c
268
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
375
struct resource res;
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
141
struct resource *io_rc;
drivers/leds/leds-ss4200.c
123
static struct resource *gp_gpio_resource;
drivers/leds/leds-sun50i-a100.c
394
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
561
struct resource *res;
drivers/mailbox/mailbox-test.c
359
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
163
struct resource spi_resources[] = {
drivers/media/pci/mgb4/mgb4_core.c
196
spi_resources[0].parent = &pdev->resource[MGB4_MGB4_BAR_ID];
drivers/media/pci/mgb4/mgb4_core.c
271
struct resource i2c_resources[] = {
drivers/media/pci/mgb4/mgb4_core.c
297
i2c_resources[0].parent = &pdev->resource[MGB4_MGB4_BAR_ID];
drivers/media/pci/mgb4/mgb4_core.c
437
static int map_regs(struct pci_dev *pdev, struct resource *res,
drivers/media/pci/mgb4/mgb4_core.c
458
struct resource res[2] = { 0 };
drivers/media/pci/mgb4/mgb4_core.c
467
res[0].parent = &pdev->resource[MGB4_XDMA_BAR_ID];
drivers/media/pci/mgb4/mgb4_core.c
512
struct resource video = {
drivers/media/pci/mgb4/mgb4_core.c
518
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
645
struct resource *res)
drivers/media/platform/arm/mali-c55/mali-c55-core.c
773
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
23
struct resource res;
drivers/media/platform/qcom/venus/firmware.c
85
struct resource res;
drivers/media/platform/renesas/rcar-isp/csisp.c
465
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
792
struct resource res;
drivers/media/platform/st/sti/hva/hva-hw.c
301
struct resource *esram;
drivers/media/platform/st/stm32/stm32-dcmi.c
129
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
1019
struct resource *res;
drivers/memory/omap-gpmc.c
204
struct resource mem;
drivers/memory/omap-gpmc.c
2145
struct resource res;
drivers/memory/omap-gpmc.c
250
struct resource *data;
drivers/memory/omap-gpmc.c
2519
struct resource *res;
drivers/memory/omap-gpmc.c
255
static struct resource gpmc_mem_root;
drivers/memory/omap-gpmc.c
943
struct resource *res = &gpmc->mem;
drivers/memory/omap-gpmc.c
959
struct resource *res = &gpmc->mem;
drivers/memory/omap-gpmc.c
974
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
31
struct resource *mm_res;
drivers/memory/stm32_omm.c
47
struct resource res, res1;
drivers/memory/tegra/tegra186.c
28
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
33
static struct resource cs5535_mfd_resources[NR_BARS];
drivers/mfd/cs5535-mfd.c
87
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
50
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
219
static const struct resource gpio_resources[] = {
drivers/mfd/intel_soc_pmic_bxtwc.c
223
static const struct resource adc_resources[] = {
drivers/mfd/intel_soc_pmic_bxtwc.c
227
static const struct resource usbc_resources[] = {
drivers/mfd/intel_soc_pmic_bxtwc.c
231
static const struct resource charger_resources[] = {
drivers/mfd/intel_soc_pmic_bxtwc.c
236
static const struct resource thermal_resources[] = {
drivers/mfd/intel_soc_pmic_bxtwc.c
240
static const struct resource bcu_resources[] = {
drivers/mfd/intel_soc_pmic_bxtwc.c
244
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
33
static const struct resource pwrsrc_resources[] = {
drivers/mfd/intel_soc_pmic_crc.c
37
static const struct resource thermal_resources[] = {
drivers/mfd/intel_soc_pmic_crc.c
41
static const struct resource bcu_resources[] = {
drivers/mfd/intel_soc_pmic_crc.c
45
static const struct resource adc_resources[] = {
drivers/mfd/intel_soc_pmic_crc.c
49
static const struct resource charger_resources[] = {
drivers/mfd/intel_soc_pmic_crc.c
53
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
114
static struct resource kempld_ioresource = {
drivers/mfd/kempld-core.c
410
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
105
static struct resource gpio_ich_res[] = {
drivers/mfd/lpc_ich.c
1069
static int lpc_ich_check_conflict_gpio(struct resource *res)
drivers/mfd/lpc_ich.c
1095
struct resource *res;
drivers/mfd/lpc_ich.c
116
static struct resource intel_spi_res[] = {
drivers/mfd/lpc_ich.c
1171
struct resource *res;
drivers/mfd/lpc_ich.c
1247
struct resource base;
drivers/mfd/lpc_ich.c
1260
struct resource *mem = info->resources[i];
drivers/mfd/lpc_ich.c
1318
struct resource *res = &intel_spi_res[0];
drivers/mfd/lpc_ich.c
148
struct resource **resources;
drivers/mfd/lpc_ich.c
171
static struct resource apl_gpio_resources[APL_GPIO_NR_DEVICES][2] = {
drivers/mfd/lpc_ich.c
190
static struct resource *apl_gpio_mem_resources[APL_GPIO_NR_RESOURCES] = {
drivers/mfd/lpc_ich.c
251
static struct resource dnv_gpio_resources[DNV_GPIO_NR_RESOURCES + 1] = {
drivers/mfd/lpc_ich.c
257
static struct resource *dnv_gpio_mem_resources[DNV_GPIO_NR_RESOURCES] = {
drivers/mfd/lpc_ich.c
90
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
38
static const struct resource gpio_resources[] = {
drivers/mfd/max77620.c
42
static const struct resource power_resources[] = {
drivers/mfd/max77620.c
46
static const struct resource rtc_resources[] = {
drivers/mfd/max77620.c
50
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
367
static const struct resource max77759_gpio_resources[] = {
drivers/mfd/max77759.c
371
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
153
struct resource *mem_base,
drivers/mfd/mfd-core.c
156
struct resource *res;
drivers/mfd/mfd-core.c
332
struct resource *mem_base,
drivers/mfd/mfd-core.c
429
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
183
struct regmap *ocelot_spi_init_regmap(struct device *dev, const struct resource *res)
drivers/mfd/ocelot-spi.c
43
static const struct resource vsc7512_dev_cpuorg_resource =
drivers/mfd/ocelot-spi.c
48
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
450
int resource,
drivers/mfd/qcom_rpm.c
460
if (WARN_ON(resource < 0 || resource >= data->n_resources))
drivers/mfd/qcom_rpm.c
463
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
137
static const struct resource bd71828_power_irqs[] = {
drivers/mfd/rohm-bd71828.c
184
static const struct resource bd72720_power_irqs[] = {
drivers/mfd/rohm-bd71828.c
53
static const struct resource bd71815_rtc_irqs[] = {
drivers/mfd/rohm-bd71828.c
59
static const struct resource bd71828_rtc_irqs[] = {
drivers/mfd/rohm-bd71828.c
65
static const struct resource bd72720_rtc_irqs[] = {
drivers/mfd/rohm-bd71828.c
71
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 = &regulator_res[i];
drivers/mfd/rohm-bd96801.c
743
struct resource *res = &regulator_res[ddata->num_intb_irqs + i];
drivers/mfd/rt5120.c
69
static const struct resource rt5120_regulator_resources[] = {
drivers/mfd/rt5120.c
73
static const struct resource rt5120_pwrkey_resources[] = {
drivers/mfd/sec-common.c
100
static const struct resource s2mpu05_rtc_resources[] = {
drivers/mfd/sec-common.c
109
static const struct resource s2mu005_muic_resources[] = {
drivers/mfd/sec-common.c
27
static const struct resource s5m8767_rtc_resources[] = {
drivers/mfd/sec-common.c
41
static const struct resource s2mpg10_rtc_resources[] = {
drivers/mfd/sec-common.c
59
static const struct resource s2mps11_rtc_resources[] = {
drivers/mfd/sec-common.c
69
static const struct resource s2mps14_rtc_resources[] = {
drivers/mfd/sm501.c
1570
sm->io_res = &dev->resource[1];
drivers/mfd/sm501.c
1571
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
722
struct resource *res,
drivers/mfd/sm501.c
738
struct resource *res,
drivers/mfd/sm501.c
756
struct resource *res)
drivers/mfd/sm501.c
772
sm501_create_subio(sm, &pdev->resource[0], 0x40000, 0x20000);
drivers/mfd/sm501.c
773
sm501_create_mem(sm, &pdev->resource[1], mem_avail, 256*1024);
drivers/mfd/sm501.c
774
sm501_create_irq(sm, &pdev->resource[2]);
drivers/mfd/sm501.c
831
sm501_create_subio(sm, &pdev->resource[0], 0x80000, 0x10000);
drivers/mfd/sm501.c
832
sm501_create_subio(sm, &pdev->resource[1], 0x100000, 0x50000);
drivers/mfd/sm501.c
833
sm501_create_mem(sm, &pdev->resource[2], mem_avail, *mem_avail);
drivers/mfd/sm501.c
834
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
147
static const struct resource timberdale_spi_resources[] = {
drivers/mfd/timberdale.c
166
static const struct resource timberdale_eth_resources[] = {
drivers/mfd/timberdale.c
191
static const struct resource timberdale_gpio_resources[] = {
drivers/mfd/timberdale.c
204
static const struct resource timberdale_mlogicore_resources[] = {
drivers/mfd/timberdale.c
222
static const struct resource timberdale_uart_resources[] = {
drivers/mfd/timberdale.c
235
static const struct resource timberdale_uartlite_resources[] = {
drivers/mfd/timberdale.c
263
static const struct resource
drivers/mfd/timberdale.c
292
static const struct resource timberdale_video_resources[] = {
drivers/mfd/timberdale.c
363
static const struct resource timberdale_dma_resources[] = {
drivers/mfd/timberdale.c
603
static const struct resource timberdale_sdhc_resources[] = {
drivers/mfd/timberdale.c
752
&dev->resource[0], msix_entries[0].vector, NULL);
drivers/mfd/timberdale.c
758
&dev->resource[0], msix_entries[0].vector, NULL);
drivers/mfd/timberdale.c
764
&dev->resource[0], msix_entries[0].vector, NULL);
drivers/mfd/timberdale.c
770
&dev->resource[0], msix_entries[0].vector, NULL);
drivers/mfd/timberdale.c
785
&dev->resource[1], msix_entries[0].vector, NULL);
drivers/mfd/timberdale.c
796
&dev->resource[2], msix_entries[0].vector, NULL);
drivers/mfd/timberdale.c
86
static const struct resource timberdale_xiic_resources[] = {
drivers/mfd/timberdale.c
99
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
27
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
176
{ .resource = (res), .devgroup = (devgrp), \
drivers/mfd/twl4030-power.c
181
{ .resource = (res), .devgroup = (devgrp), \
drivers/mfd/twl4030-power.c
378
if (rconfig->resource > TOTAL_RESOURCES) {
drivers/mfd/twl4030-power.c
380
rconfig->resource);
drivers/mfd/twl4030-power.c
384
rconfig_addr = res_config_addrs[rconfig->resource];
drivers/mfd/twl4030-power.c
391
rconfig->resource);
drivers/mfd/twl4030-power.c
411
rconfig->resource);
drivers/mfd/twl4030-power.c
437
rconfig->resource);
drivers/mfd/twl4030-power.c
581
while (common->resource) {
drivers/mfd/twl4030-power.c
584
while (b->resource) {
drivers/mfd/twl4030-power.c
585
if (b->resource == common->resource) {
drivers/mfd/twl4030-power.c
606
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
617
static const struct resource wm831x_dcdc1_resources[] = {
drivers/mfd/wm831x-core.c
628
static const struct resource wm831x_dcdc2_resources[] = {
drivers/mfd/wm831x-core.c
638
static const struct resource wm831x_dcdc3_resources[] = {
drivers/mfd/wm831x-core.c
647
static const struct resource wm831x_dcdc4_resources[] = {
drivers/mfd/wm831x-core.c
656
static const struct resource wm8320_dcdc4_buck_resources[] = {
drivers/mfd/wm831x-core.c
665
static const struct resource wm831x_gpio_resources[] = {
drivers/mfd/wm831x-core.c
673
static const struct resource wm831x_isink1_resources[] = {
drivers/mfd/wm831x-core.c
682
static const struct resource wm831x_isink2_resources[] = {
drivers/mfd/wm831x-core.c
691
static const struct resource wm831x_ldo1_resources[] = {
drivers/mfd/wm831x-core.c
700
static const struct resource wm831x_ldo2_resources[] = {
drivers/mfd/wm831x-core.c
709
static const struct resource wm831x_ldo3_resources[] = {
drivers/mfd/wm831x-core.c
718
static const struct resource wm831x_ldo4_resources[] = {
drivers/mfd/wm831x-core.c
727
static const struct resource wm831x_ldo5_resources[] = {
drivers/mfd/wm831x-core.c
736
static const struct resource wm831x_ldo6_resources[] = {
drivers/mfd/wm831x-core.c
745
static const struct resource wm831x_ldo7_resources[] = {
drivers/mfd/wm831x-core.c
754
static const struct resource wm831x_ldo8_resources[] = {
drivers/mfd/wm831x-core.c
763
static const struct resource wm831x_ldo9_resources[] = {
drivers/mfd/wm831x-core.c
772
static const struct resource wm831x_ldo10_resources[] = {
drivers/mfd/wm831x-core.c
781
static const struct resource wm831x_ldo11_resources[] = {
drivers/mfd/wm831x-core.c
789
static const struct resource wm831x_on_resources[] = {
drivers/mfd/wm831x-core.c
794
static const struct resource wm831x_power_resources[] = {
drivers/mfd/wm831x-core.c
808
static const struct resource wm831x_rtc_resources[] = {
drivers/mfd/wm831x-core.c
813
static const struct resource wm831x_status1_resources[] = {
drivers/mfd/wm831x-core.c
821
static const struct resource wm831x_status2_resources[] = {
drivers/mfd/wm831x-core.c
829
static const struct resource wm831x_touch_resources[] = {
drivers/mfd/wm831x-core.c
834
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
2412
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
36
static void mei_gsc_set_ext_op_mem(const struct mei_me_hw *hw, struct resource *mem)
drivers/misc/pvpanic/pvpanic-mmio.c
28
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
2441
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
239
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
566
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
1070
struct resource *res;
drivers/mmc/host/renesas_sdhi_sys_dmac.c
349
struct resource *res = platform_get_resource(host->pdev,
drivers/mmc/host/sdhci-of-aspeed.c
348
struct resource *res)
drivers/mmc/host/sdhci-of-aspeed.c
372
struct resource *res;
drivers/mmc/host/sdhci-of-aspeed.c
42
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
400
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
499
struct resource *res;
drivers/mtd/maps/physmap-core.c
632
static struct resource physmap_flash_resource = {
drivers/mtd/maps/physmap-core.c
645
.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
844
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
999
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
701
struct resource *rc;
drivers/mtd/nand/raw/lpc32xx_slc.c
843
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
2261
struct resource *res;
drivers/mtd/nand/raw/qcom_nandc.c
2339
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
2425
static int sunxi_nfc_dma_init(struct sunxi_nfc *nfc, struct resource *r)
drivers/mtd/nand/raw/sunxi_nand.c
2458
struct resource *r;
drivers/net/arcnet/com20020-pci.c
132
struct resource *r;
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
1938
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
461
static const struct resource vsc9953_resources[] = {
drivers/net/dsa/ocelot/seville_vsc9953.c
973
struct resource *res;
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/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
783
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/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
1068
struct resource *base, *macen, *macdma;
drivers/net/ethernet/amd/au1000_eth.c
1332
struct resource *base, *macen;
drivers/net/ethernet/amd/declance.c
1118
start = to_tc_dev(bdev)->resource.start;
drivers/net/ethernet/amd/declance.c
1119
len = to_tc_dev(bdev)->resource.end - start + 1;
drivers/net/ethernet/amd/declance.c
1352
start = to_tc_dev(bdev)->resource.start;
drivers/net/ethernet/amd/declance.c
1353
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/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
5765
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
1690
struct resource *res;
drivers/net/ethernet/calxeda/xgmac.c
1824
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
1124
struct resource *res;
drivers/net/ethernet/faraday/ftmac100.c
51
struct resource *res;
drivers/net/ethernet/freescale/fec_main.c
3206
struct resource *r;
drivers/net/ethernet/freescale/fec_mpc52xx.c
815
struct resource mem;
drivers/net/ethernet/freescale/fec_mpc52xx_phy.c
71
struct resource res;
drivers/net/ethernet/freescale/fman/fman.c
2390
struct resource *fman_get_mem_region(struct fman *fman)
drivers/net/ethernet/freescale/fman/fman.c
2696
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/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
286
struct resource *r;
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
7558
struct resource *res;
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
7581
struct resource *res;
drivers/net/ethernet/mediatek/mtk_eth_soc.c
5074
static int mtk_setup_legacy_sram(struct mtk_eth *eth, struct resource *res)
drivers/net/ethernet/mediatek/mtk_eth_soc.c
5097
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
120
static struct resource corepll_params[] = {
drivers/net/ethernet/mellanox/mlxbf_gige/mlxbf_gige_mdio.c
290
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(&params, 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, &params, resource, true);
drivers/net/ethernet/qualcomm/emac/emac-sgmii.c
362
struct resource *res;
drivers/net/ethernet/renesas/ravb_main.c
2919
struct resource *res;
drivers/net/ethernet/renesas/rswitch_main.c
2130
struct resource *res;
drivers/net/ethernet/renesas/rtsn.c
1226
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/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
133
struct resource res_splitter;
drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c
134
struct resource res_tse_pcs;
drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c
135
struct resource res_sgmii_adapter;
drivers/net/ethernet/stmicro/stmmac/dwmac-sti.c
185
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
3531
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
1405
struct resource *res;
drivers/net/ethernet/ti/davinci_emac.c
1589
struct resource *res;
drivers/net/ethernet/ti/davinci_emac.c
1798
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/xilinx/ll_temac_mdio.c
72
struct resource res;
drivers/net/ethernet/xilinx/xilinx_axienet_main.c
2801
struct resource *ethres;
drivers/net/ethernet/xilinx/xilinx_axienet_main.c
2945
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
1320
start = tdev->resource.start;
drivers/net/fddi/defza.c
1321
len = tdev->resource.end - start + 1;
drivers/net/fddi/defza.c
1350
fp->name, (long long)tdev->resource.start, dev->irq);
drivers/net/fddi/defza.c
1537
start = tdev->resource.start;
drivers/net/fddi/defza.c
1538
len = tdev->resource.end - start + 1;
drivers/net/fjes/fjes_main.c
1286
struct resource *res;
drivers/net/fjes/fjes_main.c
1425
struct resource resources[2];
drivers/net/fjes/fjes_main.c
89
struct resource *res = data;
drivers/net/ipa/gsi_reg.c
126
struct resource *res;
drivers/net/ipa/ipa_main.c
589
struct resource res;
drivers/net/ipa/ipa_mem.c
624
struct resource *res;
drivers/net/ipa/ipa_mem.c
664
struct resource sram_res;
drivers/net/ipa/ipa_reg.c
141
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
1063
struct resource *res;
drivers/net/wan/fsl_ucc_hdlc.c
1113
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
1581
struct resource r;
drivers/net/wireless/ath/ath11k/ahb.c
822
struct resource *res;
drivers/net/wireless/ath/ath11k/ahb.c
898
struct resource *mem_res;
drivers/net/wireless/ath/ath11k/ahb.c
920
struct resource r;
drivers/net/wireless/ath/ath11k/mhi.c
317
struct resource res;
drivers/net/wireless/ath/ath11k/qmi.c
2042
struct resource res = {};
drivers/net/wireless/ath/ath12k/ahb.c
919
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
6555
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
645
void nvdimm_free_dpa(struct nvdimm_drvdata *ndd, struct resource *res);
drivers/nvdimm/nd.h
646
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
601
static DEVICE_ATTR_ADMIN_RO(resource);
drivers/nvdimm/virtio_pmem.c
51
struct resource res;
drivers/nvmem/apple-efuses.c
35
struct resource *res;
drivers/nvmem/brcm_nvram.c
69
struct resource *res;
drivers/nvmem/lpc18xx_eeprom.c
167
struct resource *res;
drivers/nvmem/mtk-efuse.c
65
struct resource *res;
drivers/nvmem/qfprom.c
380
struct resource *res;
drivers/nvmem/qoriq-efuse.c
43
struct resource *res;
drivers/nvmem/rcar-efuse.c
63
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
58
struct resource *res;
drivers/nvmem/stm32-romem.c
194
struct resource *res;
drivers/nvmem/uniphier-efuse.c
34
struct resource *res;
drivers/nvmem/vf610-ocotp.c
215
struct resource *res;
drivers/of/address.c
1052
struct resource *r)
drivers/of/address.c
1077
memset(r, 0, sizeof(struct resource));
drivers/of/address.c
1102
struct resource *r)
drivers/of/address.c
1109
struct resource *r)
drivers/of/address.c
1128
struct resource res;
drivers/of/address.c
1157
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
838
unsigned int idx, struct resource *res)
drivers/of/of_reserved_mem.c
874
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
1301
struct resource res;
drivers/of/unittest.c
1425
struct resource res;
drivers/of/unittest.c
1459
struct resource res;
drivers/of/unittest.c
1468
struct resource res;
drivers/of/unittest.c
1937
static struct resource test_bus_res = DEFINE_RES_MEM(0xfffffff8, 2);
drivers/of/unittest.c
4378
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
194
struct resource *cfg_res = rc->cfg_res;
drivers/pci/controller/cadence/pcie-cadence-host-hpa.c
253
struct resource *res = entry->res;
drivers/pci/controller/cadence/pcie-cadence-host-hpa.c
324
struct resource *res;
drivers/pci/controller/cadence/pcie-cadence-host.c
260
struct resource *cfg_res = rc->cfg_res;
drivers/pci/controller/cadence/pcie-cadence-host.c
291
struct resource *res = entry->res;
drivers/pci/controller/cadence/pcie-cadence-host.c
387
struct resource *res;
drivers/pci/controller/cadence/pcie-cadence.h
125
struct resource *cfg_res;
drivers/pci/controller/cadence/pcie-cadence.h
93
struct resource *mem_res;
drivers/pci/controller/cadence/pcie-cadence.h
94
struct resource *msg_res;
drivers/pci/controller/dwc/pci-imx6.c
1816
struct resource res;
drivers/pci/controller/dwc/pci-keystone.c
1134
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
228
struct resource *dbi_base;
drivers/pci/controller/dwc/pci-layerscape.c
331
struct resource *dbi_base;
drivers/pci/controller/dwc/pci-meson.c
109
struct resource *res;
drivers/pci/controller/dwc/pcie-al.c
252
struct resource *bus;
drivers/pci/controller/dwc/pcie-al.c
324
struct resource *controller_res;
drivers/pci/controller/dwc/pcie-al.c
325
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
1462
struct resource *res;
drivers/pci/controller/dwc/pcie-designware-host.c
400
struct resource *res;
drivers/pci/controller/dwc/pcie-designware-host.c
463
static int dw_pcie_create_ecam_window(struct dw_pcie_rp *pp, struct resource *res)
drivers/pci/controller/dwc/pcie-designware-host.c
480
static bool dw_pcie_ecam_enabled(struct dw_pcie_rp *pp, struct resource *config_res)
drivers/pci/controller/dwc/pcie-designware-host.c
482
struct resource *bus_range;
drivers/pci/controller/dwc/pcie-designware-host.c
514
struct resource *res;
drivers/pci/controller/dwc/pcie-designware.c
118
struct resource *res;
drivers/pci/controller/dwc/pcie-designware.h
467
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-intel-gw.c
395
struct resource *res;
drivers/pci/controller/dwc/pcie-qcom-ep.c
208
struct resource *mmio_res;
drivers/pci/controller/dwc/pcie-qcom-ep.c
589
struct resource *res;
drivers/pci/controller/dwc/pcie-qcom.c
1991
struct resource *res;
drivers/pci/controller/dwc/pcie-tegra194.c
2141
struct resource *atu_dma_res;
drivers/pci/controller/dwc/pcie-tegra194.c
247
struct resource *appl_res;
drivers/pci/controller/dwc/pcie-tegra194.c
248
struct resource *dbi_res;
drivers/pci/controller/dwc/pcie-tegra194.c
249
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
202
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
360
struct resource *regs;
drivers/pci/controller/pci-mvebu.c
1128
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
1423
struct resource *res;
drivers/pci/controller/pci-tegra.c
332
struct resource cs;
drivers/pci/controller/pci-tegra.c
369
struct resource regs;
drivers/pci/controller/pci-tegra.c
841
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
91
struct resource mem;
drivers/pci/controller/pcie-mediatek-gen3.c
550
struct resource *res = entry->res;
drivers/pci/controller/pcie-mediatek-gen3.c
933
struct resource *regs;
drivers/pci/controller/pcie-mediatek.c
1048
struct resource *regs;
drivers/pci/controller/pcie-mediatek.c
673
struct resource *mem = NULL;
drivers/pci/controller/pcie-mediatek.c
963
struct resource *res;
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
1062
struct resource res;
drivers/pci/controller/pcie-rcar-host.c
356
struct resource *res = win->res;
drivers/pci/controller/pcie-rcar-host.c
733
struct resource res;
drivers/pci/controller/pcie-rcar-host.c
798
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
1116
struct resource *bus;
drivers/pci/controller/pcie-rzg3s-host.c
1508
struct resource *res = win->res;
drivers/pci/controller/pcie-rzg3s-host.c
1551
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
876
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
245
struct resource *mem, *pref;
drivers/pci/iov.c
1044
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
1520
if (dev->resource[i].flags & IORESOURCE_BUSY)
drivers/pci/pci-sysfs.c
1737
static ssize_t resource##n##_resize_show(struct device *dev, \
drivers/pci/pci-sysfs.c
1743
static ssize_t resource##n##_resize_store(struct device *dev, \
drivers/pci/pci-sysfs.c
1749
static DEVICE_ATTR_RW(resource##n##_resize)
drivers/pci/pci-sysfs.c
178
struct resource *res = pci_resource_n(pci_dev, i);
drivers/pci/pci-sysfs.c
179
struct resource zerores = {};
drivers/pci/pci-sysfs.c
194
static DEVICE_ATTR_RO(resource);
drivers/pci/pci.c
2083
if (dev->resource[i].flags & flags)
drivers/pci/pci.c
2086
if (dev->resource[i].flags & flags)
drivers/pci/pci.c
220
struct resource *res = &pdev->resource[bar];
drivers/pci/pci.c
3260
static struct resource *pci_ea_get_resource(struct pci_dev *dev, u8 bei,
drivers/pci/pci.c
3264
return &dev->resource[bei];
drivers/pci/pci.c
3268
return &dev->resource[PCI_IOV_RESOURCES +
drivers/pci/pci.c
3272
return &dev->resource[PCI_ROM_RESOURCE];
drivers/pci/pci.c
3280
struct resource *res;
drivers/pci/pci.c
3845
&pdev->resource[bar]);
drivers/pci/pci.c
4066
int pci_remap_iospace(const struct resource *res, phys_addr_t phys_addr)
drivers/pci/pci.c
4099
void pci_unmap_iospace(struct resource *res)
drivers/pci/pci.c
6375
const struct resource *rsrc,
drivers/pci/pci.c
6450
struct resource *r = &dev->resource[bar];
drivers/pci/pci.c
6519
struct resource *r;
drivers/pci/pci.c
6558
r = &dev->resource[i];
drivers/pci/pci.c
725
struct resource *pci_find_parent_resource(const struct pci_dev *dev,
drivers/pci/pci.c
726
struct resource *res)
drivers/pci/pci.c
729
struct resource *r;
drivers/pci/pci.c
768
struct resource *pci_find_resource(struct pci_dev *dev, struct resource *res)
drivers/pci/pci.c
773
struct resource *r = &dev->resource[i];
drivers/pci/pci.h
1041
const struct resource *res);
drivers/pci/pci.h
1160
struct resource *res);
drivers/pci/pci.h
1163
u16 segment, struct resource *res)
drivers/pci/pci.h
415
unsigned long pci_cardbus_resource_alignment(const struct resource *res);
drivers/pci/pci.h
424
static inline unsigned long pci_cardbus_resource_alignment(const struct resource *res)
drivers/pci/pci.h
502
struct resource *res, unsigned int reg, u32 *sizes);
drivers/pci/pci.h
506
struct resource *res, resource_size_t add_size,
drivers/pci/pci.h
538
const struct resource *res)
drivers/pci/pci.h
540
int resno = res - &dev->resource[0];
drivers/pci/pci.h
549
struct resource *pbus_select_window(struct pci_bus *bus,
drivers/pci/pci.h
550
const struct resource *res);
drivers/pci/probe.c
1000
struct resource *res, *next_res;
drivers/pci/probe.c
1261
child->resource[i] = &bridge->resource[PCI_BRIDGE_RESOURCES+i];
drivers/pci/probe.c
1262
child->resource[i]->name = child->name;
drivers/pci/probe.c
202
struct resource *res, unsigned int pos, u32 *sizes)
drivers/pci/probe.c
2023
struct resource *res;
drivers/pci/probe.c
207
const char *res_name = pci_resource_name(dev, res - dev->resource);
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
2511
dev->driver_exclusive_resource = (struct resource) {
drivers/pci/probe.c
29
static struct resource busn_resource = {
drivers/pci/probe.c
3308
struct resource *res = &b->busn_res;
drivers/pci/probe.c
3309
struct resource *parent_res, *conflict;
drivers/pci/probe.c
3335
struct resource *res = &b->busn_res;
drivers/pci/probe.c
3336
struct resource old_res = *res;
drivers/pci/probe.c
3356
struct resource *res = &b->busn_res;
drivers/pci/probe.c
359
struct resource *res = &dev->resource[pos];
drivers/pci/probe.c
366
struct resource *res = &dev->resource[PCI_ROM_RESOURCE];
drivers/pci/probe.c
374
static void pci_read_bridge_io(struct pci_dev *dev, struct resource *res,
drivers/pci/probe.c
420
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
446
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
510
struct resource res;
drivers/pci/probe.c
574
struct resource *res;
drivers/pci/probe.c
586
child->resource[i] = &dev->resource[PCI_BRIDGE_RESOURCES+i];
drivers/pci/probe.c
589
child->resource[PCI_BUS_BRIDGE_IO_WINDOW], false);
drivers/pci/probe.c
591
child->resource[PCI_BUS_BRIDGE_MEM_WINDOW], false);
drivers/pci/probe.c
593
child->resource[PCI_BUS_BRIDGE_PREF_MEM_WINDOW],
drivers/pci/proc.c
267
if (dev->resource[i].flags & res_bit &&
drivers/pci/proc.c
277
if (dev->resource[i].flags & IORESOURCE_PREFETCH)
drivers/pci/proc.c
283
if (dev->resource[i].flags & IORESOURCE_MEM &&
drivers/pci/proc.c
284
iomem_is_exclusive(dev->resource[i].start))
drivers/pci/proc.c
287
pci_resource_to_user(dev, i, &dev->resource[i], &start, &end);
drivers/pci/proc.c
392
pci_resource_to_user(dev, i, &dev->resource[i], &start, &end);
drivers/pci/proc.c
395
(dev->resource[i].flags & PCI_REGION_FLAG_MASK)));
drivers/pci/proc.c
399
pci_resource_to_user(dev, i, &dev->resource[i], &start, &end);
drivers/pci/proc.c
401
dev->resource[i].start < dev->resource[i].end ?
drivers/pci/quirks.c
1329
struct resource *r = &dev->resource[1];
drivers/pci/quirks.c
1921
insert_resource(&iomem_resource, &pdev->resource[0]);
drivers/pci/quirks.c
1928
memset(&pdev->resource[i], 0, sizeof(pdev->resource[i]));
drivers/pci/quirks.c
2335
struct resource *r = &dev->resource[0];
drivers/pci/quirks.c
2363
struct resource *r = &dev->resource[bar];
drivers/pci/quirks.c
3522
resource_set_size(&dev->resource[2], (resource_size_t)1 << val);
drivers/pci/quirks.c
3528
resource_set_size(&dev->resource[4], (resource_size_t)1 << val);
drivers/pci/quirks.c
576
struct resource *r = &dev->resource[i];
drivers/pci/quirks.c
595
struct resource *r = &dev->resource[0];
drivers/pci/quirks.c
610
struct resource *res = pci_resource_n(dev, pos);
drivers/pci/quirks.c
660
struct resource *res = pci_resource_n(dev, nr);
drivers/pci/rebar.c
239
struct resource *res;
drivers/pci/rebar.c
270
struct resource *res = pci_resource_n(dev, resno);
drivers/pci/remove.c
12
struct resource *res;
drivers/pci/rom.c
241
struct resource *res = &pdev->resource[PCI_ROM_RESOURCE];
drivers/pci/rom.c
292
struct resource *res = &pdev->resource[PCI_ROM_RESOURCE];
drivers/pci/rom.c
53
struct resource *res = &pdev->resource[PCI_ROM_RESOURCE];
drivers/pci/rom.c
87
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
1393
struct resource *b_res;
drivers/pci/setup-bus.c
1464
static void assign_fixed_resource_on_bus(struct pci_bus *b, struct resource *r)
drivers/pci/setup-bus.c
1466
struct resource *parent_r;
drivers/pci/setup-bus.c
1486
struct resource *r;
drivers/pci/setup-bus.c
1561
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
1575
struct resource *r = &dev->resource[i];
drivers/pci/setup-bus.c
161
struct resource *r, *r_assigned = NULL;
drivers/pci/setup-bus.c
1659
struct resource *b_win)
drivers/pci/setup-bus.c
1689
struct resource *b_win,
drivers/pci/setup-bus.c
1697
struct resource *res;
drivers/pci/setup-bus.c
1730
struct resource *res;
drivers/pci/setup-bus.c
1810
struct resource *r = &dev->resource[idx];
drivers/pci/setup-bus.c
1854
static void adjust_bridge_window(struct pci_dev *bridge, struct resource *res,
drivers/pci/setup-bus.c
1923
static void remove_dev_resource(struct resource *avail, struct pci_dev *dev,
drivers/pci/setup-bus.c
1924
struct resource *res)
drivers/pci/setup-bus.c
1939
struct resource available[PCI_P2P_BRIDGE_RESOURCE_NUM])
drivers/pci/setup-bus.c
1941
struct resource *res, *b_win;
drivers/pci/setup-bus.c
1967
struct resource available_in[PCI_P2P_BRIDGE_RESOURCE_NUM])
drivers/pci/setup-bus.c
1969
struct resource available[PCI_P2P_BRIDGE_RESOURCE_NUM];
drivers/pci/setup-bus.c
1977
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
204
struct resource *mmio, *mmio_pref, *win;
drivers/pci/setup-bus.c
2041
struct resource *res;
drivers/pci/setup-bus.c
2083
struct resource *res, available[PCI_P2P_BRIDGE_RESOURCE_NUM];
drivers/pci/setup-bus.c
2103
const struct resource *r;
drivers/pci/setup-bus.c
2111
r = &dev->resource[PCI_BRIDGE_IO_WINDOW];
drivers/pci/setup-bus.c
2114
r = &dev->resource[PCI_BRIDGE_MEM_WINDOW];
drivers/pci/setup-bus.c
2117
r = &dev->resource[PCI_BRIDGE_PREF_MEM_WINDOW];
drivers/pci/setup-bus.c
2162
struct resource *b_win;
drivers/pci/setup-bus.c
2308
static int pbus_reassign_bridge_resources(struct pci_bus *bus, struct resource *res,
drivers/pci/setup-bus.c
2380
struct resource *res = pci_resource_n(pdev, resno);
drivers/pci/setup-bus.c
2383
struct resource *b_win, *r;
drivers/pci/setup-bus.c
2442
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(const 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
136
int pci_claim_resource(struct pci_dev *dev, int resource)
drivers/pci/setup-res.c
138
struct resource *res = &dev->resource[resource];
drivers/pci/setup-res.c
139
const char *res_name = pci_resource_name(dev, resource);
drivers/pci/setup-res.c
140
struct resource *root, *conflict;
drivers/pci/setup-res.c
203
static int pci_revert_fw_address(struct resource *res, struct pci_dev *dev,
drivers/pci/setup-res.c
206
struct resource *root, *conflict;
drivers/pci/setup-res.c
252
const struct resource *res)
drivers/pci/setup-res.c
269
const struct resource *res,
drivers/pci/setup-res.c
270
const struct resource *empty_res,
drivers/pci/setup-res.c
304
const struct resource *res,
drivers/pci/setup-res.c
305
const struct resource *empty_res,
drivers/pci/setup-res.c
317
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
380
struct resource *res = pci_resource_n(dev, resno);
drivers/pci/setup-res.c
430
struct resource *res = pci_resource_n(dev, resno);
drivers/pci/setup-res.c
468
struct resource *res = pci_resource_n(dev, resno);
drivers/pci/setup-res.c
492
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/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
605
const struct resource *empty_res,
drivers/pcmcia/rsrc_nonstatic.c
684
static struct resource *__nonstatic_find_io_region(struct pcmcia_socket *s,
drivers/pcmcia/rsrc_nonstatic.c
688
struct resource *res = pcmcia_make_resource(0, num, IORESOURCE_IO,
drivers/pcmcia/rsrc_nonstatic.c
72
static struct resource *
drivers/pcmcia/rsrc_nonstatic.c
720
unsigned int align, struct resource **parent)
drivers/pcmcia/rsrc_nonstatic.c
740
struct resource *res = s->io[i].res;
drivers/pcmcia/rsrc_nonstatic.c
76
struct resource *res, *parent;
drivers/pcmcia/rsrc_nonstatic.c
807
static struct resource *nonstatic_find_mem_region(u_long base, u_long num,
drivers/pcmcia/rsrc_nonstatic.c
810
struct resource *res = pcmcia_make_resource(0, num, IORESOURCE_MEM,
drivers/pcmcia/rsrc_nonstatic.c
938
struct resource *res;
drivers/pcmcia/rsrc_nonstatic.c
94
static void free_region(struct resource *res)
drivers/pcmcia/rsrc_nonstatic.c
967
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/xxs1500_ss.c
212
struct resource *r;
drivers/pcmcia/yenta_socket.c
1049
pcibios_resource_to_bus(socket->dev->bus, &region, &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
695
struct resource *res;
drivers/pcmcia/yenta_socket.c
699
res = &dev->resource[nr];
drivers/pcmcia/yenta_socket.c
753
struct resource *res;
drivers/pcmcia/yenta_socket.c
755
res = &dev->resource[nr];
drivers/perf/alibaba_uncore_drw_pmu.c
667
struct resource *res;
drivers/perf/arm-cmn.c
2136
const struct resource *cfg;
drivers/perf/arm-cmn.c
2538
static int arm_cmn_get_root(struct arm_cmn *cmn, const struct resource *cfg)
drivers/perf/arm-cmn.c
2541
const struct resource *root;
drivers/perf/arm-cmn.c
2557
const struct resource *cfg;
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
450
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
510
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
2182
struct resource *res;
drivers/phy/apple/atc.c
2213
struct resource **res;
drivers/phy/apple/atc.c
2221
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
197
struct resource res;
drivers/phy/broadcom/phy-brcm-usb.c
366
struct resource *res;
drivers/phy/eswin/phy-eic7700-sata.c
200
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
394
struct resource *res;
drivers/phy/rockchip/phy-rockchip-samsung-dcphy.c
1557
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
1456
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
1532
struct resource *res;
drivers/phy/ti/phy-dm816x-usb.c
174
struct resource *res;
drivers/phy/ti/phy-j721e-wiz.c
1480
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
215
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
624
struct resource *res;
drivers/pinctrl/intel/pinctrl-lynxpoint.c
709
struct resource *io_rc;
drivers/pinctrl/meson/pinctrl-amlogic-a4.c
901
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
843
struct resource *res;
drivers/pinctrl/pinctrl-amd.c
1162
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
4452
struct resource *res;
drivers/pinctrl/pinctrl-single.c
172
struct resource *res;
drivers/pinctrl/pinctrl-single.c
1784
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
1547
struct resource *res;
drivers/pinctrl/qcom/pinctrl-sc8180x.c
1622
struct resource *mres = NULL;
drivers/pinctrl/qcom/pinctrl-sc8180x.c
1623
struct resource *nres, *res;
drivers/pinctrl/qcom/pinctrl-sc8180x.c
1641
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
620
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
1184
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
761
struct resource *res;
drivers/pinctrl/tegra/pinctrl-tegra.c
830
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
21
static struct resource *wilco_get_resource(struct platform_device *pdev,
drivers/platform/chrome/wilco_ec/core.c
25
struct resource *res;
drivers/platform/goldfish/goldfish_pipe.c
875
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
323
static const struct resource nvsw_sn2201_lpc_io_resources[] = {
drivers/platform/mellanox/nvsw-sn2201.c
329
static struct resource nvsw_sn2201_cpld_res[] = {
drivers/platform/mellanox/nvsw-sn2201.c
333
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
310
struct resource *res;
drivers/platform/x86/barco-p50-gpio.c
425
struct resource res = DEFINE_RES_IO(P50_GPIO_IO_PORT_BASE, P50_PORT_CMD + 1);
drivers/platform/x86/intel/plr_tpmi.c
289
struct resource *res;
drivers/platform/x86/intel/pmc/pwrm_telemetry.c
159
struct resource *res;
drivers/platform/x86/intel/pmt/class.c
215
struct resource *disc_res;
drivers/platform/x86/intel/pmt/class.c
240
disc_res = &ivdev->resource[idx];
drivers/platform/x86/intel/pmt/class.c
377
struct resource res = {0};
drivers/platform/x86/intel/pmt/class.c
457
struct resource *disc_res = &ivdev->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
610
struct resource res = {};
drivers/platform/x86/intel/sdsi.c
656
struct resource *disc_res;
drivers/platform/x86/intel/sdsi.c
670
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
615
struct resource *res;
drivers/platform/x86/intel/vsec.c
289
struct resource *res;
drivers/platform/x86/intel/vsec.c
290
struct resource *tmp;
drivers/platform/x86/intel/vsec.c
313
intel_vsec_dev = kzalloc_flex(*intel_vsec_dev, resource, header->num_entries);
drivers/platform/x86/intel/vsec.c
318
res = intel_vsec_dev->resource;
drivers/platform/x86/intel/vsec_tpmi.c
226
struct resource *tpmi_get_resource_at_index(struct auxiliary_device *auxdev, int index)
drivers/platform/x86/intel/vsec_tpmi.c
231
return &vsec_dev->resource[index];
drivers/platform/x86/intel/vsec_tpmi.c
611
struct resource *res, *tmp;
drivers/platform/x86/intel/vsec_tpmi.c
630
feature_vsec_dev = kzalloc_flex(*feature_vsec_dev, resource, pfs->pfs_header.num_entries);
drivers/platform/x86/intel/vsec_tpmi.c
635
res = feature_vsec_dev->resource;
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
23
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
4162
sony_pic_read_possible_resource(struct acpi_resource *resource, void *context)
drivers/platform/x86/sony-laptop.c
4167
switch (resource->type) {
drivers/platform/x86/sony-laptop.c
4185
struct acpi_resource_irq *p = &resource->data.irq;
drivers/platform/x86/sony-laptop.c
4216
struct acpi_resource_io *io = &resource->data.io;
drivers/platform/x86/sony-laptop.c
4241
resource->type);
drivers/platform/x86/sony-laptop.c
4325
} *resource;
drivers/platform/x86/sony-laptop.c
4332
resource = kzalloc(sizeof(*resource) + 1, GFP_KERNEL);
drivers/platform/x86/sony-laptop.c
4333
if (!resource)
drivers/platform/x86/sony-laptop.c
4336
buffer.length = sizeof(*resource) + 1;
drivers/platform/x86/sony-laptop.c
4337
buffer.pointer = resource;
drivers/platform/x86/sony-laptop.c
4343
resource->res1.type = ACPI_RESOURCE_TYPE_IO;
drivers/platform/x86/sony-laptop.c
4344
resource->res1.length = sizeof(struct acpi_resource);
drivers/platform/x86/sony-laptop.c
4345
memcpy(&resource->res1.data.io, &ioport->io1,
drivers/platform/x86/sony-laptop.c
4348
resource->res2.type = ACPI_RESOURCE_TYPE_IO;
drivers/platform/x86/sony-laptop.c
4349
resource->res2.length = sizeof(struct acpi_resource);
drivers/platform/x86/sony-laptop.c
4350
memcpy(&resource->res2.data.io, &ioport->io2,
drivers/platform/x86/sony-laptop.c
4354
resource->res3.type = ACPI_RESOURCE_TYPE_IRQ;
drivers/platform/x86/sony-laptop.c
4355
resource->res3.length = sizeof(struct acpi_resource);
drivers/platform/x86/sony-laptop.c
4356
memcpy(&resource->res3.data.irq, &irq->irq,
drivers/platform/x86/sony-laptop.c
4359
resource->res3.data.irq.shareable = ACPI_SHARED;
drivers/platform/x86/sony-laptop.c
4361
resource->res4.type = ACPI_RESOURCE_TYPE_END_TAG;
drivers/platform/x86/sony-laptop.c
4362
resource->res4.length = sizeof(struct acpi_resource);
drivers/platform/x86/sony-laptop.c
4367
resource->res1.type = ACPI_RESOURCE_TYPE_IO;
drivers/platform/x86/sony-laptop.c
4368
resource->res1.length = sizeof(struct acpi_resource);
drivers/platform/x86/sony-laptop.c
4369
memcpy(&resource->res1.data.io, &ioport->io1,
drivers/platform/x86/sony-laptop.c
4373
resource->res2.type = ACPI_RESOURCE_TYPE_IRQ;
drivers/platform/x86/sony-laptop.c
4374
resource->res2.length = sizeof(struct acpi_resource);
drivers/platform/x86/sony-laptop.c
4375
memcpy(&resource->res2.data.irq, &irq->irq,
drivers/platform/x86/sony-laptop.c
4378
resource->res2.data.irq.shareable = ACPI_SHARED;
drivers/platform/x86/sony-laptop.c
4380
resource->res3.type = ACPI_RESOURCE_TYPE_END_TAG;
drivers/platform/x86/sony-laptop.c
4381
resource->res3.length = sizeof(struct acpi_resource);
drivers/platform/x86/sony-laptop.c
4401
kfree(resource);
drivers/pmdomain/imx/scu-pd.c
343
msg.data.req.resource = rsrc;
drivers/pmdomain/imx/scu-pd.c
367
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
935
struct resource res;
drivers/pmdomain/ti/omap_prm.c
947
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
356
struct resource *res;
drivers/ptp/ptp_ocp.c
2197
struct resource res = DEFINE_RES_MEM_NAMED(start, size, "ptp_ocp");
drivers/ptp/ptp_ocp.c
2217
struct resource res[2];
drivers/ptp/ptp_ocp.c
2244
struct resource res[2];
drivers/ptp/ptp_vmclock.c
45
struct resource res;
drivers/ptp/ptp_vmclock.c
493
struct resource *res = &win.res;
drivers/ptp/ptp_vmclock.c
585
struct resource *res;
drivers/pwm/pwm-microchip-core.c
438
struct resource *regs;
drivers/rapidio/devices/tsi721.c
2798
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
201
struct resource *res;
drivers/remoteproc/imx_dsp_rproc.c
716
struct resource res;
drivers/remoteproc/imx_rproc.c
673
struct resource res;
drivers/remoteproc/imx_rproc.c
855
struct resource res;
drivers/remoteproc/ingenic_rproc.c
169
struct resource *mem;
drivers/remoteproc/keystone_remoteproc.c
281
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
2011
struct resource res;
drivers/remoteproc/qcom_q6v5_pas.c
623
struct resource res;
drivers/remoteproc/qcom_q6v5_pas.c
671
struct resource res;
drivers/remoteproc/qcom_q6v5_wcss.c
818
struct resource *res;
drivers/remoteproc/qcom_q6v5_wcss.c
867
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
1046
struct resource *res;
drivers/remoteproc/xlnx_r5_remoteproc.c
512
struct resource res;
drivers/remoteproc/xlnx_r5_remoteproc.c
70
struct resource sram_res;
drivers/remoteproc/xlnx_r5_remoteproc.c
813
struct resource res_mem;
drivers/resctrl/mpam_devices.c
2040
struct resource *msc_res;
drivers/resctrl/mpam_devices.c
671
struct resource *r;
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
169
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
1169
struct resource *ports;
drivers/rtc/rtc-cmos.c
1429
struct resource *resource;
drivers/rtc/rtc-cmos.c
1435
resource = platform_get_resource(pdev, IORESOURCE_IO, 0);
drivers/rtc/rtc-cmos.c
1437
resource = platform_get_resource(pdev, IORESOURCE_MEM, 0);
drivers/rtc/rtc-cmos.c
1451
return cmos_do_probe(&pdev->dev, resource, irq);
drivers/rtc/rtc-cmos.c
78
struct resource *iomem;
drivers/rtc/rtc-cmos.c
930
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
113
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
248
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
327
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
69
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
1098
struct resource *regs;
drivers/soc/pxa/ssp.c
113
struct resource *res;
drivers/soc/qcom/ice.c
629
struct resource *res;
drivers/soc/qcom/llcc-qcom.c
5402
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
1109
struct resource r;
drivers/soc/renesas/rcar-mfis.c
290
struct resource *res;
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
169
struct resource *res;
drivers/soc/tegra/flowctrl.c
190
struct resource res;
drivers/soc/tegra/fuse/fuse-tegra.c
143
struct resource *res;
drivers/soc/tegra/fuse/fuse-tegra.c
474
struct resource regs;
drivers/soc/tegra/fuse/tegra-apbmisc.c
200
static void tegra_init_apbmisc_resources(struct resource *apbmisc,
drivers/soc/tegra/fuse/tegra-apbmisc.c
201
struct resource *straps)
drivers/soc/tegra/fuse/tegra-apbmisc.c
226
struct resource apbmisc, straps;
drivers/soc/tegra/fuse/tegra-apbmisc.c
297
struct resource *resources[2] = { NULL };
drivers/soc/tegra/pmc.c
2986
struct resource *res;
drivers/soc/tegra/pmc.c
4018
struct resource regs;
drivers/soc/tegra/pmc.c
5022
struct resource regs;
drivers/soc/ti/knav_dma.c
515
struct resource res;
drivers/soc/ti/knav_qmss_queue.c
1363
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
1061
struct resource *res;
drivers/spi/atmel-quadspi.c
1352
struct resource *res;
drivers/spi/spi-altera-platform.c
77
struct resource *regoff;
drivers/spi/spi-aspeed-smc.c
963
struct resource *res;
drivers/spi/spi-at91-usart.c
478
struct resource *regs;
drivers/spi/spi-atcspi200.c
472
struct resource **mem_res)
drivers/spi/spi-atcspi200.c
532
struct resource *mem_res)
drivers/spi/spi-atcspi200.c
549
struct resource *mem_res;
drivers/spi/spi-atmel.c
1552
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
493
struct resource *r;
drivers/spi/spi-cadence-quadspi.c
1791
struct resource *res_ahb;
drivers/spi/spi-cadence-xspi.c
1179
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
627
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
755
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
897
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
637
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
1399
struct resource *res;
drivers/spi/spi-nxp-xspi.c
1213
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
1479
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
24
struct resource *res;
drivers/spi/spi-qpic-snand.c
1521
struct resource *res;
drivers/spi/spi-qpic-snand.c
1625
struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
drivers/spi/spi-qup.c
1031
struct resource *res;
drivers/spi/spi-rockchip.c
760
struct resource *mem;
drivers/spi/spi-rspi.c
1131
const struct resource *res)
drivers/spi/spi-rspi.c
1269
struct resource *res;
drivers/spi/spi-rzv2h-rspi.c
279
.dst_addr = rspi->pdev->resource->start + RSPI_SPDR,
drivers/spi/spi-rzv2h-rspi.c
280
.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
1101
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-spacemit-k1.c
694
struct resource *iores;
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
791
struct resource *res, _res;
drivers/spi/spi-stm32-qspi.c
782
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
1713
struct resource *r;
drivers/spi/spi-ti-qspi.c
762
struct resource *r, *res_mmap;
drivers/spi/spi-uniphier.c
642
struct resource *res;
drivers/spi/spi-wpcm-fiu.c
441
struct resource *res;
drivers/spi/spi-xilinx.c
406
struct resource *res;
drivers/spi/spi.c
2934
struct resource r;
drivers/spmi/hisi-spmi-controller.c
267
struct resource *iores;
drivers/spmi/spmi-pmic-arb.c
2083
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
432
struct resource *r_mem;
drivers/staging/most/dim2/dim2.c
757
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_prepare(struct vme_resource *resource,
drivers/staging/vme_user/vme.c
752
struct vme_bridge *bridge = find_bridge(resource);
drivers/staging/vme_user/vme.c
756
if (resource->type != VME_MASTER) {
drivers/staging/vme_user/vme.c
761
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_prepare(struct vme_resource *resource, struct vm_area_desc *desc);
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
213
image_size = vme_get_size(image[minor].resource);
drivers/staging/vme_user/vme_user.c
255
image_size = vme_get_size(image[minor].resource);
drivers/staging/vme_user/vme_user.c
296
image_size = vme_get_size(image[minor].resource);
drivers/staging/vme_user/vme_user.c
351
retval = vme_master_get(image[minor].resource,
drivers/staging/vme_user/vme_user.c
382
return vme_master_set(image[minor].resource,
drivers/staging/vme_user/vme_user.c
397
retval = vme_slave_get(image[minor].resource,
drivers/staging/vme_user/vme_user.c
422
return vme_slave_set(image[minor].resource,
drivers/staging/vme_user/vme_user.c
507
err = vme_master_mmap_prepare(image[minor].resource, desc);
drivers/staging/vme_user/vme_user.c
573
image[i].resource = NULL;
drivers/staging/vme_user/vme_user.c
603
image[i].resource = vme_slave_request(vme_user_bridge,
drivers/staging/vme_user/vme_user.c
605
if (!image[i].resource) {
drivers/staging/vme_user/vme_user.c
612
image[i].kern_buf = vme_alloc_consistent(image[i].resource,
drivers/staging/vme_user/vme_user.c
619
vme_slave_free(image[i].resource);
drivers/staging/vme_user/vme_user.c
631
image[i].resource = vme_master_request(vme_user_bridge,
drivers/staging/vme_user/vme_user.c
634
if (!image[i].resource) {
drivers/staging/vme_user/vme_user.c
644
vme_master_free(image[i].resource);
drivers/staging/vme_user/vme_user.c
701
vme_master_free(image[i].resource);
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
737
vme_master_free(image[i].resource);
drivers/staging/vme_user/vme_user.c
741
vme_slave_set(image[i].resource, 0, 0, 0, 0, VME_A32, 0);
drivers/staging/vme_user/vme_user.c
742
vme_free_consistent(image[i].resource, image[i].size_buf,
drivers/staging/vme_user/vme_user.c
744
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
937
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
287
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
630
struct resource *regs;
drivers/tty/serial/8250/8250_em.c
157
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
175
struct resource res;
drivers/tty/serial/8250/8250_loongson.c
48
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
523
struct resource *regs;
drivers/tty/serial/8250/8250_ni.c
228
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
1421
struct resource *regs;
drivers/tty/serial/8250/8250_pci.c
802
pcibios_resource_to_bus(dev->bus, &region, &dev->resource[bar]);
drivers/tty/serial/8250/8250_pci.c
977
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
2941
struct resource *mmiobase, int index)
drivers/tty/serial/amba-pl011.c
3112
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/dz.c
767
struct resource *mem_resource, *irq_resource;
drivers/tty/serial/fsl_linflexuart.c
811
struct resource *res;
drivers/tty/serial/fsl_lpuart.c
2877
struct resource *res;
drivers/tty/serial/imx.c
2417
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
1362
struct resource *uart_resource;
drivers/tty/serial/msm_serial.c
1378
struct resource *uart_resource;
drivers/tty/serial/msm_serial.c
1801
struct resource *resource;
drivers/tty/serial/msm_serial.c
1851
resource = platform_get_resource(pdev, IORESOURCE_MEM, 0);
drivers/tty/serial/msm_serial.c
1852
if (unlikely(!resource))
drivers/tty/serial/msm_serial.c
1854
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
1576
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
1807
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
1809
struct resource *res;
drivers/tty/serial/sccnxp.c
886
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
3015
struct resource *res;
drivers/tty/serial/sh-sci.c
3279
const struct resource *res;
drivers/tty/serial/sh-sci.c
3797
struct resource *sci_res)
drivers/tty/serial/sh-sci.c
3874
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
1645
struct resource *res;
drivers/tty/serial/zs.c
1052
struct resource *mem_resource, *irq_resource;
drivers/ufs/host/ufs-qcom.c
2293
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
191
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
70
struct resource *res;
drivers/usb/cdns3/cdnsp-pci.c
23
struct resource dev_res[6];
drivers/usb/cdns3/cdnsp-pci.c
73
struct resource *res;
drivers/usb/cdns3/core.h
94
struct resource xhci_res[CDNS_XHCI_RESOURCES_NUM];
drivers/usb/cdns3/core.h
97
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
1030
struct resource *res;
drivers/usb/chipidea/core.c
861
struct resource *res, int nres,
drivers/usb/chipidea/usbmisc_imx.c
1515
struct resource *res;
drivers/usb/dwc2/hcd.c
5106
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
2213
struct resource dwc_res;
drivers/usb/dwc3/core.c
2216
struct resource *res = data->res;
drivers/usb/dwc3/core.c
2386
struct resource *res;
drivers/usb/dwc3/core.h
1209
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
94
struct resource *res;
drivers/usb/dwc3/dwc3-google.c
368
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-imx.c
199
struct resource *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
39
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
2358
struct resource *res;
drivers/usb/gadget/udc/fsl_udc_core.c
2537
struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
drivers/usb/gadget/udc/goku_udc.c
1748
unsigned long resource, len;
drivers/usb/gadget/udc/goku_udc.c
1782
resource = pci_resource_start(pdev, 0);
drivers/usb/gadget/udc/goku_udc.c
1784
if (!request_mem_region(resource, len, driver_name)) {
drivers/usb/gadget/udc/goku_udc.c
1791
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
2751
if (!request_mem_region(pdev->resource[0].start,
drivers/usb/gadget/udc/omap_udc.c
2752
resource_size(&pdev->resource[0]),
drivers/usb/gadget/udc/omap_udc.c
2867
status = devm_request_irq(&pdev->dev, pdev->resource[1].start,
drivers/usb/gadget/udc/omap_udc.c
2871
(int) pdev->resource[1].start, status);
drivers/usb/gadget/udc/omap_udc.c
2876
status = devm_request_irq(&pdev->dev, pdev->resource[2].start,
drivers/usb/gadget/udc/omap_udc.c
2880
(int) pdev->resource[2].start, status);
drivers/usb/gadget/udc/omap_udc.c
2884
status = devm_request_irq(&pdev->dev, pdev->resource[3].start,
drivers/usb/gadget/udc/omap_udc.c
2888
(int) pdev->resource[3].start, status);
drivers/usb/gadget/udc/omap_udc.c
2918
release_mem_region(pdev->resource[0].start,
drivers/usb/gadget/udc/omap_udc.c
2919
resource_size(&pdev->resource[0]));
drivers/usb/gadget/udc/omap_udc.c
2934
release_mem_region(pdev->resource[0].start,
drivers/usb/gadget/udc/omap_udc.c
2935
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
214
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
558
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
1613
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
1596
struct resource *regs;
drivers/usb/host/xhci-tegra.c
275
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
396
ret = platform_device_add_resources(musb, pdev->resource, pdev->num_resources);
drivers/usb/musb/omap2430.c
403
struct resource musb_res[3];
drivers/usb/musb/omap2430.c
404
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
195
struct resource *res;
drivers/vdpa/octeon_ep/octep_vdpa_main.c
17
struct resource res;
drivers/vdpa/octeon_ep/octep_vdpa_main.c
471
struct resource *res = pf_dev->resource + PCI_STD_RESOURCES + 4;
drivers/vdpa/octeon_ep/octep_vdpa_main.c
487
struct resource *res = pf_dev->resource + PCI_STD_RESOURCES + 4;
drivers/vdpa/octeon_ep/octep_vdpa_main.c
516
struct resource *vf_res = pdev->resource + PCI_STD_RESOURCES + 4;
drivers/vdpa/octeon_ep/octep_vdpa_main.c
794
struct resource *vf_res = vf_dev->resource + PCI_STD_RESOURCES + 4;
drivers/vdpa/octeon_ep/octep_vdpa_main.c
795
struct resource *pf_res = pf_dev->resource + PCI_STD_RESOURCES + 4;
drivers/vdpa/octeon_ep/octep_vdpa_main.c
801
vf_res->parent = (pf_dev->resource + PCI_STD_RESOURCES)->parent;
drivers/vfio/cdx/main.c
42
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
197
struct resource *res;
drivers/vfio/pci/vfio_pci_core.c
204
res = &vdev->pdev->resource[bar];
drivers/vfio/pci/vfio_pci_core.c
235
dummy_res->resource.name = "vfio sub-page reserved";
drivers/vfio/pci/vfio_pci_core.c
236
dummy_res->resource.start = res->end + 1;
drivers/vfio/pci/vfio_pci_core.c
237
dummy_res->resource.end = res->start + PAGE_SIZE - 1;
drivers/vfio/pci/vfio_pci_core.c
238
dummy_res->resource.flags = res->flags;
drivers/vfio/pci/vfio_pci_core.c
240
&dummy_res->resource)) {
drivers/vfio/pci/vfio_pci_core.c
752
release_resource(&dummy_res->resource);
drivers/vfio/pci/vfio_pci_core.c
82
struct resource resource;
drivers/vfio/pci/vfio_pci_rdwr.c
210
struct resource *res = &vdev->pdev->resource[bar];
drivers/vfio/pci/vfio_pci_rdwr.c
473
ioeventfd->test_mem = vdev->pdev->resource[bar].flags & IORESOURCE_MEM;
drivers/vfio/pci/virtio/legacy_io.c
354
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
77
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
679
if (!dev->resource.start)
drivers/video/console/newport_con.c
685
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
1022
struct resource *regs = NULL;
drivers/video/fbdev/atmel_lcdfb.c
1023
struct resource *map = NULL;
drivers/video/fbdev/aty/atyfb_base.c
2971
for (i = 0; i < 6 && pdev->resource[i].start; i++)
drivers/video/fbdev/aty/atyfb_base.c
2981
for (i = 0, j = 2; i < 6 && pdev->resource[i].start; i++) {
drivers/video/fbdev/aty/atyfb_base.c
2982
struct resource *rp = &pdev->resource[i];
drivers/video/fbdev/aty/atyfb_base.c
3432
struct resource *rrp;
drivers/video/fbdev/aty/atyfb_base.c
3436
rrp = &pdev->resource[2];
drivers/video/fbdev/aty/atyfb_base.c
3530
struct resource *rp;
drivers/video/fbdev/aty/atyfb_base.c
3545
rp = &pdev->resource[0];
drivers/video/fbdev/aty/atyfb_base.c
3547
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/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
976
struct resource *res= &par->pci_dev->resource[PCI_ROM_RESOURCE];
drivers/video/fbdev/nvidia/nvidia.c
988
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
2495
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
5877
if(pdev->resource[PCI_ROM_RESOURCE].flags & IORESOURCE_ROM_SHADOW) {
drivers/video/fbdev/sm501fb.c
1539
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/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
673
struct resource resources[2] = {};
drivers/virtio/virtio_mmio.c
732
pdev->resource[0].end - pdev->resource[0].start + 1ULL,
drivers/virtio/virtio_mmio.c
733
(unsigned long long)pdev->resource[0].start,
drivers/virtio/virtio_mmio.c
734
(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
173
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
203
struct resource res;
drivers/watchdog/qcom-wdt.c
237
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
231
struct resource res;
drivers/watchdog/s32g_wdt.c
216
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
358
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
62
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
736
struct resource secondary; /* downstream bus range */
include/acpi/acpixf.h
802
acpi_status (*acpi_walk_resource_callback) (struct acpi_resource * resource,
include/acpi/acpixf.h
844
*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/cxl/cxl.h
109
resource_size_t resource;
include/cxl/cxl.h
145
struct resource res;
include/cxl/cxl.h
185
struct resource dpa_res;
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
350
WARN_ON(bo->resource);
include/drm/ttm/ttm_bo.h
351
bo->resource = new_mem;
include/drm/ttm/ttm_bo.h
364
ttm_resource_free(bo, &bo->resource);
include/linux/acpi.h
1096
static inline struct acpi_device *acpi_resource_consumer(struct resource *res)
include/linux/acpi.h
1156
int hmat_get_extended_linear_cache_size(struct resource *backing_res, int nid,
include/linux/acpi.h
1159
static inline int hmat_get_extended_linear_cache_size(struct resource *backing_res,
include/linux/acpi.h
1542
int acpi_irq_get(acpi_handle handle, unsigned int index, struct resource *res);
include/linux/acpi.h
1547
int acpi_irq_get(acpi_handle handle, unsigned int index, struct resource *res)
include/linux/acpi.h
515
bool acpi_dev_resource_memory(struct acpi_resource *ares, struct resource *res);
include/linux/acpi.h
516
bool acpi_dev_resource_io(struct acpi_resource *ares, struct resource *res);
include/linux/acpi.h
524
struct resource *res);
include/linux/acpi.h
542
struct acpi_device *acpi_resource_consumer(struct resource *res);
include/linux/acpi.h
544
int acpi_check_resource_conflict(const struct resource *res);
include/linux/acpi.h
946
static inline int acpi_check_resource_conflict(struct resource *res)
include/linux/amba/bus.h
137
int amba_device_add(struct amba_device *, struct resource *);
include/linux/amba/bus.h
138
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
154
struct resource res[MAX_CDX_DEV_RESOURCES];
include/linux/compat.h
729
asmlinkage long compat_sys_getrlimit(unsigned int resource,
include/linux/compat.h
731
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
315
void hmem_register_resource(int target_nid, struct resource *r);
include/linux/dax.h
317
static inline void hmem_register_resource(int target_nid, struct resource *r)
include/linux/dax.h
323
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
249
#define dio_resource_start(d) ((d)->resource.start)
include/linux/dio.h
250
#define dio_resource_end(d) ((d)->resource.end)
include/linux/dio.h
251
#define dio_resource_len(d) (resource_size(&(d)->resource))
include/linux/dio.h
252
#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
210
struct resource *regions;
include/linux/fsl/mc.h
212
struct fsl_mc_resource *resource;
include/linux/fsl/ptp_qoriq.h
147
struct resource *rsrc;
include/linux/hyperv.h
1332
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
38
struct resource *tpmi_get_resource_at_index(struct auxiliary_device *auxdev, int index);
include/linux/intel_vsec.h
167
struct resource resource[] __counted_by(num_resources);
include/linux/intel_vsec.h
35
struct resource;
include/linux/ioport.h
159
(struct resource) { \
include/linux/ioport.h
215
const struct resource *res,
include/linux/ioport.h
216
const struct resource *empty_res,
include/linux/ioport.h
240
extern struct resource ioport_resource;
include/linux/ioport.h
241
extern struct resource iomem_resource;
include/linux/ioport.h
242
extern struct resource soft_reserve_resource;
include/linux/ioport.h
244
extern struct resource *request_resource_conflict(struct resource *root, struct resource *new);
include/linux/ioport.h
245
extern int request_resource(struct resource *root, struct resource *new);
include/linux/ioport.h
246
extern int release_resource(struct resource *new);
include/linux/ioport.h
247
void release_child_resources(struct resource *new);
include/linux/ioport.h
248
extern void reserve_region_with_split(struct resource *root,
include/linux/ioport.h
251
extern struct resource *insert_resource_conflict(struct resource *parent, struct resource *new);
include/linux/ioport.h
252
extern int insert_resource(struct resource *parent, struct resource *new);
include/linux/ioport.h
253
extern void insert_resource_expand_to_fit(struct resource *root, struct resource *new);
include/linux/ioport.h
254
extern int remove_resource(struct resource *old);
include/linux/ioport.h
255
extern void arch_remove_reservations(struct resource *avail);
include/linux/ioport.h
256
extern int allocate_resource(struct resource *root, struct resource *new,
include/linux/ioport.h
261
struct resource *lookup_resource(struct resource *root, resource_size_t start);
include/linux/ioport.h
262
int adjust_resource(struct resource *res, resource_size_t start,
include/linux/ioport.h
264
resource_size_t resource_alignment(const struct resource *res);
include/linux/ioport.h
276
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
289
static inline void resource_set_range(struct resource *res,
include/linux/ioport.h
297
static inline resource_size_t resource_size(const struct resource *res)
include/linux/ioport.h
301
static inline unsigned long resource_type(const struct resource *res)
include/linux/ioport.h
305
static inline unsigned long resource_ext_type(const struct resource *res)
include/linux/ioport.h
316
static inline bool __resource_contains_unbound(const struct resource *r1,
include/linux/ioport.h
317
const struct resource *r2)
include/linux/ioport.h
325
static inline bool resource_contains(const struct resource *r1, const struct resource *r2)
include/linux/ioport.h
334
static inline bool resource_overlaps(const struct resource *r1, const struct resource *r2)
include/linux/ioport.h
339
static inline bool resource_intersection(const struct resource *r1, const struct resource *r2,
include/linux/ioport.h
340
struct resource *r)
include/linux/ioport.h
349
static inline bool resource_union(const struct resource *r1, const struct resource *r2,
include/linux/ioport.h
350
struct resource *r)
include/linux/ioport.h
363
static inline bool resource_assigned(const struct resource *res)
include/linux/ioport.h
368
int find_resource_space(struct resource *root, struct resource *new,
include/linux/ioport.h
382
extern struct resource * __request_region(struct resource *,
include/linux/ioport.h
391
extern void __release_region(struct resource *, resource_size_t,
include/linux/ioport.h
397
extern void merge_system_ram_resource(struct resource *res);
include/linux/ioport.h
403
extern int devm_request_resource(struct device *dev, struct resource *root,
include/linux/ioport.h
404
struct resource *new);
include/linux/ioport.h
405
extern void devm_release_resource(struct device *dev, struct resource *new);
include/linux/ioport.h
412
extern struct resource * __devm_request_region(struct device *dev,
include/linux/ioport.h
413
struct resource *parent, resource_size_t start,
include/linux/ioport.h
421
extern void __devm_release_region(struct device *dev, struct resource *parent,
include/linux/ioport.h
425
extern bool resource_is_exclusive(struct resource *resource, u64 addr,
include/linux/ioport.h
433
int (*func)(struct resource *, void *));
include/linux/ioport.h
436
int (*func)(struct resource *, void *));
include/linux/ioport.h
439
int (*func)(struct resource *, void *));
include/linux/ioport.h
442
void *arg, int (*func)(struct resource *, void *));
include/linux/ioport.h
444
int (*func)(struct resource *, void *));
include/linux/ioport.h
448
struct resource *devm_request_free_mem_region(struct device *dev,
include/linux/ioport.h
449
struct resource *base, unsigned long size);
include/linux/ioport.h
450
struct resource *request_free_mem_region(struct resource *base,
include/linux/ioport.h
452
struct resource *alloc_free_mem_region(struct resource *base,
include/linux/ioport.h
455
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
256
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
295
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
111
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
45
unsigned int idx, struct resource *res);
include/linux/of_reserved_mem.h
47
const char *name, struct resource *res);
include/linux/of_reserved_mem.h
78
struct resource *res)
include/linux/of_reserved_mem.h
85
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
1213
resource_size_t pcibios_align_resource(void *data, const struct resource *res,
include/linux/pci.h
1214
const struct resource *empty_res,
include/linux/pci.h
1218
const struct resource *res,
include/linux/pci.h
1219
const struct resource *empty_res,
include/linux/pci.h
1226
struct resource *res);
include/linux/pci.h
1227
void pcibios_bus_to_resource(struct pci_bus *bus, struct resource *res,
include/linux/pci.h
1262
struct resource *pci_find_parent_resource(const struct pci_dev *dev,
include/linux/pci.h
1263
struct resource *res);
include/linux/pci.h
1568
struct resource *pci_find_resource(struct pci_dev *dev, struct resource *res);
include/linux/pci.h
1579
static inline __must_check struct resource *
include/linux/pci.h
1595
void pci_add_resource(struct list_head *resources, struct resource *res);
include/linux/pci.h
1596
void pci_add_resource_offset(struct list_head *resources, struct resource *res,
include/linux/pci.h
1599
void pci_bus_add_resource(struct pci_bus *bus, struct resource *res);
include/linux/pci.h
1600
struct resource *pci_bus_resource_n(const struct pci_bus *bus, int n);
include/linux/pci.h
1602
void pci_bus_remove_resource(struct pci_bus *bus, struct resource *res);
include/linux/pci.h
1649
struct resource *res, resource_size_t size,
include/linux/pci.h
1660
int pci_remap_iospace(const struct resource *res, phys_addr_t phys_addr);
include/linux/pci.h
1661
int devm_pci_remap_iospace(struct device *dev, const struct resource *res,
include/linux/pci.h
1663
void pci_unmap_iospace(struct resource *res);
include/linux/pci.h
1668
struct resource *res);
include/linux/pci.h
1674
pcibios_resource_to_bus(pdev->bus, &region, &pdev->resource[bar]);
include/linux/pci.h
2189
static inline struct resource *pci_find_resource(struct pci_dev *dev,
include/linux/pci.h
2190
struct resource *res)
include/linux/pci.h
2292
#define pci_resource_n(dev, bar) (&(dev)->resource[(bar)])
include/linux/pci.h
2360
const struct resource *rsrc,
include/linux/pci.h
455
struct resource resource[DEVICE_COUNT_RESOURCE]; /* I/O and memory regions + expansion ROMs */
include/linux/pci.h
456
struct resource driver_exclusive_resource; /* driver exclusive resource ranges */
include/linux/pci.h
668
const struct resource *res,
include/linux/pci.h
710
struct resource *resource[PCI_BRIDGE_RESOURCE_NUM];
include/linux/pci.h
712
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
159
const struct resource *res;
include/linux/platform_device.h
188
const struct resource *res, unsigned int num,
include/linux/platform_device.h
229
const struct resource *res, unsigned int num)
include/linux/platform_device.h
261
const struct resource *res,
include/linux/platform_device.h
31
struct resource *resource;
include/linux/platform_device.h
375
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
1390
unsigned int resource,
include/linux/security.h
532
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
1211
asmlinkage long sys_old_getrlimit(unsigned int resource, struct rlimit __user *rlim);
include/linux/syscalls.h
716
asmlinkage long sys_getrlimit(unsigned int resource,
include/linux/syscalls.h
718
asmlinkage long sys_setrlimit(unsigned int resource,
include/linux/syscalls.h
885
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
368
struct resource;
include/sound/core.h
369
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
56
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
166
static inline resource_size_t crash_resource_size(const struct resource *res)
kernel/crash_core.c
364
static int __crash_shrink_memory(struct resource *old_res,
kernel/crash_core.c
367
struct resource *ram_res;
kernel/crash_reserve.c
27
struct resource crashk_res = {
kernel/crash_reserve.c
34
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
1763
int (*func)(struct resource *, void *))
kernel/liveupdate/kexec_handover.c
1769
struct resource res = {
kernel/liveupdate/kexec_handover.c
1784
int (*func)(struct resource *, void *))
kernel/resource.c
1010
int insert_resource(struct resource *parent, struct resource *new)
kernel/resource.c
1012
struct resource *conflict;
kernel/resource.c
1027
void insert_resource_expand_to_fit(struct resource *root, struct resource *new)
kernel/resource.c
1034
struct resource *conflict;
kernel/resource.c
1075
int remove_resource(struct resource *old)
kernel/resource.c
1086
static int __adjust_resource(struct resource *res, resource_size_t start,
kernel/resource.c
1089
struct resource *tmp, *parent = res->parent;
kernel/resource.c
113
struct resource *p = v;
kernel/resource.c
1133
int adjust_resource(struct resource *res, resource_size_t start,
kernel/resource.c
1146
__reserve_region_with_split(struct resource *root, resource_size_t start,
kernel/resource.c
1149
struct resource *parent = root;
kernel/resource.c
1150
struct resource *conflict;
kernel/resource.c
1151
struct resource *res = alloc_resource(GFP_ATOMIC);
kernel/resource.c
1152
struct resource *next_res = NULL;
kernel/resource.c
1207
reserve_region_with_split(struct resource *root, resource_size_t start,
kernel/resource.c
1241
resource_size_t resource_alignment(const struct resource *res)
kernel/resource.c
1269
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
1301
static void revoke_iomem(struct resource *res) {}
kernel/resource.c
1315
static int __request_region_locked(struct resource *res, struct resource *parent,
kernel/resource.c
1326
struct resource *conflict;
kernel/resource.c
1375
struct resource *__request_region(struct resource *parent,
kernel/resource.c
1379
struct resource *res = alloc_resource(GFP_KERNEL);
kernel/resource.c
1409
void __release_region(struct resource *parent, resource_size_t start,
kernel/resource.c
1412
struct resource **p;
kernel/resource.c
1421
struct resource *res = *p;
kernel/resource.c
1449
static void append_child_to_parent(struct resource *new_parent, struct resource *new_child)
kernel/resource.c
1451
struct resource *child;
kernel/resource.c
1471
static void reparent_children_after_split(struct resource *low,
kernel/resource.c
1472
struct resource *high,
kernel/resource.c
1475
struct resource *child, *next, **p;
kernel/resource.c
1509
struct resource *parent = &iomem_resource;
kernel/resource.c
1510
struct resource *new_res = NULL;
kernel/resource.c
1512
struct resource **p;
kernel/resource.c
1513
struct resource *res;
kernel/resource.c
1600
static bool system_ram_resources_mergeable(struct resource *r1,
kernel/resource.c
1601
struct resource *r2)
kernel/resource.c
1627
void merge_system_ram_resource(struct resource *res)
kernel/resource.c
1630
struct resource *cur;
kernel/resource.c
1664
struct resource **r = ptr;
kernel/resource.c
1687
int devm_request_resource(struct device *dev, struct resource *root,
kernel/resource.c
1688
struct resource *new)
kernel/resource.c
1690
struct resource *conflict, **ptr;
kernel/resource.c
171
static void free_resource(struct resource *res)
kernel/resource.c
1713
struct resource **ptr = res;
kernel/resource.c
1725
void devm_release_resource(struct device *dev, struct resource *new)
kernel/resource.c
1733
struct resource *parent;
kernel/resource.c
1753
struct resource *
kernel/resource.c
1754
__devm_request_region(struct device *dev, struct resource *parent,
kernel/resource.c
1758
struct resource *res;
kernel/resource.c
1779
void __devm_release_region(struct device *dev, struct resource *parent,
kernel/resource.c
1796
static struct resource reserve[MAXRESERVE];
kernel/resource.c
1801
struct resource *parent;
kernel/resource.c
1808
struct resource *res = reserve + x;
kernel/resource.c
183
static struct resource *alloc_resource(gfp_t flags)
kernel/resource.c
1837
struct resource *p;
kernel/resource.c
185
return kzalloc_obj(struct resource, flags);
kernel/resource.c
1884
bool resource_is_exclusive(struct resource *root, u64 addr, resource_size_t size)
kernel/resource.c
1889
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
1937
struct resource_entry *resource_list_create_entry(struct resource *res,
kernel/resource.c
1970
static resource_size_t gfr_start(struct resource *base, resource_size_t size,
kernel/resource.c
1983
static bool gfr_continue(struct resource *base, resource_size_t addr,
kernel/resource.c
2006
struct resource *res = _res;
kernel/resource.c
2013
static struct resource *
kernel/resource.c
2014
get_free_mem_region(struct device *dev, struct resource *base,
kernel/resource.c
2020
struct resource *res;
kernel/resource.c
2107
struct resource *devm_request_free_mem_region(struct device *dev,
kernel/resource.c
2108
struct resource *base, unsigned long size)
kernel/resource.c
2118
struct resource *request_free_mem_region(struct resource *base,
kernel/resource.c
2140
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 full_avail = *new, avail, alloc;
kernel/resource.c
800
int find_resource_space(struct resource *root, struct resource *new,
kernel/resource.c
818
static int reallocate_resource(struct resource *root, struct resource *old,
kernel/resource.c
823
struct resource new = *old;
kernel/resource.c
824
struct resource *conflict;
kernel/resource.c
869
int allocate_resource(struct resource *root, struct resource *new,
kernel/resource.c
907
struct resource *lookup_resource(struct resource *root, resource_size_t start)
kernel/resource.c
909
struct resource *res;
kernel/resource.c
925
static struct resource * __insert_resource(struct resource *parent, struct resource *new)
kernel/resource.c
927
struct resource *first, *next;
kernel/resource.c
98
struct resource *root = pde_data(file_inode(m->file));
kernel/resource.c
99
struct resource *p;
kernel/resource.c
990
struct resource *insert_resource_conflict(struct resource *parent, struct resource *new)
kernel/resource.c
992
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
72
start = dev->resource[i].start;
kernel/trace/trace_mmiotrace.c
75
(dev->resource[i].flags & PCI_REGION_FLAG_MASK)));
kernel/trace/trace_mmiotrace.c
78
start = dev->resource[i].start;
kernel/trace/trace_mmiotrace.c
79
end = dev->resource[i].end;
kernel/trace/trace_mmiotrace.c
81
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
562
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
348
struct resource test_resource = {
lib/tests/printf_kunit.c
357
test_resource = (struct resource) {
lib/tests/printf_kunit.c
365
test_resource = (struct resource) {
lib/tests/printf_kunit.c
373
test_resource = (struct resource) {
lib/tests/printf_kunit.c
382
test_resource = (struct resource) {
lib/tests/slub_kunit.c
13
static struct kunit_resource resource;
lib/tests/slub_kunit.c
387
kunit_add_named_resource(test, NULL, NULL, &resource,
lib/vsprintf.c
1060
char *resource_string(char *buf, char *end, struct resource *res,
mm/damon/core.c
3649
struct resource res;
mm/damon/core.c
3652
static int damon_system_ram_walk_fn(struct resource *res, void *arg)
mm/memory_hotplug.c
1494
int add_memory_resource(int nid, struct resource *res, mhp_t mhp_flags)
mm/memory_hotplug.c
1604
struct resource *res;
mm/memory_hotplug.c
1653
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
940
struct kunit_resource *resource;
mm/slub.c
945
resource = kunit_find_named_resource(current->kunit_test, "slab_errors");
mm/slub.c
946
if (!resource)
mm/slub.c
949
(*(int *)resource->data)++;
mm/slub.c
950
kunit_put_resource(resource);
mm/slub.c
956
struct kunit_resource *resource;
mm/slub.c
961
resource = kunit_find_named_resource(current->kunit_test, "slab_errors");
mm/slub.c
962
if (!resource)
mm/slub.c
965
kunit_put_resource(resource);
net/devlink/devl_internal.h
323
struct devlink_resource *resource,
net/devlink/resource.c
104
if (size < resource->size_params.size_min) {
net/devlink/resource.c
109
div64_u64_rem(size, resource->size_params.size_granularity, &reminder);
net/devlink/resource.c
121
struct devlink_resource *resource;
net/devlink/resource.c
131
resource = devlink_resource_find(devlink, NULL, resource_id);
net/devlink/resource.c
132
if (!resource)
net/devlink/resource.c
136
err = devlink_resource_validate_size(resource, size, info->extack);
net/devlink/resource.c
140
resource->size_new = size;
net/devlink/resource.c
141
devlink_resource_validate_children(resource);
net/devlink/resource.c
142
if (resource->parent)
net/devlink/resource.c
143
devlink_resource_validate_children(resource->parent);
net/devlink/resource.c
148
devlink_resource_size_params_put(struct devlink_resource *resource,
net/devlink/resource.c
153
size_params = &resource->size_params;
net/devlink/resource.c
165
static int devlink_resource_occ_put(struct devlink_resource *resource,
net/devlink/resource.c
168
if (!resource->occ_get)
net/devlink/resource.c
171
resource->occ_get(resource->occ_get_priv));
net/devlink/resource.c
175
struct devlink_resource *resource)
net/devlink/resource.c
185
if (nla_put_string(skb, DEVLINK_ATTR_RESOURCE_NAME, resource->name) ||
net/devlink/resource.c
186
devlink_nl_put_u64(skb, DEVLINK_ATTR_RESOURCE_SIZE, resource->size) ||
net/devlink/resource.c
187
devlink_nl_put_u64(skb, DEVLINK_ATTR_RESOURCE_ID, resource->id))
net/devlink/resource.c
189
if (resource->size != resource->size_new &&
net/devlink/resource.c
191
resource->size_new))
net/devlink/resource.c
193
if (devlink_resource_occ_put(resource, skb))
net/devlink/resource.c
195
if (devlink_resource_size_params_put(resource, skb))
net/devlink/resource.c
197
if (list_empty(&resource->resource_list))
net/devlink/resource.c
201
resource->size_valid))
net/devlink/resource.c
209
list_for_each_entry(child_resource, &resource->resource_list, list) {
net/devlink/resource.c
231
struct devlink_resource *resource;
net/devlink/resource.c
235
list_for_each_entry(resource, resource_list_head, list) {
net/devlink/resource.c
240
err = devlink_resource_put(devlink, skb, resource);
net/devlink/resource.c
256
struct devlink_resource *resource;
net/devlink/resource.c
268
resource = list_first_entry(resource_list,
net/devlink/resource.c
295
list_for_each_entry_from(resource, resource_list, list) {
net/devlink/resource.c
296
err = devlink_resource_put(devlink, skb, resource);
net/devlink/resource.c
40
struct devlink_resource *resource,
net/devlink/resource.c
45
if (resource)
net/devlink/resource.c
457
struct devlink_resource *resource,
net/devlink/resource.c
46
resource_list = &resource->resource_list;
net/devlink/resource.c
463
if (resource)
net/devlink/resource.c
464
resource_list = &resource->resource_list;
net/devlink/resource.c
468
list_for_each_entry(resource, resource_list, list) {
net/devlink/resource.c
469
if (!resource->size_valid)
net/devlink/resource.c
471
err = devlink_resources_validate(devlink, resource, info);
net/devlink/resource.c
485
struct devlink_resource *resource;
net/devlink/resource.c
495
resource = __devlink_resource_find(resource_list_head, NULL,
net/devlink/resource.c
497
if (resource)
net/devlink/resource.c
50
list_for_each_entry(resource, resource_list, list) {
net/devlink/resource.c
500
resource = kzalloc_obj(*resource);
net/devlink/resource.c
501
if (!resource)
net/devlink/resource.c
514
resource->parent = parent_resource;
net/devlink/resource.c
516
kfree(resource);
net/devlink/resource.c
521
resource->name = resource_name;
net/devlink/resource.c
522
resource->size = resource_size;
net/devlink/resource.c
523
resource->size_new = resource_size;
net/devlink/resource.c
524
resource->id = resource_id;
net/devlink/resource.c
525
resource->size_valid = true;
net/devlink/resource.c
526
memcpy(&resource->size_params, params, sizeof(resource->size_params));
net/devlink/resource.c
527
INIT_LIST_HEAD(&resource->resource_list);
net/devlink/resource.c
528
list_add_tail(&resource->list, resource_list);
net/devlink/resource.c
53
if (resource->id == resource_id)
net/devlink/resource.c
54
return resource;
net/devlink/resource.c
561
static void devlink_resource_unregister(struct devlink_resource *resource)
net/devlink/resource.c
565
list_for_each_entry_safe(child_resource, tmp, &resource->resource_list,
net/devlink/resource.c
57
resource,
net/devlink/resource.c
626
struct devlink_resource *resource;
net/devlink/resource.c
630
resource = devlink_resource_find(devlink, NULL, resource_id);
net/devlink/resource.c
631
if (!resource)
net/devlink/resource.c
633
*p_resource_size = resource->size_new;
net/devlink/resource.c
634
resource->size = resource->size_new;
net/devlink/resource.c
652
struct devlink_resource *resource;
net/devlink/resource.c
656
resource = devlink_resource_find(devlink, NULL, resource_id);
net/devlink/resource.c
657
if (WARN_ON(!resource))
net/devlink/resource.c
659
WARN_ON(resource->occ_get);
net/devlink/resource.c
661
resource->occ_get = occ_get;
net/devlink/resource.c
662
resource->occ_get_priv = occ_get_priv;
net/devlink/resource.c
67
struct devlink_resource *resource, u64 resource_id)
net/devlink/resource.c
675
struct devlink_resource *resource;
net/devlink/resource.c
679
resource = devlink_resource_find(devlink, NULL, resource_id);
net/devlink/resource.c
680
if (WARN_ON(!resource))
net/devlink/resource.c
682
WARN_ON(!resource->occ_get);
net/devlink/resource.c
684
resource->occ_get = NULL;
net/devlink/resource.c
685
resource->occ_get_priv = NULL;
net/devlink/resource.c
70
resource, resource_id);
net/devlink/resource.c
74
devlink_resource_validate_children(struct devlink_resource *resource)
net/devlink/resource.c
80
if (list_empty(&resource->resource_list))
net/devlink/resource.c
83
list_for_each_entry(child_resource, &resource->resource_list, list)
net/devlink/resource.c
86
if (parts_size > resource->size_new)
net/devlink/resource.c
89
resource->size_valid = size_valid;
net/devlink/resource.c
93
devlink_resource_validate_size(struct devlink_resource *resource, u64 size,
net/devlink/resource.c
99
if (size > resource->size_params.size_max) {
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
874
newpn->pn_sk.resource = pn_sockaddr_get_resource(&dst);
net/phonet/socket.c
191
pn->resource = spn->spn_resource;
net/phonet/socket.c
258
pn->resource = pn_sockaddr_get_resource(spn);
net/phonet/socket.c
591
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
1000
unsigned int resource, struct rlimit *new_rlim)
security/apparmor/lsm.c
1010
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
3236
int security_task_setrlimit(struct task_struct *p, unsigned int resource,
security/security.c
3239
return call_int_hook(task_setrlimit, p, resource, new_rlim);
security/selinux/hooks.c
4546
static int selinux_task_setrlimit(struct task_struct *p, unsigned int resource,
security/selinux/hooks.c
4549
struct rlimit *old_rlim = p->signal->rlim + resource;
sound/aoa/soundbus/i2sbus/core.c
115
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
696
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
100
struct resource *i2c_res;
sound/isa/opl3sa2.c
107
struct resource *res_port; /* control port resource */
sound/isa/opti9xx/miro.c
115
struct resource *res_mc_base;
sound/isa/opti9xx/miro.c
116
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
1000
struct resource *wss_res;
sound/isa/sscape.c
141
struct resource *io_res;
sound/isa/sscape.c
142
struct resource *wss_res;
sound/isa/sscape.c
999
struct resource *io_res;
sound/pci/als300.c
114
struct resource *res_port;
sound/pci/als4000.c
733
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
2796
struct resource *r = NULL;
sound/pci/echoaudio/echoaudio.h
335
struct resource *iores;
sound/pci/es1968.c
2390
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
459
const struct resource *res,
sound/soc/amd/ps/pci-ps.c
483
adata->res = devm_kzalloc(&pci->dev, sizeof(struct resource), GFP_KERNEL);
sound/soc/amd/ps/ps-pdm-dma.c
360
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
225
sizeof(struct resource),
sound/soc/apple/mca.c
1033
struct resource *res;
sound/soc/atmel/atmel-classd.c
526
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
1085
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
638
struct resource *res,
sound/soc/dwc/dwc-i2s.c
693
struct resource *res)
sound/soc/dwc/dwc-i2s.c
918
struct resource *res;
sound/soc/fsl/fsl_asrc.c
1234
struct resource *res;
sound/soc/fsl/fsl_aud2htx.c
188
struct resource *res;
sound/soc/fsl/fsl_dma.c
826
struct resource res;
sound/soc/fsl/fsl_easrc.c
2155
struct resource *res;
sound/soc/fsl/fsl_esai.c
958
struct resource *res;
sound/soc/fsl/fsl_micfil.c
1504
struct resource *res;
sound/soc/fsl/fsl_sai.h
294
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
36
struct resource res;
sound/soc/fsl/fsl_xcvr.c
1629
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
547
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
685
struct resource *res;
sound/soc/img/img-spdif-out.c
318
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
121
void catpt_dsp_update_srampge(struct catpt_dev *cdev, struct resource *sram,
sound/soc/intel/catpt/core.h
158
struct resource *persistent;
sound/soc/intel/catpt/core.h
20
void catpt_sram_free(struct resource *sram);
sound/soc/intel/catpt/core.h
21
struct resource *
sound/soc/intel/catpt/core.h
22
catpt_request_region(struct resource *root, resource_size_t size);
sound/soc/intel/catpt/core.h
90
struct resource dram;
sound/soc/intel/catpt/core.h
91
struct resource iram;
sound/soc/intel/catpt/core.h
92
struct resource *scratch;
sound/soc/intel/catpt/device.c
247
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
208
struct resource r = {};
sound/soc/intel/catpt/loader.c
241
struct resource r1 = {};
sound/soc/intel/catpt/loader.c
253
struct resource common = {};
sound/soc/intel/catpt/loader.c
254
struct resource r2 = {};
sound/soc/intel/catpt/loader.c
290
struct resource *sram, *res;
sound/soc/intel/catpt/loader.c
54
void catpt_sram_free(struct resource *sram)
sound/soc/intel/catpt/loader.c
56
struct resource *res, *save;
sound/soc/intel/catpt/loader.c
636
struct resource *res;
sound/soc/intel/catpt/loader.c
66
struct resource *
sound/soc/intel/catpt/loader.c
67
catpt_request_region(struct resource *root, resource_size_t size)
sound/soc/intel/catpt/loader.c
69
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
217
struct resource *persistent,
sound/soc/intel/catpt/messages.h
218
struct resource *scratch,
sound/soc/intel/catpt/pcm.c
1036
struct resource *res;
sound/soc/intel/catpt/pcm.c
271
struct resource *res;
sound/soc/intel/keembay/kmb_platform.c
825
struct resource *res;
sound/soc/jz4740/jz4740-i2s.c
541
struct resource *mem;
sound/soc/loongson/loongson1_ac97.c
293
struct resource *res;
sound/soc/loongson/loongson_i2s_plat.c
54
struct resource *res;
sound/soc/mediatek/mt8365/mt8365-afe-pcm.c
2104
struct resource *res;
sound/soc/pxa/mmp-sspa.c
493
struct resource *res;
sound/soc/pxa/pxa2xx-ac97.c
226
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
1994
struct resource *res;
sound/soc/renesas/rcar/dma.c
981
struct resource *res;
sound/soc/renesas/rcar/gen.c
165
struct resource *res;
sound/soc/renesas/rcar/msiof.c
558
struct resource *res;
sound/soc/renesas/rz-ssi.c
1011
struct resource *res;
sound/soc/renesas/siu_dai.c
719
struct resource *res, *region;
sound/soc/rockchip/rockchip_i2s.c
675
static int rockchip_i2s_init_dai(struct rk_i2s_dev *i2s, struct resource *res,
sound/soc/rockchip/rockchip_i2s.c
749
struct resource *res;
sound/soc/rockchip/rockchip_i2s_tdm.c
1233
struct resource *res;
sound/soc/rockchip/rockchip_pdm.c
579
struct resource *res;
sound/soc/rockchip/rockchip_sai.c
1103
static int rockchip_sai_init_dai(struct rk_sai_dev *sai, struct resource *res,
sound/soc/rockchip/rockchip_sai.c
1393
struct resource *res;
sound/soc/rockchip/rockchip_spdif.c
338
struct resource *res;
sound/soc/samsung/i2s.c
1384
struct resource *res;
sound/soc/samsung/pcm.c
471
struct resource *mem_res;
sound/soc/samsung/spdif.c
355
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
429
struct resource *res;
sound/soc/spear/spdif_in.c
203
struct resource *res_fifo;
sound/soc/spear/spdif_out.c
282
struct resource *res;
sound/soc/sprd/sprd-mcdt.c
884
struct resource *res)
sound/soc/sprd/sprd-mcdt.c
913
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
1187
struct resource *res;
sound/soc/stm/stm32_sai_sub.c
1502
struct resource *res;
sound/soc/stm/stm32_spdifrx.c
899
struct resource *res;
sound/soc/sunxi/sun4i-codec.c
2298
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
344
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
345
struct resource *mem;
sound/soc/tegra/tegra210_admaif.c
919
struct resource *res;
sound/soc/tegra/tegra210_mbdrc.c
991
struct resource mem;
sound/soc/tegra/tegra210_peq.c
407
struct resource mem;
sound/soc/tegra/tegra30_ahub.c
517
struct resource *res0;
sound/soc/ti/davinci-i2s.c
784
struct resource *mem, *res;
sound/soc/ti/davinci-mcasp.c
2737
struct resource *mem, *dat;
sound/soc/ti/omap-dmic.c
454
struct resource *res;
sound/soc/ti/omap-mcbsp-st.c
328
struct resource *res;
sound/soc/ti/omap-mcbsp.c
609
struct resource *res;
sound/soc/ti/omap-mcpdm.c
540
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
2529
dbri->regs_size = resource_size(&op->resource[0]);
sound/sparc/dbri.c
2530
dbri->regs = of_ioremap(&op->resource[0], 0,
sound/sparc/dbri.c
2543
of_iounmap(&op->resource[0], dbri->regs, dbri->regs_size);
sound/sparc/dbri.c
2569
of_iounmap(&dbri->op->resource[0], dbri->regs, dbri->regs_size);
sound/sparc/dbri.c
2580
struct resource *rp;
sound/sparc/dbri.c
2606
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 __nolibc_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
1215
.arg = { [0] = STRARRAY(resource, rlimit_resources), }, },
tools/perf/builtin-trace.c
1321
.arg = { [1] = STRARRAY(resource, rlimit_resources),
tools/perf/builtin-trace.c
1369
.arg = { [0] = STRARRAY(resource, rlimit_resources),
tools/testing/cxl/test/cxl.c
1440
struct resource *res = &cxlds->part[i].res;
tools/testing/cxl/test/cxl.c
1465
struct resource window =
tools/testing/cxl/test/cxl.c
1480
struct resource res = DEFINE_RES_MEM(start, size);
tools/testing/cxl/test/cxl.c
1482
struct resource window =
tools/testing/cxl/test/cxl.c
1495
struct resource res = DEFINE_RES_MEM(start, size);
tools/testing/cxl/test/cxl.c
1497
struct resource window =
tools/testing/cxl/test/cxl.c
649
mock_hmat_get_extended_linear_cache_size(struct resource *backing_res,
tools/testing/cxl/test/cxl.c
653
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
28
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/cache.c
176
if (!strcmp(test->resource, "L3") && resctrl_resource_exists("L2"))
tools/testing/selftests/resctrl/cat_test.c
179
ret = write_schemata("", schemata, uparams->cpu, test->resource);
tools/testing/selftests/resctrl/cat_test.c
183
ret = write_schemata(param->ctrlgrp, schemata, uparams->cpu, test->resource);
tools/testing/selftests/resctrl/cat_test.c
224
ret = get_full_cbm(test->resource, &full_cache_mask);
tools/testing/selftests/resctrl/cat_test.c
228
ret = get_mask_no_shareable(test->resource, &long_mask);
tools/testing/selftests/resctrl/cat_test.c
233
ret = get_cache_size(uparams->cpu, test->resource, &cache_total_size);
tools/testing/selftests/resctrl/cat_test.c
265
ret = check_results(&param, test->resource,
tools/testing/selftests/resctrl/cat_test.c
281
if (!strcmp(test->resource, "L3"))
tools/testing/selftests/resctrl/cat_test.c
283
else if (!strcmp(test->resource, "L2"))
tools/testing/selftests/resctrl/cat_test.c
303
ret = resource_info_unsigned_get(test->resource, "sparse_masks", &sparse_masks);
tools/testing/selftests/resctrl/cat_test.c
313
ret = get_full_cbm(test->resource, &full_cache_mask);
tools/testing/selftests/resctrl/cat_test.c
329
ret = write_schemata("", schemata, uparams->cpu, test->resource);
tools/testing/selftests/resctrl/cat_test.c
341
ret = write_schemata("", schemata, uparams->cpu, test->resource);
tools/testing/selftests/resctrl/cat_test.c
354
if (!resctrl_resource_exists(test->resource))
tools/testing/selftests/resctrl/cat_test.c
357
return resource_info_file_exists(test->resource, "sparse_masks");
tools/testing/selftests/resctrl/cat_test.c
363
.resource = "L3",
tools/testing/selftests/resctrl/cat_test.c
372
.resource = "L3",
tools/testing/selftests/resctrl/cat_test.c
380
.resource = "L2",
tools/testing/selftests/resctrl/cmt_test.c
214
.resource = "L3",
tools/testing/selftests/resctrl/cmt_test.c
41
ret = get_full_cbm(test->resource, &full_mask);
tools/testing/selftests/resctrl/cmt_test.c
46
ret = write_schemata("", schemata, uparams->cpu, test->resource);
tools/testing/selftests/resctrl/cmt_test.c
51
ret = write_schemata(param->ctrlgrp, schemata, uparams->cpu, test->resource);
tools/testing/selftests/resctrl/mba_test.c
220
.resource = "MB",
tools/testing/selftests/resctrl/mba_test.c
61
ret = write_schemata(p->ctrlgrp, allocation_str, uparams->cpu, test->resource);
tools/testing/selftests/resctrl/mbm_test.c
113
ret = write_schemata(p->ctrlgrp, "100", uparams->cpu, test->resource);
tools/testing/selftests/resctrl/mbm_test.c
179
.resource = "MB",
tools/testing/selftests/resctrl/resctrl.h
107
const char *resource;
tools/testing/selftests/resctrl/resctrl.h
166
int get_domain_id(const char *resource, int cpu_no, int *domain_id);
tools/testing/selftests/resctrl/resctrl.h
169
bool resctrl_resource_exists(const char *resource);
tools/testing/selftests/resctrl/resctrl.h
170
bool resctrl_mon_feature_exists(const char *resource, const char *feature);
tools/testing/selftests/resctrl/resctrl.h
171
bool resource_info_file_exists(const char *resource, const char *file);
tools/testing/selftests/resctrl/resctrl.h
177
const char *resource);
tools/testing/selftests/resctrl/resctrl.h
198
int resource_info_unsigned_get(const char *resource, const char *filename, unsigned int *val);
tools/testing/selftests/resctrl/resctrl_val.c
620
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);