Home
last modified time | relevance | path

Searched refs:slot_pdev (Results 1 – 4 of 4) sorted by relevance

/openbmc/linux/drivers/mmc/host/
H A Dcavium-thunderx.c140 host->slot_pdev[i] = of_platform_device_create(child_node, NULL, in thunder_mmc_probe()
142 if (!host->slot_pdev[i]) in thunder_mmc_probe()
145 ret = cvm_mmc_of_slot_probe(&host->slot_pdev[i]->dev, host); in thunder_mmc_probe()
160 if (host->slot_pdev[i]) { in thunder_mmc_probe()
161 get_device(&host->slot_pdev[i]->dev); in thunder_mmc_probe()
162 of_platform_device_destroy(&host->slot_pdev[i]->dev, NULL); in thunder_mmc_probe()
163 put_device(&host->slot_pdev[i]->dev); in thunder_mmc_probe()
H A Dcavium-octeon.c272 host->slot_pdev[i] = in octeon_mmc_probe()
274 if (!host->slot_pdev[i]) { in octeon_mmc_probe()
278 ret = cvm_mmc_of_slot_probe(&host->slot_pdev[i]->dev, host); in octeon_mmc_probe()
293 if (host->slot_pdev[i]) in octeon_mmc_probe()
294 of_platform_device_destroy(&host->slot_pdev[i]->dev, NULL); in octeon_mmc_probe()
H A Dmeson-mx-sdio.c631 struct platform_device *slot_pdev; in meson_mx_mmc_probe() local
637 slot_pdev = meson_mx_mmc_slot_pdev(&pdev->dev); in meson_mx_mmc_probe()
638 if (!slot_pdev) in meson_mx_mmc_probe()
640 else if (IS_ERR(slot_pdev)) in meson_mx_mmc_probe()
641 return PTR_ERR(slot_pdev); in meson_mx_mmc_probe()
643 mmc = mmc_alloc_host(sizeof(*host), &slot_pdev->dev); in meson_mx_mmc_probe()
727 of_platform_device_destroy(&slot_pdev->dev, NULL); in meson_mx_mmc_probe()
H A Dcavium.h82 struct platform_device *slot_pdev[CAVIUM_MAX_MMC]; member