/linux-master/drivers/iio/dac/ |
H A D | lpc18xx_dac.c | 104 static int lpc18xx_dac_probe(struct platform_device *pdev) argument 110 indio_dev = devm_iio_device_alloc(&pdev->dev, sizeof(*dac)); 114 platform_set_drvdata(pdev, indio_dev); 118 dac->base = devm_platform_ioremap_resource(pdev, 0); 122 dac->clk = devm_clk_get(&pdev->dev, NULL); 124 return dev_err_probe(&pdev->dev, PTR_ERR(dac->clk), 127 dac->vref = devm_regulator_get(&pdev->dev, "vref"); 129 return dev_err_probe(&pdev->dev, PTR_ERR(dac->vref), 132 indio_dev->name = dev_name(&pdev->dev); 140 dev_err(&pdev 168 lpc18xx_dac_remove(struct platform_device *pdev) argument [all...] |
/linux-master/drivers/pinctrl/qcom/ |
H A D | pinctrl-qdf2xxx.c | 31 static int qdf2xxx_pinctrl_probe(struct platform_device *pdev) argument 44 ret = device_property_read_u32(&pdev->dev, "num-gpios", &num_gpios); 46 dev_err(&pdev->dev, "missing 'num-gpios' property\n"); 50 dev_err(&pdev->dev, "invalid 'num-gpios' property\n"); 55 ret = device_property_count_u8(&pdev->dev, "gpios"); 57 dev_err(&pdev->dev, "missing 'gpios' property\n"); 65 dev_err(&pdev->dev, "invalid 'gpios' property\n"); 70 ret = device_property_read_u8_array(&pdev->dev, "gpios", gpios, 73 dev_err(&pdev->dev, "could not read list of GPIOs\n"); 77 pinctrl = devm_kzalloc(&pdev [all...] |
/linux-master/drivers/input/serio/ |
H A D | altera_ps2.c | 78 static int altera_ps2_probe(struct platform_device *pdev) argument 84 ps2if = devm_kzalloc(&pdev->dev, sizeof(struct ps2if), GFP_KERNEL); 88 ps2if->base = devm_platform_get_and_ioremap_resource(pdev, 0, NULL); 92 irq = platform_get_irq(pdev, 0); 96 error = devm_request_irq(&pdev->dev, irq, altera_ps2_rxint, 0, 97 pdev->name, ps2if); 99 dev_err(&pdev->dev, "could not request IRQ %d\n", irq); 111 strscpy(serio->name, dev_name(&pdev->dev), sizeof(serio->name)); 112 strscpy(serio->phys, dev_name(&pdev->dev), sizeof(serio->phys)); 114 serio->dev.parent = &pdev 128 altera_ps2_remove(struct platform_device *pdev) argument [all...] |
/linux-master/drivers/power/reset/ |
H A D | at91-poweroff.c | 60 static void at91_wakeup_status(struct platform_device *pdev) argument 76 dev_info(&pdev->dev, "Wake-Up source: %s\n", reason); 121 static void at91_poweroff_dt_set_wakeup_mode(struct platform_device *pdev) argument 123 struct device_node *np = pdev->dev.of_node; 129 dev_warn(&pdev->dev, "shdwc unknown wakeup mode\n"); 135 dev_warn(&pdev->dev, 152 static int at91_poweroff_probe(struct platform_device *pdev) argument 158 at91_shdwc.shdwc_base = devm_platform_ioremap_resource(pdev, 0); 162 at91_shdwc.sclk = devm_clk_get(&pdev->dev, NULL); 168 dev_err(&pdev 205 at91_poweroff_remove(struct platform_device *pdev) argument [all...] |
/linux-master/drivers/net/ethernet/stmicro/stmmac/ |
H A D | dwmac-starfive.c | 112 static int starfive_dwmac_probe(struct platform_device *pdev) argument 120 err = stmmac_get_platform_resources(pdev, &stmmac_res); 122 return dev_err_probe(&pdev->dev, err, 125 plat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac); 127 return dev_err_probe(&pdev->dev, PTR_ERR(plat_dat), 130 dwmac = devm_kzalloc(&pdev->dev, sizeof(*dwmac), GFP_KERNEL); 134 dwmac->data = device_get_match_data(&pdev->dev); 136 dwmac->clk_tx = devm_clk_get_enabled(&pdev->dev, "tx"); 138 return dev_err_probe(&pdev->dev, PTR_ERR(dwmac->clk_tx), 141 clk_gtx = devm_clk_get_enabled(&pdev [all...] |
/linux-master/drivers/video/fbdev/ |
H A D | simplefb.c | 134 static int simplefb_parse_dt(struct platform_device *pdev, argument 137 struct device_node *np = pdev->dev.of_node, *mem; 144 dev_err(&pdev->dev, "Can't parse width property\n"); 150 dev_err(&pdev->dev, "Can't parse height property\n"); 156 dev_err(&pdev->dev, "Can't parse stride property\n"); 162 dev_err(&pdev->dev, "Can't parse format property\n"); 173 dev_err(&pdev->dev, "Invalid format value\n"); 181 dev_err(&pdev->dev, "failed to parse memory-region\n"); 187 dev_warn(&pdev->dev, "preferring \"memory-region\" over \"reg\" property\n"); 197 static int simplefb_parse_pd(struct platform_device *pdev, argument 245 simplefb_clocks_get(struct simplefb_par *par, struct platform_device *pdev) argument 283 simplefb_clocks_enable(struct simplefb_par *par, struct platform_device *pdev) argument 321 simplefb_clocks_get(struct simplefb_par *par, struct platform_device *pdev) argument 323 simplefb_clocks_enable(struct simplefb_par *par, struct platform_device *pdev) argument 351 simplefb_regulators_get(struct simplefb_par *par, struct platform_device *pdev) argument 403 simplefb_regulators_enable(struct simplefb_par *par, struct platform_device *pdev) argument 434 simplefb_regulators_get(struct simplefb_par *par, struct platform_device *pdev) argument 436 simplefb_regulators_enable(struct simplefb_par *par, struct platform_device *pdev) argument 459 simplefb_attach_genpds(struct simplefb_par *par, struct platform_device *pdev) argument 521 simplefb_attach_genpds(struct simplefb_par *par, struct platform_device *pdev) argument 528 simplefb_probe(struct platform_device *pdev) argument 660 simplefb_remove(struct platform_device *pdev) argument [all...] |
/linux-master/drivers/clk/hisilicon/ |
H A D | clk-hi3519.c | 76 static struct hisi_clock_data *hi3519_clk_register(struct platform_device *pdev) argument 81 clk_data = hisi_clk_alloc(pdev, HI3519_NR_CLKS); 103 ret = of_clk_add_provider(pdev->dev.of_node, 126 static void hi3519_clk_unregister(struct platform_device *pdev) argument 128 struct hi3519_crg_data *crg = platform_get_drvdata(pdev); 130 of_clk_del_provider(pdev->dev.of_node); 143 static int hi3519_clk_probe(struct platform_device *pdev) argument 147 crg = devm_kmalloc(&pdev->dev, sizeof(*crg), GFP_KERNEL); 151 crg->rstc = hisi_reset_init(pdev); 155 crg->clk_data = hi3519_clk_register(pdev); 165 hi3519_clk_remove(struct platform_device *pdev) argument [all...] |
/linux-master/drivers/thermal/intel/int340x_thermal/ |
H A D | processor_thermal_wt_hint.c | 57 struct pci_dev *pdev = to_pci_dev(dev); local 67 proc_priv = pci_get_drvdata(pdev); 91 struct pci_dev *pdev = to_pci_dev(dev); local 101 ret = processor_thermal_mbox_interrupt_config(pdev, true, 105 ret = processor_thermal_mbox_interrupt_config(pdev, false, 133 struct pci_dev *pdev = to_pci_dev(dev); local 164 ret = processor_thermal_mbox_interrupt_config(pdev, true, 210 void proc_thermal_wt_intr_callback(struct pci_dev *pdev, struct proc_thermal_device *proc_priv) argument 218 sysfs_notify(&pdev->dev.kobj, "workload_hint", "workload_type_index"); 224 int proc_thermal_wt_hint_add(struct pci_dev *pdev, struc argument 238 proc_thermal_wt_hint_remove(struct pci_dev *pdev) argument [all...] |
H A D | processor_thermal_mbox.c | 41 static int send_mbox_write_cmd(struct pci_dev *pdev, u16 id, u32 data) argument 47 proc_priv = pci_get_drvdata(pdev); 60 static int send_mbox_read_cmd(struct pci_dev *pdev, u16 id, u64 *resp) argument 66 proc_priv = pci_get_drvdata(pdev); 87 int processor_thermal_send_mbox_read_cmd(struct pci_dev *pdev, u16 id, u64 *resp) argument 92 ret = send_mbox_read_cmd(pdev, id, resp); 99 int processor_thermal_send_mbox_write_cmd(struct pci_dev *pdev, u16 id, u32 data) argument 104 ret = send_mbox_write_cmd(pdev, id, data); 116 int processor_thermal_mbox_interrupt_config(struct pci_dev *pdev, bool enable, argument 122 if (!pdev) [all...] |
/linux-master/drivers/net/ethernet/netronome/nfp/ |
H A D | nfp_main.c | 236 err = pci_sriov_set_totalvfs(pf->pdev, pf->limit_vfs); 242 static int nfp_pcie_sriov_enable(struct pci_dev *pdev, int num_vfs) argument 245 struct nfp_pf *pf = pci_get_drvdata(pdev); 255 err = pci_enable_sriov(pdev, num_vfs); 257 dev_warn(&pdev->dev, "Failed to enable PCI SR-IOV: %d\n", err); 266 dev_warn(&pdev->dev, 274 dev_dbg(&pdev->dev, "Created %d VFs.\n", pf->num_vfs); 281 pci_disable_sriov(pdev); 287 static int nfp_pcie_sriov_disable(struct pci_dev *pdev) argument 290 struct nfp_pf *pf = pci_get_drvdata(pdev); 318 nfp_pcie_sriov_configure(struct pci_dev *pdev, int num_vfs) argument 358 nfp_net_fw_request(struct pci_dev *pdev, struct nfp_pf *pf, const char *name) argument 380 nfp_net_fw_find(struct pci_dev *pdev, struct nfp_pf *pf) argument 446 nfp_get_fw_policy_value(struct pci_dev *pdev, struct nfp_nsp *nsp, const char *key, const char *default_val, int max_val, int *value) argument 481 nfp_fw_load(struct pci_dev *pdev, struct nfp_pf *pf, struct nfp_nsp *nsp) argument 587 nfp_nsp_init_ports(struct pci_dev *pdev, struct nfp_pf *pf, struct nfp_nsp *nsp) argument 612 nfp_nsp_init(struct pci_dev *pdev, struct nfp_pf *pf) argument 756 nfp_pci_probe(struct pci_dev *pdev, const struct pci_device_id *pci_id) argument 897 __nfp_pci_shutdown(struct pci_dev *pdev, bool unload_fw) argument 929 nfp_pci_remove(struct pci_dev *pdev) argument 934 nfp_pci_shutdown(struct pci_dev *pdev) argument [all...] |
/linux-master/drivers/media/dvb-frontends/ |
H A D | zd1301_demod.c | 15 struct platform_device *pdev; member in struct:zd1301_demod_dev 23 struct platform_device *pdev = dev->pdev; local 24 struct zd1301_demod_platform_data *pdata = pdev->dev.platform_data; 31 struct platform_device *pdev = dev->pdev; local 32 struct zd1301_demod_platform_data *pdata = pdev->dev.platform_data; 40 struct platform_device *pdev = dev->pdev; local 46 dev_dbg(&pdev 148 struct platform_device *pdev = dev->pdev; local 181 struct platform_device *pdev = dev->pdev; local 215 struct platform_device *pdev = dev->pdev; local 229 struct platform_device *pdev = dev->pdev; local 299 zd1301_demod_get_dvb_frontend(struct platform_device *pdev) argument 313 struct platform_device *pdev = dev->pdev; local 443 zd1301_demod_get_i2c_adapter(struct platform_device *pdev) argument 454 zd1301_demod_probe(struct platform_device *pdev) argument 518 zd1301_demod_remove(struct platform_device *pdev) argument [all...] |
/linux-master/drivers/leds/ |
H A D | leds-tps6105x.c | 36 static int tps6105x_led_probe(struct platform_device *pdev) argument 38 struct tps6105x *tps6105x = dev_get_platdata(&pdev->dev); 46 dev_info(&pdev->dev, 51 priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL); 55 priv->fwnode = device_get_next_child_node(pdev->dev.parent, NULL); 56 ret = devm_add_action_or_reset(&pdev->dev, tps6105x_handle_put, priv); 74 return devm_led_classdev_register_ext(&pdev->dev, &priv->cdev,
|
/linux-master/drivers/mtd/maps/ |
H A D | ck804xrom.c | 41 struct pci_dev *pdev; member in struct:ck804xrom_window 87 if (window->pdev) { 89 pci_read_config_byte(window->pdev, 0x6d, &byte); 90 pci_write_config_byte(window->pdev, 0x6d, byte & ~1); 112 pci_dev_put(window->pdev); 116 static int __init ck804xrom_init_one(struct pci_dev *pdev, argument 127 window->pdev = pci_dev_get(pdev); 138 pci_read_config_byte(pdev, 0x88, &byte); 139 pci_write_config_byte(pdev, 321 ck804xrom_remove_one(struct pci_dev *pdev) argument 354 struct pci_dev *pdev; local [all...] |
/linux-master/drivers/edac/ |
H A D | al_mc_edac.c | 97 dev_dbg(mci->pdev, "eccuaddr0=0x%08x eccuaddr1=0x%08x\n", 142 dev_dbg(mci->pdev, "eccuaddr0=0x%08x eccuaddr1=0x%08x\n", 177 struct platform_device *pdev = info; local 178 struct mem_ctl_info *mci = platform_get_drvdata(pdev); 187 struct platform_device *pdev = info; local 188 struct mem_ctl_info *mci = platform_get_drvdata(pdev); 217 static int al_mc_edac_probe(struct platform_device *pdev) argument 226 mmio_base = devm_platform_ioremap_resource(pdev, 0); 228 dev_err(&pdev->dev, "failed to ioremap memory (%ld)\n", 241 ret = devm_add_action_or_reset(&pdev [all...] |
H A D | aspeed_edac.c | 165 dev_dbg(mci->pdev, "received edac interrupt w/ mcr register 50: 0x%x\n", 172 dev_dbg(mci->pdev, "%d recoverable interrupts and %d unrecoverable interrupts\n", 194 dev_dbg(mci->pdev, "received edac interrupt, but did not find any ECC counters\n"); 197 dev_dbg(mci->pdev, "edac interrupt handled. mcr reg 50 is now: 0x%x\n", 204 static int config_irq(void *ctx, struct platform_device *pdev) argument 210 irq = platform_get_irq(pdev, 0); 211 dev_dbg(&pdev->dev, "got irq %d\n", irq); 215 rc = devm_request_irq(&pdev->dev, irq, mcr_isr, IRQF_TRIGGER_HIGH, 218 dev_err(&pdev->dev, "unable to request irq %d\n", irq); 244 dev_err(mci->pdev, "d 279 aspeed_probe(struct platform_device *pdev) argument 360 aspeed_remove(struct platform_device *pdev) argument [all...] |
/linux-master/drivers/gpio/ |
H A D | gpio-zynqmp-modepin.c | 110 * @pdev: platform device instance 114 static int modepin_gpio_probe(struct platform_device *pdev) argument 119 chip = devm_kzalloc(&pdev->dev, sizeof(*chip), GFP_KERNEL); 123 platform_set_drvdata(pdev, chip); 129 chip->parent = &pdev->dev; 134 chip->label = dev_name(&pdev->dev); 137 status = devm_gpiochip_add_data(&pdev->dev, chip, chip); 139 return dev_err_probe(&pdev->dev, status,
|
H A D | gpio-twl6040.c | 77 static int gpo_twl6040_probe(struct platform_device *pdev) argument 79 struct device *twl6040_core_dev = pdev->dev.parent; 83 device_set_node(&pdev->dev, dev_fwnode(pdev->dev.parent)); 92 twl6040gpo_chip.parent = &pdev->dev; 94 ret = devm_gpiochip_add_data(&pdev->dev, &twl6040gpo_chip, NULL); 96 dev_err(&pdev->dev, "could not register gpiochip, %d\n", ret);
|
H A D | gpio-tn48m.c | 41 static int tn48m_gpio_probe(struct platform_device *pdev) argument 49 if (!pdev->dev.parent) 52 gpio_config = device_get_match_data(&pdev->dev); 56 ret = device_property_read_u32(&pdev->dev, "reg", &base); 60 regmap = dev_get_regmap(pdev->dev.parent, NULL); 65 config.parent = &pdev->dev; 79 return PTR_ERR_OR_ZERO(devm_gpio_regmap_register(&pdev->dev, &config));
|
/linux-master/drivers/platform/x86/intel/ |
H A D | chtdc_ti_pwrbtn.c | 36 static int chtdc_ti_pwrbtn_probe(struct platform_device *pdev) argument 38 struct device *dev = &pdev->dev; 43 irq = platform_get_irq(pdev, 0); 49 input->name = pdev->name; 70 static void chtdc_ti_pwrbtn_remove(struct platform_device *pdev) argument 72 dev_pm_clear_wake_irq(&pdev->dev); 73 device_init_wakeup(&pdev->dev, false);
|
/linux-master/drivers/clk/mediatek/ |
H A D | clk-mt8183-audio.c | 75 static int clk_mt8183_audio_probe(struct platform_device *pdev) argument 79 r = mtk_clk_simple_probe(pdev); 83 r = devm_of_platform_populate(&pdev->dev); 85 mtk_clk_simple_remove(pdev); 90 static void clk_mt8183_audio_remove(struct platform_device *pdev) argument 92 of_platform_depopulate(&pdev->dev); 93 mtk_clk_simple_remove(pdev);
|
/linux-master/drivers/clk/sunxi/ |
H A D | clk-sun6i-apb0-gates.c | 35 static int sun6i_a31_apb0_gates_clk_probe(struct platform_device *pdev) argument 37 struct device_node *np = pdev->dev.of_node; 50 data = of_device_get_match_data(&pdev->dev); 54 reg = devm_platform_ioremap_resource(pdev, 0); 62 clk_data = devm_kzalloc(&pdev->dev, sizeof(struct clk_onecell_data), 69 clk_data->clks = devm_kcalloc(&pdev->dev, (ngates + 1), 78 clk_data->clks[i] = clk_register_gate(&pdev->dev, clk_name,
|
/linux-master/drivers/char/hw_random/ |
H A D | mpfs-rng.c | 64 static int mpfs_rng_probe(struct platform_device *pdev) argument 66 struct device *dev = &pdev->dev; 74 rng_priv->sys_controller = mpfs_sys_controller_get(&pdev->dev); 80 rng_priv->rng.name = pdev->name; 82 ret = devm_hwrng_register(&pdev->dev, &rng_priv->rng); 84 return dev_err_probe(&pdev->dev, ret, "Failed to register MPFS hwrng\n"); 86 dev_info(&pdev->dev, "Registered MPFS hwrng\n");
|
/linux-master/drivers/mfd/ |
H A D | ti_am335x_tscadc.c | 115 static int ti_tscadc_probe(struct platform_device *pdev) argument 131 tscadc = devm_kzalloc(&pdev->dev, sizeof(*tscadc), GFP_KERNEL); 135 tscadc->dev = &pdev->dev; 137 if (!pdev->dev.of_node) { 138 dev_err(&pdev->dev, "Could not find valid DT data.\n"); 142 tscadc->data = of_device_get_match_data(&pdev->dev); 145 node = of_get_child_by_name(pdev->dev.of_node, "tsc"); 169 node = of_get_child_by_name(pdev->dev.of_node, "adc"); 173 dev_err(&pdev->dev, " PIN numbers are 0..7 (not %d)\n", 184 dev_err(&pdev 301 ti_tscadc_remove(struct platform_device *pdev) argument [all...] |
/linux-master/drivers/xen/xen-pciback/ |
H A D | pciback_ops.c | 142 int xen_pcibk_enable_msi(struct xen_pcibk_device *pdev, argument 157 pdev->xdev->otherend_id, status); 177 int xen_pcibk_disable_msi(struct xen_pcibk_device *pdev, argument 197 int xen_pcibk_enable_msix(struct xen_pcibk_device *pdev, argument 244 pdev->xdev->otherend_id, result); 256 int xen_pcibk_disable_msix(struct xen_pcibk_device *pdev, argument 280 static inline bool xen_pcibk_test_op_pending(struct xen_pcibk_device *pdev) argument 283 (unsigned long *)&pdev->sh_info->flags) && 284 !test_and_set_bit(_PDEVF_op_active, &pdev->flags); 293 static void xen_pcibk_test_and_schedule_op(struct xen_pcibk_device *pdev) argument 321 xen_pcibk_do_one_op(struct xen_pcibk_device *pdev) argument 399 struct xen_pcibk_device *pdev = local 411 struct xen_pcibk_device *pdev = dev_id; local [all...] |
/linux-master/drivers/crypto/marvell/octeontx2/ |
H A D | otx2_cptvf_main.c | 40 num_vec = pci_msix_vec_count(cptvf->pdev); 45 ret = pci_alloc_irq_vectors(cptvf->pdev, num_vec, num_vec, 48 dev_err(&cptvf->pdev->dev, 52 irq = pci_irq_vector(cptvf->pdev, OTX2_CPT_VF_INT_VEC_E_MBOX); 54 ret = devm_request_irq(&cptvf->pdev->dev, irq, 62 ret = otx2_cpt_send_ready_msg(&cptvf->pfvf_mbox, cptvf->pdev); 64 dev_warn(&cptvf->pdev->dev, 74 struct pci_dev *pdev = cptvf->pdev; local 91 offset = pci_resource_start(pdev, PCI_MBOX_BAR_NU 339 otx2_cptvf_probe(struct pci_dev *pdev, const struct pci_device_id *ent) argument 419 otx2_cptvf_remove(struct pci_dev *pdev) argument [all...] |