Searched refs:pdev (Results 501 - 525 of 7498) sorted by relevance

<<21222324252627282930>>

/linux-master/drivers/gpu/drm/panel/
H A Dpanel-sharp-ls037v7dw01.c26 struct platform_device *pdev; member in struct:ls037v7dw01_panel
67 dev_err(&lcd->pdev->dev, "%s: failed to enable regulator\n",
137 static int ls037v7dw01_probe(struct platform_device *pdev) argument
141 lcd = devm_kzalloc(&pdev->dev, sizeof(*lcd), GFP_KERNEL);
145 platform_set_drvdata(pdev, lcd);
146 lcd->pdev = pdev;
148 lcd->vdd = devm_regulator_get(&pdev->dev, "envdd");
150 return dev_err_probe(&pdev->dev, PTR_ERR(lcd->vdd),
153 lcd->ini_gpio = devm_gpiod_get(&pdev
192 ls037v7dw01_remove(struct platform_device *pdev) argument
[all...]
/linux-master/drivers/mmc/host/
H A Dsdhci-pic32.c46 struct platform_device *pdev; member in struct:pic32_sdhci_priv
106 static void pic32_sdhci_shared_bus(struct platform_device *pdev) argument
108 struct sdhci_host *host = platform_get_drvdata(pdev);
124 static void pic32_sdhci_probe_platform(struct platform_device *pdev, argument
128 struct sdhci_host *host = platform_get_drvdata(pdev);
134 pic32_sdhci_shared_bus(pdev);
137 static int pic32_sdhci_probe(struct platform_device *pdev) argument
145 host = sdhci_pltfm_init(pdev, &sdhci_pic32_pdata,
155 plat_data = pdev->dev.platform_data;
163 sdhci_pdata->sys_clk = devm_clk_get(&pdev
213 pic32_sdhci_remove(struct platform_device *pdev) argument
[all...]
/linux-master/drivers/media/platform/mediatek/mdp/
H A Dmtk_mdp_core.c56 struct device *dev = &mdp->pdev->dev;
65 struct device *dev = &mdp->pdev->dev;
105 static int mtk_mdp_probe(struct platform_device *pdev) argument
108 struct device *dev = &pdev->dev;
117 mdp->id = pdev->id;
118 mdp->pdev = pdev;
170 dev_err(&pdev->dev, "unable to alloc job workqueue\n");
177 dev_err(&pdev->dev, "unable to alloc wdt workqueue\n");
185 dev_err(&pdev
238 mtk_mdp_remove(struct platform_device *pdev) argument
[all...]
/linux-master/drivers/remoteproc/
H A Dwkup_m3_rproc.c45 * @pdev: pointer to platform device
51 struct platform_device *pdev; member in struct:wkup_m3_rproc
59 struct platform_device *pdev = wkupm3->pdev; local
60 struct device *dev = &pdev->dev;
66 if (!wkupm3->rsts && pdata->deassert_reset(pdev, pdata->reset_name)) {
77 struct platform_device *pdev = wkupm3->pdev; local
78 struct device *dev = &pdev->dev;
84 if (!wkupm3->rsts && pdata->assert_reset(pdev, pdat
128 wkup_m3_rproc_probe(struct platform_device *pdev) argument
226 wkup_m3_rproc_remove(struct platform_device *pdev) argument
[all...]
/linux-master/drivers/char/hw_random/
H A Dexynos-trng.c109 static int exynos_trng_probe(struct platform_device *pdev) argument
114 trng = devm_kzalloc(&pdev->dev, sizeof(*trng), GFP_KERNEL);
118 trng->rng.name = devm_kstrdup(&pdev->dev, dev_name(&pdev->dev),
127 platform_set_drvdata(pdev, trng);
128 trng->dev = &pdev->dev;
130 trng->mem = devm_platform_ioremap_resource(pdev, 0);
134 pm_runtime_enable(&pdev->dev);
135 ret = pm_runtime_resume_and_get(&pdev->dev);
137 dev_err(&pdev
176 exynos_trng_remove(struct platform_device *pdev) argument
[all...]
/linux-master/drivers/input/misc/
H A Dpwm-vibra.c40 struct device *pdev = vibrator->input->dev.parent; local
47 dev_err(pdev, "failed to enable regulator: %d\n", err);
61 dev_err(pdev, "failed to apply pwm state: %d\n", err);
72 dev_err(pdev, "failed to apply dir-pwm state: %d\n", err);
128 static int pwm_vibrator_probe(struct platform_device *pdev) argument
134 vibrator = devm_kzalloc(&pdev->dev, sizeof(*vibrator), GFP_KERNEL);
138 vibrator->input = devm_input_allocate_device(&pdev->dev);
142 vibrator->vcc = devm_regulator_get(&pdev->dev, "vcc");
144 return dev_err_probe(&pdev->dev, PTR_ERR(vibrator->vcc),
147 vibrator->enable_gpio = devm_gpiod_get_optional(&pdev
[all...]
H A D88pm860x_onkey.c60 static int pm860x_onkey_probe(struct platform_device *pdev) argument
62 struct pm860x_chip *chip = dev_get_drvdata(pdev->dev.parent);
66 irq = platform_get_irq(pdev, 0);
70 info = devm_kzalloc(&pdev->dev, sizeof(struct pm860x_onkey_info),
76 info->dev = &pdev->dev;
79 info->idev = devm_input_allocate_device(&pdev->dev);
88 info->idev->dev.parent = &pdev->dev;
98 ret = devm_request_threaded_irq(&pdev->dev, info->irq, NULL,
107 platform_set_drvdata(pdev, info);
108 device_init_wakeup(&pdev
115 struct platform_device *pdev = to_platform_device(dev); local
124 struct platform_device *pdev = to_platform_device(dev); local
[all...]
/linux-master/drivers/power/reset/
H A Dltc2952-poweroff.c172 static int ltc2952_poweroff_init(struct platform_device *pdev) argument
176 struct ltc2952_poweroff *data = platform_get_drvdata(pdev);
180 if (!device_property_read_u32(&pdev->dev, "trigger-delay-ms",
186 data->gpio_watchdog = devm_gpiod_get(&pdev->dev, "watchdog",
190 dev_err(&pdev->dev, "unable to claim gpio \"watchdog\"\n");
194 data->gpio_kill = devm_gpiod_get(&pdev->dev, "kill", GPIOD_OUT_LOW);
197 dev_err(&pdev->dev, "unable to claim gpio \"kill\"\n");
201 data->gpio_trigger = devm_gpiod_get_optional(&pdev->dev, "trigger",
209 dev_err(&pdev->dev, "unable to claim gpio \"trigger\"\n");
213 if (devm_request_irq(&pdev
256 ltc2952_poweroff_probe(struct platform_device *pdev) argument
289 ltc2952_poweroff_remove(struct platform_device *pdev) argument
[all...]
/linux-master/arch/powerpc/kernel/
H A Dpci_dn.c63 struct pci_dev *pdev = NULL; local
66 list_for_each_entry(pdev, &bus->devices, bus_list) {
67 if (pdev->devfn == devfn) {
68 if (pdev->dev.archdata.pci_data)
69 return pdev->dev.archdata.pci_data;
71 dn = pci_device_to_OF_node(pdev);
95 struct pci_dn *pci_get_pdn(struct pci_dev *pdev) argument
101 if (pdev->dev.archdata.pci_data)
102 return pdev->dev.archdata.pci_data;
105 dn = pci_device_to_OF_node(pdev);
173 add_sriov_vf_pdns(struct pci_dev *pdev) argument
217 remove_sriov_vf_pdns(struct pci_dev *pdev) argument
345 struct pci_dev *pdev; local
485 pci_dev_pdn_setup(struct pci_dev *pdev) argument
[all...]
/linux-master/drivers/ata/
H A Dpata_atp867x.c109 struct pci_dev *pdev = to_pci_dev(ap->host->dev); local
123 (pdev->device == PCI_DEVICE_ID_ARTOP_ATP867B ||
242 static int atp867x_cable_override(struct pci_dev *pdev) argument
244 if (pdev->subsystem_vendor == PCI_VENDOR_ID_ARTOP &&
245 (pdev->subsystem_device == PCI_DEVICE_ID_ARTOP_ATP867A ||
246 pdev->subsystem_device == PCI_DEVICE_ID_ARTOP_ATP867B)) {
254 struct pci_dev *pdev = to_pci_dev(ap->host->dev); local
256 if (atp867x_cable_override(pdev))
274 static void atp867x_check_res(struct pci_dev *pdev) argument
281 start = pci_resource_start(pdev,
338 struct pci_dev *pdev = to_pci_dev(ap->host->dev); local
360 struct pci_dev *pdev = to_pci_dev(host->dev); local
406 struct pci_dev *pdev = to_pci_dev(gdev); local
464 atp867x_init_one(struct pci_dev *pdev, const struct pci_device_id *id) argument
512 atp867x_reinit_one(struct pci_dev *pdev) argument
[all...]
H A Dpata_cypress.c58 struct pci_dev *pdev = to_pci_dev(ap->host->dev); local
75 pci_read_config_dword(pdev, CY82_IDE_ADDRSETUP, &addr);
80 pci_write_config_dword(pdev, CY82_IDE_ADDRSETUP, addr);
81 pci_write_config_byte(pdev, CY82_IDE_MASTER_IOR, time_16);
82 pci_write_config_byte(pdev, CY82_IDE_MASTER_IOW, time_16);
83 pci_write_config_byte(pdev, CY82_IDE_MASTER_8BIT, time_8);
85 pci_read_config_dword(pdev, CY82_IDE_ADDRSETUP, &addr);
90 pci_write_config_dword(pdev, CY82_IDE_ADDRSETUP, addr);
91 pci_write_config_byte(pdev, CY82_IDE_SLAVE_IOR, time_16);
92 pci_write_config_byte(pdev, CY82_IDE_SLAVE_IO
129 cy82c693_init_one(struct pci_dev *pdev, const struct pci_device_id *id) argument
[all...]
/linux-master/drivers/crypto/cavium/nitrox/
H A Dnitrox_main.c300 static int nitrox_device_flr(struct pci_dev *pdev) argument
304 pos = pci_save_state(pdev);
306 dev_err(&pdev->dev, "Failed to save pci state\n");
310 pcie_reset_flr(pdev, PCI_RESET_DO_RESET);
312 pci_restore_state(pdev);
373 dev_err(&ndev->pdev->dev, "BIST check failed\n");
403 * @pdev: PCI device information struct
409 static int nitrox_probe(struct pci_dev *pdev, argument
415 dev_info_once(&pdev->dev, "%s driver version %s\n",
418 err = pci_enable_device_mem(pdev);
524 nitrox_remove(struct pci_dev *pdev) argument
560 nitrox_shutdown(struct pci_dev *pdev) argument
[all...]
/linux-master/drivers/bus/
H A Dqcom-ssc-block-bus.c253 static int qcom_ssc_block_bus_probe(struct platform_device *pdev) argument
256 struct device_node *np = pdev->dev.of_node;
261 data = devm_kzalloc(&pdev->dev, sizeof(*data), GFP_KERNEL);
265 platform_set_drvdata(pdev, data);
271 ret = qcom_ssc_block_bus_pds_attach(&pdev->dev, data->pds, data->pd_names, data->num_pds);
273 return dev_err_probe(&pdev->dev, ret, "error when attaching power domains\n");
277 return dev_err_probe(&pdev->dev, ret, "error when enabling power domains\n");
280 res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "mpm_sscaon_config0");
281 data->reg_mpm_sscaon_config0 = devm_ioremap_resource(&pdev->dev, res);
283 return dev_err_probe(&pdev
353 qcom_ssc_block_bus_remove(struct platform_device *pdev) argument
[all...]
/linux-master/drivers/thermal/intel/int340x_thermal/
H A Dprocessor_thermal_device_pci.c24 struct pci_dev *pdev; member in struct:proc_thermal_pci
142 proc_thermal_wt_intr_callback(pci_info->pdev, pci_info->proc_priv);
143 proc_thermal_power_floor_intr_callback(pci_info->pdev, pci_info->proc_priv);
180 pci_write_config_byte(pci_info->pdev, 0xdc, 0x01);
246 static int proc_thermal_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) argument
257 proc_priv = devm_kzalloc(&pdev->dev, sizeof(*proc_priv), GFP_KERNEL);
261 pci_info = devm_kzalloc(&pdev->dev, sizeof(*pci_info), GFP_KERNEL);
265 pci_info->pdev = pdev;
266 ret = pcim_enable_device(pdev);
344 proc_thermal_pci_remove(struct pci_dev *pdev) argument
367 struct pci_dev *pdev = to_pci_dev(dev); local
381 struct pci_dev *pdev = to_pci_dev(dev); local
[all...]
/linux-master/drivers/staging/greybus/
H A Darche-apb-ctrl.c66 static int coldboot_seq(struct platform_device *pdev) argument
68 struct device *dev = &pdev->dev;
69 struct arche_apb_ctrl_drvdata *apb = platform_get_drvdata(pdev);
115 static int fw_flashing_seq(struct platform_device *pdev) argument
117 struct device *dev = &pdev->dev;
118 struct arche_apb_ctrl_drvdata *apb = platform_get_drvdata(pdev);
161 static int standby_boot_seq(struct platform_device *pdev) argument
163 struct device *dev = &pdev->dev;
164 struct arche_apb_ctrl_drvdata *apb = platform_get_drvdata(pdev);
193 static void poweroff_seq(struct platform_device *pdev) argument
252 struct platform_device *pdev = to_platform_device(dev); local
317 apb_ctrl_get_devtree_data(struct platform_device *pdev, struct arche_apb_ctrl_drvdata *apb) argument
387 arche_apb_ctrl_probe(struct platform_device *pdev) argument
422 arche_apb_ctrl_remove(struct platform_device *pdev) argument
457 arche_apb_ctrl_shutdown(struct platform_device *pdev) argument
[all...]
/linux-master/drivers/infiniband/hw/mthca/
H A Dmthca_reset.c72 while ((bridge = pci_get_device(mdev->pdev->vendor,
73 mdev->pdev->device + 2,
76 bridge->subordinate == mdev->pdev->bus) {
90 pci_name(mdev->pdev));
105 if (pci_read_config_dword(mdev->pdev, i * 4, hca_header + i)) {
113 hca_pcix_cap = pci_find_capability(mdev->pdev, PCI_CAP_ID_PCIX);
114 hca_pcie_cap = pci_pcie_cap(mdev->pdev);
144 void __iomem *reset = ioremap(pci_resource_start(mdev->pdev, 0) +
167 if (pci_read_config_dword(bridge ? bridge : mdev->pdev, 0, &v)) {
229 if (pci_write_config_dword(mdev->pdev, hca_pcix_ca
[all...]
/linux-master/drivers/media/rc/img-ir/
H A Dimg-ir-core.c76 static int img_ir_probe(struct platform_device *pdev) argument
82 irq = platform_get_irq(pdev, 0);
87 priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL);
91 platform_set_drvdata(pdev, priv);
92 priv->dev = &pdev->dev;
96 priv->reg_base = devm_platform_ioremap_resource(pdev, 0);
101 priv->clk = devm_clk_get(&pdev->dev, "core");
103 dev_warn(&pdev->dev, "cannot get core clock resource\n");
106 priv->sys_clk = devm_clk_get(&pdev->dev, "sys");
108 dev_warn(&pdev
155 img_ir_remove(struct platform_device *pdev) argument
[all...]
/linux-master/sound/soc/ux500/
H A Dmop500.c71 static int mop500_of_probe(struct platform_device *pdev, argument
82 dev_err(&pdev->dev, "Phandle missing or invalid\n");
103 static int mop500_probe(struct platform_device *pdev) argument
105 struct device_node *np = pdev->dev.of_node;
108 dev_dbg(&pdev->dev, "%s: Enter.\n", __func__);
110 mop500_card.dev = &pdev->dev;
112 ret = mop500_of_probe(pdev, np);
116 dev_dbg(&pdev->dev, "%s: Card %s: Set platform drvdata.\n",
121 dev_dbg(&pdev->dev, "%s: Card %s: num_links = %d\n",
123 dev_dbg(&pdev
137 mop500_remove(struct platform_device *pdev) argument
[all...]
/linux-master/drivers/reset/
H A Dreset-microchip-sparx5.c65 static int mchp_sparx5_map_syscon(struct platform_device *pdev, char *name, argument
72 syscon_np = of_parse_phandle(pdev->dev.of_node, name, 0);
79 dev_err(&pdev->dev, "No '%s' map: %d\n", name, err);
86 static int mchp_sparx5_map_io(struct platform_device *pdev, int index, argument
93 mem = devm_platform_get_and_ioremap_resource(pdev, index, &res);
95 dev_err(&pdev->dev, "Could not map resource %d\n", index);
99 map = devm_regmap_init_mmio(&pdev->dev, mem, &sparx5_reset_regmap_config);
106 static int mchp_sparx5_reset_probe(struct platform_device *pdev) argument
108 struct device_node *dn = pdev->dev.of_node;
112 ctx = devm_kzalloc(&pdev
[all...]
/linux-master/drivers/cdx/controller/
H A Dcdx_rpmsg.c46 static int cdx_attach_to_rproc(struct platform_device *pdev) argument
55 dev = &pdev->dev;
56 cdx_c = platform_get_drvdata(pdev);
61 dev_err(&pdev->dev, "xlnx,rproc: invalid phandle\n");
74 dev_err(&pdev->dev, "Failed to attach to remote processor\n");
85 static void cdx_detach_to_r5(struct platform_device *pdev) argument
90 cdx_c = platform_get_drvdata(pdev);
170 int cdx_setup_rpmsg(struct platform_device *pdev) argument
177 ret = cdx_attach_to_rproc(pdev);
181 cdx_c = platform_get_drvdata(pdev);
198 cdx_destroy_rpmsg(struct platform_device *pdev) argument
[all...]
/linux-master/drivers/media/platform/mediatek/vcodec/decoder/
H A Dmtk_vcodec_dec_hw.c39 struct platform_device *pdev = vdec_dev->plat_dev; local
56 dev_err(&pdev->dev, "vdec %d is not ready", hw_idx);
101 struct platform_device *pdev = dev->plat_dev; local
104 dev->dec_irq = platform_get_irq(pdev, 0);
109 ret = devm_request_irq(&pdev->dev, dev->dec_irq,
110 mtk_vdec_hw_irq_handler, 0, pdev->name, dev);
112 dev_err(&pdev->dev, "Failed to install dev->dec_irq %d (%d)",
120 static int mtk_vdec_hw_probe(struct platform_device *pdev) argument
122 struct device *dev = &pdev->dev;
144 subdev_dev->plat_dev = pdev;
[all...]
/linux-master/drivers/usb/host/
H A Dohci-spear.c34 static int spear_ohci_hcd_drv_probe(struct platform_device *pdev) argument
43 irq = platform_get_irq(pdev, 0);
54 retval = dma_coerce_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32));
58 usbh_clk = devm_clk_get(&pdev->dev, NULL);
60 dev_err(&pdev->dev, "Error getting interface clock\n");
65 hcd = usb_create_hcd(driver, &pdev->dev, dev_name(&pdev->dev));
71 hcd->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res);
95 dev_err(&pdev->dev, "init fail, %d\n", retval);
100 static void spear_ohci_hcd_drv_remove(struct platform_device *pdev) argument
113 spear_ohci_hcd_drv_suspend(struct platform_device *pdev, pm_message_t message) argument
[all...]
/linux-master/drivers/thermal/
H A Dspear_thermal.c89 static int spear_thermal_probe(struct platform_device *pdev) argument
93 struct device_node *np = pdev->dev.of_node;
97 dev_err(&pdev->dev, "Failed: DT Pdata not passed\n");
101 stdev = devm_kzalloc(&pdev->dev, sizeof(*stdev), GFP_KERNEL);
106 stdev->thermal_base = devm_platform_get_and_ioremap_resource(pdev, 0, NULL);
110 stdev->clk = devm_clk_get(&pdev->dev, NULL);
112 dev_err(&pdev->dev, "Can't get clock\n");
118 dev_err(&pdev->dev, "Can't enable clock\n");
128 dev_err(&pdev->dev, "thermal zone device is NULL\n");
134 dev_err(&pdev
153 spear_thermal_exit(struct platform_device *pdev) argument
[all...]
/linux-master/drivers/net/ethernet/stmicro/stmmac/
H A Ddwmac-intel-plat.c75 static int intel_eth_plat_probe(struct platform_device *pdev) argument
83 ret = stmmac_get_platform_resources(pdev, &stmmac_res);
87 plat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);
89 dev_err(&pdev->dev, "dt configuration failed\n");
93 dwmac = devm_kzalloc(&pdev->dev, sizeof(*dwmac), GFP_KERNEL);
97 dwmac->dev = &pdev->dev;
100 dwmac->data = device_get_match_data(&pdev->dev);
107 dwmac->tx_clk = devm_clk_get(&pdev->dev, "tx_clk");
120 dev_err(&pdev->dev,
134 dev_err(&pdev
160 intel_eth_plat_remove(struct platform_device *pdev) argument
[all...]
/linux-master/drivers/leds/
H A Dleds-da9052.c89 static int da9052_led_probe(struct platform_device *pdev) argument
98 da9052 = dev_get_drvdata(pdev->dev.parent);
101 dev_err(&pdev->dev, "No platform data\n");
107 dev_err(&pdev->dev, "No platform data for LED\n");
111 led = devm_kcalloc(&pdev->dev,
125 led[i].da9052 = dev_get_drvdata(pdev->dev.parent);
127 error = led_classdev_register(pdev->dev.parent, &led[i].cdev);
129 dev_err(&pdev->dev, "Failed to register led %d\n",
137 dev_err(&pdev->dev, "Unable to init led %d\n",
144 dev_err(&pdev
159 da9052_led_remove(struct platform_device *pdev) argument
[all...]

Completed in 514 milliseconds

<<21222324252627282930>>