Home
last modified time | relevance | path

Searched refs:res_mem (Results 1 – 24 of 24) sorted by relevance

/drivers/gpio/
Dgpio-octeon.c85 struct resource *res_mem; in octeon_gpio_probe() local
93 res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in octeon_gpio_probe()
94 if (res_mem == NULL) { in octeon_gpio_probe()
99 if (!devm_request_mem_region(&pdev->dev, res_mem->start, in octeon_gpio_probe()
100 resource_size(res_mem), in octeon_gpio_probe()
101 res_mem->name)) { in octeon_gpio_probe()
106 gpio->register_base = (u64)devm_ioremap(&pdev->dev, res_mem->start, in octeon_gpio_probe()
107 resource_size(res_mem)); in octeon_gpio_probe()
/drivers/usb/host/
Dehci-octeon.c96 struct resource *res_mem; in ehci_octeon_drv_probe() local
109 res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in ehci_octeon_drv_probe()
110 if (res_mem == NULL) { in ehci_octeon_drv_probe()
128 hcd->rsrc_start = res_mem->start; in ehci_octeon_drv_probe()
129 hcd->rsrc_len = resource_size(res_mem); in ehci_octeon_drv_probe()
131 hcd->regs = devm_ioremap_resource(&pdev->dev, res_mem); in ehci_octeon_drv_probe()
Dohci-octeon.c110 struct resource *res_mem; in ohci_octeon_drv_probe() local
123 res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in ohci_octeon_drv_probe()
124 if (res_mem == NULL) { in ohci_octeon_drv_probe()
138 hcd->rsrc_start = res_mem->start; in ohci_octeon_drv_probe()
139 hcd->rsrc_len = resource_size(res_mem); in ohci_octeon_drv_probe()
141 reg_base = devm_ioremap_resource(&pdev->dev, res_mem); in ohci_octeon_drv_probe()
Dohci-st.c135 struct resource *res_mem; in st_ohci_platform_probe() local
150 res_mem = platform_get_resource(dev, IORESOURCE_MEM, 0); in st_ohci_platform_probe()
151 if (!res_mem) { in st_ohci_platform_probe()
209 hcd->rsrc_start = res_mem->start; in st_ohci_platform_probe()
210 hcd->rsrc_len = resource_size(res_mem); in st_ohci_platform_probe()
212 hcd->regs = devm_ioremap_resource(&dev->dev, res_mem); in st_ohci_platform_probe()
Dohci-platform.c126 struct resource *res_mem; in ohci_platform_probe() local
152 res_mem = platform_get_resource(dev, IORESOURCE_MEM, 0); in ohci_platform_probe()
153 if (!res_mem) { in ohci_platform_probe()
239 hcd->rsrc_start = res_mem->start; in ohci_platform_probe()
240 hcd->rsrc_len = resource_size(res_mem); in ohci_platform_probe()
242 hcd->regs = devm_ioremap_resource(&dev->dev, res_mem); in ohci_platform_probe()
Dehci-st.c159 struct resource *res_mem; in st_ehci_platform_probe() local
173 res_mem = platform_get_resource(dev, IORESOURCE_MEM, 0); in st_ehci_platform_probe()
174 if (!res_mem) { in st_ehci_platform_probe()
236 hcd->rsrc_start = res_mem->start; in st_ehci_platform_probe()
237 hcd->rsrc_len = resource_size(res_mem); in st_ehci_platform_probe()
239 hcd->regs = devm_ioremap_resource(&dev->dev, res_mem); in st_ehci_platform_probe()
Dehci-platform.c142 struct resource *res_mem; in ehci_platform_probe() local
167 res_mem = platform_get_resource(dev, IORESOURCE_MEM, 0); in ehci_platform_probe()
168 if (!res_mem) { in ehci_platform_probe()
253 hcd->rsrc_start = res_mem->start; in ehci_platform_probe()
254 hcd->rsrc_len = resource_size(res_mem); in ehci_platform_probe()
256 hcd->regs = devm_ioremap_resource(&dev->dev, res_mem); in ehci_platform_probe()
/drivers/net/can/sja1000/
Dsja1000_platform.c163 struct resource *res_mem, *res_irq = NULL; in sp_probe() local
173 res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in sp_probe()
174 if (!res_mem) in sp_probe()
177 if (!devm_request_mem_region(&pdev->dev, res_mem->start, in sp_probe()
178 resource_size(res_mem), DRV_NAME)) in sp_probe()
181 addr = devm_ioremap_nocache(&pdev->dev, res_mem->start, in sp_probe()
182 resource_size(res_mem)); in sp_probe()
214 sp_populate(priv, pdata, res_mem->flags); in sp_probe()
/drivers/spi/
Dspi-octeon.c177 struct resource *res_mem; in octeon_spi_probe() local
188 res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in octeon_spi_probe()
190 if (res_mem == NULL) { in octeon_spi_probe()
195 if (!devm_request_mem_region(&pdev->dev, res_mem->start, in octeon_spi_probe()
196 resource_size(res_mem), res_mem->name)) { in octeon_spi_probe()
200 p->register_base = (u64)devm_ioremap(&pdev->dev, res_mem->start, in octeon_spi_probe()
201 resource_size(res_mem)); in octeon_spi_probe()
Dspi-bcm63xx-hsspi.c326 struct resource *res_mem; in bcm63xx_hsspi_probe() local
339 res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in bcm63xx_hsspi_probe()
340 regs = devm_ioremap_resource(dev, res_mem); in bcm63xx_hsspi_probe()
/drivers/net/phy/
Dmdio-octeon.c181 struct resource *res_mem; in octeon_mdiobus_probe() local
189 res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in octeon_mdiobus_probe()
191 if (res_mem == NULL) { in octeon_mdiobus_probe()
196 bus->mdio_phys = res_mem->start; in octeon_mdiobus_probe()
197 bus->regsize = resource_size(res_mem); in octeon_mdiobus_probe()
199 res_mem->name)) { in octeon_mdiobus_probe()
/drivers/pcmcia/
Dsa11xx_base.c183 skt->res_mem.start = _PCMCIAMem(skt->nr); in sa11xx_drv_pcmcia_add_one()
184 skt->res_mem.end = _PCMCIAMem(skt->nr) + PCMCIAMemSp - 1; in sa11xx_drv_pcmcia_add_one()
185 skt->res_mem.name = "memory"; in sa11xx_drv_pcmcia_add_one()
186 skt->res_mem.flags = IORESOURCE_MEM; in sa11xx_drv_pcmcia_add_one()
Dpxa2xx_base.c255 skt->res_mem.start = _PCMCIAMem(skt->nr); in pxa2xx_drv_pcmcia_add_one()
256 skt->res_mem.end = _PCMCIAMem(skt->nr) + PCMCIAMemSp - 1; in pxa2xx_drv_pcmcia_add_one()
257 skt->res_mem.name = "memory"; in pxa2xx_drv_pcmcia_add_one()
258 skt->res_mem.flags = IORESOURCE_MEM; in pxa2xx_drv_pcmcia_add_one()
Dsoc_common.c541 res = &skt->res_mem; in soc_common_pcmcia_set_mem_map()
715 release_resource(&skt->res_mem); in soc_pcmcia_remove_one()
738 ret = request_resource(&skt->res_skt, &skt->res_mem); in soc_pcmcia_add_one()
804 release_resource(&skt->res_mem); in soc_pcmcia_add_one()
Dsoc_common.h49 struct resource res_mem; member
/drivers/i2c/busses/
Di2c-octeon.c515 struct resource *res_mem; in octeon_i2c_probe() local
530 res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in octeon_i2c_probe()
532 if (res_mem == NULL) { in octeon_i2c_probe()
537 i2c->twsi_phys = res_mem->start; in octeon_i2c_probe()
538 i2c->regsize = resource_size(res_mem); in octeon_i2c_probe()
558 res_mem->name)) { in octeon_i2c_probe()
/drivers/net/can/
Dbfin_can.c539 struct resource *res_mem, *rx_irq, *tx_irq, *err_irq; in bfin_can_probe() local
549 res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in bfin_can_probe()
553 if (!res_mem || !rx_irq || !tx_irq || !err_irq) { in bfin_can_probe()
558 if (!request_mem_region(res_mem->start, resource_size(res_mem), in bfin_can_probe()
576 priv->membase = (void __iomem *)res_mem->start; in bfin_can_probe()
609 release_mem_region(res_mem->start, resource_size(res_mem)); in bfin_can_probe()
/drivers/tty/serial/
Daltera_jtaguart.c407 struct resource *res_irq, *res_mem; in altera_jtaguart_probe() local
419 res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in altera_jtaguart_probe()
420 if (res_mem) in altera_jtaguart_probe()
421 port->mapbase = res_mem->start; in altera_jtaguart_probe()
Daltera_uart.c538 struct resource *res_mem; in altera_uart_probe() local
555 res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in altera_uart_probe()
556 if (res_mem) in altera_uart_probe()
557 port->mapbase = res_mem->start; in altera_uart_probe()
Dmeson_uart.c526 struct resource *res_mem, *res_irq; in meson_uart_probe() local
537 res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in meson_uart_probe()
538 if (!res_mem) in meson_uart_probe()
560 port->mapbase = res_mem->start; in meson_uart_probe()
Dbcm63xx_uart.c805 struct resource *res_mem, *res_irq; in bcm_uart_probe() local
819 res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in bcm_uart_probe()
820 if (!res_mem) in bcm_uart_probe()
834 port->mapbase = res_mem->start; in bcm_uart_probe()
/drivers/ata/
Dpata_mpc52xx.c674 struct resource res_mem; in mpc52xx_ata_probe() local
693 rv = of_address_to_resource(op->dev.of_node, 0, &res_mem); in mpc52xx_ata_probe()
699 if (!devm_request_mem_region(&op->dev, res_mem.start, in mpc52xx_ata_probe()
705 ata_regs = devm_ioremap(&op->dev, res_mem.start, sizeof(*ata_regs)); in mpc52xx_ata_probe()
748 priv->ata_regs_pa = res_mem.start; in mpc52xx_ata_probe()
786 rv = mpc52xx_ata_init_one(&op->dev, priv, res_mem.start, in mpc52xx_ata_probe()
/drivers/net/ethernet/broadcom/
Dbcm63xx_enet.c1734 struct resource *res_mem, *res_irq, *res_irq_rx, *res_irq_tx; in bcm_enet_probe() local
1763 res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in bcm_enet_probe()
1764 priv->base = devm_ioremap_resource(&pdev->dev, res_mem); in bcm_enet_probe()
2709 struct resource *res_mem; in bcm_enetsw_probe() local
2718 res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in bcm_enetsw_probe()
2721 if (!res_mem || irq_rx < 0) in bcm_enetsw_probe()
2755 if (!request_mem_region(res_mem->start, resource_size(res_mem), in bcm_enetsw_probe()
2761 priv->base = ioremap(res_mem->start, resource_size(res_mem)); in bcm_enetsw_probe()
2809 release_mem_region(res_mem->start, resource_size(res_mem)); in bcm_enetsw_probe()
/drivers/staging/octeon-usb/
Docteon-hcd.c3725 struct resource *res_mem; in octeon_usb_probe() local
3777 res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in octeon_usb_probe()
3778 if (res_mem == NULL) { in octeon_usb_probe()
3782 usb_num = (res_mem->start >> 44) & 1; in octeon_usb_probe()