Searched refs:pdev (Results 1 – 5 of 5) sorted by relevance
/net/rfkill/ |
D | rfkill-gpio.c | 87 static int rfkill_gpio_probe(struct platform_device *pdev) in rfkill_gpio_probe() argument 94 rfkill = devm_kzalloc(&pdev->dev, sizeof(*rfkill), GFP_KERNEL); in rfkill_gpio_probe() 98 device_property_read_string(&pdev->dev, "name", &rfkill->name); in rfkill_gpio_probe() 99 device_property_read_string(&pdev->dev, "type", &type_name); in rfkill_gpio_probe() 102 rfkill->name = dev_name(&pdev->dev); in rfkill_gpio_probe() 106 if (ACPI_HANDLE(&pdev->dev)) { in rfkill_gpio_probe() 107 ret = rfkill_gpio_acpi_probe(&pdev->dev, rfkill); in rfkill_gpio_probe() 112 rfkill->clk = devm_clk_get(&pdev->dev, NULL); in rfkill_gpio_probe() 114 gpio = devm_gpiod_get_optional(&pdev->dev, "reset", GPIOD_OUT_LOW); in rfkill_gpio_probe() 120 gpio = devm_gpiod_get_optional(&pdev->dev, "shutdown", GPIOD_OUT_LOW); in rfkill_gpio_probe() [all …]
|
/net/dsa/ |
D | legacy.c | 612 static int dsa_probe(struct platform_device *pdev) in dsa_probe() argument 614 struct dsa_platform_data *pd = pdev->dev.platform_data; in dsa_probe() 619 if (pdev->dev.of_node) { in dsa_probe() 620 ret = dsa_of_probe(&pdev->dev); in dsa_probe() 624 pd = pdev->dev.platform_data; in dsa_probe() 647 dst = devm_kzalloc(&pdev->dev, sizeof(*dst), GFP_KERNEL); in dsa_probe() 654 platform_set_drvdata(pdev, dst); in dsa_probe() 656 ret = dsa_setup_dst(dst, dev, &pdev->dev, pd); in dsa_probe() 665 dsa_of_remove(&pdev->dev); in dsa_probe() 694 static int dsa_remove(struct platform_device *pdev) in dsa_remove() argument [all …]
|
/net/wireless/ |
D | ethtool.c | 10 struct device *pdev = wiphy_dev(wdev->wiphy); in cfg80211_get_drvinfo() local 12 if (pdev->driver) in cfg80211_get_drvinfo() 13 strlcpy(info->driver, pdev->driver->name, in cfg80211_get_drvinfo()
|
/net/bridge/ |
D | br_mdb.c | 460 struct net_device **pdev, struct br_mdb_entry **pentry) in br_mdb_parse() argument 491 *pdev = dev; in br_mdb_parse() 579 struct net_device *dev, *pdev; in br_mdb_add() local 595 pdev = __dev_get_by_index(net, entry->ifindex); in br_mdb_add() 596 if (!pdev) in br_mdb_add() 599 p = br_port_get_rtnl(pdev); in br_mdb_add() 674 struct net_device *dev, *pdev; in br_mdb_del() local 690 pdev = __dev_get_by_index(net, entry->ifindex); in br_mdb_del() 691 if (!pdev) in br_mdb_del() 694 p = br_port_get_rtnl(pdev); in br_mdb_del()
|
/net/core/ |
D | dev.c | 2863 struct device *pdev = dev->dev.parent; in illegal_highdma() local 2865 if (!pdev) in illegal_highdma() 2871 if (!pdev->dma_mask || addr + PAGE_SIZE - 1 > *pdev->dma_mask) in illegal_highdma()
|