Searched refs:pdev (Results 151 - 175 of 7498) sorted by last modified time

1234567891011>>

/linux-master/drivers/soundwire/
H A Damd_init.c62 platform_device_unregister(ctx->pdev[i]);
131 ctx->pdev[index] = platform_device_register_full(&pdevinfo[index]);
132 if (IS_ERR(ctx->pdev[index]))
142 platform_device_unregister(ctx->pdev[index]);
159 amd_manager = dev_get_drvdata(&ctx->pdev[i]->dev);
199 amd_manager = dev_get_drvdata(&ctx->pdev[index]->dev);
215 amd_manager = dev_get_drvdata(&ctx->pdev[index]->dev);
/linux-master/drivers/soc/qcom/
H A Dpmic_glink.c257 static int pmic_glink_probe(struct platform_device *pdev) argument
264 pg = devm_kzalloc(&pdev->dev, sizeof(*pg), GFP_KERNEL);
268 dev_set_drvdata(&pdev->dev, pg);
270 pg->dev = &pdev->dev;
276 match_data = (unsigned long *)of_device_get_match_data(&pdev->dev);
284 ret = dev_err_probe(&pdev->dev, PTR_ERR(pg->pdr),
307 ret = dev_err_probe(&pdev->dev, PTR_ERR(service),
333 static void pmic_glink_remove(struct platform_device *pdev) argument
335 struct pmic_glink *pg = dev_get_drvdata(&pdev->dev);
/linux-master/drivers/slimbus/
H A Dqcom-ngd-ctrl.c143 struct platform_device *pdev; member in struct:qcom_slim_ngd
1234 for_each_child_of_node(ctrl->ngd->pdev->dev.of_node, node) {
1529 ngd->pdev = platform_device_alloc(QCOM_SLIM_NGD_DRV_NAME, id);
1530 if (!ngd->pdev) {
1536 ngd->pdev->dev.parent = parent;
1538 ret = driver_set_override(&ngd->pdev->dev,
1539 &ngd->pdev->driver_override,
1543 platform_device_put(ngd->pdev);
1548 ngd->pdev->dev.of_node = node;
1551 ret = platform_device_add(ngd->pdev);
1567 qcom_slim_ngd_probe(struct platform_device *pdev) argument
1605 qcom_slim_ngd_ctrl_probe(struct platform_device *pdev) argument
1681 qcom_slim_ngd_ctrl_remove(struct platform_device *pdev) argument
1686 qcom_slim_ngd_remove(struct platform_device *pdev) argument
[all...]
H A Dqcom-ctrl.c472 static void qcom_slim_prg_slew(struct platform_device *pdev, argument
477 ctrl->slew_reg = devm_platform_ioremap_resource_byname(pdev, "slew");
487 static int qcom_slim_probe(struct platform_device *pdev) argument
493 ctrl = devm_kzalloc(&pdev->dev, sizeof(*ctrl), GFP_KERNEL);
497 ctrl->hclk = devm_clk_get(&pdev->dev, "iface");
501 ctrl->rclk = devm_clk_get(&pdev->dev, "core");
507 dev_err(&pdev->dev, "ref-clock set-rate failed:%d\n", ret);
511 ctrl->irq = platform_get_irq(pdev, 0);
516 sctrl->dev = &pdev->dev;
517 ctrl->dev = &pdev
629 qcom_slim_remove(struct platform_device *pdev) argument
[all...]
/linux-master/drivers/scsi/
H A Dvmw_pvscsi.c1347 static int pvscsi_probe(struct pci_dev *pdev, const struct pci_device_id *id) argument
1359 if (pci_enable_device(pdev))
1362 if (!dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64))) {
1364 } else if (!dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32))) {
1378 adapter->dev = pdev;
1379 adapter->rev = pdev->revision;
1381 if (pci_request_regions(pdev, "vmw_pvscsi")) {
1387 if ((pci_resource_flags(pdev, i) & PCI_BASE_ADDRESS_SPACE_IO))
1390 if (pci_resource_len(pdev, i) < PVSCSI_MEM_SPACE_SIZE)
1402 adapter->mmioBase = pci_iomap(pdev,
1585 pvscsi_remove(struct pci_dev *pdev) argument
[all...]
H A Dpmcraid.c553 rc = pci_read_config_word(pinstance->pdev, PCI_COMMAND, &pci_reg);
651 rc = pci_read_config_word(pinstance->pdev, PCI_COMMAND, &pci_reg);
692 dev_info(&pinstance->pdev->dev,
835 dma_unmap_single(&pinstance->pdev->dev, cmd->sense_buffer_dma,
1718 dev_info(&pinstance->pdev->dev, "Error notifications lost\n");
1724 dev_info(&pinstance->pdev->dev,
1761 dev_info(&pinstance->pdev->dev,
1815 dev_info(&pinstance->pdev->dev,
2152 pci_restore_state(pinstance->pdev);
2421 struct device *dev = &cmd->drv_inst->pdev
4018 struct pci_dev *pdev = pinstance->pdev; local
4038 struct pci_dev *pdev = pinstance->pdev; local
4599 pmcraid_init_instance(struct pci_dev *pdev, struct Scsi_Host *host, void __iomem *mapped_pci_addr) argument
4680 pmcraid_shutdown(struct pci_dev *pdev) argument
4757 pmcraid_remove(struct pci_dev *pdev) argument
4795 struct pci_dev *pdev = to_pci_dev(dev); local
4814 struct pci_dev *pdev = to_pci_dev(dev); local
5170 pmcraid_probe(struct pci_dev *pdev, const struct pci_device_id *dev_id) argument
[all...]
H A Dipr.c760 int pcix_cmd_reg = pci_find_capability(ioa_cfg->pdev, PCI_CAP_ID_PCIX);
766 rc = pci_read_config_word(ioa_cfg->pdev, pcix_cmd_reg + PCI_X_CMD,
769 dev_err(&ioa_cfg->pdev->dev, "Failed to save PCI-X command register\n");
786 int pcix_cmd_reg = pci_find_capability(ioa_cfg->pdev, PCI_CAP_ID_PCIX);
790 rc = pci_write_config_word(ioa_cfg->pdev, pcix_cmd_reg + PCI_X_CMD,
793 dev_err(&ioa_cfg->pdev->dev, "Failed to setup PCI-X command register\n");
1421 dev_err(&ioa_cfg->pdev->dev,
2428 dev_err(&ioa_cfg->pdev->dev, "Error notifications lost\n");
2528 dev_info(&ioa->pdev->dev, "Reclaiming async error buffers.");
2569 dev_err(&ioa_cfg->pdev
7993 struct pci_dev *pdev = ioa_cfg->pdev; local
8561 ipr_pci_mmio_enabled(struct pci_dev *pdev) argument
8581 ipr_pci_frozen(struct pci_dev *pdev) argument
8600 ipr_pci_slot_reset(struct pci_dev *pdev) argument
8625 ipr_pci_perm_failure(struct pci_dev *pdev) argument
8659 ipr_pci_error_detected(struct pci_dev *pdev, pci_channel_state_t state) argument
8783 struct pci_dev *pdev = ioa_cfg->pdev; local
8803 struct pci_dev *pdev = ioa_cfg->pdev; local
8937 struct pci_dev *pdev = ioa_cfg->pdev; local
9114 ipr_init_ioa_cfg(struct ipr_ioa_cfg *ioa_cfg, struct Scsi_Host *host, struct pci_dev *pdev) argument
9210 struct pci_dev *pdev = ioa_cfg->pdev; local
9232 ipr_request_other_msi_irqs(struct ipr_ioa_cfg *ioa_cfg, struct pci_dev *pdev) argument
9291 ipr_test_msi(struct ipr_ioa_cfg *ioa_cfg, struct pci_dev *pdev) argument
9343 ipr_probe_ioa(struct pci_dev *pdev, const struct pci_device_id *dev_id) argument
9651 __ipr_remove(struct pci_dev *pdev) argument
9704 ipr_remove(struct pci_dev *pdev) argument
9731 ipr_probe(struct pci_dev *pdev, const struct pci_device_id *dev_id) argument
9815 ipr_shutdown(struct pci_dev *pdev) argument
[all...]
H A Dhpsa.c301 static int hpsa_find_cfg_addrs(struct pci_dev *pdev, void __iomem *vaddr,
304 static int hpsa_pci_find_memory_BAR(struct pci_dev *pdev,
306 static int hpsa_lookup_board_id(struct pci_dev *pdev, u32 *board_id,
311 static int hpsa_wait_for_board_state(struct pci_dev *pdev, void __iomem *vaddr,
392 dev_warn(&h->pdev->dev,
397 dev_warn(&h->pdev->dev,
401 dev_warn(&h->pdev->dev,
409 dev_warn(&h->pdev->dev,
414 dev_warn(&h->pdev->dev,
419 dev_warn(&h->pdev
2805 hpsa_pci_unmap(struct pci_dev *pdev, struct CommandList *c, int sg_used, enum dma_data_direction data_direction) argument
2816 hpsa_map_one(struct pci_dev *pdev, struct CommandList *cp, unsigned char *buf, size_t buflen, enum dma_data_direction data_direction) argument
7088 hpsa_message(struct pci_dev *pdev, unsigned char opcode, unsigned char type) argument
7183 hpsa_controller_hard_reset(struct pci_dev *pdev, void __iomem *vaddr, u32 use_doorbell) argument
7291 hpsa_kdump_hard_reset_controller(struct pci_dev *pdev, u32 board_id) argument
7447 find_PCI_BAR_index(struct pci_dev *pdev, unsigned long pci_bar_addr) argument
7540 hpsa_lookup_board_id(struct pci_dev *pdev, u32 *board_id, bool *legacy_board) argument
7572 hpsa_pci_find_memory_BAR(struct pci_dev *pdev, unsigned long *memory_bar) argument
7589 hpsa_wait_for_board_state(struct pci_dev *pdev, void __iomem *vaddr, int wait_for_ready) argument
7614 hpsa_find_cfg_addrs(struct pci_dev *pdev, void __iomem *vaddr, u32 *cfg_base_addr, u64 *cfg_base_addr_index, u64 *cfg_offset) argument
7967 hpsa_init_reset_devices(struct pci_dev *pdev, u32 board_id) argument
8662 hpsa_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) argument
9024 __hpsa_shutdown(struct pci_dev *pdev) argument
9039 hpsa_shutdown(struct pci_dev *pdev) argument
9055 hpsa_remove_one(struct pci_dev *pdev) argument
[all...]
/linux-master/drivers/scsi/qla2xxx/
H A Dqla_attr.c373 if (unlikely(pci_channel_offline(ha->pdev)))
552 if (unlikely(pci_channel_offline(ha->pdev)))
598 if (unlikely(pci_channel_offline(ha->pdev)))
699 struct scsi_qla_host *base_vha = pci_get_drvdata(ha->pdev);
848 if (unlikely(pci_channel_offline(vha->hw->pdev)))
892 if (unlikely(pci_channel_offline(ha->pdev)))
903 ha->xgmac_data = dma_alloc_coherent(&ha->pdev->dev, XGMAC_DATA_SIZE,
962 ha->dcbx_tlv = dma_alloc_coherent(&ha->pdev->dev, DCBX_TLV_DATA_SIZE,
1109 return scnprintf(buf, PAGE_SIZE, "ISP%04X\n", vha->hw->pdev->device);
2736 if (unlikely(pci_channel_offline(fcport->vha->hw->pdev))) {
[all...]
/linux-master/drivers/scsi/mvsas/
H A Dmv_init.c147 stat = MVS_CHIP_DISP->isr_status(mvi, mvi->pdev->irq);
153 MVS_CHIP_DISP->isr(mvi, mvi->pdev->irq, stat);
264 mvi->dma_pool = dma_pool_create(pool_name, &mvi->pdev->dev,
280 struct pci_dev *pdev = mvi->pdev; local
285 res_start = pci_resource_start(pdev, bar_ex);
286 res_len = pci_resource_len(pdev, bar_ex);
290 res_flag_ex = pci_resource_flags(pdev, bar_ex);
299 res_start = pci_resource_start(pdev, bar);
300 res_len = pci_resource_len(pdev, ba
326 mvs_pci_alloc(struct pci_dev *pdev, const struct pci_device_id *ent, struct Scsi_Host *shost, unsigned int id) argument
365 pci_go_64(struct pci_dev *pdev) argument
473 mvs_pci_init(struct pci_dev *pdev, const struct pci_device_id *ent) argument
582 mvs_pci_remove(struct pci_dev *pdev) argument
[all...]
/linux-master/drivers/scsi/mpt3sas/
H A Dmpt3sas_base.c611 struct pci_dev *pdev; local
616 pdev = ioc->pdev;
617 if (!pdev)
619 pci_stop_and_remove_bus_device_locked(pdev);
1963 reply_q->os_irq = pci_irq_vector(ioc->pdev,
2014 synchronize_irq(pci_irq_vector(ioc->pdev, reply_q->msix_index));
3001 * @pdev: PCI device struct
3006 _base_config_dma_addressing(struct MPT3SAS_ADAPTER *ioc, struct pci_dev *pdev) argument
3026 if (dma_set_mask(&pdev
3133 struct pci_dev *pdev = ioc->pdev; local
3536 struct pci_dev *pdev = ioc->pdev; local
3606 struct pci_dev *pdev = ioc->pdev; local
[all...]
/linux-master/drivers/scsi/megaraid/
H A Dmegaraid_sas_base.c331 dev_err(&instance->pdev->dev, "Command pool empty!\n");
435 dev_info(&instance->pdev->dev, "%d (%s/0x%04x/%s) - %s\n",
443 dev_info(&instance->pdev->dev,
567 pci_read_config_dword(instance->pdev, MFI_1068_PCSR_OFFSET, &pcidata);
568 dev_notice(&instance->pdev->dev, "pcidata = %x\n", pcidata);
570 dev_notice(&instance->pdev->dev, "mfi 1068 offset read=%x\n", pcidata);
572 pci_write_config_dword(instance->pdev,
579 pci_read_config_dword(instance->pdev,
581 dev_notice(&instance->pdev->dev, "1068 offset handshake read=%x\n", pcidata);
583 dev_notice(&instance->pdev
5678 struct pci_dev *pdev; local
5711 struct pci_dev *pdev; local
7009 struct pci_dev *pdev; local
7198 struct pci_dev *pdev = instance->pdev; local
7334 struct pci_dev *pdev = instance->pdev; local
7458 megasas_probe_one(struct pci_dev *pdev, const struct pci_device_id *id) argument
7959 megasas_detach_one(struct pci_dev *pdev) argument
8096 megasas_shutdown(struct pci_dev *pdev) argument
[all...]
/linux-master/drivers/scsi/arcmsr/
H A Darcmsr_hba.c117 static int arcmsr_probe(struct pci_dev *pdev,
121 static void arcmsr_remove(struct pci_dev *pdev);
122 static void arcmsr_shutdown(struct pci_dev *pdev);
251 dma_free_coherent(&acb->pdev->dev, acb->ioqueue_size,
259 struct pci_dev *pdev = acb->pdev; local
262 acb->pmuA = ioremap(pci_resource_start(pdev,0), pci_resource_len(pdev,0));
271 mem_base0 = ioremap(pci_resource_start(pdev, 0), pci_resource_len(pdev,
678 struct pci_dev *pdev = acb->pdev; local
757 struct pci_dev *pdev = acb->pdev; local
807 struct pci_dev *pdev = acb->pdev; local
989 arcmsr_request_irq(struct pci_dev *pdev, struct AdapterControlBlock *acb) argument
1078 arcmsr_probe(struct pci_dev *pdev, const struct pci_device_id *id) argument
1187 arcmsr_free_irq(struct pci_dev *pdev, struct AdapterControlBlock *acb) argument
1199 struct pci_dev *pdev = to_pci_dev(dev); local
1217 struct pci_dev *pdev = to_pci_dev(dev); local
1680 struct pci_dev *pdev; local
1701 arcmsr_remove(struct pci_dev *pdev) argument
1760 arcmsr_shutdown(struct pci_dev *pdev) argument
[all...]
/linux-master/drivers/remoteproc/
H A Dxlnx_r5_remoteproc.c1125 struct platform_device *pdev = data; local
1130 cluster = platform_get_drvdata(pdev);
1145 platform_set_drvdata(pdev, NULL);
1153 * @pdev: domain platform device for R5 cluster
1157 static int zynqmp_r5_remoteproc_probe(struct platform_device *pdev) argument
1160 struct device *dev = &pdev->dev;
1177 platform_set_drvdata(pdev, cluster);
1182 platform_set_drvdata(pdev, NULL);
1187 ret = devm_add_action_or_reset(dev, zynqmp_r5_cluster_exit, pdev);
H A Dti_k3_r5_remoteproc.c1240 static int k3_r5_cluster_rproc_init(struct platform_device *pdev) argument
1242 struct k3_r5_cluster *cluster = platform_get_drvdata(pdev);
1243 struct device *dev = &pdev->dev;
1406 static int k3_r5_core_of_get_internal_memories(struct platform_device *pdev, argument
1410 struct device *dev = &pdev->dev;
1421 res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
1478 static int k3_r5_core_of_get_sram_memories(struct platform_device *pdev, argument
1481 struct device_node *np = pdev->dev.of_node;
1482 struct device *dev = &pdev->dev;
1561 static int k3_r5_core_of_init(struct platform_device *pdev) argument
1676 k3_r5_core_of_exit(struct platform_device *pdev) argument
1703 k3_r5_cluster_of_init(struct platform_device *pdev) argument
1743 k3_r5_probe(struct platform_device *pdev) argument
[all...]
H A Dmtk_scp.c28 * @pdev: the platform device of the module requesting SCP platform
33 struct mtk_scp *scp_get(struct platform_device *pdev) argument
35 struct device *dev = &pdev->dev;
49 dev_err(dev, "SCP pdev failed\n");
1048 static int scp_register_ipi(struct platform_device *pdev, u32 id, argument
1051 struct mtk_scp *scp = platform_get_drvdata(pdev);
1056 static void scp_unregister_ipi(struct platform_device *pdev, u32 id) argument
1058 struct mtk_scp *scp = platform_get_drvdata(pdev);
1063 static int scp_send_ipi(struct platform_device *pdev, u32 id, void *buf, argument
1066 struct mtk_scp *scp = platform_get_drvdata(pdev);
1096 scp_rproc_init(struct platform_device *pdev, struct mtk_scp_of_cluster *scp_cluster, const struct mtk_scp_of_data *of_data) argument
1207 scp_add_single_core(struct platform_device *pdev, struct mtk_scp_of_cluster *scp_cluster) argument
1231 scp_add_multi_core(struct platform_device *pdev, struct mtk_scp_of_cluster *scp_cluster) argument
1303 scp_is_single_core(struct platform_device *pdev) argument
1317 scp_cluster_init(struct platform_device *pdev, struct mtk_scp_of_cluster *scp_cluster) argument
1329 scp_probe(struct platform_device *pdev) argument
1373 scp_remove(struct platform_device *pdev) argument
[all...]
/linux-master/drivers/regulator/
H A Drk808-regulator.c1869 static int rk808_regulator_probe(struct platform_device *pdev) argument
1871 struct rk808 *rk808 = dev_get_drvdata(pdev->dev.parent);
1879 pdev->dev.of_node = pdev->dev.parent->of_node;
1880 pdev->dev.of_node_reused = true;
1882 regmap = dev_get_regmap(pdev->dev.parent, NULL);
1886 pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL);
1890 ret = rk808_regulator_dt_parse_pdata(&pdev->dev, regmap, pdata);
1894 platform_set_drvdata(pdev, pdata);
1926 dev_err(&pdev
[all...]
/linux-master/drivers/platform/x86/
H A Dwmi.c1066 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 Dthinkpad_acpi.c1002 static void tpacpi_shutdown_handler(struct platform_device *pdev) argument
H A Dasus-wmi.c4611 static int asus_wmi_add(struct platform_device *pdev) argument
4613 struct platform_driver *pdrv = to_platform_driver(pdev->dev.driver);
4625 asus->platform_device = pdev;
4626 wdrv->platform_device = pdev;
4920 static int asus_wmi_probe(struct platform_device *pdev) argument
4922 struct platform_driver *pdrv = to_platform_driver(pdev->dev.driver);
4937 ret = wdrv->probe(pdev);
4942 return asus_wmi_add(pdev);
/linux-master/drivers/pinctrl/
H A Dpinctrl-rk805.c603 static int rk805_pinctrl_probe(struct platform_device *pdev) argument
608 device_set_node(&pdev->dev, dev_fwnode(pdev->dev.parent));
610 pci = devm_kzalloc(&pdev->dev, sizeof(*pci), GFP_KERNEL);
614 pci->dev = &pdev->dev;
615 pci->rk808 = dev_get_drvdata(pdev->dev.parent);
619 pci->gpio_chip.parent = &pdev->dev;
621 platform_set_drvdata(pdev, pci);
661 dev_err(&pdev->dev, "unsupported RK805 ID %lu\n",
667 ret = devm_gpiochip_add_data(&pdev
[all...]
H A Dpinctrl-tps6594.c461 static int tps6594_pinctrl_probe(struct platform_device *pdev) argument
463 struct tps6594 *tps = dev_get_drvdata(pdev->dev.parent);
464 struct device *dev = &pdev->dev;
/linux-master/drivers/phy/xilinx/
H A Dphy-zynqmp.c927 static int xpsgtr_probe(struct platform_device *pdev) argument
929 struct device_node *np = pdev->dev.of_node;
935 gtr_dev = devm_kzalloc(&pdev->dev, sizeof(*gtr_dev), GFP_KERNEL);
939 gtr_dev->dev = &pdev->dev;
940 platform_set_drvdata(pdev, gtr_dev);
949 gtr_dev->serdes = devm_platform_ioremap_resource_byname(pdev, "serdes");
953 gtr_dev->siou = devm_platform_ioremap_resource_byname(pdev, "siou");
969 phy = devm_phy_create(&pdev->dev, np, &xpsgtr_phyops);
971 dev_err(&pdev->dev, "failed to create PHY\n");
980 provider = devm_of_phy_provider_register(&pdev
998 xpsgtr_remove(struct platform_device *pdev) argument
[all...]
/linux-master/drivers/phy/samsung/
H A Dphy-samsung-ufs.c241 static int samsung_ufs_phy_probe(struct platform_device *pdev) argument
243 struct device *dev = &pdev->dev;
265 phy->reg_pma = devm_platform_ioremap_resource_byname(pdev, "phy-pma");
/linux-master/drivers/phy/rockchip/
H A Dphy-rockchip-snps-pcie3.c244 static int rockchip_p3phy_probe(struct platform_device *pdev) argument
247 struct device *dev = &pdev->dev;
256 priv->mmio = devm_platform_get_and_ioremap_resource(pdev, 0, NULL);
262 priv->ops = of_device_get_match_data(&pdev->dev);

Completed in 355 milliseconds

1234567891011>>