/linux-master/drivers/staging/media/tegra-video/ |
H A D | vi.c | 1878 static int tegra_vi_probe(struct platform_device *pdev) argument 1883 vi = devm_kzalloc(&pdev->dev, sizeof(*vi), GFP_KERNEL); 1887 vi->iomem = devm_platform_ioremap_resource(pdev, 0); 1891 vi->soc = of_device_get_match_data(&pdev->dev); 1893 vi->clk = devm_clk_get(&pdev->dev, NULL); 1896 dev_err(&pdev->dev, "failed to get vi clock: %d\n", ret); 1900 vi->vdd = devm_regulator_get(&pdev->dev, "avdd-dsi-csi"); 1903 dev_err(&pdev->dev, "failed to get VDD supply: %d\n", ret); 1907 if (!pdev->dev.pm_domain) { 1909 dev_warn(&pdev 1949 tegra_vi_remove(struct platform_device *pdev) argument [all...] |
/linux-master/drivers/staging/media/starfive/camss/ |
H A D | stf-camss.c | 46 struct platform_device *pdev = to_platform_device(stfcamss->dev); local 49 devm_platform_ioremap_resource_byname(pdev, "syscon"); 53 stfcamss->isp_base = devm_platform_ioremap_resource_byname(pdev, "isp"); 225 static void stfcamss_mc_init(struct platform_device *pdev, argument 238 * @pdev: Pointer to STFCAMSS platform device 242 static int stfcamss_probe(struct platform_device *pdev) argument 245 struct device *dev = &pdev->dev; 258 irq = platform_get_irq(pdev, i); 295 platform_set_drvdata(pdev, stfcamss); 312 stfcamss_mc_init(pdev, stfcams 364 stfcamss_remove(struct platform_device *pdev) argument [all...] |
/linux-master/drivers/staging/media/atomisp/pci/ |
H A D | atomisp_v4l2.c | 365 struct pci_dev *pdev = to_pci_dev(isp->dev); local 369 pci_read_config_word(pdev, PCI_COMMAND, &isp->saved_regs.pcicmdsts); 371 pci_read_config_dword(pdev, PCI_MSI_CAPID, &isp->saved_regs.msicap); 372 pci_read_config_dword(pdev, PCI_MSI_ADDR, &isp->saved_regs.msi_addr); 373 pci_read_config_word(pdev, PCI_MSI_DATA, &isp->saved_regs.msi_data); 374 pci_read_config_byte(pdev, PCI_INTERRUPT_LINE, &isp->saved_regs.intr); 375 pci_read_config_dword(pdev, PCI_INTERRUPT_CTRL, &isp->saved_regs.interrupt_control); 377 pci_read_config_dword(pdev, MRFLD_PCI_PMCS, &isp->saved_regs.pmcs); 379 pci_read_config_dword(pdev, PCI_I_CONTROL, &isp->saved_regs.i_control); 383 pci_read_config_dword(pdev, MRFLD_PCI_CSI_ACCESS_CTRL_VIO 420 struct pci_dev *pdev = to_pci_dev(isp->dev); local 462 struct pci_dev *pdev = to_pci_dev(isp->dev); local 545 struct pci_dev *pdev = to_pci_dev(isp->dev); local 599 struct pci_dev *pdev = to_pci_dev(dev); local 692 struct pci_dev *pdev = to_pci_dev(isp->dev); local 1180 atomisp_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) argument 1453 atomisp_pci_remove(struct pci_dev *pdev) argument [all...] |
H A D | atomisp_ioctl.c | 875 struct pci_dev *pdev = to_pci_dev(isp->dev); local 951 pci_write_config_word(pdev, MRFLD_PCI_CSI_CONTROL, 977 struct pci_dev *pdev = to_pci_dev(isp->dev); local 1021 pci_write_config_word(pdev, MRFLD_PCI_CSI_CONTROL, 1033 pci_write_config_dword(pdev, PCI_I_CONTROL,
|
H A D | atomisp_gmin_platform.c | 1395 static void isp_pm_cap_fixup(struct pci_dev *pdev) argument 1397 dev_info(&pdev->dev, "Disabling PCI power management on camera ISP\n"); 1398 pdev->pm_cap = 0;
|
H A D | atomisp_cmd.c | 314 struct pci_dev *pdev = to_pci_dev(isp->dev); local 318 pci_read_config_dword(pdev, PCI_MSI_CAPID, &msg32); 320 pci_write_config_dword(pdev, PCI_MSI_CAPID, msg32); 323 pci_write_config_dword(pdev, PCI_INTERRUPT_CTRL, msg32); 325 pci_read_config_word(pdev, PCI_COMMAND, &msg16); 328 pci_write_config_word(pdev, PCI_COMMAND, msg16); 333 struct pci_dev *pdev = to_pci_dev(isp->dev); local 337 pci_read_config_dword(pdev, PCI_MSI_CAPID, &msg32); 339 pci_write_config_dword(pdev, PCI_MSI_CAPID, msg32); 342 pci_write_config_dword(pdev, PCI_INTERRUPT_CTR 437 struct pci_dev *pdev = to_pci_dev(isp->dev); local 879 struct pci_dev *pdev = to_pci_dev(isp->dev); local [all...] |
/linux-master/drivers/pmdomain/ti/ |
H A D | ti_sci_pm_domains.c | 129 static int ti_sci_pm_domain_probe(struct platform_device *pdev) argument 131 struct device *dev = &pdev->dev;
|
/linux-master/drivers/pmdomain/mediatek/ |
H A D | mtk-scpsys.c | 414 static void init_clks(struct platform_device *pdev, struct clk **clk) argument 419 clk[i] = devm_clk_get(&pdev->dev, clk_names[i]); 422 static struct scp *init_scp(struct platform_device *pdev, argument 432 scp = devm_kzalloc(&pdev->dev, sizeof(*scp), GFP_KERNEL); 441 scp->dev = &pdev->dev; 443 scp->base = devm_platform_ioremap_resource(pdev, 0); 447 scp->domains = devm_kcalloc(&pdev->dev, 454 pd_data->domains = devm_kcalloc(&pdev->dev, 459 scp->infracfg = syscon_regmap_lookup_by_phandle(pdev->dev.of_node, 462 dev_err(&pdev 516 mtk_register_power_domains(struct platform_device *pdev, struct scp *scp, int num) argument 1106 scpsys_probe(struct platform_device *pdev) argument [all...] |
/linux-master/drivers/platform/x86/x86-android-tablets/ |
H A D | core.c | 275 static void x86_android_tablet_remove(struct platform_device *pdev) argument 311 static __init int x86_android_tablet_probe(struct platform_device *pdev) argument 323 x86_android_tablet_device = pdev; 344 ret = dev_info->init(&pdev->dev); 346 x86_android_tablet_remove(pdev); 354 x86_android_tablet_remove(pdev); 362 x86_android_tablet_remove(pdev); 369 x86_android_tablet_remove(pdev); 377 x86_android_tablet_remove(pdev); 382 /* + 1 to make space for (optional) gpio_keys_button pdev */ [all...] |
/linux-master/drivers/platform/x86/ |
H A D | wmi.c | 1066 static int wmi_add_device(struct platform_device *pdev, struct wmi_device *wdev) argument 1079 link = device_link_add(&wdev->dev, &pdev->dev, DL_FLAG_AUTOREMOVE_SUPPLIER); 1089 static int parse_wdg(struct device *wmi_bus_dev, struct platform_device *pdev) argument 1091 struct acpi_device *device = ACPI_COMPANION(&pdev->dev); 1141 retval = wmi_add_device(pdev, &wblock->dev);
|
H A D | thinkpad_acpi.c | 1002 static void tpacpi_shutdown_handler(struct platform_device *pdev) argument
|
H A D | samsung-laptop.c | 1475 struct platform_device *pdev; local 1477 pdev = platform_device_register_simple("samsung", PLATFORM_DEVID_NONE, NULL, 0); 1478 if (IS_ERR(pdev)) 1479 return PTR_ERR(pdev); 1481 samsung->platform_device = pdev;
|
H A D | p2sb.c | 64 static void p2sb_read_bar0(struct pci_dev *pdev, struct resource *mem) argument 66 struct resource *bar0 = pci_resource_n(pdev, 0); 85 struct pci_dev *pdev; local 87 pdev = pci_scan_single_device(bus, devfn); 88 if (!pdev) 91 p2sb_read_bar0(pdev, &cache->res); 94 pci_stop_and_remove_bus_device(pdev);
|
H A D | quickstart.c | 165 static int quickstart_probe(struct platform_device *pdev) argument 172 handle = ACPI_HANDLE(&pdev->dev); 176 data = devm_kzalloc(&pdev->dev, sizeof(*data), GFP_KERNEL); 180 data->dev = &pdev->dev; 181 dev_set_drvdata(&pdev->dev, data); 184 ret = devm_add_action_or_reset(&pdev->dev, quickstart_mutex_destroy, &data->input_lock); 193 device_init_wakeup(&pdev->dev, true); 199 data->input_device = devm_input_allocate_device(&pdev->dev); 222 return devm_add_action_or_reset(&pdev->dev, quickstart_notify_remove, data);
|
H A D | lenovo-yoga-tab2-pro-1380-fastcharger.c | 235 static int yt2_1380_fc_pdev_probe(struct platform_device *pdev) argument 263 dev_err_probe(&pdev->dev, ret, "adding serdev\n"); 276 dev_err_probe(&pdev->dev, ret, "attaching serdev driver\n"); 281 platform_set_drvdata(pdev, serdev); 291 static void yt2_1380_fc_pdev_remove(struct platform_device *pdev) argument 293 struct serdev_device *serdev = platform_get_drvdata(pdev); 313 * serdev driver MUST be registered first because pdev driver calls
|
H A D | ideapad-laptop.c | 1897 static int ideapad_acpi_add(struct platform_device *pdev) argument 1899 struct acpi_device *adev = ACPI_COMPANION(&pdev->dev); 1908 priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL); 1912 dev_set_drvdata(&pdev->dev, priv); 1916 priv->platform_device = pdev; 1933 dev_warn(&pdev->dev, "Could not set up keyboard backlight LED: %d\n", err); 1935 dev_info(&pdev->dev, "Keyboard backlight control not available\n"); 1941 dev_warn(&pdev->dev, "Could not set up FnLock LED: %d\n", err); 1943 dev_info(&pdev->dev, "FnLock control not available\n"); 1963 dev_warn(&pdev 2013 ideapad_acpi_remove(struct platform_device *pdev) argument [all...] |
H A D | huawei-wmi.c | 802 static int huawei_wmi_probe(struct platform_device *pdev) argument 807 platform_set_drvdata(pdev, huawei_wmi); 808 huawei_wmi->dev = &pdev->dev; 812 err = huawei_wmi_input_setup(&pdev->dev, guid->guid_string); 814 dev_err(&pdev->dev, "Failed to setup input on %s\n", guid->guid_string); 825 huawei_wmi_leds_setup(&pdev->dev); 826 huawei_wmi_fn_lock_setup(&pdev->dev); 827 huawei_wmi_battery_setup(&pdev->dev); 828 huawei_wmi_debugfs_setup(&pdev->dev); 834 static void huawei_wmi_remove(struct platform_device *pdev) argument 862 struct platform_device *pdev; local 897 struct platform_device *pdev = to_platform_device(huawei_wmi->dev); local [all...] |
H A D | asus-wmi.c | 4641 static int asus_wmi_add(struct platform_device *pdev) argument 4643 struct platform_driver *pdrv = to_platform_driver(pdev->dev.driver); 4655 asus->platform_device = pdev; 4656 wdrv->platform_device = pdev; 4950 static int asus_wmi_probe(struct platform_device *pdev) argument 4952 struct platform_driver *pdrv = to_platform_driver(pdev->dev.driver); 4967 ret = wdrv->probe(pdev); 4972 return asus_wmi_add(pdev);
|
/linux-master/drivers/platform/x86/intel/pmc/ |
H A D | core.h | 388 * @pdev: pointer to platform_device struct 408 struct platform_device *pdev; member in struct:pmc_dev 581 extern void pmc_core_get_tgl_lpm_reqs(struct platform_device *pdev);
|
H A D | core.c | 904 dev_warn_once(&pmcdev->pdev->dev, "Crystal frequency unavailable\n"); 1110 dev_warn(&pmcdev->pdev->dev, 1154 dev_err(&pmcdev->pdev->dev, "PUNIT PMT device not found."); 1161 dev_err(&pmcdev->pdev->dev, 1194 struct platform_device *pdev = pmcdev->pdev; local 1195 struct acpi_device *adev = ACPI_COMPANION(&pdev->dev); 1373 static void pmc_core_clean_structure(struct platform_device *pdev) argument 1375 struct pmc_dev *pmcdev = platform_get_drvdata(pdev); 1393 platform_set_drvdata(pdev, NUL 1397 pmc_core_probe(struct platform_device *pdev) argument 1467 pmc_core_remove(struct platform_device *pdev) argument [all...] |
/linux-master/drivers/platform/x86/dell/ |
H A D | dell-uart-backlight.c | 333 static int dell_uart_bl_pdev_probe(struct platform_device *pdev) argument 350 dev_err(&pdev->dev, "error %d adding serdev\n", ret); 368 platform_set_drvdata(pdev, serdev); 378 static void dell_uart_bl_pdev_remove(struct platform_device *pdev) argument 380 struct serdev_device *serdev = platform_get_drvdata(pdev);
|
/linux-master/drivers/platform/x86/amd/pmf/ |
H A D | core.c | 298 struct amd_pmf_dev *pdev = dev_get_drvdata(dev); local 300 if (pdev->smart_pc_enabled) 301 cancel_delayed_work_sync(&pdev->pb_work); 303 if (is_apmf_func_supported(pdev, APMF_FUNC_SBIOS_HEARTBEAT_V2)) 304 amd_pmf_notify_sbios_heartbeat_event_v2(pdev, ON_SUSPEND); 311 struct amd_pmf_dev *pdev = dev_get_drvdata(dev); local 314 if (pdev->buf) { 315 ret = amd_pmf_set_dram_addr(pdev, false); 320 if (is_apmf_func_supported(pdev, APMF_FUNC_SBIOS_HEARTBEAT_V2)) 321 amd_pmf_notify_sbios_heartbeat_event_v2(pdev, ON_RESUM 389 amd_pmf_probe(struct platform_device *pdev) argument 463 amd_pmf_remove(struct platform_device *pdev) argument [all...] |
/linux-master/drivers/platform/x86/amd/pmc/ |
H A D | pmc.c | 402 static int get_metrics_table(struct amd_pmc_dev *pdev, struct smu_metrics *table) argument 404 if (!pdev->smu_virt_addr) { 405 int ret = amd_pmc_setup_smu_logging(pdev); 411 if (pdev->cpu_id == AMD_CPU_ID_PCO) 413 memcpy_fromio(table, pdev->smu_virt_addr, sizeof(struct smu_metrics)); 417 static void amd_pmc_validate_deepest(struct amd_pmc_dev *pdev) argument 421 if (get_metrics_table(pdev, &table)) 425 dev_warn(pdev->dev, "Last suspend didn't reach deepest state\n"); 487 struct amd_pmc_dev *pdev = dev_get_drvdata(dev); local 489 if (pdev 575 amd_pmc_idlemask_read(struct amd_pmc_dev *pdev, struct device *dev, struct seq_file *s) argument 772 amd_pmc_wa_irq1(struct amd_pmc_dev *pdev) argument 802 amd_pmc_verify_czn_rtc(struct amd_pmc_dev *pdev, u32 *arg) argument 856 struct amd_pmc_dev *pdev = &pmc; local 887 struct amd_pmc_dev *pdev = &pmc; local 904 amd_pmc_dump_data(struct amd_pmc_dev *pdev) argument 914 struct amd_pmc_dev *pdev = &pmc; local 944 struct amd_pmc_dev *pdev = dev_get_drvdata(dev); local 1036 amd_pmc_probe(struct platform_device *pdev) argument 1119 amd_pmc_remove(struct platform_device *pdev) argument [all...] |
H A D | pmc.h | 22 struct pci_dev *pdev; member in struct:amd_mp2_dev
|
H A D | mp2_stb.c | 101 struct device *dev = &mp2->pdev->dev; 119 struct device *dev = &mp2->pdev->dev; 208 struct pci_dev *pdev; local 210 if (mp2 && mp2->pdev) { 211 pdev = mp2->pdev; 214 pci_clear_master(pdev); 216 pci_dev_put(pdev); 219 devres_release_group(&pdev->dev, mp2->devres_gid); 228 struct pci_dev *pdev; local [all...] |