Home
last modified time | relevance | path

Searched refs:pdev (Results 1 – 5 of 5) sorted by relevance

/net/rfkill/
Drfkill-gpio.c81 static int rfkill_gpio_probe(struct platform_device *pdev) in rfkill_gpio_probe() argument
83 struct rfkill_gpio_platform_data *pdata = pdev->dev.platform_data; in rfkill_gpio_probe()
88 rfkill = devm_kzalloc(&pdev->dev, sizeof(*rfkill), GFP_KERNEL); in rfkill_gpio_probe()
92 if (ACPI_HANDLE(&pdev->dev)) { in rfkill_gpio_probe()
93 ret = rfkill_gpio_acpi_probe(&pdev->dev, rfkill); in rfkill_gpio_probe()
103 rfkill->clk = devm_clk_get(&pdev->dev, NULL); in rfkill_gpio_probe()
105 gpio = devm_gpiod_get_index(&pdev->dev, "reset", 0); in rfkill_gpio_probe()
113 gpio = devm_gpiod_get_index(&pdev->dev, "shutdown", 1); in rfkill_gpio_probe()
125 dev_err(&pdev->dev, "invalid platform data\n"); in rfkill_gpio_probe()
129 rfkill->rfkill_dev = rfkill_alloc(rfkill->name, &pdev->dev, in rfkill_gpio_probe()
[all …]
Drfkill-regulator.c60 static int rfkill_regulator_probe(struct platform_device *pdev) in rfkill_regulator_probe() argument
62 struct rfkill_regulator_platform_data *pdata = pdev->dev.platform_data; in rfkill_regulator_probe()
69 dev_err(&pdev->dev, "no platform data\n"); in rfkill_regulator_probe()
74 dev_err(&pdev->dev, "invalid name or type in platform data\n"); in rfkill_regulator_probe()
78 vcc = regulator_get_exclusive(&pdev->dev, "vrfkill"); in rfkill_regulator_probe()
80 dev_err(&pdev->dev, "Cannot get vcc for %s\n", pdata->name); in rfkill_regulator_probe()
91 rf_kill = rfkill_alloc(pdata->name, &pdev->dev, in rfkill_regulator_probe()
100 dev_dbg(&pdev->dev, "Regulator already enabled\n"); in rfkill_regulator_probe()
108 dev_err(&pdev->dev, "Cannot register rfkill device\n"); in rfkill_regulator_probe()
112 platform_set_drvdata(pdev, rfkill_data); in rfkill_regulator_probe()
[all …]
/net/dsa/
Ddsa.c439 static int dsa_of_probe(struct platform_device *pdev) in dsa_of_probe() argument
441 struct device_node *np = pdev->dev.of_node; in dsa_of_probe()
472 pdev->dev.platform_data = pd; in dsa_of_probe()
542 pdev->dev.platform_data = NULL; in dsa_of_probe()
546 static void dsa_of_remove(struct platform_device *pdev) in dsa_of_remove() argument
548 struct dsa_platform_data *pd = pdev->dev.platform_data; in dsa_of_remove()
550 if (!pdev->dev.of_node) in dsa_of_remove()
557 static inline int dsa_of_probe(struct platform_device *pdev) in dsa_of_probe() argument
562 static inline void dsa_of_remove(struct platform_device *pdev) in dsa_of_remove() argument
567 static int dsa_probe(struct platform_device *pdev) in dsa_probe() argument
[all …]
/net/bridge/
Dbr_mdb.c270 struct net_device **pdev, struct br_mdb_entry **pentry) in br_mdb_parse() argument
300 *pdev = dev; in br_mdb_parse()
/net/core/
Ddev.c2518 struct device *pdev = dev->dev.parent; in illegal_highdma() local
2520 if (!pdev) in illegal_highdma()
2525 if (!pdev->dma_mask || addr + PAGE_SIZE - 1 > *pdev->dma_mask) in illegal_highdma()