Searched refs:pdev (Results 1 – 7 of 7) sorted by relevance
/net/rfkill/ |
D | rfkill-regulator.c | 58 static int rfkill_regulator_probe(struct platform_device *pdev) in rfkill_regulator_probe() argument 60 struct rfkill_regulator_platform_data *pdata = pdev->dev.platform_data; in rfkill_regulator_probe() 67 dev_err(&pdev->dev, "no platform data\n"); in rfkill_regulator_probe() 72 dev_err(&pdev->dev, "invalid name or type in platform data\n"); in rfkill_regulator_probe() 76 vcc = regulator_get_exclusive(&pdev->dev, "vrfkill"); in rfkill_regulator_probe() 78 dev_err(&pdev->dev, "Cannot get vcc for %s\n", pdata->name); in rfkill_regulator_probe() 89 rf_kill = rfkill_alloc(pdata->name, &pdev->dev, in rfkill_regulator_probe() 98 dev_dbg(&pdev->dev, "Regulator already enabled\n"); in rfkill_regulator_probe() 106 dev_err(&pdev->dev, "Cannot register rfkill device\n"); in rfkill_regulator_probe() 110 platform_set_drvdata(pdev, rfkill_data); in rfkill_regulator_probe() [all …]
|
D | rfkill-gpio.c | 80 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() 105 ret = pdata->gpio_runtime_setup(pdev); in rfkill_gpio_probe() 131 rfkill->pwr_clk = clk_get(&pdev->dev, pdata->power_clk_name); in rfkill_gpio_probe() 155 rfkill->rfkill_dev = rfkill_alloc(pdata->name, &pdev->dev, pdata->type, in rfkill_gpio_probe() 166 platform_set_drvdata(pdev, rfkill); in rfkill_gpio_probe() 168 dev_info(&pdev->dev, "%s device registered.\n", pdata->name); in rfkill_gpio_probe() 193 static int rfkill_gpio_remove(struct platform_device *pdev) in rfkill_gpio_remove() argument 195 struct rfkill_gpio_data *rfkill = platform_get_drvdata(pdev); in rfkill_gpio_remove() 196 struct rfkill_gpio_platform_data *pdata = pdev->dev.platform_data; in rfkill_gpio_remove() [all …]
|
/net/dsa/ |
D | dsa.c | 363 static int dsa_of_probe(struct platform_device *pdev) in dsa_of_probe() argument 365 struct device_node *np = pdev->dev.of_node; in dsa_of_probe() 396 pdev->dev.platform_data = pd; in dsa_of_probe() 462 pdev->dev.platform_data = NULL; in dsa_of_probe() 466 static void dsa_of_remove(struct platform_device *pdev) in dsa_of_remove() argument 468 struct dsa_platform_data *pd = pdev->dev.platform_data; in dsa_of_remove() 470 if (!pdev->dev.of_node) in dsa_of_remove() 477 static inline int dsa_of_probe(struct platform_device *pdev) in dsa_of_probe() argument 482 static inline void dsa_of_remove(struct platform_device *pdev) in dsa_of_remove() argument 487 static int dsa_probe(struct platform_device *pdev) in dsa_probe() argument [all …]
|
/net/tipc/ |
D | ib_media.c | 159 struct net_device *pdev = NULL; in enable_bearer() local 175 for_each_netdev(&init_net, pdev) { in enable_bearer() 176 if (!strncmp(pdev->name, driver_name, IFNAMSIZ)) { in enable_bearer() 177 dev = pdev; in enable_bearer()
|
D | eth_media.c | 166 struct net_device *pdev = NULL; in enable_bearer() local 182 for_each_netdev(&init_net, pdev) { in enable_bearer() 183 if (!strncmp(pdev->name, driver_name, IFNAMSIZ)) { in enable_bearer() 184 dev = pdev; in enable_bearer()
|
/net/bridge/ |
D | br_mdb.c | 268 struct net_device **pdev, struct br_mdb_entry **pentry) in br_mdb_parse() argument 298 *pdev = dev; in br_mdb_parse()
|
/net/core/ |
D | dev.c | 2390 struct device *pdev = dev->dev.parent; in illegal_highdma() local 2392 if (!pdev) in illegal_highdma() 2397 if (!pdev->dma_mask || addr + PAGE_SIZE - 1 > *pdev->dma_mask) in illegal_highdma()
|